@eui/ecl 21.3.1 → 21.3.2-snapshot-1782156206224
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 +40 -0
- package/docs/components/EclAccordionSummaryComponent.html +1 -1
- package/docs/components/EclAddToCalendarComponent.html +1 -1
- package/docs/components/EclAppComponent.html +1 -1
- package/docs/components/EclBannerComponent.html +3 -3
- 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 +1 -1
- package/docs/components/EclCarouselItemComponent.html +1 -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/EclFileTaxonomyComponent.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/EclIconComponent.html +1 -1
- package/docs/components/EclIndicatorComponent-1.html +1 -1
- package/docs/components/EclIndicatorComponent.html +1 -1
- package/docs/components/EclInpageNavigationComponent.html +1 -1
- package/docs/components/EclInpageNavigationItemComponent.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/EclPageHeaderNextComponent.html +1 -1
- package/docs/components/EclPageHeaderSectionComponent.html +1 -1
- package/docs/components/EclPageHeaderSectionInfoComponent.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 +1 -1
- package/docs/components/EclQuizComponent.html +1 -1
- package/docs/components/EclRadioHelpComponent.html +1 -1
- 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/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/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/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/EclTimelineComponent.html +1 -1
- package/docs/components/EclTimelineItemComponent.html +1 -1
- package/docs/components/EclTimelineItemTogglerComponent.html +1 -1
- package/docs/js/menu-wc.js +0 -6
- package/docs/js/menu-wc_es5.js +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/docs/json/documentation.json +17 -481
- package/docs/miscellaneous/variables.html +0 -2
- package/docs/overview.html +1 -1
- package/docs/properties.html +1 -1
- package/fesm2022/eui-ecl-components-ecl-accordion.mjs +15 -153
- package/fesm2022/eui-ecl-components-ecl-accordion.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-banner.mjs +17 -22
- package/fesm2022/eui-ecl-components-ecl-banner.mjs.map +1 -1
- package/package.json +2 -2
- package/types/eui-ecl-components-ecl-accordion.d.ts +8 -80
- package/types/eui-ecl-components-ecl-accordion.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-banner.d.ts +0 -3
- package/types/eui-ecl-components-ecl-banner.d.ts.map +1 -1
- package/docs/components/EclAccordionComponent.html +0 -522
- package/docs/components/EclAccordionItemComponent.html +0 -722
- package/docs/json/EclAccordionComponent.md +0 -17
- package/docs/json/EclAccordionItemComponent.md +0 -18
|
@@ -33102,470 +33102,6 @@
|
|
|
33102
33102
|
}
|
|
33103
33103
|
],
|
|
33104
33104
|
"components": [
|
|
33105
|
-
{
|
|
33106
|
-
"name": "EclAccordionComponent",
|
|
33107
|
-
"id": "component-EclAccordionComponent-54b1777bdee60a782785938c47499974dd4f73894d02da1b54cac868e0e4481b8bdec56843ba2c1e27e77b2ba5b8850584e6512f37388652ed68a16255416012",
|
|
33108
|
-
"file": "packages/ecl/components/ecl-accordion/ecl-accordion.component.ts",
|
|
33109
|
-
"changeDetection": "ChangeDetectionStrategy.OnPush",
|
|
33110
|
-
"encapsulation": [],
|
|
33111
|
-
"entryComponents": [],
|
|
33112
|
-
"inputs": [],
|
|
33113
|
-
"outputs": [],
|
|
33114
|
-
"providers": [],
|
|
33115
|
-
"selector": "ecl-accordion",
|
|
33116
|
-
"styleUrls": [],
|
|
33117
|
-
"styles": [
|
|
33118
|
-
"\n :host {\n display: block;\n }\n "
|
|
33119
|
-
],
|
|
33120
|
-
"templateUrl": [
|
|
33121
|
-
"./ecl-accordion.component.html"
|
|
33122
|
-
],
|
|
33123
|
-
"viewProviders": [],
|
|
33124
|
-
"hostDirectives": [
|
|
33125
|
-
{
|
|
33126
|
-
"name": "ECLBaseDirective",
|
|
33127
|
-
"inputs": [],
|
|
33128
|
-
"outputs": []
|
|
33129
|
-
}
|
|
33130
|
-
],
|
|
33131
|
-
"inputsClass": [],
|
|
33132
|
-
"outputsClass": [],
|
|
33133
|
-
"propertiesClass": [
|
|
33134
|
-
{
|
|
33135
|
-
"name": "baseDirective",
|
|
33136
|
-
"defaultValue": "inject(ECLBaseDirective)",
|
|
33137
|
-
"deprecated": false,
|
|
33138
|
-
"deprecationMessage": "",
|
|
33139
|
-
"type": "unknown",
|
|
33140
|
-
"indexKey": "",
|
|
33141
|
-
"optional": false,
|
|
33142
|
-
"description": "",
|
|
33143
|
-
"line": 47
|
|
33144
|
-
},
|
|
33145
|
-
{
|
|
33146
|
-
"name": "items",
|
|
33147
|
-
"deprecated": false,
|
|
33148
|
-
"deprecationMessage": "",
|
|
33149
|
-
"type": "QueryList<ElementRef>",
|
|
33150
|
-
"indexKey": "",
|
|
33151
|
-
"optional": false,
|
|
33152
|
-
"description": "",
|
|
33153
|
-
"line": 51,
|
|
33154
|
-
"decorators": [
|
|
33155
|
-
{
|
|
33156
|
-
"name": "ContentChildren",
|
|
33157
|
-
"stringifiedArguments": "undefined, {read: ElementRef}"
|
|
33158
|
-
}
|
|
33159
|
-
],
|
|
33160
|
-
"modifierKind": [
|
|
33161
|
-
171
|
|
33162
|
-
]
|
|
33163
|
-
}
|
|
33164
|
-
],
|
|
33165
|
-
"methodsClass": [
|
|
33166
|
-
{
|
|
33167
|
-
"name": "ngOnDestroy",
|
|
33168
|
-
"args": [],
|
|
33169
|
-
"optional": false,
|
|
33170
|
-
"returnType": "void",
|
|
33171
|
-
"typeParameters": [],
|
|
33172
|
-
"line": 75,
|
|
33173
|
-
"deprecated": false,
|
|
33174
|
-
"deprecationMessage": ""
|
|
33175
|
-
}
|
|
33176
|
-
],
|
|
33177
|
-
"deprecated": false,
|
|
33178
|
-
"deprecationMessage": "",
|
|
33179
|
-
"hostBindings": [
|
|
33180
|
-
{
|
|
33181
|
-
"name": "class",
|
|
33182
|
-
"deprecated": false,
|
|
33183
|
-
"deprecationMessage": "",
|
|
33184
|
-
"jsdoctags": [
|
|
33185
|
-
{
|
|
33186
|
-
"pos": 1719,
|
|
33187
|
-
"end": 1903,
|
|
33188
|
-
"kind": 328,
|
|
33189
|
-
"id": 0,
|
|
33190
|
-
"flags": 16842752,
|
|
33191
|
-
"modifierFlagsCache": 0,
|
|
33192
|
-
"transformFlags": 0,
|
|
33193
|
-
"tagName": {
|
|
33194
|
-
"pos": 1720,
|
|
33195
|
-
"end": 1731,
|
|
33196
|
-
"kind": 80,
|
|
33197
|
-
"id": 0,
|
|
33198
|
-
"flags": 16842752,
|
|
33199
|
-
"transformFlags": 0,
|
|
33200
|
-
"escapedText": "description"
|
|
33201
|
-
},
|
|
33202
|
-
"comment": "<p>Retrieves and returns the CSS classes for the component based on its current state.\nUses <code>baseDirective</code> to fetch the appropriate CSS classes.</p>\n"
|
|
33203
|
-
},
|
|
33204
|
-
{
|
|
33205
|
-
"pos": 1903,
|
|
33206
|
-
"end": 1957,
|
|
33207
|
-
"kind": 343,
|
|
33208
|
-
"id": 0,
|
|
33209
|
-
"flags": 16842752,
|
|
33210
|
-
"modifierFlagsCache": 0,
|
|
33211
|
-
"transformFlags": 0,
|
|
33212
|
-
"tagName": {
|
|
33213
|
-
"pos": 1904,
|
|
33214
|
-
"end": 1911,
|
|
33215
|
-
"kind": 80,
|
|
33216
|
-
"id": 0,
|
|
33217
|
-
"flags": 16842752,
|
|
33218
|
-
"transformFlags": 0,
|
|
33219
|
-
"escapedText": "returns"
|
|
33220
|
-
},
|
|
33221
|
-
"comment": "<ul>\n<li>A string of CSS class names.</li>\n</ul>\n",
|
|
33222
|
-
"typeExpression": {
|
|
33223
|
-
"pos": 1912,
|
|
33224
|
-
"end": 1920,
|
|
33225
|
-
"kind": 310,
|
|
33226
|
-
"id": 0,
|
|
33227
|
-
"flags": 16842752,
|
|
33228
|
-
"modifierFlagsCache": 0,
|
|
33229
|
-
"transformFlags": 0,
|
|
33230
|
-
"type": {
|
|
33231
|
-
"pos": 1913,
|
|
33232
|
-
"end": 1919,
|
|
33233
|
-
"kind": 154,
|
|
33234
|
-
"id": 0,
|
|
33235
|
-
"flags": 16777216,
|
|
33236
|
-
"transformFlags": 1
|
|
33237
|
-
}
|
|
33238
|
-
}
|
|
33239
|
-
}
|
|
33240
|
-
],
|
|
33241
|
-
"rawdescription": "\n\nRetrieves and returns the CSS classes for the component based on its current state.\nUses `baseDirective` to fetch the appropriate CSS classes.\n\n",
|
|
33242
|
-
"description": "<p>Retrieves and returns the CSS classes for the component based on its current state.\nUses <code>baseDirective</code> to fetch the appropriate CSS classes.</p>\n",
|
|
33243
|
-
"line": 62,
|
|
33244
|
-
"type": "string",
|
|
33245
|
-
"decorators": []
|
|
33246
|
-
}
|
|
33247
|
-
],
|
|
33248
|
-
"hostListeners": [],
|
|
33249
|
-
"standalone": false,
|
|
33250
|
-
"imports": [],
|
|
33251
|
-
"description": "<p>Accordion component that manages the expansion and collapsing state of accordion items.\nUses the <code>ECLBaseDirective</code> to apply appropriate CSS classes and manage the visual styling.</p>\n<p>This is the main component for the accordion container, responsible for managing the expansion\nof individual items within the accordion. It provides the functionality to group and organize content\nin expandable sections.</p>\n<b>Example :</b><div><pre class=\"line-numbers\"><code class=\"language-none\"> The main class is `ecl-accordion`, which can be extended with additional classes.</code></pre></div>",
|
|
33252
|
-
"rawdescription": "\n\nAccordion component that manages the expansion and collapsing state of accordion items.\nUses the `ECLBaseDirective` to apply appropriate CSS classes and manage the visual styling.\n\nThis is the main component for the accordion container, responsible for managing the expansion\nof individual items within the accordion. It provides the functionality to group and organize content\nin expandable sections.\n\n The main class is `ecl-accordion`, which can be extended with additional classes.\n",
|
|
33253
|
-
"type": "component",
|
|
33254
|
-
"sourceCode": "import {\n afterNextRender,\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n ElementRef,\n forwardRef,\n HostBinding,\n inject,\n QueryList,\n Renderer2,\n} from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { Subject, takeUntil } from 'rxjs';\nimport { EclAccordionItemComponent } from './ecl-accordion-item.component';\n\n/**\n * Accordion component that manages the expansion and collapsing state of accordion items.\n * Uses the `ECLBaseDirective` to apply appropriate CSS classes and manage the visual styling.\n *\n * @description\n * This is the main component for the accordion container, responsible for managing the expansion\n * of individual items within the accordion. It provides the functionality to group and organize content\n * in expandable sections.\n *\n * @property {string} cssClasses - Returns a string of CSS classes applied to the host element.\n * The main class is `ecl-accordion`, which can be extended with additional classes.\n */\n@Component({\n selector: 'ecl-accordion',\n templateUrl: './ecl-accordion.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n styles: [\n `\n :host {\n display: block;\n }\n `,\n ],\n hostDirectives: [\n {\n directive: ECLBaseDirective,\n },\n ],\n})\nexport class EclAccordionComponent {\n baseDirective = inject(ECLBaseDirective);\n private renderer = inject(Renderer2);\n\n @ContentChildren(forwardRef(() => EclAccordionItemComponent), { read: ElementRef })\n items!: QueryList<ElementRef>;\n private destroy$: Subject<boolean> = new Subject<boolean>();\n\n /**\n * @description\n * Retrieves and returns the CSS classes for the component based on its current state.\n * Uses `baseDirective` to fetch the appropriate CSS classes.\n *\n * @returns {string} - A string of CSS class names.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [this.baseDirective.getCssClasses('ecl-accordion')].join(' ').trim();\n }\n\n constructor() {\n afterNextRender(() => {\n this.setFirstAndLastClasses();\n this.items.changes\n .pipe(takeUntil(this.destroy$))\n .subscribe(() => this.setFirstAndLastClasses());\n });\n }\n\n ngOnDestroy(): void {\n this.destroy$.next(true);\n this.destroy$.unsubscribe();\n }\n\n private setFirstAndLastClasses(): void {\n const elements = this.items.toArray();\n\n if (elements.length === 0) return;\n\n elements.forEach((el) => {\n this.renderer.removeClass(el.nativeElement, 'is-first');\n this.renderer.removeClass(el.nativeElement, 'is-last');\n });\n\n this.renderer.addClass(elements[0].nativeElement, 'is-first');\n this.renderer.addClass(elements[elements.length - 1].nativeElement, 'is-last');\n }\n}\n",
|
|
33255
|
-
"assetsDirs": [],
|
|
33256
|
-
"styleUrlsData": "",
|
|
33257
|
-
"stylesData": "\n :host {\n display: block;\n }\n \n",
|
|
33258
|
-
"constructorObj": {
|
|
33259
|
-
"name": "constructor",
|
|
33260
|
-
"description": "",
|
|
33261
|
-
"deprecated": false,
|
|
33262
|
-
"deprecationMessage": "",
|
|
33263
|
-
"args": [],
|
|
33264
|
-
"line": 64
|
|
33265
|
-
},
|
|
33266
|
-
"extends": [],
|
|
33267
|
-
"accessors": {
|
|
33268
|
-
"cssClasses": {
|
|
33269
|
-
"name": "cssClasses",
|
|
33270
|
-
"getSignature": {
|
|
33271
|
-
"name": "cssClasses",
|
|
33272
|
-
"type": "string",
|
|
33273
|
-
"returnType": "string",
|
|
33274
|
-
"line": 62,
|
|
33275
|
-
"rawdescription": "\n\nRetrieves and returns the CSS classes for the component based on its current state.\nUses `baseDirective` to fetch the appropriate CSS classes.\n\n",
|
|
33276
|
-
"description": "<p>Retrieves and returns the CSS classes for the component based on its current state.\nUses <code>baseDirective</code> to fetch the appropriate CSS classes.</p>\n",
|
|
33277
|
-
"jsdoctags": [
|
|
33278
|
-
{
|
|
33279
|
-
"pos": 1719,
|
|
33280
|
-
"end": 1903,
|
|
33281
|
-
"kind": 328,
|
|
33282
|
-
"id": 0,
|
|
33283
|
-
"flags": 16842752,
|
|
33284
|
-
"modifierFlagsCache": 0,
|
|
33285
|
-
"transformFlags": 0,
|
|
33286
|
-
"tagName": {
|
|
33287
|
-
"pos": 1720,
|
|
33288
|
-
"end": 1731,
|
|
33289
|
-
"kind": 80,
|
|
33290
|
-
"id": 0,
|
|
33291
|
-
"flags": 16842752,
|
|
33292
|
-
"transformFlags": 0,
|
|
33293
|
-
"escapedText": "description"
|
|
33294
|
-
},
|
|
33295
|
-
"comment": "<p>Retrieves and returns the CSS classes for the component based on its current state.\nUses <code>baseDirective</code> to fetch the appropriate CSS classes.</p>\n"
|
|
33296
|
-
},
|
|
33297
|
-
{
|
|
33298
|
-
"pos": 1903,
|
|
33299
|
-
"end": 1957,
|
|
33300
|
-
"kind": 343,
|
|
33301
|
-
"id": 0,
|
|
33302
|
-
"flags": 16842752,
|
|
33303
|
-
"modifierFlagsCache": 0,
|
|
33304
|
-
"transformFlags": 0,
|
|
33305
|
-
"tagName": {
|
|
33306
|
-
"pos": 1904,
|
|
33307
|
-
"end": 1911,
|
|
33308
|
-
"kind": 80,
|
|
33309
|
-
"id": 0,
|
|
33310
|
-
"flags": 16842752,
|
|
33311
|
-
"transformFlags": 0,
|
|
33312
|
-
"escapedText": "returns"
|
|
33313
|
-
},
|
|
33314
|
-
"comment": "<ul>\n<li>A string of CSS class names.</li>\n</ul>\n",
|
|
33315
|
-
"typeExpression": {
|
|
33316
|
-
"pos": 1912,
|
|
33317
|
-
"end": 1920,
|
|
33318
|
-
"kind": 310,
|
|
33319
|
-
"id": 0,
|
|
33320
|
-
"flags": 16842752,
|
|
33321
|
-
"modifierFlagsCache": 0,
|
|
33322
|
-
"transformFlags": 0,
|
|
33323
|
-
"type": {
|
|
33324
|
-
"pos": 1913,
|
|
33325
|
-
"end": 1919,
|
|
33326
|
-
"kind": 154,
|
|
33327
|
-
"id": 0,
|
|
33328
|
-
"flags": 16777216,
|
|
33329
|
-
"transformFlags": 1
|
|
33330
|
-
}
|
|
33331
|
-
}
|
|
33332
|
-
}
|
|
33333
|
-
]
|
|
33334
|
-
}
|
|
33335
|
-
}
|
|
33336
|
-
},
|
|
33337
|
-
"templateData": "<ng-content></ng-content>\n"
|
|
33338
|
-
},
|
|
33339
|
-
{
|
|
33340
|
-
"name": "EclAccordionItemComponent",
|
|
33341
|
-
"id": "component-EclAccordionItemComponent-e67481cdf419cbc64672e2d88c0adb3013f6705de7d2ae03dec1cdcbe1ca1906618716e9b169bc91ee1b768a2aec6ba3efd01e39040b793546cf7a87ea92a016",
|
|
33342
|
-
"file": "packages/ecl/components/ecl-accordion/ecl-accordion-item.component.ts",
|
|
33343
|
-
"changeDetection": "ChangeDetectionStrategy.OnPush",
|
|
33344
|
-
"encapsulation": [],
|
|
33345
|
-
"entryComponents": [],
|
|
33346
|
-
"inputs": [],
|
|
33347
|
-
"outputs": [],
|
|
33348
|
-
"providers": [],
|
|
33349
|
-
"selector": "ecl-accordion-item",
|
|
33350
|
-
"styleUrls": [],
|
|
33351
|
-
"styles": [
|
|
33352
|
-
"\n :host {\n display: block;\n }\n "
|
|
33353
|
-
],
|
|
33354
|
-
"templateUrl": [
|
|
33355
|
-
"./ecl-accordion-item.component.html"
|
|
33356
|
-
],
|
|
33357
|
-
"viewProviders": [],
|
|
33358
|
-
"hostDirectives": [
|
|
33359
|
-
{
|
|
33360
|
-
"name": "ECLBaseDirective",
|
|
33361
|
-
"inputs": [],
|
|
33362
|
-
"outputs": []
|
|
33363
|
-
}
|
|
33364
|
-
],
|
|
33365
|
-
"inputsClass": [
|
|
33366
|
-
{
|
|
33367
|
-
"required": false,
|
|
33368
|
-
"name": "isExpanded",
|
|
33369
|
-
"defaultValue": "false",
|
|
33370
|
-
"deprecated": false,
|
|
33371
|
-
"deprecationMessage": "",
|
|
33372
|
-
"jsdoctags": [
|
|
33373
|
-
{
|
|
33374
|
-
"pos": 1451,
|
|
33375
|
-
"end": 1471,
|
|
33376
|
-
"kind": 328,
|
|
33377
|
-
"id": 0,
|
|
33378
|
-
"flags": 16842752,
|
|
33379
|
-
"modifierFlagsCache": 0,
|
|
33380
|
-
"transformFlags": 0,
|
|
33381
|
-
"tagName": {
|
|
33382
|
-
"pos": 1452,
|
|
33383
|
-
"end": 1459,
|
|
33384
|
-
"kind": 80,
|
|
33385
|
-
"id": 0,
|
|
33386
|
-
"flags": 16842752,
|
|
33387
|
-
"transformFlags": 0,
|
|
33388
|
-
"escapedText": "default"
|
|
33389
|
-
},
|
|
33390
|
-
"comment": "<p>false</p>\n"
|
|
33391
|
-
}
|
|
33392
|
-
],
|
|
33393
|
-
"rawdescription": "\n\nWhether the accordion item is expanded by default.\nCan be controlled externally.\n",
|
|
33394
|
-
"description": "<p>Whether the accordion item is expanded by default.\nCan be controlled externally.</p>\n",
|
|
33395
|
-
"line": 54,
|
|
33396
|
-
"type": "boolean",
|
|
33397
|
-
"decorators": []
|
|
33398
|
-
},
|
|
33399
|
-
{
|
|
33400
|
-
"name": "label",
|
|
33401
|
-
"deprecated": false,
|
|
33402
|
-
"deprecationMessage": "",
|
|
33403
|
-
"rawdescription": "\n\nThe label for the accordion header.\nThis value is displayed as the clickable title of the item.\n",
|
|
33404
|
-
"description": "<p>The label for the accordion header.\nThis value is displayed as the clickable title of the item.</p>\n",
|
|
33405
|
-
"line": 47,
|
|
33406
|
-
"type": "string",
|
|
33407
|
-
"decorators": []
|
|
33408
|
-
}
|
|
33409
|
-
],
|
|
33410
|
-
"outputsClass": [
|
|
33411
|
-
{
|
|
33412
|
-
"name": "toggle",
|
|
33413
|
-
"defaultValue": "new EventEmitter<EclAccordionToggleEvent>()",
|
|
33414
|
-
"deprecated": false,
|
|
33415
|
-
"deprecationMessage": "",
|
|
33416
|
-
"rawdescription": "\n\nEvent emitted when the item is toggled (expanded/collapsed).\nThe emitted value contains the next expanded state.\n",
|
|
33417
|
-
"description": "<p>Event emitted when the item is toggled (expanded/collapsed).\nThe emitted value contains the next expanded state.</p>\n",
|
|
33418
|
-
"line": 61,
|
|
33419
|
-
"type": "EventEmitter"
|
|
33420
|
-
}
|
|
33421
|
-
],
|
|
33422
|
-
"propertiesClass": [
|
|
33423
|
-
{
|
|
33424
|
-
"name": "baseDirective",
|
|
33425
|
-
"defaultValue": "inject(ECLBaseDirective)",
|
|
33426
|
-
"deprecated": false,
|
|
33427
|
-
"deprecationMessage": "",
|
|
33428
|
-
"type": "unknown",
|
|
33429
|
-
"indexKey": "",
|
|
33430
|
-
"optional": false,
|
|
33431
|
-
"description": "",
|
|
33432
|
-
"line": 42
|
|
33433
|
-
},
|
|
33434
|
-
{
|
|
33435
|
-
"name": "contentId",
|
|
33436
|
-
"defaultValue": "''",
|
|
33437
|
-
"deprecated": false,
|
|
33438
|
-
"deprecationMessage": "",
|
|
33439
|
-
"type": "string",
|
|
33440
|
-
"indexKey": "",
|
|
33441
|
-
"optional": false,
|
|
33442
|
-
"description": "",
|
|
33443
|
-
"line": 63
|
|
33444
|
-
},
|
|
33445
|
-
{
|
|
33446
|
-
"name": "titleId",
|
|
33447
|
-
"defaultValue": "''",
|
|
33448
|
-
"deprecated": false,
|
|
33449
|
-
"deprecationMessage": "",
|
|
33450
|
-
"type": "string",
|
|
33451
|
-
"indexKey": "",
|
|
33452
|
-
"optional": false,
|
|
33453
|
-
"description": "",
|
|
33454
|
-
"line": 64
|
|
33455
|
-
}
|
|
33456
|
-
],
|
|
33457
|
-
"methodsClass": [
|
|
33458
|
-
{
|
|
33459
|
-
"name": "ngOnInit",
|
|
33460
|
-
"args": [],
|
|
33461
|
-
"optional": false,
|
|
33462
|
-
"returnType": "void",
|
|
33463
|
-
"typeParameters": [],
|
|
33464
|
-
"line": 72,
|
|
33465
|
-
"deprecated": false,
|
|
33466
|
-
"deprecationMessage": ""
|
|
33467
|
-
},
|
|
33468
|
-
{
|
|
33469
|
-
"name": "onItemClick",
|
|
33470
|
-
"args": [
|
|
33471
|
-
{
|
|
33472
|
-
"name": "evt",
|
|
33473
|
-
"type": "MouseEvent",
|
|
33474
|
-
"optional": false,
|
|
33475
|
-
"dotDotDotToken": false,
|
|
33476
|
-
"deprecated": false,
|
|
33477
|
-
"deprecationMessage": ""
|
|
33478
|
-
}
|
|
33479
|
-
],
|
|
33480
|
-
"optional": false,
|
|
33481
|
-
"returnType": "void",
|
|
33482
|
-
"typeParameters": [],
|
|
33483
|
-
"line": 84,
|
|
33484
|
-
"deprecated": false,
|
|
33485
|
-
"deprecationMessage": "",
|
|
33486
|
-
"rawdescription": "\n\nHandles click on the accordion item header.\nToggles the item and emits a toggle event.\nIf the event is not prevented, the item's state is updated.\n\n",
|
|
33487
|
-
"description": "<p>Handles click on the accordion item header.\nToggles the item and emits a toggle event.\nIf the event is not prevented, the item's state is updated.</p>\n",
|
|
33488
|
-
"jsdoctags": [
|
|
33489
|
-
{
|
|
33490
|
-
"name": {
|
|
33491
|
-
"pos": 2338,
|
|
33492
|
-
"end": 2341,
|
|
33493
|
-
"kind": 80,
|
|
33494
|
-
"id": 0,
|
|
33495
|
-
"flags": 16842752,
|
|
33496
|
-
"transformFlags": 0,
|
|
33497
|
-
"escapedText": "evt"
|
|
33498
|
-
},
|
|
33499
|
-
"type": "MouseEvent",
|
|
33500
|
-
"optional": false,
|
|
33501
|
-
"dotDotDotToken": false,
|
|
33502
|
-
"deprecated": false,
|
|
33503
|
-
"deprecationMessage": "",
|
|
33504
|
-
"tagName": {
|
|
33505
|
-
"pos": 2332,
|
|
33506
|
-
"end": 2337,
|
|
33507
|
-
"kind": 80,
|
|
33508
|
-
"id": 0,
|
|
33509
|
-
"flags": 16842752,
|
|
33510
|
-
"transformFlags": 0,
|
|
33511
|
-
"escapedText": "param"
|
|
33512
|
-
},
|
|
33513
|
-
"comment": "<ul>\n<li>The mouse click event</li>\n</ul>\n"
|
|
33514
|
-
}
|
|
33515
|
-
]
|
|
33516
|
-
}
|
|
33517
|
-
],
|
|
33518
|
-
"deprecated": false,
|
|
33519
|
-
"deprecationMessage": "",
|
|
33520
|
-
"hostBindings": [
|
|
33521
|
-
{
|
|
33522
|
-
"name": "class",
|
|
33523
|
-
"deprecated": false,
|
|
33524
|
-
"deprecationMessage": "",
|
|
33525
|
-
"line": 68,
|
|
33526
|
-
"type": "string",
|
|
33527
|
-
"decorators": []
|
|
33528
|
-
}
|
|
33529
|
-
],
|
|
33530
|
-
"hostListeners": [],
|
|
33531
|
-
"standalone": false,
|
|
33532
|
-
"imports": [
|
|
33533
|
-
{
|
|
33534
|
-
"name": "CommonModule",
|
|
33535
|
-
"type": "module"
|
|
33536
|
-
},
|
|
33537
|
-
{
|
|
33538
|
-
"name": "EUI_ECL_ICON"
|
|
33539
|
-
},
|
|
33540
|
-
{
|
|
33541
|
-
"name": "TranslateModule",
|
|
33542
|
-
"type": "module"
|
|
33543
|
-
}
|
|
33544
|
-
],
|
|
33545
|
-
"description": "<p>Represents an individual item within an ECL Accordion.\nThis component allows for expand/collapse behavior and emits toggle events on interaction.</p>\n",
|
|
33546
|
-
"rawdescription": "\n\nRepresents an individual item within an ECL Accordion.\nThis component allows for expand/collapse behavior and emits toggle events on interaction.\n",
|
|
33547
|
-
"type": "component",
|
|
33548
|
-
"sourceCode": "import {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n HostBinding,\n Input,\n OnInit,\n Output,\n booleanAttribute,\n ChangeDetectorRef,\n inject,\n} from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclAccordionToggleEvent } from './events/ecl-accordion-toggle.event';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { EUI_ECL_ICON } from '@eui/ecl/components/ecl-icon';\n\n/**\n * Represents an individual item within an ECL Accordion.\n * This component allows for expand/collapse behavior and emits toggle events on interaction.\n */\n@Component({\n selector: 'ecl-accordion-item',\n templateUrl: './ecl-accordion-item.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, ...EUI_ECL_ICON, TranslateModule],\n styles: [\n `\n :host {\n display: block;\n }\n `,\n ],\n hostDirectives: [\n {\n directive: ECLBaseDirective,\n },\n ],\n})\nexport class EclAccordionItemComponent implements OnInit {\n baseDirective = inject(ECLBaseDirective);\n /**\n * The label for the accordion header.\n * This value is displayed as the clickable title of the item.\n */\n @Input() label: string;\n\n /**\n * Whether the accordion item is expanded by default.\n * Can be controlled externally.\n * @default false\n */\n @Input({ transform: booleanAttribute }) isExpanded = false;\n\n /**\n * Event emitted when the item is toggled (expanded/collapsed).\n * The emitted value contains the next expanded state.\n */\n // eslint-disable-next-line\n @Output() toggle = new EventEmitter<EclAccordionToggleEvent>();\n\n contentId = '';\n titleId = '';\n private cd = inject(ChangeDetectorRef);\n\n @HostBinding('class')\n get cssClasses(): string {\n return [this.baseDirective.getCssClasses('ecl-accordion__item')].join(' ').trim();\n }\n\n ngOnInit(): void {\n this.titleId = crypto.randomUUID();\n this.contentId = crypto.randomUUID();\n }\n\n /**\n * Handles click on the accordion item header.\n * Toggles the item and emits a toggle event.\n * If the event is not prevented, the item's state is updated.\n *\n * @param evt - The mouse click event\n */\n onItemClick(evt: MouseEvent): void {\n const nextExpandedState = !this.isExpanded;\n const event = new EclAccordionToggleEvent(nextExpandedState);\n\n this.toggle.next(event);\n\n if (!event.defaultPrevented) {\n this.isExpanded = nextExpandedState;\n }\n }\n}\n",
|
|
33549
|
-
"assetsDirs": [],
|
|
33550
|
-
"styleUrlsData": "",
|
|
33551
|
-
"stylesData": "\n :host {\n display: block;\n }\n \n",
|
|
33552
|
-
"extends": [],
|
|
33553
|
-
"implements": [
|
|
33554
|
-
"OnInit"
|
|
33555
|
-
],
|
|
33556
|
-
"accessors": {
|
|
33557
|
-
"cssClasses": {
|
|
33558
|
-
"name": "cssClasses",
|
|
33559
|
-
"getSignature": {
|
|
33560
|
-
"name": "cssClasses",
|
|
33561
|
-
"type": "string",
|
|
33562
|
-
"returnType": "string",
|
|
33563
|
-
"line": 68
|
|
33564
|
-
}
|
|
33565
|
-
}
|
|
33566
|
-
},
|
|
33567
|
-
"templateData": "<div class=\"ecl-accordion__title\" [id]=\"titleId\">\n <button\n type=\"button\"\n (click)=\"onItemClick($event)\"\n [attr.aria-expanded]=\"isExpanded\"\n class=\"ecl-accordion__toggle\"\n [attr.aria-controls]=\"contentId\">\n <span class=\"ecl-accordion__toggle-flex\">\n <span class=\"ecl-accordion__toggle-title\">{{ label }}</span>\n <span class=\"ecl-accordion__toggle-indicator\">\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 </span>\n </span>\n </button>\n</div>\n<div class=\"ecl-accordion__content\" [hidden]=\"!isExpanded\" role=\"region\" [attr.aria-labelledby]=\"titleId\" [id]=\"contentId\">\n <ng-content></ng-content>\n</div>\n"
|
|
33568
|
-
},
|
|
33569
33105
|
{
|
|
33570
33106
|
"name": "EclAccordionSummaryComponent",
|
|
33571
33107
|
"id": "component-EclAccordionSummaryComponent-43a02743fc609c6889c4cbc18b6fe9befafcd18da5f60857d4c1f8efc4de367c26530ef1718869ee4206b3b4d4c5e4c6260dc3232ecc542ce4f2ccbecaa339a8",
|
|
@@ -34041,7 +33577,7 @@
|
|
|
34041
33577
|
},
|
|
34042
33578
|
{
|
|
34043
33579
|
"name": "EclBannerComponent",
|
|
34044
|
-
"id": "component-EclBannerComponent-
|
|
33580
|
+
"id": "component-EclBannerComponent-6fe360b7ef30f862ddd7c41f68f85a77915168f22b8bf788981316ae4023c46e9da9cd0f7a784989b84046f818471d4fe815939938cce07f055f6d9bf790898f",
|
|
34045
33581
|
"file": "packages/ecl/components/ecl-banner/ecl-banner.component.ts",
|
|
34046
33582
|
"encapsulation": [],
|
|
34047
33583
|
"entryComponents": [],
|
|
@@ -34334,7 +33870,7 @@
|
|
|
34334
33870
|
},
|
|
34335
33871
|
{
|
|
34336
33872
|
"name": "isPlaying",
|
|
34337
|
-
"defaultValue": "signal(
|
|
33873
|
+
"defaultValue": "signal(true)",
|
|
34338
33874
|
"deprecated": false,
|
|
34339
33875
|
"deprecationMessage": "",
|
|
34340
33876
|
"type": "unknown",
|
|
@@ -34389,7 +33925,7 @@
|
|
|
34389
33925
|
"optional": false,
|
|
34390
33926
|
"returnType": "void",
|
|
34391
33927
|
"typeParameters": [],
|
|
34392
|
-
"line":
|
|
33928
|
+
"line": 163,
|
|
34393
33929
|
"deprecated": false,
|
|
34394
33930
|
"deprecationMessage": ""
|
|
34395
33931
|
},
|
|
@@ -34399,7 +33935,7 @@
|
|
|
34399
33935
|
"optional": false,
|
|
34400
33936
|
"returnType": "void",
|
|
34401
33937
|
"typeParameters": [],
|
|
34402
|
-
"line":
|
|
33938
|
+
"line": 185,
|
|
34403
33939
|
"deprecated": false,
|
|
34404
33940
|
"deprecationMessage": ""
|
|
34405
33941
|
},
|
|
@@ -34409,7 +33945,7 @@
|
|
|
34409
33945
|
"optional": false,
|
|
34410
33946
|
"returnType": "void",
|
|
34411
33947
|
"typeParameters": [],
|
|
34412
|
-
"line":
|
|
33948
|
+
"line": 231,
|
|
34413
33949
|
"deprecated": false,
|
|
34414
33950
|
"deprecationMessage": "",
|
|
34415
33951
|
"rawdescription": "\n\nHandles keyboard activation (Enter key) to pause video.\nMoves focus to play button after pausing.\n",
|
|
@@ -34421,7 +33957,7 @@
|
|
|
34421
33957
|
"optional": false,
|
|
34422
33958
|
"returnType": "void",
|
|
34423
33959
|
"typeParameters": [],
|
|
34424
|
-
"line":
|
|
33960
|
+
"line": 222,
|
|
34425
33961
|
"deprecated": false,
|
|
34426
33962
|
"deprecationMessage": "",
|
|
34427
33963
|
"rawdescription": "\n\nHandles keyboard activation (Enter key) to play video.\nMoves focus to pause button after playing starts.\n",
|
|
@@ -34433,7 +33969,7 @@
|
|
|
34433
33969
|
"optional": false,
|
|
34434
33970
|
"returnType": "void",
|
|
34435
33971
|
"typeParameters": [],
|
|
34436
|
-
"line":
|
|
33972
|
+
"line": 249,
|
|
34437
33973
|
"deprecated": false,
|
|
34438
33974
|
"deprecationMessage": "",
|
|
34439
33975
|
"rawdescription": "\n\nPauses the embedded banner video.\nTriggered via interaction (e.g., button).\n",
|
|
@@ -34445,7 +33981,7 @@
|
|
|
34445
33981
|
"optional": false,
|
|
34446
33982
|
"returnType": "void",
|
|
34447
33983
|
"typeParameters": [],
|
|
34448
|
-
"line":
|
|
33984
|
+
"line": 240,
|
|
34449
33985
|
"deprecated": false,
|
|
34450
33986
|
"deprecationMessage": "",
|
|
34451
33987
|
"rawdescription": "\n\nPlays the embedded banner video.\nTriggered via interaction (e.g., button).\n",
|
|
@@ -34524,7 +34060,7 @@
|
|
|
34524
34060
|
"description": "<p>Component representing a banner, which can contain image, video and call-to-action (CTA) links.\nAllows customization of layout, alignment, and appearance through inputs.</p>\n",
|
|
34525
34061
|
"rawdescription": "\n\nComponent representing a banner, which can contain image, video and call-to-action (CTA) links.\nAllows customization of layout, alignment, and appearance through inputs.\n",
|
|
34526
34062
|
"type": "component",
|
|
34527
|
-
"sourceCode": "import { NgTemplateOutlet } from '@angular/common';\nimport {\n AfterContentInit,\n Component,\n ContentChild,\n ContentChildren,\n DOCUMENT,\n ElementRef,\n HostBinding,\n Input,\n OnDestroy,\n QueryList,\n Renderer2,\n ViewChild,\n afterNextRender,\n booleanAttribute,\n forwardRef,\n inject,\n input,\n signal\n} from '@angular/core';\nimport { EuiAppShellService } from '@eui/core';\nimport { EUI_ECL_BUTTON, EclButtonComponent } from '@eui/ecl/components/ecl-button';\nimport { EUI_ECL_ICON } from '@eui/ecl/components/ecl-icon';\nimport { EclLinkDirective } from '@eui/ecl/components/ecl-link';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { Subject, auditTime, delay, distinctUntilChanged, fromEvent, map, takeUntil } from 'rxjs';\nimport { EclBannerImageDirective } from './ecl-banner-picture.directive';\nimport { EclBannerVideoDirective } from './ecl-banner-video.directive';\n\nconst enum DefaultRatio {\n XS = '6/1',\n S = '5/1',\n M = '4/1',\n L = '3/1',\n}\n\n/**\n * Component representing a banner, which can contain image, video and call-to-action (CTA) links.\n * Allows customization of layout, alignment, and appearance through inputs.\n */\n@Component({\n selector: 'ecl-banner',\n templateUrl: './ecl-banner.component.html',\n imports: [\n ...EUI_ECL_ICON,\n ...EUI_ECL_BUTTON,\n NgTemplateOutlet,\n ],\n})\nexport class EclBannerComponent extends ECLBaseDirective implements AfterContentInit, OnDestroy {\n el = inject(ElementRef);\n /**\n * Defines the size of the banner. Affects its height-to-width aspect ratio.\n * Allowed values: 'xs' | 's' | 'm' | 'l'.\n * Default: 'm'.\n */\n @Input() eclSize: 'xs'| 's' | 'm' | 'l' | string = 'm';\n\n /**\n * Defines the color of the font inside the banner content box.\n * Allowed values: 'light' | 'dark'.\n * Default: 'dark'.\n */\n @Input() fontColor: 'light' | 'dark' | string = 'dark';\n\n /**\n * Defines the font size inside the banner content box.\n * Allowed values: 'm' | 'l'.\n * Default: 'm'.\n */\n @Input() fontSize: 's' | 'm' | 'l' | string = 'm';\n\n fontWeight = input<'light' | 'bold'>('light');\n\n /**\n * Defines the background color of the banner content box.\n * Allowed values: 'none' | 'light' | 'dark'.\n * Default: 'light'.\n */\n @Input() boxBackground: 'none' | 'light' | 'dark' | string = 'light';\n\n /**\n * Sets the horizontal alignment of the content inside the banner.\n * Allowed values: 'left' | 'center' | 'right'.\n * Default: 'left'.\n */\n @Input() horizontalAlignment: 'right' | 'left' | 'center' | string = 'left';\n\n /**\n * Sets the vertical alignment of the content inside the banner.\n * Allowed values: 'top' | 'center' | 'bottom'.\n * Default: 'center'.\n */\n @Input() verticalAlignment: 'top' | 'center' | 'bottom' | string = 'center';\n\n /**\n * Sets the copyright text displayed in the banner.\n */\n @Input() copyright = '';\n\n /**\n * When true, the banner stretches to full width of its container.\n * Default: false.\n */\n @Input({ transform: booleanAttribute }) isFullWidth = false;\n\n hasOverlay = input(false, { transform: booleanAttribute });\n\n @ContentChildren(forwardRef(() => EclLinkDirective)) eclLinkComponents: QueryList<EclLinkDirective>;\n @ContentChild(EclBannerImageDirective) eclBannerImage: EclBannerImageDirective;\n @ContentChild(EclBannerVideoDirective) eclBannerVideo: EclBannerVideoDirective;\n\n @ViewChild('bannerFooter') bannerFooter: ElementRef;\n @ViewChild('bannerContainer') bannerContainer: ElementRef;\n @ViewChild('playBtn') playBtn: EclButtonComponent;\n @ViewChild('pauseBtn') pauseBtn: EclButtonComponent;\n\n @HostBinding('style.--banner-footer-height.px') bannerFooterHeight = null;\n @HostBinding('class')\n get cssClasses(): string {\n return [\n super.getCssClasses('ecl-banner'),\n `ecl-banner--${this.eclSize}`,\n `ecl-banner--font-${this.fontSize}`,\n `ecl-banner--box-bg-${this.boxBackground}`,\n `ecl-banner--h-${this.horizontalAlignment}`,\n `ecl-banner--v-${this.verticalAlignment}`,\n `ecl-banner--color-${this.fontColor}`,\n `ecl-banner--font-weight-${this.fontWeight()}`,\n this.isFullWidth ? 'ecl-banner--full-width' : '',\n !this.hasMedia ? 'ecl-banner--no-media' : '',\n this.hasOverlay() ? 'ecl-banner--overlay' : '',\n ]\n .join(' ')\n .trim();\n }\n\n isPlaying = signal(false);\n private readonly BANNER_PADDING = 16;\n private destroy$: Subject<boolean> = new Subject<boolean>();\n private breakpoint = 1140;\n private bannerVPadding = 8;\n private isTabletBreakpoint = true;\n private readonly TIMEOUT_INTERVAL = 200;\n private renderer = inject(Renderer2);\n private appShell = inject(EuiAppShellService);\n private maxIterations = 10;\n private readonly document = inject<Document>(DOCUMENT);\n private readonly window = this.document.defaultView; // Window | null\n\n constructor() {\n super();\n afterNextRender(() => {\n this.observeBreakpointChanges();\n this.observeElementSizeChanges();\n fromEvent(this.window, 'resize').pipe(\n auditTime(50),\n takeUntil(this.destroy$)).subscribe(() => {\n this.observeElementSizeChanges();\n });\n });\n }\n\n ngAfterContentInit(): void {\n if (this.eclLinkComponents) {\n this.eclLinkComponents.forEach((link) => {\n link.class = 'ecl-banner__link-cta';\n });\n }\n\n if (this.hasVideo) {\n const videoEl : HTMLVideoElement = this.eclBannerVideo.el.nativeElement;\n videoEl.addEventListener('play', () => {\n this.isPlaying.set(true);\n });\n videoEl.addEventListener('pause', () => {\n this.isPlaying.set(false);\n });\n this.renderer.setProperty(videoEl, 'muted', true);\n this.renderer.setProperty(videoEl, 'loop', true);\n this.renderer.setProperty(videoEl, 'autoplay', true);\n this.renderer.removeAttribute(videoEl, 'controls');\n }\n }\n\n ngOnDestroy(): void {\n this.destroy$.next(true);\n this.destroy$.unsubscribe();\n }\n\n /**\n * Indicates whether the banner contains at least one call-to-action link.\n */\n get hasCtaLink(): boolean {\n return this.eclLinkComponents.length > 0;\n }\n\n /**\n * Indicates whether the banner contains an image.\n */\n get hasImage(): boolean {\n return !!this.eclBannerImage;\n }\n\n /**\n * Indicates whether the banner contains a video.\n */\n get hasVideo(): boolean {\n return !!this.eclBannerVideo;\n }\n\n /**\n * Indicates whether the banner contains any media (image or video).\n */\n get hasMedia(): boolean {\n return this.hasImage || this.hasVideo;\n }\n\n /**\n * Handles keyboard activation (Enter key) to play video.\n * Moves focus to pause button after playing starts.\n */\n onKeydownEnterPlay(): void {\n this.onVideoPlay();\n setTimeout(() => this.pauseBtn.onFocus());\n }\n\n /**\n * Handles keyboard activation (Enter key) to pause video.\n * Moves focus to play button after pausing.\n */\n onKeydownEnterPause(): void {\n this.onVideoPause();\n setTimeout(() => this.playBtn.onFocus());\n }\n\n /**\n * Plays the embedded banner video.\n * Triggered via interaction (e.g., button).\n */\n onVideoPlay(): void {\n const videoEl : HTMLVideoElement = this.eclBannerVideo.el.nativeElement;\n videoEl.play();\n }\n\n /**\n * Pauses the embedded banner video.\n * Triggered via interaction (e.g., button).\n */\n onVideoPause(): void {\n const videoEl : HTMLVideoElement = this.eclBannerVideo.el.nativeElement;\n videoEl.pause();\n }\n\n private observeElementSizeChanges(): void {\n setTimeout(() => {\n this.checkViewport();\n }, this.TIMEOUT_INTERVAL);\n }\n\n private checkViewport() {\n if (window.innerWidth > this.breakpoint) {\n this.setBannerHeight();\n } else {\n this.resetBannerHeight();\n }\n }\n\n private waitForAspectRatioToBeDefined(attemptCounter: number) {\n attemptCounter = attemptCounter + 1;\n const aspectRatio = window.getComputedStyle(this.el.nativeElement).getPropertyValue('--css-aspect-ratio');\n\n if (\n (typeof aspectRatio === 'undefined' || aspectRatio === '') &&\n this.maxIterations > attemptCounter\n ) {\n setTimeout(() => this.waitForAspectRatioToBeDefined(attemptCounter), 100);\n } else {\n this.setHeight(aspectRatio);\n }\n }\n\n private setBannerHeight(): void {\n if (this.hasMedia) {\n this.waitForAspectRatioToBeDefined(0);\n } else {\n this.setHeight(this.getDefaultRatio());\n }\n }\n\n private setHeight(ratio) {\n if (this.bannerContainer) {\n const bannerHeight = this.bannerContainer.nativeElement.offsetHeight + 2*this.bannerVPadding;\n const bannerWidth = parseInt(window.getComputedStyle(this.el.nativeElement).getPropertyValue('width'), 10);\n const [denominator, numerator] = ratio.split('/').map(Number);\n const currentHeight = (bannerWidth * numerator) / denominator;\n if (bannerHeight > currentHeight) {\n this.renderer.setStyle(this.el.nativeElement, 'aspect-ratio', 'auto');\n this.renderer.setStyle(this.el.nativeElement, 'height', `${bannerHeight}px`);\n } else {\n this.resetBannerHeight();\n }\n }\n\n // Add margin to the banner container when there is a footer\n // This is needed to keep the vertical alignment\n if (this.bannerFooter) {\n this.bannerFooterHeight = this.bannerFooter.nativeElement.offsetHeight;\n // this.renderer.setStyle(this.el.nativeElement, '--banner-footer-height', `${this.bannerFooter.nativeElement.offsetHeight}px`);\n }\n }\n\n private resetBannerHeight(): void {\n // remove aspect-ratio\n this.renderer.removeStyle(this.el.nativeElement, 'aspect-ratio');\n\n // set height to auto\n this.renderer.setStyle(this.el.nativeElement, 'height', 'auto');\n\n // update footer height if bannerFooter exists\n if (this.bannerFooter) {\n // const footerHeight = `${this.bannerFooter.nativeElement.offsetHeight}px`;\n this.bannerFooterHeight = this.bannerFooter.nativeElement.offsetHeight;\n // this.renderer.setStyle(this.el.nativeElement, '--banner-footer-height', footerHeight);\n }\n }\n\n private getDefaultRatio(): string {\n switch(this.eclSize) {\n case 'xs': {\n return DefaultRatio.XS;\n }\n case 's': {\n return DefaultRatio.S;\n }\n case 'l': {\n return DefaultRatio.L;\n }\n default: {\n return DefaultRatio.M;\n }\n }\n }\n\n private observeBreakpointChanges(): void {\n this.appShell.getState<any>('breakpoints')\n .pipe(\n map(bp => !!(bp?.isMobile || bp?.isTablet)), // xs/sm/md (< 996px)\n distinctUntilChanged(),\n delay(this.TIMEOUT_INTERVAL),\n takeUntil(this.destroy$),\n )\n .subscribe((isBelowLg) => {\n this.isTabletBreakpoint = isBelowLg;\n if (!this.isTabletBreakpoint) {\n this.setBannerHeight();\n }\n });\n }\n}\n",
|
|
34063
|
+
"sourceCode": "import { NgTemplateOutlet } from '@angular/common';\nimport {\n AfterContentInit,\n Component,\n ContentChild,\n ContentChildren,\n DOCUMENT,\n ElementRef,\n HostBinding,\n Input,\n OnDestroy,\n QueryList,\n Renderer2,\n ViewChild,\n afterNextRender,\n booleanAttribute,\n forwardRef,\n inject,\n input,\n signal\n} from '@angular/core';\nimport { EuiAppShellService } from '@eui/core';\nimport { EUI_ECL_BUTTON, EclButtonComponent } from '@eui/ecl/components/ecl-button';\nimport { EUI_ECL_ICON } from '@eui/ecl/components/ecl-icon';\nimport { EclLinkDirective } from '@eui/ecl/components/ecl-link';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { Subject, debounceTime, delay, distinctUntilChanged, fromEvent, map, takeUntil } from 'rxjs';\nimport { EclBannerImageDirective } from './ecl-banner-picture.directive';\nimport { EclBannerVideoDirective } from './ecl-banner-video.directive';\n\nconst enum DefaultRatio {\n XS = '6/1',\n S = '5/1',\n M = '4/1',\n L = '3/1',\n}\n\n/**\n * Component representing a banner, which can contain image, video and call-to-action (CTA) links.\n * Allows customization of layout, alignment, and appearance through inputs.\n */\n@Component({\n selector: 'ecl-banner',\n templateUrl: './ecl-banner.component.html',\n imports: [\n ...EUI_ECL_ICON,\n ...EUI_ECL_BUTTON,\n NgTemplateOutlet,\n ],\n})\nexport class EclBannerComponent extends ECLBaseDirective implements AfterContentInit, OnDestroy {\n el = inject(ElementRef);\n /**\n * Defines the size of the banner. Affects its height-to-width aspect ratio.\n * Allowed values: 'xs' | 's' | 'm' | 'l'.\n * Default: 'm'.\n */\n @Input() eclSize: 'xs'| 's' | 'm' | 'l' | string = 'm';\n\n /**\n * Defines the color of the font inside the banner content box.\n * Allowed values: 'light' | 'dark'.\n * Default: 'dark'.\n */\n @Input() fontColor: 'light' | 'dark' | string = 'dark';\n\n /**\n * Defines the font size inside the banner content box.\n * Allowed values: 'm' | 'l'.\n * Default: 'm'.\n */\n @Input() fontSize: 's' | 'm' | 'l' | string = 'm';\n\n fontWeight = input<'light' | 'bold'>('light');\n\n /**\n * Defines the background color of the banner content box.\n * Allowed values: 'none' | 'light' | 'dark'.\n * Default: 'light'.\n */\n @Input() boxBackground: 'none' | 'light' | 'dark' | string = 'light';\n\n /**\n * Sets the horizontal alignment of the content inside the banner.\n * Allowed values: 'left' | 'center' | 'right'.\n * Default: 'left'.\n */\n @Input() horizontalAlignment: 'right' | 'left' | 'center' | string = 'left';\n\n /**\n * Sets the vertical alignment of the content inside the banner.\n * Allowed values: 'top' | 'center' | 'bottom'.\n * Default: 'center'.\n */\n @Input() verticalAlignment: 'top' | 'center' | 'bottom' | string = 'center';\n\n /**\n * Sets the copyright text displayed in the banner.\n */\n @Input() copyright = '';\n\n /**\n * When true, the banner stretches to full width of its container.\n * Default: false.\n */\n @Input({ transform: booleanAttribute }) isFullWidth = false;\n\n hasOverlay = input(false, { transform: booleanAttribute });\n\n @ContentChildren(forwardRef(() => EclLinkDirective)) eclLinkComponents: QueryList<EclLinkDirective>;\n @ContentChild(EclBannerImageDirective) eclBannerImage: EclBannerImageDirective;\n @ContentChild(EclBannerVideoDirective) eclBannerVideo: EclBannerVideoDirective;\n\n @ViewChild('bannerFooter') bannerFooter: ElementRef;\n @ViewChild('bannerContainer') bannerContainer: ElementRef;\n @ViewChild('playBtn') playBtn: EclButtonComponent;\n @ViewChild('pauseBtn') pauseBtn: EclButtonComponent;\n\n @HostBinding('style.--banner-footer-height.px') bannerFooterHeight = null;\n @HostBinding('class')\n get cssClasses(): string {\n return [\n super.getCssClasses('ecl-banner'),\n `ecl-banner--${this.eclSize}`,\n `ecl-banner--font-${this.fontSize}`,\n `ecl-banner--box-bg-${this.boxBackground}`,\n `ecl-banner--h-${this.horizontalAlignment}`,\n `ecl-banner--v-${this.verticalAlignment}`,\n `ecl-banner--color-${this.fontColor}`,\n `ecl-banner--font-weight-${this.fontWeight()}`,\n this.isFullWidth ? 'ecl-banner--full-width' : '',\n !this.hasMedia ? 'ecl-banner--no-media' : '',\n this.hasOverlay() ? 'ecl-banner--overlay' : '',\n ]\n .join(' ')\n .trim();\n }\n\n isPlaying = signal(true);\n private destroy$: Subject<boolean> = new Subject<boolean>();\n private breakpoint = 996;\n private bannerVPadding = 8;\n private readonly TIMEOUT_INTERVAL = 200;\n private renderer = inject(Renderer2);\n private appShell = inject(EuiAppShellService);\n private maxIterations = 10;\n private readonly document = inject<Document>(DOCUMENT);\n private readonly window = this.document.defaultView; // Window | null\n\n constructor() {\n super();\n afterNextRender(() => {\n this.observeBreakpointChanges();\n this.checkViewport();\n fromEvent(this.window, 'resize').pipe(\n debounceTime(this.TIMEOUT_INTERVAL),\n takeUntil(this.destroy$)).subscribe(() => {\n this.checkViewport();\n });\n });\n }\n\n ngAfterContentInit(): void {\n if (this.eclLinkComponents) {\n this.eclLinkComponents.forEach((link) => {\n link.class = 'ecl-banner__link-cta';\n });\n }\n\n if (this.hasVideo) {\n const videoEl : HTMLVideoElement = this.eclBannerVideo.el.nativeElement;\n videoEl.addEventListener('play', () => {\n this.isPlaying.set(true);\n });\n videoEl.addEventListener('pause', () => {\n this.isPlaying.set(false);\n });\n this.renderer.setProperty(videoEl, 'muted', true);\n this.renderer.setProperty(videoEl, 'loop', true);\n this.renderer.setProperty(videoEl, 'autoplay', true);\n this.renderer.removeAttribute(videoEl, 'controls');\n }\n }\n\n ngOnDestroy(): void {\n this.destroy$.next(true);\n this.destroy$.unsubscribe();\n }\n\n /**\n * Indicates whether the banner contains at least one call-to-action link.\n */\n get hasCtaLink(): boolean {\n return this.eclLinkComponents.length > 0;\n }\n\n /**\n * Indicates whether the banner contains an image.\n */\n get hasImage(): boolean {\n return !!this.eclBannerImage;\n }\n\n /**\n * Indicates whether the banner contains a video.\n */\n get hasVideo(): boolean {\n return !!this.eclBannerVideo;\n }\n\n /**\n * Indicates whether the banner contains any media (image or video).\n */\n get hasMedia(): boolean {\n return this.hasImage || this.hasVideo;\n }\n\n /**\n * Handles keyboard activation (Enter key) to play video.\n * Moves focus to pause button after playing starts.\n */\n onKeydownEnterPlay(): void {\n this.onVideoPlay();\n setTimeout(() => this.pauseBtn.onFocus());\n }\n\n /**\n * Handles keyboard activation (Enter key) to pause video.\n * Moves focus to play button after pausing.\n */\n onKeydownEnterPause(): void {\n this.onVideoPause();\n setTimeout(() => this.playBtn.onFocus());\n }\n\n /**\n * Plays the embedded banner video.\n * Triggered via interaction (e.g., button).\n */\n onVideoPlay(): void {\n const videoEl : HTMLVideoElement = this.eclBannerVideo.el.nativeElement;\n videoEl.play();\n }\n\n /**\n * Pauses the embedded banner video.\n * Triggered via interaction (e.g., button).\n */\n onVideoPause(): void {\n const videoEl : HTMLVideoElement = this.eclBannerVideo.el.nativeElement;\n videoEl.pause();\n }\n\n private checkViewport() {\n if (window.innerWidth > this.breakpoint) {\n this.setBannerHeight();\n } else {\n this.resetBannerHeight();\n }\n }\n\n private waitForAspectRatioToBeDefined(attemptCounter: number) {\n attemptCounter = attemptCounter + 1;\n const aspectRatio = window.getComputedStyle(this.el.nativeElement).getPropertyValue('--css-aspect-ratio');\n\n if (\n (typeof aspectRatio === 'undefined' || aspectRatio === '') &&\n this.maxIterations > attemptCounter\n ) {\n setTimeout(() => this.waitForAspectRatioToBeDefined(attemptCounter), 100);\n } else {\n this.setHeight(aspectRatio || this.getDefaultRatio());\n }\n }\n\n private setBannerHeight(): void {\n if (this.hasMedia) {\n const aspectRatio = window.getComputedStyle(this.el.nativeElement).getPropertyValue('--css-aspect-ratio');\n if (aspectRatio) {\n this.setHeight(aspectRatio);\n } else {\n this.waitForAspectRatioToBeDefined(0);\n }\n } else {\n this.setHeight(this.getDefaultRatio());\n }\n }\n\n private setHeight(ratio: string) {\n if (this.bannerContainer) {\n const bannerHeight = this.bannerContainer.nativeElement.offsetHeight + 2*this.bannerVPadding;\n const bannerWidth = parseInt(window.getComputedStyle(this.el.nativeElement).getPropertyValue('width'), 10);\n const [denominator, numerator] = ratio.split('/').map(Number);\n const currentHeight = (bannerWidth * numerator) / denominator;\n if (bannerHeight > currentHeight) {\n this.renderer.setStyle(this.el.nativeElement, 'aspect-ratio', 'auto');\n this.renderer.setStyle(this.el.nativeElement, 'height', `${bannerHeight}px`);\n } else {\n this.resetBannerHeight();\n }\n }\n\n // Add margin to the banner container when there is a footer\n // This is needed to keep the vertical alignment\n if (this.bannerFooter) {\n this.bannerFooterHeight = this.bannerFooter.nativeElement.offsetHeight;\n }\n }\n\n private resetBannerHeight(): void {\n // remove aspect-ratio\n this.renderer.removeStyle(this.el.nativeElement, 'aspect-ratio');\n\n // set height to auto\n this.renderer.setStyle(this.el.nativeElement, 'height', 'auto');\n\n // update footer height if bannerFooter exists\n if (this.bannerFooter) {\n this.bannerFooterHeight = this.bannerFooter.nativeElement.offsetHeight;\n }\n }\n\n private getDefaultRatio(): string {\n switch(this.eclSize) {\n case 'xs': {\n return DefaultRatio.XS;\n }\n case 's': {\n return DefaultRatio.S;\n }\n case 'l': {\n return DefaultRatio.L;\n }\n default: {\n return DefaultRatio.M;\n }\n }\n }\n\n private observeBreakpointChanges(): void {\n this.appShell.getState<any>('breakpoints')\n .pipe(\n map(bp => !!(bp?.isMobile || bp?.isTablet)), // xs/sm/md (< 996px)\n distinctUntilChanged(),\n delay(this.TIMEOUT_INTERVAL),\n takeUntil(this.destroy$),\n )\n .subscribe((isBelowLg) => {\n if (!isBelowLg) {\n this.setBannerHeight();\n }\n });\n }\n}\n",
|
|
34528
34064
|
"assetsDirs": [],
|
|
34529
34065
|
"styleUrlsData": "",
|
|
34530
34066
|
"stylesData": "",
|
|
@@ -34534,7 +34070,7 @@
|
|
|
34534
34070
|
"deprecated": false,
|
|
34535
34071
|
"deprecationMessage": "",
|
|
34536
34072
|
"args": [],
|
|
34537
|
-
"line":
|
|
34073
|
+
"line": 148
|
|
34538
34074
|
},
|
|
34539
34075
|
"extends": [
|
|
34540
34076
|
"ECLBaseDirective"
|
|
@@ -34559,7 +34095,7 @@
|
|
|
34559
34095
|
"name": "hasCtaLink",
|
|
34560
34096
|
"type": "boolean",
|
|
34561
34097
|
"returnType": "boolean",
|
|
34562
|
-
"line":
|
|
34098
|
+
"line": 193,
|
|
34563
34099
|
"rawdescription": "\n\nIndicates whether the banner contains at least one call-to-action link.\n",
|
|
34564
34100
|
"description": "<p>Indicates whether the banner contains at least one call-to-action link.</p>\n"
|
|
34565
34101
|
}
|
|
@@ -34570,7 +34106,7 @@
|
|
|
34570
34106
|
"name": "hasImage",
|
|
34571
34107
|
"type": "boolean",
|
|
34572
34108
|
"returnType": "boolean",
|
|
34573
|
-
"line":
|
|
34109
|
+
"line": 200,
|
|
34574
34110
|
"rawdescription": "\n\nIndicates whether the banner contains an image.\n",
|
|
34575
34111
|
"description": "<p>Indicates whether the banner contains an image.</p>\n"
|
|
34576
34112
|
}
|
|
@@ -34581,7 +34117,7 @@
|
|
|
34581
34117
|
"name": "hasVideo",
|
|
34582
34118
|
"type": "boolean",
|
|
34583
34119
|
"returnType": "boolean",
|
|
34584
|
-
"line":
|
|
34120
|
+
"line": 207,
|
|
34585
34121
|
"rawdescription": "\n\nIndicates whether the banner contains a video.\n",
|
|
34586
34122
|
"description": "<p>Indicates whether the banner contains a video.</p>\n"
|
|
34587
34123
|
}
|
|
@@ -34592,13 +34128,13 @@
|
|
|
34592
34128
|
"name": "hasMedia",
|
|
34593
34129
|
"type": "boolean",
|
|
34594
34130
|
"returnType": "boolean",
|
|
34595
|
-
"line":
|
|
34131
|
+
"line": 214,
|
|
34596
34132
|
"rawdescription": "\n\nIndicates whether the banner contains any media (image or video).\n",
|
|
34597
34133
|
"description": "<p>Indicates whether the banner contains any media (image or video).</p>\n"
|
|
34598
34134
|
}
|
|
34599
34135
|
}
|
|
34600
34136
|
},
|
|
34601
|
-
"templateData": "@if(hasImage) {\n<figure class=\"ecl-banner__picture-container\">\n <ng-content select=\"[eclBannerPicture]\"></ng-content>\n @if(copyright) {\n <ng-container *ngTemplateOutlet=\"bannerFooterTemplate\"></ng-container>\n }\n</figure>\n}\n\n@if(hasVideo) {\n<div class=\"ecl-banner__video-container\">\n <ng-content select=\"[eclBannerVideo]\"></ng-content>\n @if(copyright) {\n <ng-container *ngTemplateOutlet=\"bannerFooterTemplate\"></ng-container>\n }\n <button #playBtn eclButton variant=\"tertiary\" isIconOnly class=\"ecl-banner__play\" (click)=\"onVideoPlay()\"\n [style.display]=\"isPlaying() ? 'none' : '
|
|
34137
|
+
"templateData": "@if(hasImage) {\n<figure class=\"ecl-banner__picture-container\">\n <ng-content select=\"[eclBannerPicture]\"></ng-content>\n @if(copyright) {\n <ng-container *ngTemplateOutlet=\"bannerFooterTemplate\"></ng-container>\n }\n</figure>\n}\n\n@if(hasVideo) {\n<div class=\"ecl-banner__video-container\">\n <ng-content select=\"[eclBannerVideo]\"></ng-content>\n @if(copyright) {\n <ng-container *ngTemplateOutlet=\"bannerFooterTemplate\"></ng-container>\n }\n <button #playBtn eclButton variant=\"tertiary\" isIconOnly class=\"ecl-banner__play\" (click)=\"onVideoPlay()\"\n [style.display]=\"isPlaying() ? 'none' : 'flex'\" (keydown.enter)=\"onKeydownEnterPlay()\">\n <span eclButtonLabel>Play video</span>\n <ecl-icon icon=\"play-outline\" size=\"m\"></ecl-icon>\n </button>\n <button #pauseBtn eclButton variant=\"tertiary\" isIconOnly class=\"ecl-banner__pause\" (click)=\"onVideoPause()\"\n [style.display]=\"isPlaying() ? 'flex' : 'none'\" (keydown.enter)=\"onKeydownEnterPause()\">\n <span eclButtonLabel>Pause video</span>\n <ecl-icon icon=\"pause-outline\" size=\"m\"></ecl-icon>\n </button>\n</div>\n}\n<div class=\"ecl-container ecl-banner__info\">\n <div #bannerContainer class=\"ecl-banner__container \">\n <div class=\"ecl-banner__content\">\n <ng-content select=\"[eclBannerTitle]\"></ng-content>\n <ng-content select=\"[eclBannerDescription]\"></ng-content>\n @if (hasCtaLink) {\n <div class=\"ecl-banner__cta\">\n <ng-content select=\"[eclLink]\"></ng-content>\n </div>\n }\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n\n<ng-template #bannerFooterTemplate>\n <footer #bannerFooter class=\"ecl-banner__credit\"><div class=\"ecl-container\">© {{copyright}}</div></footer>\n</ng-template>"
|
|
34602
34138
|
},
|
|
34603
34139
|
{
|
|
34604
34140
|
"name": "EclBlockquoteComponent",
|
|
@@ -73829,7 +73365,7 @@
|
|
|
73829
73365
|
"deprecated": false,
|
|
73830
73366
|
"deprecationMessage": "",
|
|
73831
73367
|
"type": "unknown",
|
|
73832
|
-
"defaultValue": "[\n
|
|
73368
|
+
"defaultValue": "[\n EclAccordionContentDirective,\n EclAccordionItemDirective,\n EclAccordionSummaryComponent,\n EclAccordionDirective,\n] as const"
|
|
73833
73369
|
},
|
|
73834
73370
|
{
|
|
73835
73371
|
"name": "EUI_ECL_ADD_TO_CALENDAR",
|
|
@@ -75070,7 +74606,7 @@
|
|
|
75070
74606
|
"deprecated": false,
|
|
75071
74607
|
"deprecationMessage": "",
|
|
75072
74608
|
"type": "unknown",
|
|
75073
|
-
"defaultValue": "[\n
|
|
74609
|
+
"defaultValue": "[\n EclAccordionContentDirective,\n EclAccordionItemDirective,\n EclAccordionSummaryComponent,\n EclAccordionDirective,\n] as const"
|
|
75074
74610
|
}
|
|
75075
74611
|
],
|
|
75076
74612
|
"packages/ecl/components/ecl-add-to-calendar/index.ts": [
|