@eui/ecl 22.0.0-alpha.51 → 22.0.0-alpha.53
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 +6 -2
- package/assets/i18n-ecl/cs.json +6 -2
- package/assets/i18n-ecl/da.json +6 -2
- package/assets/i18n-ecl/de.json +6 -2
- package/assets/i18n-ecl/el.json +6 -2
- package/assets/i18n-ecl/en.json +6 -2
- package/assets/i18n-ecl/es.json +6 -2
- package/assets/i18n-ecl/et.json +6 -2
- package/assets/i18n-ecl/fi.json +6 -2
- package/assets/i18n-ecl/fr.json +6 -2
- package/assets/i18n-ecl/ga.json +6 -2
- package/assets/i18n-ecl/hr.json +6 -2
- package/assets/i18n-ecl/hu.json +6 -2
- package/assets/i18n-ecl/it.json +6 -2
- package/assets/i18n-ecl/lt.json +6 -2
- package/assets/i18n-ecl/lv.json +6 -2
- package/assets/i18n-ecl/mt.json +6 -2
- package/assets/i18n-ecl/nl.json +6 -2
- package/assets/i18n-ecl/pl.json +6 -2
- package/assets/i18n-ecl/pt.json +6 -2
- package/assets/i18n-ecl/ro.json +6 -2
- package/assets/i18n-ecl/sk.json +6 -2
- package/assets/i18n-ecl/sl.json +6 -2
- package/assets/i18n-ecl/sv.json +6 -2
- package/components/ecl-slider/package.json +4 -0
- package/docs/changelog.html +29 -0
- package/docs/components/EclAccordionSummaryComponent.html +1 -1
- package/docs/components/EclAddToCalendarComponent.html +1 -1
- package/docs/components/EclAnimatedNumbersComponent.html +1 -1
- package/docs/components/EclAnimatedNumbersItemComponent.html +1 -1
- package/docs/components/EclAppComponent.html +1 -1
- package/docs/components/EclBannerComponent.html +1 -1
- package/docs/components/EclBlockquoteComponent.html +1 -1
- package/docs/components/EclBreadcrumbComponent.html +1 -1
- package/docs/components/EclBreadcrumbSegmentComponent.html +1 -1
- package/docs/components/EclButtonComponent.html +1 -1
- package/docs/components/EclCardBodyComponent.html +1 -1
- package/docs/components/EclCardComponent.html +1 -1
- package/docs/components/EclCarouselComponent.html +182 -898
- package/docs/components/EclCarouselItemComponent.html +32 -1
- package/docs/components/EclCategoryFilterComponent.html +1 -1
- package/docs/components/EclCategoryFilterItemComponent.html +1 -1
- package/docs/components/EclCategoryFilterListComponent.html +1 -1
- package/docs/components/EclCheckboxHelpComponent.html +1 -1
- package/docs/components/EclCheckboxLabelComponent.html +1 -1
- package/docs/components/EclContentBlockComponent.html +1 -1
- package/docs/components/EclContentItemComponent.html +1 -1
- package/docs/components/EclDateBlockComponent.html +1 -1
- package/docs/components/EclDescriptionListDefinitionComponent.html +1 -1
- package/docs/components/EclExpandableComponent.html +1 -1
- package/docs/components/EclFactFiguresComponent.html +1 -1
- package/docs/components/EclFactFiguresItemComponent.html +1 -1
- package/docs/components/EclFactFiguresViewAllComponent.html +1 -1
- package/docs/components/EclFeaturedComponent.html +1 -1
- package/docs/components/EclFeaturedItemComponent.html +1 -1
- package/docs/components/EclFeaturedItemDescriptionComponent.html +1 -1
- package/docs/components/EclFileComponent.html +1 -1
- package/docs/components/EclFileItemComponent.html +1 -1
- package/docs/components/EclFileItemsComponent.html +1 -1
- package/docs/components/EclFileListsComponent.html +1 -1
- package/docs/components/EclFormGroupComponent.html +1 -1
- package/docs/components/EclFormLabelComponent.html +1 -1
- package/docs/components/EclGalleryComponent.html +1 -1
- package/docs/components/EclGalleryFooterComponent.html +1 -1
- package/docs/components/EclGalleryItemComponent.html +1 -1
- package/docs/components/EclHighlightBoxComponent.html +1 -1
- package/docs/components/EclHighlightedSearchComponent.html +1 -1
- package/docs/components/EclIconComponent.html +1 -10
- package/docs/components/EclIndicatorComponent.html +1 -1
- package/docs/components/EclInpageNavigationComponent.html +1 -1
- package/docs/components/EclInpageNavigationItemComponent.html +1 -1
- package/docs/components/EclLayoutWrapperComponent.html +1 -1
- package/docs/components/EclListIllustrationComponent.html +1 -1
- package/docs/components/EclListIllustrationItemComponent.html +1 -1
- package/docs/components/EclLoadingIndicatorComponent.html +1 -1
- package/docs/components/EclMediaContainerComponent.html +1 -1
- package/docs/components/EclMegaMenuComponent.html +1 -1
- package/docs/components/EclMegaMenuFeaturedComponent.html +1 -1
- package/docs/components/EclMegaMenuInfoComponent.html +1 -1
- package/docs/components/EclMegaMenuItemComponent.html +1 -1
- package/docs/components/EclMegaMenuSubitemComponent.html +1 -1
- package/docs/components/EclMenuComponent.html +1 -1
- package/docs/components/EclMenuItemComponent.html +1 -1
- package/docs/components/EclMenuMegaComponent.html +1 -1
- package/docs/components/EclMenuMegaItemComponent.html +1 -1
- package/docs/components/EclModalBodyComponent.html +1 -1
- package/docs/components/EclModalComponent.html +1 -1
- package/docs/components/EclModalFooterComponent.html +1 -1
- package/docs/components/EclModalHeaderComponent.html +1 -1
- package/docs/components/EclMultiselectComponent.html +1 -1
- package/docs/components/EclMultiselectDropdownComponent.html +1 -1
- package/docs/components/EclMultiselectInputComponent.html +1 -1
- package/docs/components/EclMultiselectOptgroupComponent.html +1 -1
- package/docs/components/EclMultiselectOptionComponent.html +1 -1
- package/docs/components/EclNavigationListComponent.html +1 -1
- package/docs/components/EclNavigationListItemComponent.html +1 -1
- package/docs/components/EclNewsTickerComponent.html +1 -1
- package/docs/components/EclNewsTickerItemComponent.html +1 -1
- package/docs/components/EclNotificationComponent.html +1 -1
- package/docs/components/EclPageHeaderComponent.html +1 -1
- package/docs/components/EclPageHeaderDescriptionContainerComponent.html +1 -1
- package/docs/components/EclPageHeaderExpandableComponent.html +1 -1
- package/docs/components/EclPageHeaderSectionComponent.html +1 -1
- package/docs/components/EclPageHeaderSectionInfoComponent.html +1 -1
- package/docs/components/EclPageSummaryComponent.html +1 -1
- package/docs/components/EclPaginationComponent.html +1 -1
- package/docs/components/EclPaginationItemComponent.html +1 -1
- package/docs/components/EclPopoverComponent.html +1 -1
- package/docs/components/EclQuizCardComponent.html +113 -44
- package/docs/components/EclQuizComponent.html +4 -9
- package/docs/components/EclRadioLabelComponent.html +1 -1
- package/docs/components/EclRangeBubbleComponent.html +1 -1
- package/docs/components/EclRangeValueComponent.html +1 -1
- package/docs/components/EclRatingFieldComponent.html +1 -1
- package/docs/components/EclSearchFormComponent.html +1 -1
- package/docs/components/EclSelectContainerComponent.html +1 -1
- package/docs/components/EclSiteFooterComponent.html +1 -1
- package/docs/components/EclSiteFooterCoownerComponent.html +1 -1
- package/docs/components/EclSiteFooterCoreComponent.html +1 -1
- package/docs/components/EclSiteFooterFeedbackComponent.html +1 -1
- package/docs/components/EclSiteFooterFixedContentEUComponent.html +1 -1
- package/docs/components/EclSiteFooterRowCommonComponent.html +1 -1
- package/docs/components/EclSiteHeaderActionComponent.html +1 -1
- package/docs/components/EclSiteHeaderBannerTopComponent.html +1 -1
- package/docs/components/EclSiteHeaderComponent.html +1 -1
- package/docs/components/EclSiteHeaderCustomActionComponent.html +1 -1
- package/docs/components/EclSiteHeaderEnvironmentComponent.html +1 -1
- package/docs/components/EclSiteHeaderLanguageComponent.html +1 -1
- package/docs/components/EclSiteHeaderLanguagePopoverComponent.html +1 -1
- package/docs/components/EclSiteHeaderLoginComponent.html +1 -1
- package/docs/components/EclSiteHeaderNotificationComponent.html +1 -1
- package/docs/components/EclSiteHeaderSearchComponent.html +1 -1
- package/docs/components/EclSliderPagerComponent.html +1159 -0
- package/docs/components/EclSloganTickerComponent.html +1 -1
- package/docs/components/EclSocialMediaFollowComponent.html +1 -1
- package/docs/components/EclSocialMediaFollowItemComponent.html +1 -1
- package/docs/components/EclSplashPageComponent.html +1 -1
- package/docs/components/EclSplashPageLanguageCategoryComponent.html +1 -1
- package/docs/components/EclSplashPageLanguageContainerComponent.html +1 -1
- package/docs/components/EclSplashPageLanguageLinkComponent.html +1 -1
- package/docs/components/EclSpotlightComponent.html +1 -1
- package/docs/components/EclSpotlightLinkComponent.html +1 -1
- package/docs/components/EclStickyContainerComponent.html +1 -1
- package/docs/components/EclStoryCardComponent.html +4 -4
- package/docs/components/EclStoryCardGridDetailsComponent.html +57 -2
- package/docs/components/EclStoryCardItemComponent.html +77 -2
- package/docs/components/EclTabComponent.html +1 -1
- package/docs/components/EclTabLabelComponent.html +1 -1
- package/docs/components/EclTableSortButtonComponent.html +1 -1
- package/docs/components/EclTabsComponent.html +1 -1
- package/docs/components/EclTagComponent.html +1 -1
- package/docs/components/EclTextMediaComponent.html +1 -1
- package/docs/components/EclTimelineComponent.html +1 -1
- package/docs/components/EclTimelineItemComponent.html +1 -1
- package/docs/components/EclTimelineItemTogglerComponent.html +1 -1
- package/docs/js/menu-wc.js +3 -0
- package/docs/js/search/search_index.js +2 -2
- package/docs/json/EclCarouselComponent.md +8 -4
- package/docs/json/EclCarouselItemComponent.md +1 -0
- package/docs/json/EclQuizCardComponent.md +6 -3
- package/docs/json/EclSliderPagerComponent.md +55 -0
- package/docs/json/EclStoryCardGridDetailsComponent.md +1 -0
- package/docs/json/EclStoryCardItemComponent.md +1 -0
- package/docs/json/documentation.json +1889 -565
- package/docs/llms.txt +67 -32
- package/docs/miscellaneous/variables.html +112 -0
- package/docs/overview.html +1 -1
- package/docs/properties.html +1 -1
- package/fesm2022/eui-ecl-components-ecl-carousel.mjs +405 -407
- package/fesm2022/eui-ecl-components-ecl-carousel.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-menu.mjs +15 -15
- package/fesm2022/eui-ecl-components-ecl-menu.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-quiz.mjs +93 -55
- package/fesm2022/eui-ecl-components-ecl-quiz.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-slider.mjs +187 -0
- package/fesm2022/eui-ecl-components-ecl-slider.mjs.map +1 -0
- package/fesm2022/eui-ecl-components-ecl-story-card.mjs +96 -18
- package/fesm2022/eui-ecl-components-ecl-story-card.mjs.map +1 -1
- package/package.json +18 -12
- package/types/eui-ecl-components-ecl-carousel.d.ts +234 -202
- package/types/eui-ecl-components-ecl-carousel.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-menu.d.ts +0 -2
- package/types/eui-ecl-components-ecl-menu.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-quiz.d.ts +94 -57
- package/types/eui-ecl-components-ecl-quiz.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-slider.d.ts +118 -0
- package/types/eui-ecl-components-ecl-slider.d.ts.map +1 -0
- package/types/eui-ecl-components-ecl-story-card.d.ts +78 -48
- package/types/eui-ecl-components-ecl-story-card.d.ts.map +1 -1
|
@@ -325,7 +325,6 @@ declare class EclMenuComponent extends ECLBaseDirective implements OnInit, After
|
|
|
325
325
|
private totalItemsWidth;
|
|
326
326
|
private offsetLeft;
|
|
327
327
|
private lastVisibleItem;
|
|
328
|
-
private hammertime;
|
|
329
328
|
private resizeTimer;
|
|
330
329
|
private TIMEOUT_INTERVAL;
|
|
331
330
|
private el;
|
|
@@ -439,7 +438,6 @@ declare class EclMenuComponent extends ECLBaseDirective implements OnInit, After
|
|
|
439
438
|
private enableScroll;
|
|
440
439
|
private focusOnFirstItem;
|
|
441
440
|
private sendMenuItemSelectEvent;
|
|
442
|
-
private observeSwipeGestures;
|
|
443
441
|
private subscribeToAppShellBreakpoints;
|
|
444
442
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EclMenuComponent, never>;
|
|
445
443
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EclMenuComponent, "ecl-menu", never, { "maxLines": { "alias": "maxLines"; "required": false; "isSignal": true; }; }, { "menuItemSelect": "menuItemSelect"; "openHamburgerMenu": "openHamburgerMenu"; "closeHamburgerMenu": "closeHamburgerMenu"; }, ["eclRootMenuItems"], ["*"], true, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-ecl-components-ecl-menu.d.ts","sources":["../../components/ecl-menu/models/ecl-menu-item.model.ts","../../components/ecl-menu/events/ecl-menu-item.event.ts","../../components/ecl-menu/ecl-menu/ecl-menu-item.component.ts","../../components/ecl-menu/ecl-menu/ecl-menu.component.ts","../../components/ecl-menu/ecl-menu-mega/ecl-menu-mega-item.component.ts","../../components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AAA,MAAA,CAAA,kBAAA;AAC1B;;AAEG;AACH,wCAAkC,aAAA,CAAA,MAAA,CAAA,kBAAA;AAElC,sCAAgC,aAAA,CAAA,cAAA;AAChC,sCAAgC,aAAA,CAAA,cAAA;AAEhC,mCAA6B,aAAA,CAAA,MAAA;;;AAS7B
|
|
1
|
+
{"version":3,"file":"eui-ecl-components-ecl-menu.d.ts","sources":["../../components/ecl-menu/models/ecl-menu-item.model.ts","../../components/ecl-menu/events/ecl-menu-item.event.ts","../../components/ecl-menu/ecl-menu/ecl-menu-item.component.ts","../../components/ecl-menu/ecl-menu/ecl-menu.component.ts","../../components/ecl-menu/ecl-menu-mega/ecl-menu-mega-item.component.ts","../../components/ecl-menu/ecl-menu-mega/ecl-menu-mega.component.ts","../../components/ecl-menu/index.ts"],"mappings":";;;;;;UAEiB,WAAW;AACxB,SAAK,MAAM;AACX,WAAO,MAAM;AACb,gBAAY,cAAc;AAC1B,gBAAY,cAAc;AAC1B,iBAAa,cAAc;AAC3B,gBAAY,cAAc;AAC1B,kBAAc,MAAM;AACpB,eAAW,MAAM,CAAC,WAAW;AAChC;;ACRD;;;;;AAKG;AACH,cAAa,sBAAuB,SAAQ,WAAW,CAAC,KAAK;AAE9C,cAAU,WAAW;AACrB,cAAU,KAAK;AADf,0BAAU,WAAW,aACX,KAAY;AAIpC;AAED;;;;;AAKG;AACH,cAAa,qBAAsB,SAAQ,WAAW,CAAC,UAAU;AAElD,cAAU,WAAW;AACrB,cAAU,UAAU;AADpB,0BAAU,WAAW,aACX,UAAiB;AAIzC;AAED;;;;;AAKG;AACH,cAAa,wBAAyB,SAAQ,WAAW,CAAC,UAAU;AAErD,cAAU,WAAW;AACrB,cAAU,UAAU;AADpB,0BAAU,WAAW,aACX,UAAiB;AAIzC;AAED;;;;;AAKG;AACH,cAAa,qBAAsB,SAAQ,WAAW,CAAC,UAAU;AAElD,cAAU,WAAW;AACrB,cAAU,UAAU;AADpB,0BAAU,WAAW,aACX,UAAiB;AAIzC;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CAAA,sBAAA;AACvB;;AAEG;sCAC6B,aAAA,CAAA,gBAAA,CAAA,sBAAA;AAChC;;AAEG;kCACyB,aAAA,CAAA,gBAAA;AAE5B,mCAA6B,aAAA,CAAA,MAAA;;;;;;AAiB7B;AAKA;AAOA;AAeA;AASA;AA8BA;AAKA;AAUA;AAQA;AAMA;AAIA;AAMA;oDAjJS,oBAAoB;sDAApB,oBAAoB;AAoJhC;;AC1KD,cAAa,YAAY,mBAAA,gBAAA,SAAA,oBAAA,SAAA,oBAAA,SAAA,wBAAA;;","names":[]}
|
|
@@ -16,13 +16,13 @@ import { EmblaEventType } from 'embla-carousel';
|
|
|
16
16
|
*/
|
|
17
17
|
declare class EclQuizComponent extends ECLBaseDirective implements AfterContentInit, AfterViewInit, OnDestroy {
|
|
18
18
|
/** Quiz variant: 'reveal' for flip cards, 'poll' for multiple choice. */
|
|
19
|
-
variant: _angular_core.InputSignal<"poll" | "reveal">;
|
|
19
|
+
readonly variant: _angular_core.InputSignal<"poll" | "reveal">;
|
|
20
20
|
/** Title displayed in the quiz header. */
|
|
21
|
-
eclTitle: _angular_core.InputSignal<string>;
|
|
21
|
+
readonly eclTitle: _angular_core.InputSignal<string>;
|
|
22
22
|
/** Description displayed below the title. */
|
|
23
|
-
eclDescription: _angular_core.InputSignal<string>;
|
|
24
|
-
isFullWidth: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
25
|
-
hasBackground: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
23
|
+
readonly eclDescription: _angular_core.InputSignal<string>;
|
|
24
|
+
readonly isFullWidth: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
25
|
+
readonly hasBackground: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
26
26
|
/** Embla carousel options matching ECL's configuration. */
|
|
27
27
|
protected emblaOptions: {
|
|
28
28
|
loop: boolean;
|
|
@@ -32,31 +32,32 @@ declare class EclQuizComponent extends ECLBaseDirective implements AfterContentI
|
|
|
32
32
|
/** Subscribed Embla events. */
|
|
33
33
|
protected subscribeToEvents: EmblaEventType[];
|
|
34
34
|
/** Current snap index. */
|
|
35
|
-
protected activeIndex: _angular_core.WritableSignal<number>;
|
|
35
|
+
protected readonly activeIndex: _angular_core.WritableSignal<number>;
|
|
36
36
|
/** Total number of snap points. */
|
|
37
|
-
protected totalSnaps: _angular_core.WritableSignal<number>;
|
|
37
|
+
protected readonly totalSnaps: _angular_core.WritableSignal<number>;
|
|
38
38
|
/** Counter text for mobile display. */
|
|
39
|
-
protected counterText: _angular_core.WritableSignal<string>;
|
|
39
|
+
protected readonly counterText: _angular_core.WritableSignal<string>;
|
|
40
40
|
/** Whether the previous button is disabled. */
|
|
41
|
-
protected prevDisabled: _angular_core.WritableSignal<boolean>;
|
|
41
|
+
protected readonly prevDisabled: _angular_core.WritableSignal<boolean>;
|
|
42
42
|
/** Whether the next button is disabled. */
|
|
43
|
-
protected nextDisabled: _angular_core.WritableSignal<boolean>;
|
|
43
|
+
protected readonly nextDisabled: _angular_core.WritableSignal<boolean>;
|
|
44
44
|
/** Whether navigation controls should be shown. */
|
|
45
|
-
protected showControls: _angular_core.WritableSignal<boolean>;
|
|
45
|
+
protected readonly showControls: _angular_core.WritableSignal<boolean>;
|
|
46
46
|
private cards;
|
|
47
|
-
private emblaRef;
|
|
48
|
-
private
|
|
49
|
-
private
|
|
50
|
-
private
|
|
51
|
-
private
|
|
47
|
+
private readonly emblaRef;
|
|
48
|
+
private readonly cd;
|
|
49
|
+
private readonly eclRtlService;
|
|
50
|
+
private readonly hostRef;
|
|
51
|
+
private readonly translate;
|
|
52
|
+
private readonly destroy$;
|
|
52
53
|
private emblaApi;
|
|
53
54
|
protected readonly cssClasses: _angular_core.Signal<string>;
|
|
54
55
|
/** Whether any snap point groups multiple slides. */
|
|
55
|
-
protected hasGroupedSlides: _angular_core.WritableSignal<boolean>;
|
|
56
|
+
protected readonly hasGroupedSlides: _angular_core.WritableSignal<boolean>;
|
|
56
57
|
/** Total number of individual slides (cards). */
|
|
57
|
-
protected totalSlides: _angular_core.WritableSignal<number>;
|
|
58
|
+
protected readonly totalSlides: _angular_core.WritableSignal<number>;
|
|
58
59
|
/** Number of visible slides per snap. */
|
|
59
|
-
protected slidesPerSnap: _angular_core.WritableSignal<number>;
|
|
60
|
+
protected readonly slidesPerSnap: _angular_core.WritableSignal<number>;
|
|
60
61
|
/** Returns the aria-label for a dot button at the given snap index. */
|
|
61
62
|
protected getDotAriaLabel(dotIndex: number): {
|
|
62
63
|
key: string;
|
|
@@ -64,6 +65,12 @@ declare class EclQuizComponent extends ECLBaseDirective implements AfterContentI
|
|
|
64
65
|
};
|
|
65
66
|
/** Returns an array of indices for dot rendering. */
|
|
66
67
|
protected getDotIndices(): number[];
|
|
68
|
+
/**
|
|
69
|
+
* Pre-translated accessible label for each dot, passed to the shared slider pager.
|
|
70
|
+
* Depends on the current slide grouping, so it is computed here (where that
|
|
71
|
+
* information lives) and translated imperatively.
|
|
72
|
+
*/
|
|
73
|
+
protected readonly dotAriaLabels: _angular_core.Signal<string[]>;
|
|
67
74
|
/** Called by the emblaChange event from the directive. */
|
|
68
75
|
protected onEmblaChange(eventName: string): void;
|
|
69
76
|
/** Handle keyboard events. */
|
|
@@ -87,7 +94,12 @@ declare class EclQuizComponent extends ECLBaseDirective implements AfterContentI
|
|
|
87
94
|
private escapeSlider;
|
|
88
95
|
/** Subscribe to cardFlip events on all cards to detect when all are flipped. */
|
|
89
96
|
private subscribeToCardFlips;
|
|
90
|
-
/**
|
|
97
|
+
/**
|
|
98
|
+
* Hook invoked when a poll card flips. The category/sr-status tabindex
|
|
99
|
+
* management was removed in line with upstream ECL (PR #4681), so there is
|
|
100
|
+
* no longer per-card state to propagate here. Retained as an extension
|
|
101
|
+
* point for future "all cards flipped" behaviour.
|
|
102
|
+
*/
|
|
91
103
|
private checkAllCardsFlipped;
|
|
92
104
|
/**
|
|
93
105
|
* Equalizes the height of all cards based on the tallest content.
|
|
@@ -133,33 +145,57 @@ declare class EclQuizCardComponent extends ECLBaseDirective {
|
|
|
133
145
|
* Unique identifier for the card, used for accessibility attributes.
|
|
134
146
|
* If not provided, a unique ID is generated automatically.
|
|
135
147
|
*/
|
|
136
|
-
id: _angular_core.InputSignal<string>;
|
|
148
|
+
readonly id: _angular_core.InputSignal<string>;
|
|
137
149
|
/**
|
|
138
150
|
* The question text displayed on the front of the card.
|
|
139
151
|
*/
|
|
140
|
-
question: _angular_core.InputSignal<string>;
|
|
152
|
+
readonly question: _angular_core.InputSignal<string>;
|
|
141
153
|
/**
|
|
142
154
|
* The answer text displayed on the back of the card.
|
|
143
155
|
* Used in 'reveal' variant or as explanation in 'poll' variant.
|
|
144
156
|
*/
|
|
145
|
-
answer: _angular_core.InputSignal<string>;
|
|
157
|
+
readonly answer: _angular_core.InputSignal<string>;
|
|
146
158
|
/**
|
|
147
159
|
* The answer title (e.g. "The correct answer is A.") for poll variant.
|
|
148
160
|
*/
|
|
149
|
-
answerTitle: _angular_core.InputSignal<string>;
|
|
161
|
+
readonly answerTitle: _angular_core.InputSignal<string>;
|
|
150
162
|
/**
|
|
151
163
|
* Category label displayed in the card header (poll variant).
|
|
164
|
+
*
|
|
165
|
+
* @deprecated Since the port of ECL PR #4681. Upstream ECL removed the
|
|
166
|
+
* category label (it is no longer part of the markup or styled by
|
|
167
|
+
* `@eui/styles`); the back of the card now relies on the answer title and
|
|
168
|
+
* the success/error result icons. This input is kept only to preserve the
|
|
169
|
+
* public API and no longer renders anything. To be removed in v22.x.
|
|
170
|
+
*/
|
|
171
|
+
readonly category: _angular_core.InputSignal<string>;
|
|
172
|
+
/**
|
|
173
|
+
* Image source for the card. When set together with a supported
|
|
174
|
+
* {@link imageDisplay} mode, a picture is rendered on the card.
|
|
175
|
+
*/
|
|
176
|
+
readonly imageSrc: _angular_core.InputSignal<string>;
|
|
177
|
+
/**
|
|
178
|
+
* Alternative text for the card image.
|
|
152
179
|
*/
|
|
153
|
-
|
|
180
|
+
readonly imageAlt: _angular_core.InputSignal<string>;
|
|
181
|
+
/**
|
|
182
|
+
* Controls where the image/illustration is displayed:
|
|
183
|
+
* - 'none': no image (default)
|
|
184
|
+
* - 'back': image only on the back; for poll variant an animated
|
|
185
|
+
* question-mark illustration is shown on the front
|
|
186
|
+
* - 'always': image on both front and back
|
|
187
|
+
*/
|
|
188
|
+
readonly imageDisplay: _angular_core.InputSignal<"none" | "back" | "always">;
|
|
154
189
|
/**
|
|
155
190
|
* Icon name for the card header.
|
|
156
|
-
* Defaults to 'sparkle' for reveal, 'question' for poll.
|
|
191
|
+
* Defaults to 'sparkle' for reveal, 'question-mark' for poll.
|
|
157
192
|
*/
|
|
158
|
-
icon: _angular_core.InputSignal<string>;
|
|
193
|
+
readonly icon: _angular_core.InputSignal<string>;
|
|
159
194
|
/**
|
|
160
|
-
* Icon size for the card header.
|
|
195
|
+
* Icon size for the card header. When empty, a variant-based default is
|
|
196
|
+
* used ('xl' for poll, 'l' for reveal).
|
|
161
197
|
*/
|
|
162
|
-
iconSize: _angular_core.InputSignal<"xs" | "s" | "m" | "l" | "xl" | "2xl">;
|
|
198
|
+
readonly iconSize: _angular_core.InputSignal<"" | "xs" | "s" | "m" | "l" | "xl" | "2xl">;
|
|
163
199
|
/**
|
|
164
200
|
* The variant of the quiz, set by the parent EclQuizComponent.
|
|
165
201
|
*/
|
|
@@ -167,7 +203,7 @@ declare class EclQuizCardComponent extends ECLBaseDirective {
|
|
|
167
203
|
/**
|
|
168
204
|
* Options for the poll variant. Each option has text and a match flag.
|
|
169
205
|
*/
|
|
170
|
-
options: _angular_core.InputSignal<{
|
|
206
|
+
readonly options: _angular_core.InputSignal<{
|
|
171
207
|
text: string;
|
|
172
208
|
match: boolean;
|
|
173
209
|
}[]>;
|
|
@@ -175,34 +211,39 @@ declare class EclQuizCardComponent extends ECLBaseDirective {
|
|
|
175
211
|
* Whether this is the first card in the quiz.
|
|
176
212
|
* Set by the parent EclQuizComponent to render skip-instructions only once.
|
|
177
213
|
*/
|
|
178
|
-
isFirstCard: _angular_core.WritableSignal<boolean>;
|
|
179
|
-
/**
|
|
180
|
-
* Whether all cards in the quiz have been flipped.
|
|
181
|
-
* Set by the parent EclQuizComponent to restore tabindex on category spans.
|
|
182
|
-
*/
|
|
183
|
-
allCardsFlipped: _angular_core.WritableSignal<boolean>;
|
|
214
|
+
readonly isFirstCard: _angular_core.WritableSignal<boolean>;
|
|
184
215
|
/** Whether the card is currently flipped (showing back). */
|
|
185
|
-
isFlipped: _angular_core.WritableSignal<boolean>;
|
|
216
|
+
readonly isFlipped: _angular_core.WritableSignal<boolean>;
|
|
186
217
|
/**
|
|
187
218
|
* Emitted when the card is flipped.
|
|
188
219
|
*/
|
|
189
220
|
readonly cardFlip: _angular_core.OutputEmitterRef<EclQuizCardFlipEvent>;
|
|
190
|
-
protected questionId: _angular_core.Signal<string>;
|
|
191
|
-
protected answerId: _angular_core.Signal<string>;
|
|
192
|
-
/** Whether
|
|
193
|
-
protected
|
|
221
|
+
protected readonly questionId: _angular_core.Signal<string>;
|
|
222
|
+
protected readonly answerId: _angular_core.Signal<string>;
|
|
223
|
+
/** Whether a picture is available to render. */
|
|
224
|
+
protected readonly hasPicture: _angular_core.Signal<boolean>;
|
|
225
|
+
/** Whether the picture should be rendered on the front face. */
|
|
226
|
+
protected showFrontPicture: _angular_core.Signal<boolean>;
|
|
227
|
+
/** Whether the picture should be rendered on the back face. */
|
|
228
|
+
protected showBackPicture: _angular_core.Signal<boolean>;
|
|
229
|
+
/**
|
|
230
|
+
* Whether the animated question-mark illustration should be shown on the
|
|
231
|
+
* front of a poll card (poll variant with 'back' image display).
|
|
232
|
+
*/
|
|
233
|
+
protected showIllustration: _angular_core.Signal<boolean>;
|
|
234
|
+
/** Indices used to render the illustration's repeated question-mark shapes. */
|
|
235
|
+
protected readonly illustrationMarks: number[];
|
|
194
236
|
/** Index of the selected option (poll variant). */
|
|
195
|
-
protected selectedOptionIndex: _angular_core.WritableSignal<number>;
|
|
237
|
+
protected readonly selectedOptionIndex: _angular_core.WritableSignal<number>;
|
|
196
238
|
/** Whether the selected option is correct (poll variant). */
|
|
197
|
-
protected isCorrect: _angular_core.WritableSignal<boolean>;
|
|
239
|
+
protected readonly isCorrect: _angular_core.WritableSignal<boolean>;
|
|
198
240
|
protected readonly styleTransform = "translate3d(0px, 0px, 0px)";
|
|
199
|
-
private frontElementRef;
|
|
200
|
-
private backElementRef;
|
|
201
|
-
private questionElementRef;
|
|
202
|
-
private answerElementRef;
|
|
203
|
-
private contentElementRef;
|
|
204
|
-
private
|
|
205
|
-
private categoryErrorRef;
|
|
241
|
+
private readonly frontElementRef;
|
|
242
|
+
private readonly backElementRef;
|
|
243
|
+
private readonly questionElementRef;
|
|
244
|
+
private readonly answerElementRef;
|
|
245
|
+
private readonly contentElementRef;
|
|
246
|
+
private readonly answerTitleRef;
|
|
206
247
|
/** Get the native front element for height calculations. */
|
|
207
248
|
getFrontElement(): HTMLElement | null;
|
|
208
249
|
/** Get the native back element for height calculations. */
|
|
@@ -241,21 +282,17 @@ declare class EclQuizCardComponent extends ECLBaseDirective {
|
|
|
241
282
|
* Handle keyboard on option (poll variant).
|
|
242
283
|
*/
|
|
243
284
|
protected onOptionKeydown(event: KeyboardEvent, optionIndex: number): void;
|
|
244
|
-
/**
|
|
245
|
-
* Handle blur on the category span. Sets tabindex to -1 so it leaves the tab order.
|
|
246
|
-
*/
|
|
247
|
-
protected onCategoryBlur(): void;
|
|
248
285
|
/**
|
|
249
286
|
* Flip the card between front and back.
|
|
250
287
|
*/
|
|
251
288
|
private flipCard;
|
|
252
289
|
/**
|
|
253
|
-
* Focus the
|
|
290
|
+
* Focus the answer title after the card flips in poll variant.
|
|
254
291
|
* Uses requestAnimationFrame to ensure the DOM has updated (inert removed from back face).
|
|
255
292
|
*/
|
|
256
|
-
private
|
|
293
|
+
private focusAnswerTitleAfterFlip;
|
|
257
294
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EclQuizCardComponent, never>;
|
|
258
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EclQuizCardComponent, "li[eclQuizCard]", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "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; }; }, { "cardFlip": "cardFlip"; }, never, never, true, never>;
|
|
295
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EclQuizCardComponent, "li[eclQuizCard]", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "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; }; "imageSrc": { "alias": "imageSrc"; "required": false; "isSignal": true; }; "imageAlt": { "alias": "imageAlt"; "required": false; "isSignal": true; }; "imageDisplay": { "alias": "imageDisplay"; "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; }; }, { "cardFlip": "cardFlip"; }, never, never, true, never>;
|
|
259
296
|
}
|
|
260
297
|
|
|
261
298
|
declare const EUI_ECL_QUIZ: readonly [typeof EclQuizComponent, typeof EclQuizCardComponent, typeof EclQuizListDirective];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-ecl-components-ecl-quiz.d.ts","sources":["../../components/ecl-quiz/ecl-quiz.component.ts","../../components/ecl-quiz/ecl-quiz-card.component.ts","../../components/ecl-quiz/index.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"eui-ecl-components-ecl-quiz.d.ts","sources":["../../components/ecl-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S,oBAAoB;sDAApB,oBAAoB;AAwQhC;;AC1TD,cAAa,YAAY,mBAAA,gBAAA,SAAA,oBAAA,SAAA,oBAAA;;","names":[]}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnDestroy } from '@angular/core';
|
|
3
|
+
import { ECLBaseDirective } from '@eui/ecl/core';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* ECL Slider Pager component.
|
|
7
|
+
*
|
|
8
|
+
* A presentational navigation strip (previous / dots / optional play-pause / next)
|
|
9
|
+
* shared by slider-like components such as quiz, story-card and carousel.
|
|
10
|
+
*
|
|
11
|
+
* It is intentionally self-contained and framework-presentational:
|
|
12
|
+
* - It owns no carousel. The parent owns its own source of truth (e.g. an Embla
|
|
13
|
+
* carousel or an accordion state) and maps that state onto this component's inputs.
|
|
14
|
+
* - It only renders markup and emits intent through its outputs
|
|
15
|
+
* (`prev`, `next`, `goTo`, `play`, `pause`).
|
|
16
|
+
*
|
|
17
|
+
* For the `play-pause` variant the DOM order is `play/pause -> prev -> next`, so
|
|
18
|
+
* keyboard/screen-reader focus reaches the play/pause control first (accessibility
|
|
19
|
+
* requirement, see FRONT-5436). For the `dots` variant the DOM order stays
|
|
20
|
+
* `prev -> dots -> next`. The visual skeleton `prev -> [middle] -> next` is
|
|
21
|
+
* preserved via CSS `order` on the per-slot classes.
|
|
22
|
+
*
|
|
23
|
+
* Styling (including the `order` rules that restore the visual layout) is provided
|
|
24
|
+
* by the shared `ecl-slider-pager__*` classes shipped in `@eui/styles`.
|
|
25
|
+
*/
|
|
26
|
+
declare class EclSliderPagerComponent extends ECLBaseDirective implements OnDestroy {
|
|
27
|
+
/** Size of the prev/next (and play/pause) buttons. */
|
|
28
|
+
readonly size: _angular_core.InputSignal<"s" | "m" | "l">;
|
|
29
|
+
/**
|
|
30
|
+
* Which controls to render:
|
|
31
|
+
* - `'dots'`: prev / dots / next.
|
|
32
|
+
* - `'play-pause'`: play-pause / prev / next.
|
|
33
|
+
* - `'play-pause-dots'`: play-pause / prev / dots / next. Used by the carousel,
|
|
34
|
+
* which shows play/pause + teasers on desktop and the dots strip on mobile
|
|
35
|
+
* (the ECL CSS toggles which parts are visible per breakpoint).
|
|
36
|
+
*/
|
|
37
|
+
readonly variant: _angular_core.InputSignal<"dots" | "play-pause" | "play-pause-dots">;
|
|
38
|
+
/** Whether playback is currently active (controls play/pause visibility). */
|
|
39
|
+
readonly isPlaying: _angular_core.InputSignal<boolean>;
|
|
40
|
+
/** Whether the previous button is disabled. */
|
|
41
|
+
readonly isPrevDisabled: _angular_core.InputSignal<boolean>;
|
|
42
|
+
/** Whether the next button is disabled. */
|
|
43
|
+
readonly isNextDisabled: _angular_core.InputSignal<boolean>;
|
|
44
|
+
/** Index of the currently active dot. */
|
|
45
|
+
readonly activeIndex: _angular_core.InputSignal<number>;
|
|
46
|
+
/** Indices of the dots to render. Length determines the number of dots. */
|
|
47
|
+
readonly dotIndices: _angular_core.InputSignal<number[]>;
|
|
48
|
+
/**
|
|
49
|
+
* Accessible label for each dot, indexed by dot index.
|
|
50
|
+
* The parent is responsible for computing these (e.g. "Show slides 1 to 3 of 5"),
|
|
51
|
+
* since the wording depends on the parent's slide grouping and translations.
|
|
52
|
+
*/
|
|
53
|
+
readonly dotAriaLabels: _angular_core.InputSignal<string[]>;
|
|
54
|
+
/**
|
|
55
|
+
* Component-scoped extra classes applied per slot, alongside the shared
|
|
56
|
+
* `ecl-slider-pager__*` classes. Consumers use these to attach their own
|
|
57
|
+
* BEM classes (e.g. `ecl-story-card__next`) so component-specific styles in
|
|
58
|
+
* `@eui/styles` can target a given slot.
|
|
59
|
+
*/
|
|
60
|
+
readonly prevExtraClasses: _angular_core.InputSignal<string>;
|
|
61
|
+
readonly nextExtraClasses: _angular_core.InputSignal<string>;
|
|
62
|
+
readonly dotsExtraClasses: _angular_core.InputSignal<string>;
|
|
63
|
+
readonly dotExtraClasses: _angular_core.InputSignal<string>;
|
|
64
|
+
readonly playExtraClasses: _angular_core.InputSignal<string>;
|
|
65
|
+
readonly pauseExtraClasses: _angular_core.InputSignal<string>;
|
|
66
|
+
/** Emitted when the previous button is activated. */
|
|
67
|
+
readonly prev: _angular_core.OutputEmitterRef<void>;
|
|
68
|
+
/** Emitted when the next button is activated. */
|
|
69
|
+
readonly next: _angular_core.OutputEmitterRef<void>;
|
|
70
|
+
/** Emitted when a dot is activated. Payload is the dot index. */
|
|
71
|
+
readonly goTo: _angular_core.OutputEmitterRef<number>;
|
|
72
|
+
/** Emitted when the play button is activated. */
|
|
73
|
+
readonly play: _angular_core.OutputEmitterRef<void>;
|
|
74
|
+
/** Emitted when the pause button is activated. */
|
|
75
|
+
readonly pause: _angular_core.OutputEmitterRef<void>;
|
|
76
|
+
/**
|
|
77
|
+
* Whether the pager is in its compact (narrow) layout, where prev/next
|
|
78
|
+
* collapse to icon-only. Driven by observing the component's own width.
|
|
79
|
+
*/
|
|
80
|
+
protected readonly isCompact: _angular_core.WritableSignal<boolean>;
|
|
81
|
+
protected readonly cssClasses: _angular_core.Signal<string>;
|
|
82
|
+
/** Resolved icon size derived from the button size. */
|
|
83
|
+
protected readonly iconSize: _angular_core.Signal<"m" | "l">;
|
|
84
|
+
/**
|
|
85
|
+
* Whether prev/next render icon-only.
|
|
86
|
+
* The `play-pause` variant (e.g. story-card grid controls) is always icon-only.
|
|
87
|
+
* The `dots` variant (e.g. quiz) shows text labels at wide widths and collapses
|
|
88
|
+
* to icon-only when compact.
|
|
89
|
+
*/
|
|
90
|
+
protected readonly isPrevNextIconOnly: _angular_core.Signal<boolean>;
|
|
91
|
+
/** Whether to render the play/pause buttons. */
|
|
92
|
+
protected readonly showPlayPause: _angular_core.Signal<boolean>;
|
|
93
|
+
/** Whether to render the dots navigation strip. */
|
|
94
|
+
protected readonly showDots: _angular_core.Signal<boolean>;
|
|
95
|
+
private readonly hostRef;
|
|
96
|
+
private resizeObserver?;
|
|
97
|
+
constructor();
|
|
98
|
+
ngOnDestroy(): void;
|
|
99
|
+
/** Handle a click on the previous button. */
|
|
100
|
+
protected onPrevClick(): void;
|
|
101
|
+
/** Handle a click on the next button. */
|
|
102
|
+
protected onNextClick(): void;
|
|
103
|
+
/** Handle a click on a dot. */
|
|
104
|
+
protected onDotClick(dotIndex: number): void;
|
|
105
|
+
/** Handle a click on the play button. */
|
|
106
|
+
protected onPlayClick(): void;
|
|
107
|
+
/** Handle a click on the pause button. */
|
|
108
|
+
protected onPauseClick(): void;
|
|
109
|
+
/** Update the compact state from the observed width. */
|
|
110
|
+
private updateCompact;
|
|
111
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EclSliderPagerComponent, never>;
|
|
112
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EclSliderPagerComponent, "ecl-slider-pager", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "isPlaying": { "alias": "isPlaying"; "required": false; "isSignal": true; }; "isPrevDisabled": { "alias": "isPrevDisabled"; "required": false; "isSignal": true; }; "isNextDisabled": { "alias": "isNextDisabled"; "required": false; "isSignal": true; }; "activeIndex": { "alias": "activeIndex"; "required": false; "isSignal": true; }; "dotIndices": { "alias": "dotIndices"; "required": false; "isSignal": true; }; "dotAriaLabels": { "alias": "dotAriaLabels"; "required": false; "isSignal": true; }; "prevExtraClasses": { "alias": "prevExtraClasses"; "required": false; "isSignal": true; }; "nextExtraClasses": { "alias": "nextExtraClasses"; "required": false; "isSignal": true; }; "dotsExtraClasses": { "alias": "dotsExtraClasses"; "required": false; "isSignal": true; }; "dotExtraClasses": { "alias": "dotExtraClasses"; "required": false; "isSignal": true; }; "playExtraClasses": { "alias": "playExtraClasses"; "required": false; "isSignal": true; }; "pauseExtraClasses": { "alias": "pauseExtraClasses"; "required": false; "isSignal": true; }; }, { "prev": "prev"; "next": "next"; "goTo": "goTo"; "play": "play"; "pause": "pause"; }, never, never, true, never>;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
declare const EUI_ECL_SLIDER: readonly [typeof EclSliderPagerComponent];
|
|
116
|
+
|
|
117
|
+
export { EUI_ECL_SLIDER, EclSliderPagerComponent };
|
|
118
|
+
//# sourceMappingURL=eui-ecl-components-ecl-slider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-ecl-components-ecl-slider.d.ts","sources":["../../components/ecl-slider/ecl-slider-pager.component.ts","../../components/ecl-slider/index.ts"],"mappings":";;;;AAuBA;;;;;;;;;;;;;;;;;;;;AAoBG;AACH,cAYa,uBAAwB,SAAQ,gBAAiB,YAAW,SAAS;;mBAGjE,aAAA,CAAA,WAAA;AAEb;;;;;;;AAOG;sBACa,aAAA,CAAA,WAAA;;wBAGE,aAAA,CAAA,WAAA;;6BAGK,aAAA,CAAA,WAAA;;6BAGA,aAAA,CAAA,WAAA;;0BAGH,aAAA,CAAA,WAAA;;yBAGD,aAAA,CAAA,WAAA;AAEnB;;;;AAIG;4BACmB,aAAA,CAAA,WAAA;AAEtB;;;;;AAKG;+BACsB,aAAA,CAAA,WAAA;+BACA,aAAA,CAAA,WAAA;+BACA,aAAA,CAAA,WAAA;8BACD,aAAA,CAAA,WAAA;+BACC,aAAA,CAAA,WAAA;gCACC,aAAA,CAAA,WAAA;;mBAGb,aAAA,CAAA,gBAAA;;mBAGA,aAAA,CAAA,gBAAA;;mBAGA,aAAA,CAAA,gBAAA;;mBAGA,aAAA,CAAA,gBAAA;;oBAGC,aAAA,CAAA,gBAAA;AAEd;;;AAGG;AACH,kCAA4B,aAAA,CAAA,cAAA;AAE5B,mCAA6B,aAAA,CAAA,MAAA;;AAG7B,iCAA2B,aAAA,CAAA,MAAA;AAE3B;;;;;AAKG;AACH,2CAAqC,aAAA,CAAA,MAAA;;AAKrC,sCAAgC,aAAA,CAAA,MAAA;;AAGhC,iCAA2B,aAAA,CAAA,MAAA;AAE3B;;;AAkBA;;;;;;AAeA;;;;;;AAeA;oDA5IS,uBAAuB;sDAAvB,uBAAuB;AA+InC;;ACnMD,cAAa,cAAc,mBAAA,uBAAA;;","names":[]}
|