@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.
- package/assets/i18n-ecl/bg.json +218 -211
- package/assets/i18n-ecl/cs.json +217 -210
- package/assets/i18n-ecl/da.json +218 -211
- package/assets/i18n-ecl/de.json +218 -211
- package/assets/i18n-ecl/el.json +218 -211
- package/assets/i18n-ecl/en.json +219 -212
- package/assets/i18n-ecl/es.json +218 -211
- package/assets/i18n-ecl/et.json +219 -212
- package/assets/i18n-ecl/fi.json +219 -212
- package/assets/i18n-ecl/fr.json +219 -212
- package/assets/i18n-ecl/ga.json +219 -212
- package/assets/i18n-ecl/hr.json +219 -212
- package/assets/i18n-ecl/hu.json +219 -212
- package/assets/i18n-ecl/it.json +219 -212
- package/assets/i18n-ecl/lt.json +219 -212
- package/assets/i18n-ecl/lv.json +219 -212
- package/assets/i18n-ecl/mt.json +219 -212
- package/assets/i18n-ecl/nl.json +219 -212
- package/assets/i18n-ecl/pl.json +219 -212
- package/assets/i18n-ecl/pt.json +219 -212
- package/assets/i18n-ecl/ro.json +219 -212
- package/assets/i18n-ecl/sk.json +219 -212
- package/assets/i18n-ecl/sl.json +219 -212
- package/assets/i18n-ecl/sv.json +219 -212
- package/components/ecl-add-to-calendar/package.json +4 -0
- package/components/ecl-quiz/package.json +4 -0
- package/docs/changelog.html +47 -0
- package/docs/components/EclAccordionComponent.html +2 -2
- package/docs/components/EclAccordionItemComponent.html +2 -2
- package/docs/components/EclAccordionSummaryComponent.html +2 -2
- package/docs/components/EclAddToCalendarComponent.html +711 -0
- package/docs/components/EclAppComponent.html +2 -2
- package/docs/components/EclBannerComponent.html +26 -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 +19 -43
- package/docs/components/EclFeaturedItemDescriptionComponent.html +2 -2
- package/docs/components/EclFileComponent.html +42 -17
- package/docs/components/EclFileItemComponent.html +29 -10
- 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 +3 -3
- 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 +2 -2
- 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 +15 -15
- 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 +148 -12
- package/docs/components/EclMultiselectDropdownComponent.html +172 -124
- package/docs/components/EclMultiselectInputComponent.html +215 -144
- 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/EclPaginationComponent.html +2 -2
- package/docs/components/EclPaginationItemComponent.html +2 -2
- package/docs/components/EclPopoverComponent.html +2 -2
- package/docs/components/EclQuizCardComponent.html +2119 -0
- package/docs/components/EclQuizComponent.html +1527 -0
- 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 -2
- 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 +111 -131
- package/docs/components/EclTagComponent.html +2 -2
- package/docs/components/EclTimelineComponent.html +2 -2
- package/docs/components/EclTimelineItemComponent.html +2 -2
- package/docs/components/EclTimelineItemTogglerComponent.html +2 -2
- package/docs/directives/EclAddToCalendarActionDirective.html +253 -0
- package/docs/interfaces/EclQuizCardFlipEvent.html +379 -0
- package/docs/js/menu-wc.js +15 -0
- package/docs/js/menu-wc_es5.js +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/docs/json/EclAddToCalendarActionDirective.md +8 -0
- package/docs/json/EclAddToCalendarComponent.md +21 -0
- package/docs/json/EclBannerComponent.md +1 -0
- package/docs/json/EclFeaturedItemComponent.md +2 -1
- package/docs/json/EclFileComponent.md +2 -1
- package/docs/json/EclFileItemComponent.md +2 -1
- package/docs/json/EclIconComponent.md +1 -1
- package/docs/json/EclMultiselectComponent.md +2 -1
- package/docs/json/EclMultiselectInputComponent.md +7 -7
- package/docs/json/EclQuizCardComponent.md +30 -0
- package/docs/json/EclQuizComponent.md +22 -0
- package/docs/json/documentation.json +2658 -714
- package/docs/miscellaneous/variables.html +70 -0
- package/docs/overview.html +3 -3
- package/docs/properties.html +1 -1
- package/fesm2022/eui-ecl-components-ecl-add-to-calendar.mjs +73 -0
- package/fesm2022/eui-ecl-components-ecl-add-to-calendar.mjs.map +1 -0
- package/fesm2022/eui-ecl-components-ecl-app.mjs +5 -3
- package/fesm2022/eui-ecl-components-ecl-app.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-banner.mjs +4 -2
- package/fesm2022/eui-ecl-components-ecl-banner.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-featured.mjs +9 -13
- package/fesm2022/eui-ecl-components-ecl-featured.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-file.mjs +63 -36
- package/fesm2022/eui-ecl-components-ecl-file.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-icon.mjs +4 -1
- package/fesm2022/eui-ecl-components-ecl-icon.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-menu.mjs +5 -5
- package/fesm2022/eui-ecl-components-ecl-menu.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-multiselect.mjs +146 -133
- package/fesm2022/eui-ecl-components-ecl-multiselect.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-quiz.mjs +496 -0
- package/fesm2022/eui-ecl-components-ecl-quiz.mjs.map +1 -0
- package/fesm2022/eui-ecl-components-ecl-range.mjs +1 -0
- package/fesm2022/eui-ecl-components-ecl-range.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-tabs.mjs +72 -51
- package/fesm2022/eui-ecl-components-ecl-tabs.mjs.map +1 -1
- package/package.json +10 -2
- package/types/eui-ecl-components-ecl-add-to-calendar.d.ts +42 -0
- package/types/eui-ecl-components-ecl-add-to-calendar.d.ts.map +1 -0
- package/types/eui-ecl-components-ecl-app.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-banner.d.ts +2 -1
- package/types/eui-ecl-components-ecl-banner.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-featured.d.ts +23 -21
- package/types/eui-ecl-components-ecl-featured.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-file.d.ts +22 -15
- package/types/eui-ecl-components-ecl-file.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-icon.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-menu.d.ts +1 -1
- package/types/eui-ecl-components-ecl-multiselect.d.ts +65 -48
- package/types/eui-ecl-components-ecl-multiselect.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-quiz.d.ts +203 -0
- package/types/eui-ecl-components-ecl-quiz.d.ts.map +1 -0
- package/types/eui-ecl-components-ecl-range.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-tabs.d.ts +6 -17
- package/types/eui-ecl-components-ecl-tabs.d.ts.map +1 -1
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { EventEmitter, ElementRef, AfterContentInit, AfterViewInit, QueryList } from '@angular/core';
|
|
3
|
+
import { ECLBaseDirective } from '@eui/ecl/core';
|
|
4
|
+
import { EmblaCarouselDirective, EmblaEventType } from 'embla-carousel-angular';
|
|
5
|
+
|
|
6
|
+
interface EclQuizCardFlipEvent {
|
|
7
|
+
flipped: boolean;
|
|
8
|
+
selectedOptionIndex?: number;
|
|
9
|
+
isCorrect?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* ECL Quiz Card component – represents a single card in the quiz.
|
|
13
|
+
*
|
|
14
|
+
* For the 'reveal' variant, the entire card is clickable to flip.
|
|
15
|
+
* For the 'poll' variant, individual options trigger the flip.
|
|
16
|
+
*/
|
|
17
|
+
declare class EclQuizCardComponent extends ECLBaseDirective {
|
|
18
|
+
/**
|
|
19
|
+
* The question text displayed on the front of the card.
|
|
20
|
+
*/
|
|
21
|
+
question: _angular_core.InputSignal<string>;
|
|
22
|
+
/**
|
|
23
|
+
* The answer text displayed on the back of the card.
|
|
24
|
+
* Used in 'reveal' variant or as explanation in 'poll' variant.
|
|
25
|
+
*/
|
|
26
|
+
answer: _angular_core.InputSignal<string>;
|
|
27
|
+
/**
|
|
28
|
+
* The answer title (e.g. "The correct answer is A.") for poll variant.
|
|
29
|
+
*/
|
|
30
|
+
answerTitle: _angular_core.InputSignal<string>;
|
|
31
|
+
/**
|
|
32
|
+
* Category label displayed in the card header (poll variant).
|
|
33
|
+
*/
|
|
34
|
+
category: _angular_core.InputSignal<string>;
|
|
35
|
+
/**
|
|
36
|
+
* Icon name for the card header.
|
|
37
|
+
* Defaults to 'sparkle' for reveal, 'question' for poll.
|
|
38
|
+
*/
|
|
39
|
+
icon: _angular_core.InputSignal<string>;
|
|
40
|
+
/**
|
|
41
|
+
* Icon size for the card header.
|
|
42
|
+
*/
|
|
43
|
+
iconSize: _angular_core.InputSignal<"xs" | "s" | "m" | "l" | "xl" | "2xl">;
|
|
44
|
+
/**
|
|
45
|
+
* The variant of the quiz, set by the parent EclQuizComponent.
|
|
46
|
+
*/
|
|
47
|
+
variant: 'poll' | 'reveal';
|
|
48
|
+
/**
|
|
49
|
+
* Options for the poll variant. Each option has text and a match flag.
|
|
50
|
+
*/
|
|
51
|
+
options: _angular_core.InputSignal<{
|
|
52
|
+
text: string;
|
|
53
|
+
match: boolean;
|
|
54
|
+
}[]>;
|
|
55
|
+
/**
|
|
56
|
+
* Whether this card is currently active/visible in the slider.
|
|
57
|
+
*/
|
|
58
|
+
isActive: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Emitted when the card is flipped.
|
|
61
|
+
*/
|
|
62
|
+
cardFlip: EventEmitter<EclQuizCardFlipEvent>;
|
|
63
|
+
frontElementRef: ElementRef;
|
|
64
|
+
backElementRef: ElementRef;
|
|
65
|
+
questionElementRef: ElementRef;
|
|
66
|
+
answerElementRef: ElementRef;
|
|
67
|
+
contentElementRef: ElementRef;
|
|
68
|
+
/** Whether the card is currently flipped (showing back). */
|
|
69
|
+
isFlipped: boolean;
|
|
70
|
+
/** Index of the selected option (poll variant). */
|
|
71
|
+
selectedOptionIndex: number | null;
|
|
72
|
+
/** Whether the selected option is correct (poll variant). */
|
|
73
|
+
isCorrect: boolean | null;
|
|
74
|
+
get cssClasses(): string;
|
|
75
|
+
role: string;
|
|
76
|
+
ariaRoleDescription: string | null;
|
|
77
|
+
ariaHidden: string | null;
|
|
78
|
+
get tabIndex(): number | null;
|
|
79
|
+
get ariaPressed(): string | null;
|
|
80
|
+
styleTransform: string;
|
|
81
|
+
/**
|
|
82
|
+
* Handle click on the card itself (reveal variant).
|
|
83
|
+
*/
|
|
84
|
+
onClick(): void;
|
|
85
|
+
/**
|
|
86
|
+
* Handle keyboard events (Enter/Space to flip for reveal variant).
|
|
87
|
+
*/
|
|
88
|
+
onKeydown(event: KeyboardEvent): void;
|
|
89
|
+
/**
|
|
90
|
+
* Handle option click (poll variant).
|
|
91
|
+
*/
|
|
92
|
+
onOptionClick(optionIndex: number): void;
|
|
93
|
+
/**
|
|
94
|
+
* Handle keyboard on option (poll variant).
|
|
95
|
+
*/
|
|
96
|
+
onOptionKeydown(event: KeyboardEvent, optionIndex: number): void;
|
|
97
|
+
/**
|
|
98
|
+
* Flip the card between front and back.
|
|
99
|
+
*/
|
|
100
|
+
flipCard(): void;
|
|
101
|
+
/** Get the native front element for height calculations. */
|
|
102
|
+
getFrontElement(): HTMLElement | null;
|
|
103
|
+
/** Get the native back element for height calculations. */
|
|
104
|
+
getBackElement(): HTMLElement | null;
|
|
105
|
+
/** Get the native question element for height calculations. */
|
|
106
|
+
getQuestionElement(): HTMLElement | null;
|
|
107
|
+
/** Get the native answer element for height calculations. */
|
|
108
|
+
getAnswerElement(): HTMLElement | null;
|
|
109
|
+
/** Get the native content element for height calculations. */
|
|
110
|
+
getContentElement(): HTMLElement | null;
|
|
111
|
+
/** Get the resolved icon name based on variant. */
|
|
112
|
+
getIconName(): string;
|
|
113
|
+
/** Get the resolved icon size. */
|
|
114
|
+
getIconSize(): string;
|
|
115
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EclQuizCardComponent, never>;
|
|
116
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EclQuizCardComponent, "div[eclQuizCard]", never, { "question": { "alias": "question"; "required": false; "isSignal": true; }; "answer": { "alias": "answer"; "required": false; "isSignal": true; }; "answerTitle": { "alias": "answerTitle"; "required": false; "isSignal": true; }; "category": { "alias": "category"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconSize": { "alias": "iconSize"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "isActive": { "alias": "isActive"; "required": false; }; "ariaHidden": { "alias": "ariaHidden"; "required": false; }; }, { "cardFlip": "cardFlip"; }, never, never, true, never>;
|
|
117
|
+
static ngAcceptInputType_isActive: unknown;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* ECL Quiz component – renders a carousel of quiz cards with navigation.
|
|
122
|
+
* Supports two variants: 'reveal' (flip cards) and 'poll' (multiple choice).
|
|
123
|
+
*
|
|
124
|
+
* Uses Embla Carousel (via embla-carousel-angular) to match the ECL vanilla
|
|
125
|
+
* implementation which also uses Embla internally.
|
|
126
|
+
*/
|
|
127
|
+
declare class EclQuizComponent extends ECLBaseDirective implements AfterContentInit, AfterViewInit {
|
|
128
|
+
/** Quiz variant: 'reveal' for flip cards, 'poll' for multiple choice. */
|
|
129
|
+
variant: _angular_core.InputSignal<"poll" | "reveal">;
|
|
130
|
+
/** Title displayed in the quiz header. */
|
|
131
|
+
eclTitle: _angular_core.InputSignal<string>;
|
|
132
|
+
/** Description displayed below the title. */
|
|
133
|
+
eclDescription: _angular_core.InputSignal<string>;
|
|
134
|
+
/** Embla carousel options matching ECL's configuration. */
|
|
135
|
+
emblaOptions: {
|
|
136
|
+
loop: boolean;
|
|
137
|
+
align: "start";
|
|
138
|
+
};
|
|
139
|
+
cards: QueryList<EclQuizCardComponent>;
|
|
140
|
+
emblaRef: EmblaCarouselDirective;
|
|
141
|
+
dotButtons: QueryList<ElementRef>;
|
|
142
|
+
/** Current snap index. */
|
|
143
|
+
activeIndex: _angular_core.WritableSignal<number>;
|
|
144
|
+
/** Total number of snap points. */
|
|
145
|
+
totalSnaps: _angular_core.WritableSignal<number>;
|
|
146
|
+
/** Live region text for screen readers. */
|
|
147
|
+
liveRegionText: _angular_core.WritableSignal<string>;
|
|
148
|
+
/** Counter text for mobile display. */
|
|
149
|
+
counterText: _angular_core.WritableSignal<string>;
|
|
150
|
+
/** Whether the previous button is disabled. */
|
|
151
|
+
prevDisabled: _angular_core.WritableSignal<boolean>;
|
|
152
|
+
/** Whether the next button is disabled. */
|
|
153
|
+
nextDisabled: _angular_core.WritableSignal<boolean>;
|
|
154
|
+
/** Whether navigation controls should be shown. */
|
|
155
|
+
showControls: _angular_core.WritableSignal<boolean>;
|
|
156
|
+
private cd;
|
|
157
|
+
private translateService;
|
|
158
|
+
private emblaApi;
|
|
159
|
+
get cssClasses(): string;
|
|
160
|
+
ngAfterContentInit(): void;
|
|
161
|
+
ngAfterViewInit(): void;
|
|
162
|
+
/** Handle keyboard events. */
|
|
163
|
+
onKeydown(event: KeyboardEvent): void;
|
|
164
|
+
/** Navigate to the previous snap. */
|
|
165
|
+
onPrevClick(): void;
|
|
166
|
+
/** Navigate to the next snap. */
|
|
167
|
+
onNextClick(): void;
|
|
168
|
+
/** Navigate to a specific snap index. */
|
|
169
|
+
goTo(index: number): void;
|
|
170
|
+
/** Returns the total number of cards. */
|
|
171
|
+
getCardsCount(): number;
|
|
172
|
+
/** Returns an array of indices for dot rendering. */
|
|
173
|
+
getDotIndices(): number[];
|
|
174
|
+
/** Called by the emblaChange event from the directive. */
|
|
175
|
+
onEmblaChange(eventName: string): void;
|
|
176
|
+
/** Subscribed Embla events. */
|
|
177
|
+
subscribeToEvents: EmblaEventType[];
|
|
178
|
+
/**
|
|
179
|
+
* Equalizes the height of all cards based on the tallest content.
|
|
180
|
+
* Mirrors the ECL vanilla `checkHeight()` logic.
|
|
181
|
+
*/
|
|
182
|
+
checkHeight(): void;
|
|
183
|
+
/** Initialize Embla and wire up state syncing. */
|
|
184
|
+
private initEmbla;
|
|
185
|
+
/** Sync component state from Embla API. */
|
|
186
|
+
private syncState;
|
|
187
|
+
/** Update the counter text (mobile). */
|
|
188
|
+
private updateCounter;
|
|
189
|
+
/** Update the live region for screen readers. */
|
|
190
|
+
private updateLiveRegion;
|
|
191
|
+
/** Move focus to the last dot button when Escape is pressed. */
|
|
192
|
+
private escapeSlider;
|
|
193
|
+
/** Propagate the variant and aria-roledescription to all child cards. */
|
|
194
|
+
private propagateVariant;
|
|
195
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EclQuizComponent, never>;
|
|
196
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EclQuizComponent, "div[eclQuiz]", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "eclTitle": { "alias": "eclTitle"; "required": false; "isSignal": true; }; "eclDescription": { "alias": "eclDescription"; "required": false; "isSignal": true; }; }, {}, ["cards"], ["*"], true, never>;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
declare const EUI_ECL_QUIZ: readonly [typeof EclQuizComponent, typeof EclQuizCardComponent];
|
|
200
|
+
|
|
201
|
+
export { EUI_ECL_QUIZ, EclQuizCardComponent, EclQuizComponent };
|
|
202
|
+
export type { EclQuizCardFlipEvent };
|
|
203
|
+
//# sourceMappingURL=eui-ecl-components-ecl-quiz.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-ecl-components-ecl-quiz.d.ts","sources":["../../components/ecl-quiz/ecl-quiz-card.component.ts","../../components/ecl-quiz/ecl-quiz.component.ts","../../components/ecl-quiz/index.ts"],"mappings":";;;;;UAiBiB,oBAAoB;;;;AAIpC;AAED;;;;;AAKG;AACH,cAMa,oBAAqB,SAAQ,gBAAgB;AAEtD;;AAEG;AACH,cAAQ,aAAA,CAAA,WAAA;AAER;;;AAGG;AACH,YAAM,aAAA,CAAA,WAAA;AAEN;;AAEG;AACH,iBAAW,aAAA,CAAA,WAAA;AAEX;;AAEG;AACH,cAAQ,aAAA,CAAA,WAAA;AAER;;;AAGG;AACH,UAAI,aAAA,CAAA,WAAA;AAEJ;;AAEG;AACH,cAAQ,aAAA,CAAA,WAAA;AAER;;AAEG;AACH;AAEA;;AAEG;aACI,aAAA,CAAA,WAAA;;;AAAsD;AAE7D;;AAEG;AACqC;AAExC;;AAEG;AACO,cAAQ,YAAA,CAAA,oBAAA;qBAE0B,UAAU;oBACZ,UAAU;wBACF,UAAU;sBACd,UAAU;uBACR,UAAU;;AAG1D;;AAGA;;AAGA;;AAaA;AAGA;AAGS;AAET;AAKA;AAMA;AAEA;;AAEG;AAEH;AAMA;;AAEG;AAEH,qBAAiB,aAAa;AAO9B;;AAEG;AACH;AAUA;;AAEG;2BACoB,aAAa;AAOpC;;AAEG;AACH;;uBAWmB,WAAW;;sBAKZ,WAAW;;0BAKP,WAAW;;wBAKb,WAAW;;yBAKV,WAAW;;AAKhC;;AAQA;oDAhMS,oBAAoB;sDAApB,oBAAoB;;AAmMhC;;AC9MD;;;;;;AAMG;AACH,cAUa,gBAAiB,SAAQ,gBAAiB,YAAW,gBAAgB,EAAE,aAAa;;AAG7F,aAAO,aAAA,CAAA,WAAA;;AAGP,cAAQ,aAAA,CAAA,WAAA;;AAGR,oBAAc,aAAA,CAAA,WAAA;;;;;AAG0C;AAGxD,WAAO,SAAS,CAAC,oBAAoB;cAEQ,sBAAsB;AACxC,gBAAY,SAAS,CAAC,UAAU;;AAG3D,iBAAW,aAAA,CAAA,cAAA;;AAGX,gBAAU,aAAA,CAAA,cAAA;;AAGV,oBAAc,aAAA,CAAA,cAAA;;AAGd,iBAAW,aAAA,CAAA,cAAA;;AAGX,kBAAY,aAAA,CAAA,cAAA;;AAGZ,kBAAY,aAAA,CAAA,cAAA;;AAGZ,kBAAY,aAAA,CAAA,cAAA;;;;;AAqBZ;AAQA;;AASA,qBAAiB,aAAa;;AAO9B;;AAOA;;AAOA;;AAOA;;;;AAUA;;uBAkBmB,cAAc;AAEjC;;;AAGG;AACH;;AAoFA;;AAiBA;;AAqBA;;AAOA;;AAUA;;AAQA;oDA9RS,gBAAgB;sDAAhB,gBAAgB;AAsS5B;;ACzUD,cAAa,YAAY,mBAAA,gBAAA,SAAA,oBAAA;;;;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-ecl-components-ecl-range.d.ts","sources":["../../components/ecl-range/ecl-range-bubble.component.ts","../../components/ecl-range/ecl-range-value.component.ts","../../components/ecl-range/events/ecl-range.event.ts","../../components/ecl-range/ecl-range.directive.ts","../../components/ecl-range/index.ts"],"mappings":";;;;;AAGA;;;AAGG;AACH,cAIa,uBAAwB,SAAQ,gBAAgB;AAC5D,QAAE,UAAA;AAEF;;AAEG;AACH,WAAK,aAAA,CAAA,cAAA;AAEL;;;AAGG;AACH,UAAI,aAAA,CAAA,cAAA;AAEJ;AAKA;;;AAGG;AACH,eAAS,aAAA,CAAA,cAAA;AAET;;;AAGG;;oDA5BS,uBAAuB;sDAAvB,uBAAuB;AAoCnC;;AC3CD;;;AAGG;AACH,cAYa,sBAAuB,SAAQ,gBAAgB;AACxD;;AAEG;AACH,WAAK,aAAA,CAAA,cAAA;AAEL;;AAEG;AACH,QAAE,aAAA,CAAA,cAAA;AAEF;AAKA;;;AAGG;;oDAnBM,sBAAsB;sDAAtB,sBAAsB;AAwBlC;;AC1CD;;;AAGG;AACH,cAAa,aAAc,SAAQ,YAAY;AAIxB;AAHnB;;AAEG;AACgB;AAGtB;;ACJD;;;AAGG;AACH,cAGa,iBAAkB,SAAQ,gBAAiB,YAAW,MAAM,EAAE,aAAa,EAAE,SAAS;AAE/F;;;AAGG;AACH,aAAO,aAAA,CAAA,WAAA;AAEP;;AAEG;AACH,WAAK,aAAA,CAAA,WAAA;AAEL;;AAEG;AACH,kBAAY,aAAA,CAAA,WAAA;AAEZ;;AAEG;AACH,eAAS,aAAA,CAAA,wBAAA;AAET;;AAEG;AACH,mBAAa,aAAA,CAAA,wBAAA;AAEb;;AAEG;AACH,iBAAW,aAAA,CAAA,gBAAA,CAAA,aAAA;yBAEQ,SAAA;;;;;;;;;;;AAWnB;AACA;;;AAgBA;;;AAGG;AAEH,iBAAa,UAAU;AAOvB;;;AAGG;AACH;AAQA;
|
|
1
|
+
{"version":3,"file":"eui-ecl-components-ecl-range.d.ts","sources":["../../components/ecl-range/ecl-range-bubble.component.ts","../../components/ecl-range/ecl-range-value.component.ts","../../components/ecl-range/events/ecl-range.event.ts","../../components/ecl-range/ecl-range.directive.ts","../../components/ecl-range/index.ts"],"mappings":";;;;;AAGA;;;AAGG;AACH,cAIa,uBAAwB,SAAQ,gBAAgB;AAC5D,QAAE,UAAA;AAEF;;AAEG;AACH,WAAK,aAAA,CAAA,cAAA;AAEL;;;AAGG;AACH,UAAI,aAAA,CAAA,cAAA;AAEJ;AAKA;;;AAGG;AACH,eAAS,aAAA,CAAA,cAAA;AAET;;;AAGG;;oDA5BS,uBAAuB;sDAAvB,uBAAuB;AAoCnC;;AC3CD;;;AAGG;AACH,cAYa,sBAAuB,SAAQ,gBAAgB;AACxD;;AAEG;AACH,WAAK,aAAA,CAAA,cAAA;AAEL;;AAEG;AACH,QAAE,aAAA,CAAA,cAAA;AAEF;AAKA;;;AAGG;;oDAnBM,sBAAsB;sDAAtB,sBAAsB;AAwBlC;;AC1CD;;;AAGG;AACH,cAAa,aAAc,SAAQ,YAAY;AAIxB;AAHnB;;AAEG;AACgB;AAGtB;;ACJD;;;AAGG;AACH,cAGa,iBAAkB,SAAQ,gBAAiB,YAAW,MAAM,EAAE,aAAa,EAAE,SAAS;AAE/F;;;AAGG;AACH,aAAO,aAAA,CAAA,WAAA;AAEP;;AAEG;AACH,WAAK,aAAA,CAAA,WAAA;AAEL;;AAEG;AACH,kBAAY,aAAA,CAAA,WAAA;AAEZ;;AAEG;AACH,eAAS,aAAA,CAAA,wBAAA;AAET;;AAEG;AACH,mBAAa,aAAA,CAAA,wBAAA;AAEb;;AAEG;AACH,iBAAW,aAAA,CAAA,gBAAA,CAAA,aAAA;yBAEQ,SAAA;;;;;;;;;;;AAWnB;AACA;;;AAgBA;;;AAGG;AAEH,iBAAa,UAAU;AAOvB;;;AAGG;AACH;AAQA;AAoCA;;;AAGG;AACH;AAKA;AAMA;AAaA;AAKA;AAMA;AASA;AAsBA;oDA/LS,iBAAiB;sDAAjB,iBAAiB;AA8N7B;;ACrOD,cAAa,aAAa,mBAAA,iBAAA,SAAA,sBAAA,SAAA,uBAAA;;;;","names":[]}
|
|
@@ -140,6 +140,10 @@ declare class EclTabsComponent extends ECLBaseDirective implements OnInit, OnDes
|
|
|
140
140
|
* Adds `ecl-tabs` class to the host if not using the deprecated selector.
|
|
141
141
|
*/
|
|
142
142
|
hasClass: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* Marks the component as initialized, enabling ECL CSS that depends on this attribute.
|
|
145
|
+
*/
|
|
146
|
+
autoInitialized: string;
|
|
143
147
|
/**
|
|
144
148
|
* Class applied to the tab body container.
|
|
145
149
|
*/
|
|
@@ -173,9 +177,9 @@ declare class EclTabsComponent extends ECLBaseDirective implements OnInit, OnDes
|
|
|
173
177
|
*/
|
|
174
178
|
dropdownList: ElementRef;
|
|
175
179
|
/**
|
|
176
|
-
*
|
|
180
|
+
* Reference to the "more" item container in the tab list.
|
|
177
181
|
*/
|
|
178
|
-
|
|
182
|
+
moreItem: ElementRef;
|
|
179
183
|
/**
|
|
180
184
|
* Tabs displayed in the visible list.
|
|
181
185
|
*/
|
|
@@ -192,10 +196,6 @@ declare class EclTabsComponent extends ECLBaseDirective implements OnInit, OnDes
|
|
|
192
196
|
* Indicates whether the mobile breakpoint is active.
|
|
193
197
|
*/
|
|
194
198
|
isMobileBreakpoint: boolean;
|
|
195
|
-
/**
|
|
196
|
-
* Indicates whether the "more" button is shown.
|
|
197
|
-
*/
|
|
198
|
-
isMoreButtonShow: _angular_core.WritableSignal<boolean>;
|
|
199
199
|
/**
|
|
200
200
|
* Indicates whether the scroll previous button is shown.
|
|
201
201
|
*/
|
|
@@ -217,9 +217,7 @@ declare class EclTabsComponent extends ECLBaseDirective implements OnInit, OnDes
|
|
|
217
217
|
private differ;
|
|
218
218
|
private diff;
|
|
219
219
|
private destroy$;
|
|
220
|
-
private isFirstCall;
|
|
221
220
|
private isRtl;
|
|
222
|
-
private moreBtnWidth;
|
|
223
221
|
private TIMEOUT_INTERVAL;
|
|
224
222
|
constructor();
|
|
225
223
|
ngOnInit(): void;
|
|
@@ -249,14 +247,6 @@ declare class EclTabsComponent extends ECLBaseDirective implements OnInit, OnDes
|
|
|
249
247
|
* Toggles the dropdown visibility.
|
|
250
248
|
*/
|
|
251
249
|
onDropdownToggle(): void;
|
|
252
|
-
/**
|
|
253
|
-
* Returns the style value for tab list width.
|
|
254
|
-
*/
|
|
255
|
-
getTabsWidthStyle(): string;
|
|
256
|
-
/**
|
|
257
|
-
* Calculates total width of all tabs.
|
|
258
|
-
*/
|
|
259
|
-
getTabsWidth(): number;
|
|
260
250
|
/**
|
|
261
251
|
* Returns the number of tabs hidden in dropdown.
|
|
262
252
|
*/
|
|
@@ -325,7 +315,6 @@ declare class EclTabsComponent extends ECLBaseDirective implements OnInit, OnDes
|
|
|
325
315
|
private sendTabSelectEvent;
|
|
326
316
|
private observeBreakpointChanges;
|
|
327
317
|
private handleResize;
|
|
328
|
-
private initMoreBtnWidth;
|
|
329
318
|
private hideAllDropdownTabs;
|
|
330
319
|
private setActiveItemForMainTabs;
|
|
331
320
|
private getTabsListWidth;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-ecl-components-ecl-tabs.d.ts","sources":["../../components/ecl-tabs/ecl-tab-label.component.ts","../../components/ecl-tabs/events/ecl-tab-select.event.ts","../../components/ecl-tabs/ecl-tab.component.ts","../../components/ecl-tabs/ecl-tabs.component.ts","../../components/ecl-tabs/models/ecl-tab.model.ts","../../components/ecl-tabs/index.ts"],"mappings":";;;;;;AAGA;;;AAGG;AACH,cAIa,oBAAqB,SAAQ,gBAAgB;AACtD,QAAE,UAAA;oDADO,oBAAoB;sDAApB,oBAAoB;AAEhC;;ACVD;;;;AAIG;AACH,cAAa,iBAAkB,SAAQ,YAAY;AAI5B,SAAK,eAAe;AAHvC;;AAEG;AACgB,qBAAK,eAAe;AAG1C;;ACSD;;;AAGG;AACH,cAQa,eAAgB,SAAQ,gBAAiB,YAAW,aAAa;AAC1E;;AAEG;AACH,QAAE,aAAA,CAAA,WAAA;AAEF;;AAEG;;AAGH;;AAEG;AACkF;AAErF;;AAEG;AACH,cAAQ,aAAA,CAAA,wBAAA;AACR,eAAS,aAAA,CAAA,cAAA;AAET;;AAEG;AACO,eAAS,YAAA,CAAA,iBAAA;AAEnB;;AAEG;AACO,gBAAU,YAAA,CAAA,KAAA;AAEpB;;AAEG;AAEmB,qBAAiB,WAAW;AAElD;;AAEG;UACgC,gBAAgB;AAEnD;;AAEG;WACwC,oBAAoB;AAE/D;;AAEG;AACI;AAEP;;AAEG;AACH,kBAAY,aAAA,CAAA,MAAA;AAEZ,aAAO,aAAA,CAAA,MAAA;sBACS,aAAA,CAAA,MAAA;4BAIM,aAAA,CAAA,MAAA;;;;;;AAmBtB;;AAEG;uBACgB,WAAW;AAI9B;;AAEG;;AAQH;AAKA;;AAEG;;AAMH;;AAEG;AACH;AAIA;;;AAGG;AACI;AAQP;;AAEG;AACH;AAIA;;AAEG;AACH,qBAAiB,KAAK;AAItB;;AAEG;AACH;AAIA;;AAEG;AACH;oDA3JS,eAAe;sDAAf,eAAe;;AA8J3B;;AC5JD,aAAY,cAAc;AACtB;AACA;AACH;AAED;;AAEG;AACH,cAOa,gBAAiB,SAAQ,gBAAiB,YAAW,MAAM,EAAE,SAAS;AAC/E;;AAEG;AAC4B;AAE/B;;AAEG;AACM;AAET;;AAEG;AACO,eAAS,YAAA,CAAA,iBAAA;AAEnB;;AAEG;AACiD,UAAM,SAAS,CAAC,eAAe;AAEnF;;AAEG;cAC8B,UAAU;AAE3C;;AAEG;gBACkC,kBAAkB;AAEvD;;AAEG;aAC4B,kBAAkB;AAEjD;;AAEG;aAC4B,kBAAkB;AAEjD;;AAEG;kBACsC,UAAU;AAEnD;;AAEG;
|
|
1
|
+
{"version":3,"file":"eui-ecl-components-ecl-tabs.d.ts","sources":["../../components/ecl-tabs/ecl-tab-label.component.ts","../../components/ecl-tabs/events/ecl-tab-select.event.ts","../../components/ecl-tabs/ecl-tab.component.ts","../../components/ecl-tabs/ecl-tabs.component.ts","../../components/ecl-tabs/models/ecl-tab.model.ts","../../components/ecl-tabs/index.ts"],"mappings":"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","names":[]}
|