@eui/ecl 22.0.0-alpha.71 → 22.0.0-alpha.73
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/docs/changelog.html +42 -0
- package/docs/classes/EclFileUploadFileSelectedEvent.html +3 -3
- package/docs/components/EclAccordionSummaryComponent.html +1 -1
- package/docs/components/EclAnimatedNumbersComponent.html +5 -5
- package/docs/components/EclAnimatedNumbersItemComponent.html +8 -8
- package/docs/components/EclBannerComponent.html +1 -1
- package/docs/components/EclBreadcrumbComponent.html +7 -7
- package/docs/components/EclBreadcrumbSegmentComponent.html +6 -6
- package/docs/components/EclInpageNavigationItemComponent.html +2 -2
- package/docs/components/EclMenuComponent.html +0 -4
- package/docs/components/EclNotificationComponent.html +1 -1
- package/docs/components/EclPageHeaderComponent.html +3 -3
- package/docs/components/EclPageHeaderDescriptionContainerComponent.html +1 -1
- package/docs/components/EclPageSummaryComponent.html +1 -1
- package/docs/components/EclPaginationItemComponent.html +5 -5
- package/docs/components/EclQuizCardComponent.html +1 -1
- package/docs/components/EclSiteFooterComponent.html +2 -2
- package/docs/directives/EclCheckboxDirective.html +3 -3
- package/docs/directives/EclDatePickerDuetDirective.html +4 -4
- package/docs/directives/EclSelectDirective.html +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/docs/json/EclAccordionSummaryComponent.md +1 -1
- package/docs/json/EclAnimatedNumbersComponent.md +5 -5
- package/docs/json/EclAnimatedNumbersItemComponent.md +8 -8
- package/docs/json/EclBannerComponent.md +1 -1
- package/docs/json/EclBreadcrumbComponent.md +6 -6
- package/docs/json/EclBreadcrumbSegmentComponent.md +6 -6
- package/docs/json/EclCheckboxDirective.md +3 -3
- package/docs/json/EclDatePickerDuetDirective.md +4 -4
- package/docs/json/EclInpageNavigationItemComponent.md +2 -2
- package/docs/json/EclNotificationComponent.md +1 -1
- package/docs/json/EclPageHeaderComponent.md +3 -3
- package/docs/json/EclPageHeaderDescriptionContainerComponent.md +1 -1
- package/docs/json/EclPageSummaryComponent.md +1 -1
- package/docs/json/EclPaginationItemComponent.md +5 -5
- package/docs/json/EclQuizCardComponent.md +1 -1
- package/docs/json/EclSelectDirective.md +1 -1
- package/docs/json/EclSiteFooterComponent.md +2 -2
- package/docs/json/documentation.json +988 -1006
- package/docs/llms.txt +25 -25
- package/docs/miscellaneous/variables.html +20 -20
- package/docs/properties.html +1 -1
- package/fesm2022/eui-ecl-components-ecl-accordion.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-add-to-calendar.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-animated-numbers.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-banner.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-breadcrumb.mjs +1 -1
- package/fesm2022/eui-ecl-components-ecl-breadcrumb.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-button.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-card.mjs +1 -1
- package/fesm2022/eui-ecl-components-ecl-card.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-carousel.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-category-filter.mjs +6 -6
- package/fesm2022/eui-ecl-components-ecl-category-filter.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-checkbox.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-content-block.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-date-block.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-date-picker.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-divider.mjs +1 -1
- package/fesm2022/eui-ecl-components-ecl-divider.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-fact-figures.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-featured.mjs +4 -4
- package/fesm2022/eui-ecl-components-ecl-featured.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-file-upload.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-gallery.mjs +1 -1
- package/fesm2022/eui-ecl-components-ecl-gallery.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-highlighted-search.mjs +3 -3
- package/fesm2022/eui-ecl-components-ecl-highlighted-search.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-inpage-navigation.mjs +3 -3
- package/fesm2022/eui-ecl-components-ecl-inpage-navigation.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-list-illustration.mjs +3 -3
- package/fesm2022/eui-ecl-components-ecl-list-illustration.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-list.mjs +5 -5
- package/fesm2022/eui-ecl-components-ecl-list.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-mega-menu.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-menu.mjs +1 -2
- package/fesm2022/eui-ecl-components-ecl-menu.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-news-ticker.mjs +1 -1
- package/fesm2022/eui-ecl-components-ecl-news-ticker.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-notification.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-page-header.mjs +12 -12
- package/fesm2022/eui-ecl-components-ecl-page-header.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-page-information.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-page-summary.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-pagination.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-popover.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-quiz.mjs +1 -1
- package/fesm2022/eui-ecl-components-ecl-quiz.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-radio.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-range.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-select.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-site-footer.mjs +1 -1
- package/fesm2022/eui-ecl-components-ecl-site-footer.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-slider.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-slogan-ticker.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-spotlight.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-story-card.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-tabs.mjs +1 -1
- package/fesm2022/eui-ecl-components-ecl-tabs.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-tag.mjs +1 -1
- package/fesm2022/eui-ecl-components-ecl-tag.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-text-media.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-timeline.mjs +1 -1
- package/fesm2022/eui-ecl-components-ecl-timeline.mjs.map +1 -1
- package/package.json +1 -1
- package/types/eui-ecl-components-ecl-accordion.d.ts +1 -1
- package/types/eui-ecl-components-ecl-accordion.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-animated-numbers.d.ts +13 -13
- package/types/eui-ecl-components-ecl-animated-numbers.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-banner.d.ts +1 -1
- package/types/eui-ecl-components-ecl-breadcrumb.d.ts +12 -12
- package/types/eui-ecl-components-ecl-breadcrumb.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-button.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-carousel.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-category-filter.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-checkbox.d.ts +3 -3
- package/types/eui-ecl-components-ecl-checkbox.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-date-block.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-date-picker.d.ts +4 -4
- package/types/eui-ecl-components-ecl-date-picker.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-file-upload.d.ts +2 -2
- package/types/eui-ecl-components-ecl-file-upload.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-inpage-navigation.d.ts +2 -2
- package/types/eui-ecl-components-ecl-inpage-navigation.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-mega-menu.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-menu.d.ts +1 -2
- package/types/eui-ecl-components-ecl-menu.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-news-ticker.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-notification.d.ts +1 -1
- package/types/eui-ecl-components-ecl-notification.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-page-header.d.ts +4 -4
- package/types/eui-ecl-components-ecl-page-header.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-page-summary.d.ts +1 -1
- package/types/eui-ecl-components-ecl-page-summary.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-pagination.d.ts +5 -5
- package/types/eui-ecl-components-ecl-pagination.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-popover.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-quiz.d.ts +1 -1
- package/types/eui-ecl-components-ecl-quiz.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-radio.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-range.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-select.d.ts +2 -2
- package/types/eui-ecl-components-ecl-select.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-site-footer.d.ts +2 -2
- package/types/eui-ecl-components-ecl-site-footer.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-slider.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-slogan-ticker.d.ts +1 -1
- package/types/eui-ecl-components-ecl-slogan-ticker.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-spotlight.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-story-card.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-tabs.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-text-media.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-timeline.d.ts.map +1 -1
package/docs/llms.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# eui documentation
|
|
2
2
|
|
|
3
|
-
> Generated by compodoc 2.0.0 at 2026-11-
|
|
3
|
+
> Generated by compodoc 2.0.0 at 2026-11-19T07:59:24.389Z, llm-md export.
|
|
4
4
|
|
|
5
5
|
## Modules
|
|
6
6
|
|
|
@@ -17,7 +17,7 @@ exports: `EclHiddenDirective`
|
|
|
17
17
|
File: `packages/ecl/components/ecl-accordion/ecl-accordion-summary.component.ts`
|
|
18
18
|
Selector: `summary[eclAccordionToggle]`
|
|
19
19
|
|
|
20
|
-
Description: Toggle (summary) sub-component for the ECL Accordion pattern. Apply the eclAccordionToggle attribute to a \<summary\> element inside a details\[eclAccordionItem\] to render the clickable header that expands or collapses the item. Applies the ecl-accordion\_\_toggle CSS class. Projects arbitrary content via ng-content (typically label text). Renders default + (collapsed) and
|
|
20
|
+
Description: Toggle (summary) sub-component for the ECL Accordion pattern. Apply the eclAccordionToggle attribute to a \<summary\> element inside a details\[eclAccordionItem\] to render the clickable header that expands or collapses the item. Applies the ecl-accordion\_\_toggle CSS class. Projects arbitrary content via ng-content (typically label text). Renders default + (collapsed) and − (expanded) ECL icons unless at least one element with \[eclAccordionToggleIcon\] is projected, in which case the defaults are hidden.
|
|
21
21
|
|
|
22
22
|
### EclAddToCalendarComponent
|
|
23
23
|
|
|
@@ -48,7 +48,7 @@ File: `packages/ecl/components/ecl-animated-numbers/ecl-animated-numbers.compone
|
|
|
48
48
|
Selector: `div[eclAnimatedNumbers]`
|
|
49
49
|
Change detection: `ChangeDetectionStrategy.OnPush`
|
|
50
50
|
|
|
51
|
-
Description: Container component for the ECL Animated Numbers pattern following the ECL design system. Wraps one or more EclAnimatedNumbersItemComponent items and an optional sources footer. Selector: div\[eclAnimatedNumbers\] . hasDarkBackground
|
|
51
|
+
Description: Container component for the ECL Animated Numbers pattern following the ECL design system. Wraps one or more EclAnimatedNumbersItemComponent items and an optional sources footer. Selector: div\[eclAnimatedNumbers\] . hasDarkBackground — applies a dark background skin, also inverts source link colours. hasLeftBorder — adds a left accent border to each item. hasContentColor — colours the numeric counter values (ignored when hasDarkBackground is true). isFullWidth — stretches the container to fill its parent. sourcesLabel — label text shown before the sources list; defaults to 'Sources:' . Use ul\[eclAnimatedNumbersItems\] to wrap items and the sources directives for the footer list.
|
|
52
52
|
|
|
53
53
|
Inputs:
|
|
54
54
|
- `hasContentColor: boolean = false` — Applies a colour to the counter values. Ignored when hasDarkBackground is true.
|
|
@@ -71,16 +71,16 @@ Methods:
|
|
|
71
71
|
File: `packages/ecl/components/ecl-animated-numbers/ecl-animated-numers-item/ecl-animated-numbers-item.component.ts`
|
|
72
72
|
Selector: `li[eclAnimatedNumbersItem]`
|
|
73
73
|
|
|
74
|
-
Description: Represents a single animated number item inside an EclAnimatedNumbersComponent . Displays a numeric value that counts up from zero to the target when the element scrolls into view, using an IntersectionObserver and requestAnimationFrame with cubic ease-out. The count resets to zero when the element scrolls out of view and re-animates on next entry. Selector: li\[eclAnimatedNumbersItem\]
|
|
74
|
+
Description: Represents a single animated number item inside an EclAnimatedNumbersComponent . Displays a numeric value that counts up from zero to the target when the element scrolls into view, using an IntersectionObserver and requestAnimationFrame with cubic ease-out. The count resets to zero when the element scrolls out of view and re-animates on next entry. Selector: li\[eclAnimatedNumbersItem\] — applied on a \<li\> element. eclValue — target number; accepts strings with non-numeric characters (stripped before parsing). prefix / prefixLabel — text and accessible label shown before the number. suffix / suffixLabel — text and accessible label shown after the number. category — optional heading label displayed above the number. description — optional descriptive text displayed below the number.
|
|
75
75
|
|
|
76
76
|
Inputs:
|
|
77
77
|
- `category: string` — Category label displayed in the item header.
|
|
78
78
|
- `description: string` — Descriptive text displayed below the number.
|
|
79
79
|
- `eclValue: string` — The target numeric value to animate to. Accepts strings with non-numeric characters (they are stripped).
|
|
80
|
-
- `prefix: string` — Text displayed before the animated number (e.g. '
|
|
80
|
+
- `prefix: string` — Text displayed before the animated number (e.g. '€', 'billion').
|
|
81
81
|
- `prefixLabel: string` — Accessible label for the prefix symbol, used for screen readers (e.g. 'M' -\> 'million')
|
|
82
82
|
- `sourcesLabel: string = 'Sources:'` — Label displayed before this item's individual sources list.
|
|
83
|
-
- `suffix: string` — Text displayed after the animated number (e.g. '
|
|
83
|
+
- `suffix: string` — Text displayed after the animated number (e.g. '€', 'billions').
|
|
84
84
|
- `suffixLabel: string` — Accessible label for the suffix symbol, used for screen readers (e.g. '%' -\> 'percent').
|
|
85
85
|
- `class: string = ''`
|
|
86
86
|
- `e2eAttr: string`
|
|
@@ -120,7 +120,7 @@ Methods:
|
|
|
120
120
|
File: `packages/ecl/components/ecl-banner/ecl-banner.component.ts`
|
|
121
121
|
Selector: `ecl-banner`
|
|
122
122
|
|
|
123
|
-
Description: Banner component following the ECL design system, combining image or video media with a content box that supports title, description, and call-to-action links. Manages its own height to maintain the configured aspect ratio and reacts to viewport resize and breakpoint changes. Selector: ecl-banner . Media slots: project picture\[eclBannerPicture\] for images or video\[eclBannerVideo\] for auto-playing muted video; detected via hasImage / hasVideo / hasMedia . Content slots: \[eclBannerTitle\] / \[eclBannerTitleText\] / \[eclBannerTitleLink\] , \[eclBannerDescription\] / \[eclBannerDescriptionText\] / \[eclBannerDescriptionLink\] . CTA links: project EclLinkDirective elements
|
|
123
|
+
Description: Banner component following the ECL design system, combining image or video media with a content box that supports title, description, and call-to-action links. Manages its own height to maintain the configured aspect ratio and reacts to viewport resize and breakpoint changes. Selector: ecl-banner . Media slots: project picture\[eclBannerPicture\] for images or video\[eclBannerVideo\] for auto-playing muted video; detected via hasImage / hasVideo / hasMedia . Content slots: \[eclBannerTitle\] / \[eclBannerTitleText\] / \[eclBannerTitleLink\] , \[eclBannerDescription\] / \[eclBannerDescriptionText\] / \[eclBannerDescriptionLink\] . CTA links: project EclLinkDirective elements — they are automatically decorated with ecl-banner\_\_link-cta . eclSize ( 'xs' \| 's' \| 'm' \| 'l' ) controls the aspect ratio; default 'm' . horizontalAlignment ( 'left' \| 'center' \| 'right' ) and verticalAlignment ( 'top' \| 'center' \| 'bottom' ) position the content box. fontColor , fontSize , fontWeight , boxBackground customise the content box appearance. Video play/pause is handled internally; isPlaying signal tracks playback state. calculateHeight() is public so a parent carousel can force height recalculation.
|
|
124
124
|
|
|
125
125
|
Inputs:
|
|
126
126
|
- `boxBackground: 'none' | 'light' | 'dark' | string = 'light'` — Defines the background color of the banner content box. Allowed values: 'none' \| 'light' \| 'dark'. Default: 'light'.
|
|
@@ -190,11 +190,11 @@ Methods:
|
|
|
190
190
|
File: `packages/ecl/components/ecl-breadcrumb/ecl-breadcrumb.component.ts`
|
|
191
191
|
Selector: `nav[eclBreadcrumb]`
|
|
192
192
|
|
|
193
|
-
Description: Navigation breadcrumb component following the ECL design system. Renders a \<nav\> element containing EclBreadcrumbSegmentComponent items and automatically collapses overflowing segments into an ellipsis button on desktop, or switches to compact layout on mobile breakpoints (
|
|
193
|
+
Description: Navigation breadcrumb component following the ECL design system. Renders a \<nav\> element containing EclBreadcrumbSegmentComponent items and automatically collapses overflowing segments into an ellipsis button on desktop, or switches to compact layout on mobile breakpoints (≤ 995 px). Selector: nav\[eclBreadcrumb\] . Project li\[eclBreadcrumbSegment\] elements (optionally inside a \[eclBreadcrumbContainer\] ). isExpanded — forces all segments to be visible regardless of available width. ellipsisLabel — visible label of the collapse/expand button; defaults to '…' . ellipsisAriaLabel — accessible label for the ellipsis button; falls back to the i18n key ecl.breadcrumb.SHOW-MORE-ITEMS . onEllipsisSegmentClick() — expands all hidden segments imperatively. hasContainer — computed signal; true when a \[eclBreadcrumbContainer\] is projected.
|
|
194
194
|
|
|
195
195
|
Inputs:
|
|
196
196
|
- `ellipsisAriaLabel: string` — Accessible label for the ellipsis button. When not provided, falls back to the translated value of ecl.breadcrumb.SHOW-MORE-ITEMS .
|
|
197
|
-
- `ellipsisLabel: string = '
|
|
197
|
+
- `ellipsisLabel: string = '…'` — Visible label for the ellipsis button. Defaults to the ellipsis character.
|
|
198
198
|
- `isExpanded: boolean = false` — Expands all breadcrumb segments instead of collapsing them.
|
|
199
199
|
- `class: string = ''`
|
|
200
200
|
- `e2eAttr: string`
|
|
@@ -219,7 +219,7 @@ Methods:
|
|
|
219
219
|
File: `packages/ecl/components/ecl-breadcrumb/ecl-breadcrumb-segment.component.ts`
|
|
220
220
|
Selector: `li[eclBreadcrumbSegment]`
|
|
221
221
|
|
|
222
|
-
Description: Single breadcrumb segment component for use inside an EclBreadcrumbComponent . Renders a navigation \<li\> item that can be a standard link, a current-page indicator, or an ellipsis placeholder for hidden segments. Selector: li\[eclBreadcrumbSegment\] . href
|
|
222
|
+
Description: Single breadcrumb segment component for use inside an EclBreadcrumbComponent . Renders a navigation \<li\> item that can be a standard link, a current-page indicator, or an ellipsis placeholder for hidden segments. Selector: li\[eclBreadcrumbSegment\] . href — standard navigation URL; used when routerLink is not set. routerLink / queryParams / queryParamsHandling — Angular router navigation. isCurrentPage — marks the item as the current page; sets aria-current="page" . isEllipsis — renders the item as an ellipsis expand trigger. isHidden — writable signal controlled by the parent breadcrumb to collapse segments. segmentClick — emits EclBreadcrumbSegmentClickEvent when the segment is clicked.
|
|
223
223
|
|
|
224
224
|
Inputs:
|
|
225
225
|
- `href: string = ''` — Href used for standard navigation.
|
|
@@ -1135,7 +1135,7 @@ Methods:
|
|
|
1135
1135
|
File: `packages/ecl/components/ecl-inpage-navigation/ecl-inpage-navigation-item.component.ts`
|
|
1136
1136
|
Selector: `li[eclInpageNavigationItem]`
|
|
1137
1137
|
|
|
1138
|
-
Description: Single navigation item inside an ecl-inpage-navigation list. Renders an anchor link that, when activated, scrolls the page to the associated section. Apply as li\[eclInpageNavigationItem\] . label
|
|
1138
|
+
Description: Single navigation item inside an ecl-inpage-navigation list. Renders an anchor link that, when activated, scrolls the page to the associated section. Apply as li\[eclInpageNavigationItem\] . label — visible link text; sectionId — the id of the target section element. isActive (two-way model) — true when this section is the currently active one. Keyboard outputs: itemArrowUp , itemArrowDown , itemTab , itemEnter for parent-managed keyboard navigation. itemClick emits EclInpageNavigationItemClickEvent with the sectionElementId .
|
|
1139
1139
|
|
|
1140
1140
|
Inputs:
|
|
1141
1141
|
- `isActive: boolean | undefined = undefined` — Two-way model indicating whether this item represents the currently active section.
|
|
@@ -2038,7 +2038,7 @@ Methods:
|
|
|
2038
2038
|
File: `packages/ecl/components/ecl-notification/ecl-notification.component.ts`
|
|
2039
2039
|
Selector: `ecl-notification`
|
|
2040
2040
|
|
|
2041
|
-
Description: Displays contextual notification banners with a variant-appropriate icon, title, and optional close button. Initial visibility can be controlled via the isVisible input, and the component can be closed programmatically. variant input: 'info' (default) \| 'success' \| 'warning' \| 'error'
|
|
2041
|
+
Description: Displays contextual notification banners with a variant-appropriate icon, title, and optional close button. Initial visibility can be controlled via the isVisible input, and the component can be closed programmatically. variant input: 'info' (default) \| 'success' \| 'warning' \| 'error' — drives the icon and colour modifier. notificationTitle : custom title text; defaults to the variant name when not provided. isCloseable (default true ): shows or hides the close button. isVisible (default true ): initial visibility; toggled internally on close. close output: emits EclNotificationCloseEvent ; call event.preventDefault() to suppress auto-hide. Slot directives: \[eclNotificationTitle\] , \[eclNotificationIcon\] (custom icon), \[eclNotificationLink\] .
|
|
2042
2042
|
|
|
2043
2043
|
Inputs:
|
|
2044
2044
|
- `isCloseable: boolean = true` — Indicates whether the close button is displayed.
|
|
@@ -2069,7 +2069,7 @@ Methods:
|
|
|
2069
2069
|
File: `packages/ecl/components/ecl-page-header/ecl-page-header.component.ts`
|
|
2070
2070
|
Selector: `div[eclPageHeader]`
|
|
2071
2071
|
|
|
2072
|
-
Description: ECL Page Header component
|
|
2072
|
+
Description: ECL Page Header component — wraps the top-of-page header area and manages background images, breadcrumb styling, and description/picture positioning. Applied via div\[eclPageHeader\] . hasBackground (default false ): adds the ecl-page-header--background modifier for a background image. descriptionPosition : 'top' (default) \| 'bottom' — places the description section above or below the title. picturePosition : 'top' (default) \| 'beside' \| 'bottom' — positions the accompanying picture. Content child: ecl-breadcrumb receives ecl-page-header\_\_breadcrumb ecl-breadcrumb--wrap classes. Structural directives: \[eclPageHeaderTitle\] , \[eclPageHeaderMeta\] , \[eclPageHeaderMetaItem\] , \[eclPageHeaderInfo\] , \[eclPageHeaderContainer\] , \[eclContainer\] , p\[eclPageHeaderDescription\] , \[eclPageHeaderDescriptionPicture\] , \[eclPageHeaderDescriptionThumbnail\] , img\[eclPageHeaderDescriptionImage\] , \[eclPageHeaderBackgroundPicture\] , \[eclPageHeaderBackgroundImage\] . Sub-components: div\[eclPageHeaderExpandable\] , div\[eclPageHeaderSection\] , div\[eclPageHeaderSectionInfo\] , div\[eclPageHeaderDescriptionContainer\] .
|
|
2073
2073
|
|
|
2074
2074
|
Inputs:
|
|
2075
2075
|
- `descriptionPosition: "top" | "bottom" = 'top'`
|
|
@@ -2093,7 +2093,7 @@ Methods:
|
|
|
2093
2093
|
File: `packages/ecl/components/ecl-page-header/ecl-page-header-description/ecl-page-header-description.component.ts`
|
|
2094
2094
|
Selector: `div[eclPageHeaderDescriptionContainer]`
|
|
2095
2095
|
|
|
2096
|
-
Description: Positions the page header description content, applied as a container for either the 'top' or 'bottom' description slot. Applied via div\[eclPageHeaderDescriptionContainer\] . position input: 'top' (default) \| 'bottom'
|
|
2096
|
+
Description: Positions the page header description content, applied as a container for either the 'top' or 'bottom' description slot. Applied via div\[eclPageHeaderDescriptionContainer\] . position input: 'top' (default) \| 'bottom' — drives the ecl-page-header\_\_description-top/bottom class.
|
|
2097
2097
|
|
|
2098
2098
|
Inputs:
|
|
2099
2099
|
- `position: "top" | "bottom" = 'top'`
|
|
@@ -2172,7 +2172,7 @@ Methods:
|
|
|
2172
2172
|
File: `packages/ecl/components/ecl-page-summary/ecl-page-summary.component.ts`
|
|
2173
2173
|
Selector: `section[eclPageSummary]`
|
|
2174
2174
|
|
|
2175
|
-
Description: Displays a page summary section with an optional icon and title. Applied via section\[eclPageSummary\] . eclTitle input: the title text displayed in the summary header. id input: base ID used to generate the titleId for aria-labelledby binding. hasIcon input: whether the default icon is shown (default true ). titleId : computed from id
|
|
2175
|
+
Description: Displays a page summary section with an optional icon and title. Applied via section\[eclPageSummary\] . eclTitle input: the title text displayed in the summary header. id input: base ID used to generate the titleId for aria-labelledby binding. hasIcon input: whether the default icon is shown (default true ). titleId : computed from id — generates a UUID when id is not provided.
|
|
2176
2176
|
|
|
2177
2177
|
Inputs:
|
|
2178
2178
|
- `eclTitle: string`
|
|
@@ -2219,7 +2219,7 @@ Methods:
|
|
|
2219
2219
|
File: `packages/ecl/components/ecl-pagination/ecl-pagination-item.component.ts`
|
|
2220
2220
|
Selector: `li[eclPaginationItem]`
|
|
2221
2221
|
|
|
2222
|
-
Description: Individual item inside an EclPaginationComponent rendered as an \<li\> element. Supports numeric page links, previous/next navigation controls, and truncation placeholders. Navigation can use Angular routerLink or a plain href , and emits pageClick on interaction. Selector: li\[eclPaginationItem\] . isCurrent / isNext / isPrevious
|
|
2222
|
+
Description: Individual item inside an EclPaginationComponent rendered as an \<li\> element. Supports numeric page links, previous/next navigation controls, and truncation placeholders. Navigation can use Angular routerLink or a plain href , and emits pageClick on interaction. Selector: li\[eclPaginationItem\] . isCurrent / isNext / isPrevious — boolean modifiers that apply the matching ECL class. isTruncated — renders the item as a truncation placeholder (e.g. "…"). routerLink / queryParams / queryParamsHandling — Angular router navigation. href — plain anchor navigation when router is not in use. pageClick — emits EclPaginationItemClickEvent when the item is clicked.
|
|
2223
2223
|
|
|
2224
2224
|
Inputs:
|
|
2225
2225
|
- `ariaLabel: string` — Value for the aria-label attribute used for accessibility.
|
|
@@ -2286,7 +2286,7 @@ File: `packages/ecl/components/ecl-quiz/ecl-quiz-card.component.ts`
|
|
|
2286
2286
|
Selector: `li[eclQuizCard]`
|
|
2287
2287
|
Change detection: `ChangeDetectionStrategy.OnPush`
|
|
2288
2288
|
|
|
2289
|
-
Description: ECL Quiz Card component
|
|
2289
|
+
Description: ECL Quiz Card component – represents a single card in the quiz. For the 'reveal' variant, the entire card is clickable to flip. For the 'poll' variant, individual options trigger the flip.
|
|
2290
2290
|
|
|
2291
2291
|
Inputs:
|
|
2292
2292
|
- `answer: string = ''` — The answer text displayed on the back of the card. Used in 'reveal' variant or as explanation in 'poll' variant.
|
|
@@ -2508,11 +2508,11 @@ Methods:
|
|
|
2508
2508
|
File: `packages/ecl/components/ecl-site-footer/ecl-site-footer.component.ts`
|
|
2509
2509
|
Selector: `footer[eclSiteFooter]`
|
|
2510
2510
|
|
|
2511
|
-
Description: ECL-compliant site footer component applied to a \<footer\> element. Renders supplementary page information including a sitemap, copyright notices, legal, privacy and accessibility statements, social media links, and EC ecosystem links. Automatically adapts its layout and logo based on the active language and ECL theme (EU/EC). Selector: footer\[eclSiteFooter\]
|
|
2511
|
+
Description: ECL-compliant site footer component applied to a \<footer\> element. Renders supplementary page information including a sitemap, copyright notices, legal, privacy and accessibility statements, social media links, and EC ecosystem links. Automatically adapts its layout and logo based on the active language and ECL theme (EU/EC). Selector: footer\[eclSiteFooter\] — applied to a semantic \<footer\> element. The isCore input activates the Core configuration, which has a fixed set of mandatory items and a split-columns layout ( ecl-site-footer--split-columns ). The logo language code falls back to a default when the active language has no matching logo. Companion directives structure internal rows, columns, sections, links, titles, lists, and description text: eclSiteFooterRow , eclSiteFooterColumn , eclSiteFooterSection , eclSiteFooterLink , eclSiteFooterTitle , eclSiteFooterList , eclSiteFooterListItem , eclSiteFooterDescription .
|
|
2512
2512
|
|
|
2513
2513
|
Inputs:
|
|
2514
2514
|
- `a11yStatementRef: string = 'https://commission.europa.eu/accessibility-statement_en'` — URL of the page's accessibility statement. Defaults to the Europa web guide statement if not supplied by the consumer.
|
|
2515
|
-
- `isCore: boolean = false` — When true , activates the Core footer configuration
|
|
2515
|
+
- `isCore: boolean = false` — When true , activates the Core footer configuration — all footer items are mandatory and the split-columns layout ( ecl-site-footer--split-columns ) is applied.
|
|
2516
2516
|
- `class: string = ''`
|
|
2517
2517
|
- `e2eAttr: string`
|
|
2518
2518
|
- `tabindex = undefined`
|
|
@@ -3825,7 +3825,7 @@ Methods:
|
|
|
3825
3825
|
File: `packages/ecl/components/ecl-checkbox/ecl-checkbox.directive.ts`
|
|
3826
3826
|
Selector: `[eclCheckbox]`
|
|
3827
3827
|
|
|
3828
|
-
Description: Container directive for an ECL-styled checkbox group or standalone checkbox. Applies ECL classes, manages disabled / invalid state, and propagates that state to the projected EclCheckboxLabelComponent and EclCheckboxHelpComponent children. Selector: \[eclCheckbox\] . isDisabled
|
|
3828
|
+
Description: Container directive for an ECL-styled checkbox group or standalone checkbox. Applies ECL classes, manages disabled / invalid state, and propagates that state to the projected EclCheckboxLabelComponent and EclCheckboxHelpComponent children. Selector: \[eclCheckbox\] . isDisabled — seeded from the isDisabled input; updated imperatively by EclCheckboxInputDirective as the associated form control's disabled state changes. isInvalid — seeded from the isInvalid input; updated imperatively by EclCheckboxInputDirective as the control's validity changes. isSingle — marks the checkbox as a standalone (non-group) item; adds ecl-checkbox--single . Project input\[eclCheckboxInput\] , label\[eclCheckboxLabel\] , and optionally \[eclCheckboxHelp\] inside the directive host.
|
|
3829
3829
|
|
|
3830
3830
|
Inputs:
|
|
3831
3831
|
- `isDisabled: boolean = false` — Input controlling whether the checkbox starts disabled. Automatically coerced to a boolean value.
|
|
@@ -4269,7 +4269,7 @@ File: `packages/ecl/components/ecl-date-picker/ecl-date-picker-duet.directive.ts
|
|
|
4269
4269
|
Selector: `duet-date-picker[eclDatePicker]`
|
|
4270
4270
|
Standalone: yes
|
|
4271
4271
|
|
|
4272
|
-
Description: ECL Date Picker directive for the Duet Date Picker web component. Applied to \<duet-date-picker\> , this is the recommended approach for integrating an ECL-styled date picker with Angular Reactive/Template-driven forms. Implements ControlValueAccessor and Validator . Selector: duet-date-picker\[eclDatePicker\] . eclSize
|
|
4272
|
+
Description: ECL Date Picker directive for the Duet Date Picker web component. Applied to \<duet-date-picker\> , this is the recommended approach for integrating an ECL-styled date picker with Angular Reactive/Template-driven forms. Implements ControlValueAccessor and Validator . Selector: duet-date-picker\[eclDatePicker\] . eclSize — 's' \| 'm' \| 'l' ; default 'm' . isInvalid — manually flag the picker as invalid (no-forms mode). placeholder — placeholder text in the duet input field; default 'DD-MM-YYYY' . dateAdapter — custom EclDuetDateAdapter for parse/format; defaults to EU DD-MM-YYYY adapter. Model value type: Date \| null . Validation errors: required , eclDateInvalid , min , max . RTL direction is applied automatically from EclRtlService .
|
|
4273
4273
|
|
|
4274
4274
|
Inputs:
|
|
4275
4275
|
- `dateAdapter: EclDuetDateAdapter | null = null` — Custom date adapter overriding the default EU DD-MM-YYYY parse/format logic.
|
|
@@ -5898,7 +5898,7 @@ Methods:
|
|
|
5898
5898
|
File: `packages/ecl/components/ecl-select/ecl-select.directive.ts`
|
|
5899
5899
|
Selector: `select[eclSelect]`
|
|
5900
5900
|
|
|
5901
|
-
Description: Directive that enhances a native \<select\> element with ECL-compliant styling by dynamically wrapping it inside an EclSelectContainerComponent container. The container injects a styled dropdown-arrow toggle button while preserving the native \<select\> as the functional control. Selector: select\[eclSelect\]
|
|
5901
|
+
Description: Directive that enhances a native \<select\> element with ECL-compliant styling by dynamically wrapping it inside an EclSelectContainerComponent container. The container injects a styled dropdown-arrow toggle button while preserving the native \<select\> as the functional control. Selector: select\[eclSelect\] — applied directly to a \<select\> element. Integrates with Angular Reactive and Template-driven forms via NgControl . Supports three width sizes: 's' , 'm' (default), and 'l' via eclSize . Disabled and invalid states are derived from NgControl when available, falling back to the disabled and isInvalid inputs. Enhances \<optgroup\> children with aria-label attributes for screen reader support.
|
|
5902
5902
|
|
|
5903
5903
|
Inputs:
|
|
5904
5904
|
- `disabled: boolean = false` — Whether the select element is disabled. When NgControl is present, the form control's disabled state takes precedence.
|
|
@@ -7265,7 +7265,7 @@ Extends: `EclBaseEvent`
|
|
|
7265
7265
|
Description: Custom event emitted by the ECL file upload directive when one or more files are selected.
|
|
7266
7266
|
|
|
7267
7267
|
Properties:
|
|
7268
|
-
- `files:
|
|
7268
|
+
- `files: EclFileUpload[]`
|
|
7269
7269
|
|
|
7270
7270
|
Methods:
|
|
7271
7271
|
- `preventDefault(): void`
|
|
@@ -8060,10 +8060,10 @@ Properties:
|
|
|
8060
8060
|
|
|
8061
8061
|
## Public variables
|
|
8062
8062
|
|
|
8063
|
-
- `ARROW_SIZE: string = '0.5rem'` — Half the arrow's own width, matching ECL's arrowSize .
|
|
8064
|
-
Defined in `packages/ecl/components/ecl-site-header/language/ecl-site-header-language.component.ts`
|
|
8065
8063
|
- `ARROW_SIZE: string = '0.5rem'` — Half the arrow's own width, matching ECL's arrowSize .
|
|
8066
8064
|
Defined in `packages/ecl/components/ecl-site-header/login/ecl-site-header-login.component.ts`
|
|
8065
|
+
- `ARROW_SIZE: string = '0.5rem'` — Half the arrow's own width, matching ECL's arrowSize .
|
|
8066
|
+
Defined in `packages/ecl/components/ecl-site-header/language/ecl-site-header-language.component.ts`
|
|
8067
8067
|
- `ARROW_SIZE: string = '0.5rem'` — Half the arrow's own width, matching ECL's arrowSize .
|
|
8068
8068
|
Defined in `packages/ecl/components/ecl-site-header/search/ecl-site-header-search.component.ts`
|
|
8069
8069
|
- `AVAILABLE_NON_EU_LOGO_COUNTRY_CODES: string[] = ['ar', 'ca', 'is', 'jp', 'lb', 'no', 'ru', 'sw', 'tr', 'uk', 'zh'] as const`
|
|
@@ -138,10 +138,10 @@
|
|
|
138
138
|
<td class="col-md-4">
|
|
139
139
|
<ul class="index-list">
|
|
140
140
|
<li>
|
|
141
|
-
<a href="#ARROW_SIZE" title="packages/ecl/components/ecl-site-header/
|
|
141
|
+
<a href="#ARROW_SIZE" title="packages/ecl/components/ecl-site-header/login/ecl-site-header-login.component.ts" class="reference-link "><span class="reference-badge reference-badge--variable" aria-hidden="true">V</span><span class="reference-link-label"><b>ARROW_SIZE</b> (packages/.../ecl-site-header-login.component.ts)</span></a>
|
|
142
142
|
</li>
|
|
143
143
|
<li>
|
|
144
|
-
<a href="#ARROW_SIZE" title="packages/ecl/components/ecl-site-header/
|
|
144
|
+
<a href="#ARROW_SIZE" title="packages/ecl/components/ecl-site-header/language/ecl-site-header-language.component.ts" class="reference-link "><span class="reference-badge reference-badge--variable" aria-hidden="true">V</span><span class="reference-link-label"><b>ARROW_SIZE</b> (packages/.../ecl-site-header-language.component.ts)</span></a>
|
|
145
145
|
</li>
|
|
146
146
|
<li>
|
|
147
147
|
<a href="#ARROW_SIZE" title="packages/ecl/components/ecl-site-header/search/ecl-site-header-search.component.ts" class="reference-link "><span class="reference-badge reference-badge--variable" aria-hidden="true">V</span><span class="reference-link-label"><b>ARROW_SIZE</b> (packages/.../ecl-site-header-search.component.ts)</span></a>
|
|
@@ -420,7 +420,7 @@
|
|
|
420
420
|
</table>
|
|
421
421
|
</section>
|
|
422
422
|
|
|
423
|
-
<h3>packages/ecl/components/ecl-site-header/
|
|
423
|
+
<h3>packages/ecl/components/ecl-site-header/login/ecl-site-header-login.component.ts</h3>
|
|
424
424
|
<section data-compodoc="block-properties">
|
|
425
425
|
<h3></h3> <table class="table table-sm table-bordered">
|
|
426
426
|
<tbody>
|
|
@@ -454,67 +454,67 @@
|
|
|
454
454
|
|
|
455
455
|
</tbody>
|
|
456
456
|
</table>
|
|
457
|
-
|
|
458
|
-
<h3>packages/ecl/components/ecl-site-header/login/ecl-site-header-login.component.ts</h3>
|
|
459
|
-
<section data-compodoc="block-properties">
|
|
460
|
-
<h3></h3> <table class="table table-sm table-bordered">
|
|
457
|
+
<table class="table table-sm table-bordered">
|
|
461
458
|
<tbody>
|
|
462
459
|
<tr>
|
|
463
460
|
<td class="col-md-4">
|
|
464
|
-
<a name="
|
|
461
|
+
<a name="RESIZE_DEBOUNCE"></a>
|
|
465
462
|
<span class="name">
|
|
466
|
-
<span ><b>
|
|
467
|
-
<a href="#
|
|
463
|
+
<span ><b>RESIZE_DEBOUNCE</b></span>
|
|
464
|
+
<a href="#RESIZE_DEBOUNCE"><span class="icon ion-ios-link"></span></a>
|
|
468
465
|
</span>
|
|
469
466
|
</td>
|
|
470
467
|
</tr>
|
|
471
468
|
<tr>
|
|
472
469
|
<td class="col-md-4">
|
|
473
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/
|
|
470
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank" >number</a></code>
|
|
474
471
|
|
|
475
472
|
</td>
|
|
476
473
|
</tr>
|
|
477
474
|
<tr>
|
|
478
475
|
<td class="col-md-4">
|
|
479
|
-
<i>Default value : </i><code
|
|
476
|
+
<i>Default value : </i><code>200</code>
|
|
480
477
|
</td>
|
|
481
478
|
</tr>
|
|
482
479
|
|
|
483
480
|
<tr>
|
|
484
481
|
<td class="col-md-4">
|
|
485
|
-
<div class="io-description"><p>
|
|
482
|
+
<div class="io-description"><p>Debounce for the resize recomputation, matching ECL's <code>handleResize</code>.</p>
|
|
486
483
|
</div>
|
|
487
484
|
</td>
|
|
488
485
|
</tr>
|
|
489
486
|
|
|
490
487
|
</tbody>
|
|
491
488
|
</table>
|
|
492
|
-
|
|
489
|
+
</section>
|
|
490
|
+
<h3>packages/ecl/components/ecl-site-header/language/ecl-site-header-language.component.ts</h3>
|
|
491
|
+
<section data-compodoc="block-properties">
|
|
492
|
+
<h3></h3> <table class="table table-sm table-bordered">
|
|
493
493
|
<tbody>
|
|
494
494
|
<tr>
|
|
495
495
|
<td class="col-md-4">
|
|
496
|
-
<a name="
|
|
496
|
+
<a name="ARROW_SIZE"></a>
|
|
497
497
|
<span class="name">
|
|
498
|
-
<span ><b>
|
|
499
|
-
<a href="#
|
|
498
|
+
<span ><b>ARROW_SIZE</b></span>
|
|
499
|
+
<a href="#ARROW_SIZE"><span class="icon ion-ios-link"></span></a>
|
|
500
500
|
</span>
|
|
501
501
|
</td>
|
|
502
502
|
</tr>
|
|
503
503
|
<tr>
|
|
504
504
|
<td class="col-md-4">
|
|
505
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/
|
|
505
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
506
506
|
|
|
507
507
|
</td>
|
|
508
508
|
</tr>
|
|
509
509
|
<tr>
|
|
510
510
|
<td class="col-md-4">
|
|
511
|
-
<i>Default value : </i><code
|
|
511
|
+
<i>Default value : </i><code>'0.5rem'</code>
|
|
512
512
|
</td>
|
|
513
513
|
</tr>
|
|
514
514
|
|
|
515
515
|
<tr>
|
|
516
516
|
<td class="col-md-4">
|
|
517
|
-
<div class="io-description"><p>
|
|
517
|
+
<div class="io-description"><p>Half the arrow's own width, matching ECL's <code>arrowSize</code>.</p>
|
|
518
518
|
</div>
|
|
519
519
|
</td>
|
|
520
520
|
</tr>
|
package/docs/properties.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-ecl-components-ecl-accordion.mjs","names":["i1"],"sources":["../../components/ecl-accordion/ecl-accordion-item-new.directive.ts","../../components/ecl-accordion/ecl-accordion.directive.ts","../../components/ecl-accordion/ecl-accordion-summary.component.ts","../../components/ecl-accordion/ecl-accordion-summary.component.html","../../components/ecl-accordion/index.ts"],"sourcesContent":["import { Directive } from \"@angular/core\";\n\n/**\n * Item directive for the ECL Accordion pattern. Apply to a native `<details>` element to\n * mark it as an accordion item within a `div[eclAccordion]` container. Applies the\n * `ecl-accordion__item` CSS class and relies on the browser's native `<details>`/`<summary>`\n * open/close behaviour. The `open` attribute on the host element controls expansion state.\n * Must contain a `summary[eclAccordionToggle]` and a `div[eclAccordionContent]`.\n */\n@Directive({\n selector: 'details[eclAccordionItem]',\n host: {\n class: 'ecl-accordion__item',\n },\n})\nexport class EclAccordionItemDirective {}\n\n/**\n * Content wrapper directive for the ECL Accordion pattern. Apply to a `<div>` element inside\n * a `details[eclAccordionItem]` to mark it as the collapsible content area. Applies the\n * `ecl-accordion__content` CSS class.\n */\n@Directive({\n selector: 'div[eclAccordionContent]',\n host: {\n class: 'ecl-accordion__content',\n },\n})\nexport class EclAccordionContentDirective {}","import {\n afterNextRender,\n afterRenderEffect,\n booleanAttribute,\n computed,\n contentChildren,\n Directive,\n ElementRef,\n inject,\n input,\n Renderer2,\n OnDestroy,\n} from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EuiAppShellService } from '@eui/core';\nimport { Subject, takeUntil } from 'rxjs';\nimport { EclAccordionItemDirective } from './ecl-accordion-item-new.directive';\n\n/**\n * Container directive for the ECL Accordion pattern. Apply to a `<div>` element to wrap a set\n * of `details[eclAccordionItem]` elements into a styled accordion group. Delegates base CSS class\n * computation to `ECLBaseDirective` and automatically applies `is-first`/`is-last` markers to the\n * first and last items after each render cycle.\n *\n * - Variants: default (`ecl-accordion`) and sidebar (`ecl-accordion--sidebar`, enabled via `isSidebar`).\n * - Sidebar mode: monitors viewport width via `EuiAppShellService` and auto-opens items at or above\n * `sidebarBreakpoint` pixels, collapsing them below it.\n * - Composed with: `details[eclAccordionItem]` (item), `summary[eclAccordionToggle]` (toggle),\n * `div[eclAccordionContent]` (content body), and optionally `[eclAccordionToggleIcon]` (custom icon).\n */\n@Directive({\n selector: 'div[eclAccordion]',\n hostDirectives: [\n {\n directive: ECLBaseDirective,\n },\n ],\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclAccordionDirective implements OnDestroy {\n baseDirective = inject(ECLBaseDirective);\n /** Activates the sidebar variant (`ecl-accordion--sidebar`). When `true`, items are auto-opened or collapsed based on `sidebarBreakpoint`. Defaults to `false`. */\n isSidebar = input(false, { transform: booleanAttribute });\n\n /**\n * Viewport width threshold (px) used in sidebar mode to determine whether items are open or collapsed.\n * Items open at or above this value; they collapse below it.\n * Accepted values: `480 | 768 | 996 | 1140 | 1440 | 1920 | 2560 | 3840`. Defaults to `996` (lg breakpoint).\n */\n sidebarBreakpoint = input<480 | 768 | 996 | 1140 | 1440 | 1920 | 2560 | 3840>(996);\n\n private items = contentChildren(EclAccordionItemDirective, { read: ElementRef });\n private renderer = inject(Renderer2);\n private euiAppShellService = inject(EuiAppShellService);\n private destroy$: Subject<boolean> = new Subject<boolean>();\n\n /** Computed CSS class string applied to the host element. */\n protected readonly cssClasses = computed<string>(() =>\n [this.baseDirective.getCssClasses('ecl-accordion'),\n this.isSidebar() ? 'ecl-accordion--sidebar' : '',\n ].join(' ').trim());\n\n constructor() {\n afterRenderEffect(() => {\n this.setFirstAndLastClasses();\n });\n\n afterNextRender(() => {\n if (this.isSidebar()) {\n this.subscribeToBreakpoints();\n }\n });\n }\n\n ngOnDestroy(): void {\n this.destroy$.next(true);\n this.destroy$.unsubscribe();\n }\n\n /**\n * Subscribes to the app shell state's windowWidth and toggles the open state\n * of all accordion items when in sidebar mode. Items are opened when the viewport\n * is at or above the configured sidebarBreakpoint (in px), and collapsed below it.\n */\n private subscribeToBreakpoints(): void {\n this.euiAppShellService.getState<number>('windowWidth')\n .pipe(takeUntil(this.destroy$))\n .subscribe((windowWidth: number) => {\n if (windowWidth == null) return;\n const isDesktop = windowWidth >= this.sidebarBreakpoint();\n\n this.items().forEach(item => {\n item.nativeElement.open = isDesktop;\n });\n });\n }\n\n private setFirstAndLastClasses(): void {\n const elements = this.items();\n\n if (elements.length === 0) return;\n\n elements.forEach((item) => {\n this.renderer.removeClass(item.nativeElement, 'is-first');\n this.renderer.removeClass(item.nativeElement, 'is-last');\n });\n\n this.renderer.addClass(elements[0].nativeElement, 'is-first');\n if (elements.length > 1) {\n this.renderer.addClass(elements[elements.length - 1].nativeElement, 'is-last');\n }\n }\n}\n\n/**\n * Marker directive for a custom accordion toggle icon. Apply to any element inside\n * `summary[eclAccordionToggle]` to replace the default `+`/`-` ECL icons with custom content.\n * Applies the `ecl-accordion__toggle-icon` positioning class to the host element.\n */\n@Directive({\n selector: '[eclAccordionToggleIcon]',\n host: {\n class: 'ecl-accordion__toggle-icon',\n },\n})\nexport class EclAccordionToggleIconDirective {}\n","import {\n Component,\n computed,\n contentChildren,\n} from '@angular/core';\nimport { EUI_ECL_ICON } from '@eui/ecl/components/ecl-icon';\nimport { EclAccordionToggleIconDirective } from './ecl-accordion.directive';\n\n/**\n * Toggle (summary) sub-component for the ECL Accordion pattern. Apply the `eclAccordionToggle`\n * attribute to a `<summary>` element inside a `details[eclAccordionItem]` to render the clickable\n * header that expands or collapses the item. Applies the `ecl-accordion__toggle` CSS class.\n *\n * - Projects arbitrary content via `ng-content` (typically label text).\n * - Renders default `+` (collapsed) and `−` (expanded) ECL icons unless at least one element\n * with `[eclAccordionToggleIcon]` is projected, in which case the defaults are hidden.\n */\n@Component({\n selector: 'summary[eclAccordionToggle]',\n templateUrl: './ecl-accordion-summary.component.html',\n imports: [...EUI_ECL_ICON],\n host: {\n class: 'ecl-accordion__toggle',\n },\n})\nexport class EclAccordionSummaryComponent {\n private customIcons = contentChildren(EclAccordionToggleIconDirective, { descendants: true });\n\n /** Whether to show the default +/- icons. Hidden when custom toggle icons are projected. */\n protected showDefaultIcons = computed(() => this.customIcons().length === 0);\n}\n","<ng-content></ng-content>\n@if (showDefaultIcons()) {\n <ecl-icon icon=\"plus\" size=\"s\" class=\"ecl-accordion__toggle-icon\" ariaHidden=\"true\">\n </ecl-icon>\n <ecl-icon icon=\"minus\" size=\"s\" class=\"ecl-accordion__toggle-icon\" ariaHidden=\"true\">\n </ecl-icon>\n}","\nimport { EclAccordionContentDirective, EclAccordionItemDirective } from './ecl-accordion-item-new.directive';\nimport { EclAccordionSummaryComponent } from './ecl-accordion-summary.component';\nimport { EclAccordionDirective, EclAccordionToggleIconDirective } from './ecl-accordion.directive';\n\nexport * from './ecl-accordion-item-new.directive';\nexport * from './ecl-accordion-summary.component';\nexport * from './ecl-accordion.directive';\n\nexport const EUI_ECL_ACCORDION = [\n EclAccordionContentDirective,\n EclAccordionItemDirective,\n EclAccordionSummaryComponent,\n EclAccordionDirective,\n EclAccordionToggleIconDirective,\n] as const;\n"],"mappings":";;;;;;;;AAeA,IAAa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CAAA;IAAA,cAAA;IAAA,WACC;IAA+B,aAAA;IAAA,UAAA;GAAA,CAAA;GAAA,UAAA;GAAA,UC1BzE;GAMC,cAAA,CAAA;IAAA,MAAA;IAAA,MAAA,GAAA;IAAA,UAAA;IAAA,QAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;IAAA;GAAA,CAAA;EAAA,CAAA;CAAA;;ADmBY,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAA4B,YAAA,CAAA;EARxC,MAAA;EACa,MAAA,CAAA;GAAA,UAAA;GAA6B,SAE9B,CAAC,GAAG,YAAY;GAAC,MACpB,EACF,OAAO,wBACV;GAAA,UAAA;EAAA,CAAA;CAGqC,CAAA;CAAA,gBAAA,EAAA,aAAA,CAAA;EAAA,MAAA,GAAA;EAAA,MAAA,CAAA,GAAA,iBAAA,+BAA+B,GAAA;GAAI,aAAa;GAAM,UAAA;EAAA,CAAA;CAAA,CAAA,EAAA;AAAA,CAAA;AEjBhG,MAAa,oBAAoB;CAC/B;CACA;CACA;CACA;CACA;AACQ"}
|
|
1
|
+
{"version":3,"file":"eui-ecl-components-ecl-accordion.mjs","names":["i1"],"sources":["../../components/ecl-accordion/ecl-accordion-item-new.directive.ts","../../components/ecl-accordion/ecl-accordion.directive.ts","../../components/ecl-accordion/ecl-accordion-summary.component.ts","../../components/ecl-accordion/ecl-accordion-summary.component.html","../../components/ecl-accordion/index.ts"],"sourcesContent":["import { Directive } from '@angular/core';\n\n/**\n * Item directive for the ECL Accordion pattern. Apply to a native `<details>` element to\n * mark it as an accordion item within a `div[eclAccordion]` container. Applies the\n * `ecl-accordion__item` CSS class and relies on the browser's native `<details>`/`<summary>`\n * open/close behaviour. The `open` attribute on the host element controls expansion state.\n * Must contain a `summary[eclAccordionToggle]` and a `div[eclAccordionContent]`.\n */\n@Directive({\n selector: 'details[eclAccordionItem]',\n host: {\n class: 'ecl-accordion__item',\n },\n})\nexport class EclAccordionItemDirective {}\n\n/**\n * Content wrapper directive for the ECL Accordion pattern. Apply to a `<div>` element inside\n * a `details[eclAccordionItem]` to mark it as the collapsible content area. Applies the\n * `ecl-accordion__content` CSS class.\n */\n@Directive({\n selector: 'div[eclAccordionContent]',\n host: {\n class: 'ecl-accordion__content',\n },\n})\nexport class EclAccordionContentDirective {}","import {\n afterNextRender,\n afterRenderEffect,\n booleanAttribute,\n computed,\n contentChildren,\n Directive,\n ElementRef,\n inject,\n input,\n Renderer2,\n OnDestroy,\n} from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EuiAppShellService } from '@eui/core';\nimport { Subject, takeUntil } from 'rxjs';\nimport { EclAccordionItemDirective } from './ecl-accordion-item-new.directive';\n\n/**\n * Container directive for the ECL Accordion pattern. Apply to a `<div>` element to wrap a set\n * of `details[eclAccordionItem]` elements into a styled accordion group. Delegates base CSS class\n * computation to `ECLBaseDirective` and automatically applies `is-first`/`is-last` markers to the\n * first and last items after each render cycle.\n *\n * - Variants: default (`ecl-accordion`) and sidebar (`ecl-accordion--sidebar`, enabled via `isSidebar`).\n * - Sidebar mode: monitors viewport width via `EuiAppShellService` and auto-opens items at or above\n * `sidebarBreakpoint` pixels, collapsing them below it.\n * - Composed with: `details[eclAccordionItem]` (item), `summary[eclAccordionToggle]` (toggle),\n * `div[eclAccordionContent]` (content body), and optionally `[eclAccordionToggleIcon]` (custom icon).\n */\n@Directive({\n selector: 'div[eclAccordion]',\n hostDirectives: [\n {\n directive: ECLBaseDirective,\n },\n ],\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclAccordionDirective implements OnDestroy {\n baseDirective = inject(ECLBaseDirective);\n /** Activates the sidebar variant (`ecl-accordion--sidebar`). When `true`, items are auto-opened or collapsed based on `sidebarBreakpoint`. Defaults to `false`. */\n isSidebar = input(false, { transform: booleanAttribute });\n\n /**\n * Viewport width threshold (px) used in sidebar mode to determine whether items are open or collapsed.\n * Items open at or above this value; they collapse below it.\n * Accepted values: `480 | 768 | 996 | 1140 | 1440 | 1920 | 2560 | 3840`. Defaults to `996` (lg breakpoint).\n */\n sidebarBreakpoint = input<480 | 768 | 996 | 1140 | 1440 | 1920 | 2560 | 3840>(996);\n\n private items = contentChildren(EclAccordionItemDirective, { read: ElementRef });\n private renderer = inject(Renderer2);\n private euiAppShellService = inject(EuiAppShellService);\n private destroy$: Subject<boolean> = new Subject<boolean>();\n\n /** Computed CSS class string applied to the host element. */\n protected readonly cssClasses = computed<string>(() =>\n [this.baseDirective.getCssClasses('ecl-accordion'),\n this.isSidebar() ? 'ecl-accordion--sidebar' : '',\n ].join(' ').trim());\n\n constructor() {\n afterRenderEffect(() => {\n this.setFirstAndLastClasses();\n });\n\n afterNextRender(() => {\n if (this.isSidebar()) {\n this.subscribeToBreakpoints();\n }\n });\n }\n\n ngOnDestroy(): void {\n this.destroy$.next(true);\n this.destroy$.unsubscribe();\n }\n\n /**\n * Subscribes to the app shell state's windowWidth and toggles the open state\n * of all accordion items when in sidebar mode. Items are opened when the viewport\n * is at or above the configured sidebarBreakpoint (in px), and collapsed below it.\n */\n private subscribeToBreakpoints(): void {\n this.euiAppShellService.getState<number>('windowWidth')\n .pipe(takeUntil(this.destroy$))\n .subscribe((windowWidth: number) => {\n if (windowWidth == null) return;\n const isDesktop = windowWidth >= this.sidebarBreakpoint();\n\n this.items().forEach(item => {\n item.nativeElement.open = isDesktop;\n });\n });\n }\n\n private setFirstAndLastClasses(): void {\n const elements = this.items();\n\n if (elements.length === 0) return;\n\n elements.forEach((item) => {\n this.renderer.removeClass(item.nativeElement, 'is-first');\n this.renderer.removeClass(item.nativeElement, 'is-last');\n });\n\n this.renderer.addClass(elements[0].nativeElement, 'is-first');\n if (elements.length > 1) {\n this.renderer.addClass(elements[elements.length - 1].nativeElement, 'is-last');\n }\n }\n}\n\n/**\n * Marker directive for a custom accordion toggle icon. Apply to any element inside\n * `summary[eclAccordionToggle]` to replace the default `+`/`-` ECL icons with custom content.\n * Applies the `ecl-accordion__toggle-icon` positioning class to the host element.\n */\n@Directive({\n selector: '[eclAccordionToggleIcon]',\n host: {\n class: 'ecl-accordion__toggle-icon',\n },\n})\nexport class EclAccordionToggleIconDirective {}\n","import {\n Component,\n computed,\n contentChildren,\n} from '@angular/core';\nimport { EUI_ECL_ICON } from '@eui/ecl/components/ecl-icon';\nimport { EclAccordionToggleIconDirective } from './ecl-accordion.directive';\n\n/**\n * Toggle (summary) sub-component for the ECL Accordion pattern. Apply the `eclAccordionToggle`\n * attribute to a `<summary>` element inside a `details[eclAccordionItem]` to render the clickable\n * header that expands or collapses the item. Applies the `ecl-accordion__toggle` CSS class.\n *\n * - Projects arbitrary content via `ng-content` (typically label text).\n * - Renders default `+` (collapsed) and `−` (expanded) ECL icons unless at least one element\n * with `[eclAccordionToggleIcon]` is projected, in which case the defaults are hidden.\n */\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'summary[eclAccordionToggle]',\n templateUrl: './ecl-accordion-summary.component.html',\n imports: [...EUI_ECL_ICON],\n host: {\n class: 'ecl-accordion__toggle',\n },\n})\nexport class EclAccordionSummaryComponent {\n private customIcons = contentChildren(EclAccordionToggleIconDirective, { descendants: true });\n\n /** Whether to show the default +/- icons. Hidden when custom toggle icons are projected. */\n protected showDefaultIcons = computed(() => this.customIcons().length === 0);\n}\n","<ng-content></ng-content>\n@if (showDefaultIcons()) {\n <ecl-icon icon=\"plus\" size=\"s\" class=\"ecl-accordion__toggle-icon\" ariaHidden=\"true\">\n </ecl-icon>\n <ecl-icon icon=\"minus\" size=\"s\" class=\"ecl-accordion__toggle-icon\" ariaHidden=\"true\">\n </ecl-icon>\n}","\nimport { EclAccordionContentDirective, EclAccordionItemDirective } from './ecl-accordion-item-new.directive';\nimport { EclAccordionSummaryComponent } from './ecl-accordion-summary.component';\nimport { EclAccordionDirective, EclAccordionToggleIconDirective } from './ecl-accordion.directive';\n\nexport * from './ecl-accordion-item-new.directive';\nexport * from './ecl-accordion-summary.component';\nexport * from './ecl-accordion.directive';\n\nexport const EUI_ECL_ACCORDION = [\n EclAccordionContentDirective,\n EclAccordionItemDirective,\n EclAccordionSummaryComponent,\n EclAccordionDirective,\n EclAccordionToggleIconDirective,\n] as const;\n"],"mappings":";;;;;;;;AAeA,IAAa,4BAAb,MAAa,0BAAyB;CAAzB;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAyB,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAzB;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAyB,cAAA;GAAA,UAAA;GAAA,MAAA,EAAA,gBAAA,sBAAA;GAAA,UAAA;EAAA,CAAA;CAAA;;AAAzB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAyB,YAAA,CAAA;EANrC,MAAA;EAAU,MAAA,CAAA;GACT,UAAU;GACV,MAAM,EACJ,OAAO,sBACR;EACF,CAAA;;;AAcD,IAAa,+BAAb,MAAa,6BAA4B;CAA5B;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAA4B,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAA5B;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAA4B,cAAA;GAAA,UAAA;GAAA,MAAA,EAAA,gBAAA,yBAAA;GAAA,UAAA;EAAA,CAAA;CAAA;;AAA5B,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAA4B,YAAA,CAAA;EANxC,MAAA;EAAU,MAAA,CAAA;GACT,UAAU;GACV,MAAM,EACJ,OAAO,yBACR;EACF,CAAA;;;ACcD,IAAa,wBAAb,MA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GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAA5B;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAA4B,cAAA;GAAA,UAAA;GAAA,MAAA,EAAA,gBAAA,wBAAA;GAAA,SAAA,CAAA;IAAA,cAAA;IAAA,WACC;IAA+B,aAAA;IAAA,UAAA;GAAA,CAAA;GAAA,UAAA;GAAA,UC3BzE;GAMC,cAAA,CAAA;IAAA,MAAA;IAAA,MAAA,GAAA;IAAA,UAAA;IAAA,QAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;IAAA;GAAA,CAAA;EAAA,CAAA;CAAA;;ADoBY,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAA4B,YAAA,CAAA;EATxC,MAAA;EAEa,MAAA,CAAA;GAAA,UAAA;GAA6B,SAE9B,CAAC,GAAG,YAAY;GAAC,MACpB,EACF,OAAO,wBACV;GAAA,UAAA;EAAA,CAAA;CAGqC,CAAA;CAAA,gBAAA,EAAA,aAAA,CAAA;EAAA,MAAA,GAAA;EAAA,MAAA,CAAA,GAAA,iBAAA,+BAA+B,GAAA;GAAI,aAAa;GAAM,UAAA;EAAA,CAAA;CAAA,CAAA,EAAA;AAAA,CAAA;AElBhG,MAAa,oBAAoB;CAC/B;CACA;CACA;CACA;CACA;AACQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-ecl-components-ecl-add-to-calendar.mjs","names":[],"sources":["../../components/ecl-add-to-calendar/ecl-add-to-calendar-action.directive.ts","../../components/ecl-add-to-calendar/ecl-add-to-calendar.component.ts","../../components/ecl-add-to-calendar/ecl-add-to-calendar.component.html","../../components/ecl-add-to-calendar/index.ts"],"sourcesContent":["import { Directive } from
|
|
1
|
+
{"version":3,"file":"eui-ecl-components-ecl-add-to-calendar.mjs","names":[],"sources":["../../components/ecl-add-to-calendar/ecl-add-to-calendar-action.directive.ts","../../components/ecl-add-to-calendar/ecl-add-to-calendar.component.ts","../../components/ecl-add-to-calendar/ecl-add-to-calendar.component.html","../../components/ecl-add-to-calendar/index.ts"],"sourcesContent":["import { Directive } from '@angular/core';\n\n/**\n * Container directive for the action area of the Add-to-Calendar component.\n * Applies the `ecl-add-to-calendar__action` CSS class to the host `<div>` element.\n * Used to wrap calendar provider links (e.g. Google Calendar, iCal) inside an\n * `EclAddToCalendarComponent`.\n */\n@Directive({\n selector: 'div[eclAddToCalendarAction]',\n host: {\n class: 'ecl-add-to-calendar__action',\n },\n})\nexport class EclAddToCalendarActionDirective {}","import { booleanAttribute, Component, input } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EUI_ECL_ICON } from '@eui/ecl/components/ecl-icon';\n\n/**\n * Displays an event summary card with optional date, time, and location metadata following the ECL design system.\n * The component is applied as an attribute on a `<div>` element (`div[eclAddToCalendar]`) and\n * renders icon-adorned metadata rows inside a styled container.\n *\n * - Selector: `div[eclAddToCalendar]` — used as an attribute directive on a `<div>`.\n * - Slot: project calendar action links using the `EclAddToCalendarActionDirective` (`div[eclAddToCalendarAction]`).\n * - `isFullWidth` — stretches the card to fill its container.\n * - `eclTitle` / `calendarDates` / `calendarTime` / `calendarLocation` — plain-string metadata inputs.\n */\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'div[eclAddToCalendar]',\n templateUrl: './ecl-add-to-calendar.component.html',\n imports: [...EUI_ECL_ICON],\n host: {\n class: 'ecl-add-to-calendar',\n '[class.ecl-add-to-calendar--full-width]': 'isFullWidth()',\n },\n})\nexport class EclAddToCalendarComponent extends ECLBaseDirective {\n\n /**\n * Indicates whether the component should span the full width of its container.\n */\n isFullWidth = input(false, { transform: booleanAttribute });\n\n /**\n * Title displayed in the component.\n */\n eclTitle = input<string>();\n\n /**\n * Date(s) of the event (e.g. \"March 15-17, 2026\").\n */\n calendarDates = input<string>();\n\n /**\n * Time of the event (e.g. \"2:00 PM - 4:00 PM\").\n */\n calendarTime = input<string>();\n\n /**\n * Location of the event (e.g. \"San Francisco, CA\").\n */\n calendarLocation = input<string>();\n}\n","<div class=\"ecl-add-to-calendar__info\" [class.ecl-container]=\"isFullWidth()\">\n <div class=\"ecl-add-to-calendar__info-content\">\n @if (eclTitle()) {\n <div class=\"ecl-add-to-calendar__title\">{{ eclTitle() }}</div>\n }\n @if (calendarDates() || calendarTime() || calendarLocation()) {\n <ul class=\"ecl-add-to-calendar__meta-list\">\n @if (calendarDates()) {\n <li class=\"ecl-add-to-calendar__meta-item\">\n <ecl-icon icon=\"calendar\" size=\"s\" class=\"ecl-add-to-calendar__meta-icon\" aria-hidden=\"true\"></ecl-icon>\n <span class=\"ecl-add-to-calendar__meta-label\">{{ calendarDates() }}</span>\n </li>\n }\n @if (calendarTime()) {\n <li class=\"ecl-add-to-calendar__meta-item\">\n <ecl-icon icon=\"clock\" size=\"s\" class=\"ecl-add-to-calendar__meta-icon\" aria-hidden=\"true\"></ecl-icon>\n <span class=\"ecl-add-to-calendar__meta-label\">{{ calendarTime() }}</span>\n </li>\n }\n @if (calendarLocation()) {\n <li class=\"ecl-add-to-calendar__meta-item\">\n <ecl-icon icon=\"location\" size=\"s\" class=\"ecl-add-to-calendar__meta-icon\" aria-hidden=\"true\"></ecl-icon>\n <span class=\"ecl-add-to-calendar__meta-label\">{{ calendarLocation() }}</span>\n </li>\n }\n </ul>\n }\n </div>\n \n <ng-content select=\"div[eclAddToCalendarAction]\"></ng-content>\n</div>","import { EclAddToCalendarActionDirective } from './ecl-add-to-calendar-action.directive';\nimport { EclAddToCalendarComponent } from './ecl-add-to-calendar.component';\n\nexport * from './ecl-add-to-calendar.component';\nexport * from './ecl-add-to-calendar-action.directive';\n\nexport const EUI_ECL_ADD_TO_CALENDAR = [\n EclAddToCalendarComponent,\n EclAddToCalendarActionDirective,\n] as const;\n"],"mappings":";;;;;AAcA,IAAa,kCAAb,MAAa,gCAA+B;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