@eui/ecl 21.2.0 → 21.2.1-snapshot-1773486331544
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 +74 -0
- package/docs/components/EclCarouselComponent.html +1 -1
- package/docs/directives/EclLinkDirective.html +1 -1
- package/docs/directives/EclSiteHeaderCustomActionLinkDirective.html +4 -10
- package/docs/js/search/search_index.js +2 -2
- package/docs/json/documentation.json +34 -42
- package/docs/properties.html +1 -1
- package/fesm2022/eui-ecl-components-ecl-carousel.mjs +2 -2
- package/fesm2022/eui-ecl-components-ecl-carousel.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-link.mjs +7 -6
- package/fesm2022/eui-ecl-components-ecl-link.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-site-header.mjs +13 -17
- package/fesm2022/eui-ecl-components-ecl-site-header.mjs.map +1 -1
- package/package.json +2 -2
- package/types/eui-ecl-components-ecl-link.d.ts +1 -2
- package/types/eui-ecl-components-ecl-link.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-site-header.d.ts +1 -1
- package/types/eui-ecl-components-ecl-site-header.d.ts.map +1 -1
|
@@ -16585,12 +16585,12 @@
|
|
|
16585
16585
|
},
|
|
16586
16586
|
{
|
|
16587
16587
|
"name": "EclLinkDirective",
|
|
16588
|
-
"id": "directive-EclLinkDirective-
|
|
16588
|
+
"id": "directive-EclLinkDirective-31881d0e6c7900a91095308f3ea12f2bab4543c107d2bf036c0f4c10fd5645d405c62a9c3d577560b620d5c269376f34890d3ffcea49789f06585df386f956fd",
|
|
16589
16589
|
"file": "packages/ecl/components/ecl-link/ecl-link.directive.ts",
|
|
16590
16590
|
"type": "directive",
|
|
16591
16591
|
"description": "<p>'eclLink' directive is used to add some styling to the defalt HTML anchor component. In order to comply with ECL standards.</p>\n",
|
|
16592
16592
|
"rawdescription": "\n\n'eclLink' directive is used to add some styling to the defalt HTML anchor component. In order to comply with ECL standards.\n",
|
|
16593
|
-
"sourceCode": "import { AfterContentInit, booleanAttribute, ChangeDetectorRef, contentChildren, Directive, ElementRef, HostBinding, inject, input, Renderer2, effect, computed } from '@angular/core';\nimport { EclIconComponent } from '@eui/ecl/components/ecl-icon';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * 'eclLink' directive is used to add some styling to the defalt HTML anchor component. In order to comply with ECL standards.\n */\n@Directive({\n selector: '[eclLink]',\n})\nexport class EclLinkDirective extends ECLBaseDirective implements AfterContentInit {\n el = inject(ElementRef);\n renderer = inject(Renderer2);\n cd = inject(ChangeDetectorRef);\n\n /**\n * Additional HTML attributes to be set on the link element.\n * Used e.g. by social-media-follow for passing extra_attributes.\n */\n extraAttributes = input<{ name: string; value?: string | null }[] | undefined>();\n\n /**\n * Property to style the component as 'inverted' (with dark background). Can be used alone or with 'standalone' variant.\n */\n isInverted = input(false, { transform: booleanAttribute });\n\n /**\n * Property to style the component if it consist only of an icon.\n */\n isIconOnly = input(false, { transform: booleanAttribute });\n\n /** Adds class for hightlighted link (works only with 'primary' variant) \n * @deprecated - to be removed in v23. Use variant='primary-highlight', as only primary variant can be highlighted.\n */\n isHighlight = input(false, { transform: booleanAttribute });\n \n /**\n * @deprecated - will be removed in v21. Deprecated on ECL side.\n */\n isNoVisited = input(false, { transform: booleanAttribute });\n\n /**\n * With 'variant' property user can add some more specific styling to the <a> component.\n */\n variant = input<'standalone' | 'primary' | 'secondary' | 'primary-neutral' | 'primary-highlight'>();\n\n eclIconComponents = contentChildren(EclIconComponent);\n\n constructor() {\n super();\n effect(() => {\n const attrs = this.extraAttributes();\n if (attrs && attrs.length) {\n attrs.forEach((attr) => {\n if (attr?.name) {\n this.el.nativeElement.setAttribute(attr.name, attr.value ?? '');\n }\n });\n }\n });\n }\n\n @HostBinding('class.ecl-link--inverted')\n get hostIsInverted(): boolean {\n return this.isInverted();\n }\n\n @HostBinding('class.ecl-link--icon-only')\n get hostIsIconOnly(): boolean {\n return this.isIconOnly();\n }\n\n @HostBinding('class.ecl-link--icon')\n hasIcon = computed(() => {\n return this.eclIconComponents()?.length > 0 && !this.isIconOnly();\n })\n\n /**\n * Adds speific ECL classes to the <a> component.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-link'), \n this.variant() ? `ecl-link--${this.variant()}` : '',\n (this.variant() === 'primary' && this.isHighlight()) ? 'ecl-link--primary-highlight' : '',\n ].join(' ').trim();\n }\n\n ngAfterContentInit(): void {\n // Add additional class to the child icon, if any.\n if (this.eclIconComponents()) {\n setTimeout(() => {\n this.eclIconComponents().forEach((icn) => {\n
|
|
16593
|
+
"sourceCode": "import { AfterContentInit, booleanAttribute, ChangeDetectorRef, contentChildren, Directive, ElementRef, HostBinding, inject, input, Renderer2, effect, computed, forwardRef } from '@angular/core';\nimport { EclIconComponent } from '@eui/ecl/components/ecl-icon';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * 'eclLink' directive is used to add some styling to the defalt HTML anchor component. In order to comply with ECL standards.\n */\n@Directive({\n selector: '[eclLink]',\n})\nexport class EclLinkDirective extends ECLBaseDirective implements AfterContentInit {\n el = inject(ElementRef);\n renderer = inject(Renderer2);\n cd = inject(ChangeDetectorRef);\n\n /**\n * Additional HTML attributes to be set on the link element.\n * Used e.g. by social-media-follow for passing extra_attributes.\n */\n extraAttributes = input<{ name: string; value?: string | null }[] | undefined>();\n\n /**\n * Property to style the component as 'inverted' (with dark background). Can be used alone or with 'standalone' variant.\n */\n isInverted = input(false, { transform: booleanAttribute });\n\n /**\n * Property to style the component if it consist only of an icon.\n */\n isIconOnly = input(false, { transform: booleanAttribute });\n\n /** Adds class for hightlighted link (works only with 'primary' variant) \n * @deprecated - to be removed in v23. Use variant='primary-highlight', as only primary variant can be highlighted.\n */\n isHighlight = input(false, { transform: booleanAttribute });\n \n /**\n * @deprecated - will be removed in v21. Deprecated on ECL side.\n */\n isNoVisited = input(false, { transform: booleanAttribute });\n\n /**\n * With 'variant' property user can add some more specific styling to the <a> component.\n */\n variant = input<'standalone' | 'primary' | 'secondary' | 'primary-neutral' | 'primary-highlight'>();\n\n eclIconComponents = contentChildren(forwardRef(() => EclIconComponent), { descendants: true });\n\n constructor() {\n super();\n effect(() => {\n const attrs = this.extraAttributes();\n if (attrs && attrs.length) {\n attrs.forEach((attr) => {\n if (attr?.name) {\n this.el.nativeElement.setAttribute(attr.name, attr.value ?? '');\n }\n });\n }\n });\n }\n\n @HostBinding('class.ecl-link--inverted')\n get hostIsInverted(): boolean {\n return this.isInverted();\n }\n\n @HostBinding('class.ecl-link--icon-only')\n get hostIsIconOnly(): boolean {\n return this.isIconOnly();\n }\n\n @HostBinding('class.ecl-link--icon')\n hasIcon = computed(() => {\n return this.eclIconComponents()?.length > 0 && !this.isIconOnly();\n })\n\n /**\n * Adds speific ECL classes to the <a> component.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-link'), \n this.variant() ? `ecl-link--${this.variant()}` : '',\n (this.variant() === 'primary' && this.isHighlight()) ? 'ecl-link--primary-highlight' : '',\n ].join(' ').trim();\n }\n\n ngAfterContentInit(): void {\n // Add additional class to the child icon, if any.\n if (this.eclIconComponents()?.length > 0 ) {\n setTimeout(() => {\n this.eclIconComponents().forEach((icn) => {\n console.log('adding extra class', icn);\n icn.addExtraClass('ecl-link__icon');\n });\n this.cd.markForCheck();\n });\n }\n }\n\n /**\n * Calls the native focus() method of the default HTML element.\n */\n onFocus(): void {\n this.el.nativeElement.focus();\n }\n\n /**\n * Calls the native click() method of the default HTML element.\n */\n onClick(): void {\n this.el.nativeElement.click();\n }\n\n /**\n * Calls the native blur() method of the default HTML element.\n */\n onBlur(): void {\n this.el.nativeElement.blur();\n }\n}\n",
|
|
16594
16594
|
"selector": "[eclLink]",
|
|
16595
16595
|
"providers": [],
|
|
16596
16596
|
"hostDirectives": [],
|
|
@@ -16620,16 +16620,16 @@
|
|
|
16620
16620
|
"rawdescription": "\nAdds class for hightlighted link (works only with 'primary' variant)\n",
|
|
16621
16621
|
"jsdoctags": [
|
|
16622
16622
|
{
|
|
16623
|
-
"pos":
|
|
16624
|
-
"end":
|
|
16623
|
+
"pos": 1355,
|
|
16624
|
+
"end": 1472,
|
|
16625
16625
|
"kind": 332,
|
|
16626
16626
|
"id": 0,
|
|
16627
16627
|
"flags": 16842752,
|
|
16628
16628
|
"modifierFlagsCache": 0,
|
|
16629
16629
|
"transformFlags": 0,
|
|
16630
16630
|
"tagName": {
|
|
16631
|
-
"pos":
|
|
16632
|
-
"end":
|
|
16631
|
+
"pos": 1356,
|
|
16632
|
+
"end": 1366,
|
|
16633
16633
|
"kind": 80,
|
|
16634
16634
|
"id": 0,
|
|
16635
16635
|
"flags": 16842752,
|
|
@@ -16677,16 +16677,16 @@
|
|
|
16677
16677
|
"rawdescription": "\n\n",
|
|
16678
16678
|
"jsdoctags": [
|
|
16679
16679
|
{
|
|
16680
|
-
"pos":
|
|
16681
|
-
"end":
|
|
16680
|
+
"pos": 1560,
|
|
16681
|
+
"end": 1627,
|
|
16682
16682
|
"kind": 332,
|
|
16683
16683
|
"id": 0,
|
|
16684
16684
|
"flags": 16842752,
|
|
16685
16685
|
"modifierFlagsCache": 0,
|
|
16686
16686
|
"transformFlags": 0,
|
|
16687
16687
|
"tagName": {
|
|
16688
|
-
"pos":
|
|
16689
|
-
"end":
|
|
16688
|
+
"pos": 1561,
|
|
16689
|
+
"end": 1571,
|
|
16690
16690
|
"kind": 80,
|
|
16691
16691
|
"id": 0,
|
|
16692
16692
|
"flags": 16842752,
|
|
@@ -16800,7 +16800,7 @@
|
|
|
16800
16800
|
},
|
|
16801
16801
|
{
|
|
16802
16802
|
"name": "eclIconComponents",
|
|
16803
|
-
"defaultValue": "contentChildren(EclIconComponent)",
|
|
16803
|
+
"defaultValue": "contentChildren(forwardRef(() => EclIconComponent), { descendants: true })",
|
|
16804
16804
|
"deprecated": false,
|
|
16805
16805
|
"deprecationMessage": "",
|
|
16806
16806
|
"type": "unknown",
|
|
@@ -16869,7 +16869,7 @@
|
|
|
16869
16869
|
"optional": false,
|
|
16870
16870
|
"returnType": "void",
|
|
16871
16871
|
"typeParameters": [],
|
|
16872
|
-
"line":
|
|
16872
|
+
"line": 119,
|
|
16873
16873
|
"deprecated": false,
|
|
16874
16874
|
"deprecationMessage": "",
|
|
16875
16875
|
"rawdescription": "\n\nCalls the native blur() method of the default HTML element.\n",
|
|
@@ -16881,7 +16881,7 @@
|
|
|
16881
16881
|
"optional": false,
|
|
16882
16882
|
"returnType": "void",
|
|
16883
16883
|
"typeParameters": [],
|
|
16884
|
-
"line":
|
|
16884
|
+
"line": 112,
|
|
16885
16885
|
"deprecated": false,
|
|
16886
16886
|
"deprecationMessage": "",
|
|
16887
16887
|
"rawdescription": "\n\nCalls the native click() method of the default HTML element.\n",
|
|
@@ -16893,7 +16893,7 @@
|
|
|
16893
16893
|
"optional": false,
|
|
16894
16894
|
"returnType": "void",
|
|
16895
16895
|
"typeParameters": [],
|
|
16896
|
-
"line":
|
|
16896
|
+
"line": 105,
|
|
16897
16897
|
"deprecated": false,
|
|
16898
16898
|
"deprecationMessage": "",
|
|
16899
16899
|
"rawdescription": "\n\nCalls the native focus() method of the default HTML element.\n",
|
|
@@ -27016,12 +27016,12 @@
|
|
|
27016
27016
|
},
|
|
27017
27017
|
{
|
|
27018
27018
|
"name": "EclSiteHeaderCustomActionContentDirective",
|
|
27019
|
-
"id": "directive-EclSiteHeaderCustomActionContentDirective-
|
|
27019
|
+
"id": "directive-EclSiteHeaderCustomActionContentDirective-39d7dd2e5e2136096090862d3afe8586965b84ec9838946c8b1fc1bb7fefca646c26ee4f37d0461e36a4f92e9a0a26af32c5d750f74de7ed1f3c08ef72ef4516",
|
|
27020
27020
|
"file": "packages/ecl/components/ecl-site-header/custom-action/ecl-site-header-custom-action.directive.ts",
|
|
27021
27021
|
"type": "directive",
|
|
27022
27022
|
"description": "",
|
|
27023
27023
|
"rawdescription": "\n",
|
|
27024
|
-
"sourceCode": "import { isPlatformBrowser } from '@angular/common';\nimport {
|
|
27024
|
+
"sourceCode": "import { isPlatformBrowser } from '@angular/common';\nimport { AfterContentInit, Directive, EventEmitter, HostBinding, HostListener, Input, Output, PLATFORM_ID, contentChild, forwardRef, inject, input } from '@angular/core';\nimport { EclIconComponent } from '@eui/ecl/components/ecl-icon';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n@Directive({\n selector: 'a[eclSiteHeaderCustomActionLink]',\n})\nexport class EclSiteHeaderCustomActionLinkDirective extends ECLBaseDirective implements AfterContentInit {\n @HostBinding('class') className = 'ecl-site-header__custom-action-toggle ecl-button ecl-button--tertiary ecl-button--neutral ecl-button--icon-only';\n @HostBinding('attr.aria-expanded') isOverlayExpanded : boolean;\n @HostBinding('attr.aria-controls') ariaControls : string;\n @Input() @HostBinding('attr.href') href : string;\n @Input() @HostBinding('attr.routerLink') routerLink : string;\n @Output() customActionOverlayToggle = new EventEmitter<boolean>();\n eclIconComponent = contentChild<EclIconComponent>(forwardRef(() => EclIconComponent), { descendants: true });\n private readonly ARIA_CONTROLS = 'custom-action-overlay';\n private platformId = inject(PLATFORM_ID);\n\n ngAfterContentInit(): void {\n if (!isPlatformBrowser(this.platformId)) return;\n if (this.eclIconComponent()) {\n this.eclIconComponent().addExtraClass('ecl-site-header__icon');\n }\n if (!this.hasLink()) {\n this.href = '#';\n this.isOverlayExpanded = false;\n this.ariaControls = this.ARIA_CONTROLS;\n }\n }\n\n @HostListener('click', ['$event']) onClick(evt: Event): void {\n if (!this.hasLink()) {\n this.isOverlayExpanded = !this.isOverlayExpanded;\n evt.preventDefault();\n this.customActionOverlayToggle.emit(this.isOverlayExpanded);\n }\n }\n\n hasLink(): boolean {\n return (!!this.href && this.href !== '#') || !!this.routerLink;\n }\n}\n@Directive({\n selector: 'div[eclSiteHeaderCustomActionContent]',\n})\nexport class EclSiteHeaderCustomActionContentDirective extends ECLBaseDirective {\n @HostBinding('class.ecl-site-header__custom-action-content') className = true;\n}\n\n@Directive({\n selector: 'div[eclSiteHeaderCustomActionTitle]',\n})\nexport class EclSiteHeaderCustomActionTitleDirective extends ECLBaseDirective {\n @HostBinding('class.ecl-site-header__custom-action-title') className = true;\n @HostBinding('attr.id')\n @Input() id = 'custom-action-overlay-title';\n\n}",
|
|
27025
27025
|
"selector": "div[eclSiteHeaderCustomActionContent]",
|
|
27026
27026
|
"providers": [],
|
|
27027
27027
|
"hostDirectives": [],
|
|
@@ -27071,7 +27071,7 @@
|
|
|
27071
27071
|
"defaultValue": "true",
|
|
27072
27072
|
"deprecated": false,
|
|
27073
27073
|
"deprecationMessage": "",
|
|
27074
|
-
"line":
|
|
27074
|
+
"line": 48,
|
|
27075
27075
|
"type": "boolean",
|
|
27076
27076
|
"decorators": []
|
|
27077
27077
|
}
|
|
@@ -27087,7 +27087,7 @@
|
|
|
27087
27087
|
"indexKey": "",
|
|
27088
27088
|
"optional": false,
|
|
27089
27089
|
"description": "",
|
|
27090
|
-
"line":
|
|
27090
|
+
"line": 48,
|
|
27091
27091
|
"decorators": [
|
|
27092
27092
|
{
|
|
27093
27093
|
"name": "HostBinding",
|
|
@@ -27142,12 +27142,12 @@
|
|
|
27142
27142
|
},
|
|
27143
27143
|
{
|
|
27144
27144
|
"name": "EclSiteHeaderCustomActionLinkDirective",
|
|
27145
|
-
"id": "directive-EclSiteHeaderCustomActionLinkDirective-
|
|
27145
|
+
"id": "directive-EclSiteHeaderCustomActionLinkDirective-39d7dd2e5e2136096090862d3afe8586965b84ec9838946c8b1fc1bb7fefca646c26ee4f37d0461e36a4f92e9a0a26af32c5d750f74de7ed1f3c08ef72ef4516",
|
|
27146
27146
|
"file": "packages/ecl/components/ecl-site-header/custom-action/ecl-site-header-custom-action.directive.ts",
|
|
27147
27147
|
"type": "directive",
|
|
27148
27148
|
"description": "",
|
|
27149
27149
|
"rawdescription": "\n",
|
|
27150
|
-
"sourceCode": "import { isPlatformBrowser } from '@angular/common';\nimport {
|
|
27150
|
+
"sourceCode": "import { isPlatformBrowser } from '@angular/common';\nimport { AfterContentInit, Directive, EventEmitter, HostBinding, HostListener, Input, Output, PLATFORM_ID, contentChild, forwardRef, inject, input } from '@angular/core';\nimport { EclIconComponent } from '@eui/ecl/components/ecl-icon';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n@Directive({\n selector: 'a[eclSiteHeaderCustomActionLink]',\n})\nexport class EclSiteHeaderCustomActionLinkDirective extends ECLBaseDirective implements AfterContentInit {\n @HostBinding('class') className = 'ecl-site-header__custom-action-toggle ecl-button ecl-button--tertiary ecl-button--neutral ecl-button--icon-only';\n @HostBinding('attr.aria-expanded') isOverlayExpanded : boolean;\n @HostBinding('attr.aria-controls') ariaControls : string;\n @Input() @HostBinding('attr.href') href : string;\n @Input() @HostBinding('attr.routerLink') routerLink : string;\n @Output() customActionOverlayToggle = new EventEmitter<boolean>();\n eclIconComponent = contentChild<EclIconComponent>(forwardRef(() => EclIconComponent), { descendants: true });\n private readonly ARIA_CONTROLS = 'custom-action-overlay';\n private platformId = inject(PLATFORM_ID);\n\n ngAfterContentInit(): void {\n if (!isPlatformBrowser(this.platformId)) return;\n if (this.eclIconComponent()) {\n this.eclIconComponent().addExtraClass('ecl-site-header__icon');\n }\n if (!this.hasLink()) {\n this.href = '#';\n this.isOverlayExpanded = false;\n this.ariaControls = this.ARIA_CONTROLS;\n }\n }\n\n @HostListener('click', ['$event']) onClick(evt: Event): void {\n if (!this.hasLink()) {\n this.isOverlayExpanded = !this.isOverlayExpanded;\n evt.preventDefault();\n this.customActionOverlayToggle.emit(this.isOverlayExpanded);\n }\n }\n\n hasLink(): boolean {\n return (!!this.href && this.href !== '#') || !!this.routerLink;\n }\n}\n@Directive({\n selector: 'div[eclSiteHeaderCustomActionContent]',\n})\nexport class EclSiteHeaderCustomActionContentDirective extends ECLBaseDirective {\n @HostBinding('class.ecl-site-header__custom-action-content') className = true;\n}\n\n@Directive({\n selector: 'div[eclSiteHeaderCustomActionTitle]',\n})\nexport class EclSiteHeaderCustomActionTitleDirective extends ECLBaseDirective {\n @HostBinding('class.ecl-site-header__custom-action-title') className = true;\n @HostBinding('attr.id')\n @Input() id = 'custom-action-overlay-title';\n\n}",
|
|
27151
27151
|
"selector": "a[eclSiteHeaderCustomActionLink]",
|
|
27152
27152
|
"providers": [],
|
|
27153
27153
|
"hostDirectives": [],
|
|
@@ -27235,7 +27235,7 @@
|
|
|
27235
27235
|
},
|
|
27236
27236
|
{
|
|
27237
27237
|
"name": "class",
|
|
27238
|
-
"defaultValue": "'ecl-site-header__custom-action-toggle ecl-button ecl-button--tertiary'",
|
|
27238
|
+
"defaultValue": "'ecl-site-header__custom-action-toggle ecl-button ecl-button--tertiary ecl-button--neutral ecl-button--icon-only'",
|
|
27239
27239
|
"deprecated": false,
|
|
27240
27240
|
"deprecationMessage": "",
|
|
27241
27241
|
"line": 10,
|
|
@@ -27261,7 +27261,7 @@
|
|
|
27261
27261
|
],
|
|
27262
27262
|
"deprecated": false,
|
|
27263
27263
|
"deprecationMessage": "",
|
|
27264
|
-
"line":
|
|
27264
|
+
"line": 32
|
|
27265
27265
|
}
|
|
27266
27266
|
],
|
|
27267
27267
|
"propertiesClass": [
|
|
@@ -27286,7 +27286,7 @@
|
|
|
27286
27286
|
},
|
|
27287
27287
|
{
|
|
27288
27288
|
"name": "className",
|
|
27289
|
-
"defaultValue": "'ecl-site-header__custom-action-toggle ecl-button ecl-button--tertiary'",
|
|
27289
|
+
"defaultValue": "'ecl-site-header__custom-action-toggle ecl-button ecl-button--tertiary ecl-button--neutral ecl-button--icon-only'",
|
|
27290
27290
|
"deprecated": false,
|
|
27291
27291
|
"deprecationMessage": "",
|
|
27292
27292
|
"type": "string",
|
|
@@ -27306,22 +27306,14 @@
|
|
|
27306
27306
|
},
|
|
27307
27307
|
{
|
|
27308
27308
|
"name": "eclIconComponent",
|
|
27309
|
+
"defaultValue": "contentChild<EclIconComponent>(forwardRef(() => EclIconComponent), { descendants: true })",
|
|
27309
27310
|
"deprecated": false,
|
|
27310
27311
|
"deprecationMessage": "",
|
|
27311
|
-
"type": "
|
|
27312
|
+
"type": "unknown",
|
|
27312
27313
|
"indexKey": "",
|
|
27313
27314
|
"optional": false,
|
|
27314
27315
|
"description": "",
|
|
27315
|
-
"line": 16
|
|
27316
|
-
"decorators": [
|
|
27317
|
-
{
|
|
27318
|
-
"name": "ContentChild",
|
|
27319
|
-
"stringifiedArguments": "undefined, {descendants: true}"
|
|
27320
|
-
}
|
|
27321
|
-
],
|
|
27322
|
-
"modifierKind": [
|
|
27323
|
-
171
|
|
27324
|
-
]
|
|
27316
|
+
"line": 16
|
|
27325
27317
|
},
|
|
27326
27318
|
{
|
|
27327
27319
|
"name": "isOverlayExpanded",
|
|
@@ -27350,7 +27342,7 @@
|
|
|
27350
27342
|
"optional": false,
|
|
27351
27343
|
"returnType": "boolean",
|
|
27352
27344
|
"typeParameters": [],
|
|
27353
|
-
"line":
|
|
27345
|
+
"line": 40,
|
|
27354
27346
|
"deprecated": false,
|
|
27355
27347
|
"deprecationMessage": ""
|
|
27356
27348
|
},
|
|
@@ -27379,7 +27371,7 @@
|
|
|
27379
27371
|
"optional": false,
|
|
27380
27372
|
"returnType": "void",
|
|
27381
27373
|
"typeParameters": [],
|
|
27382
|
-
"line":
|
|
27374
|
+
"line": 32,
|
|
27383
27375
|
"deprecated": false,
|
|
27384
27376
|
"deprecationMessage": "",
|
|
27385
27377
|
"decorators": [
|
|
@@ -27450,12 +27442,12 @@
|
|
|
27450
27442
|
},
|
|
27451
27443
|
{
|
|
27452
27444
|
"name": "EclSiteHeaderCustomActionTitleDirective",
|
|
27453
|
-
"id": "directive-EclSiteHeaderCustomActionTitleDirective-
|
|
27445
|
+
"id": "directive-EclSiteHeaderCustomActionTitleDirective-39d7dd2e5e2136096090862d3afe8586965b84ec9838946c8b1fc1bb7fefca646c26ee4f37d0461e36a4f92e9a0a26af32c5d750f74de7ed1f3c08ef72ef4516",
|
|
27454
27446
|
"file": "packages/ecl/components/ecl-site-header/custom-action/ecl-site-header-custom-action.directive.ts",
|
|
27455
27447
|
"type": "directive",
|
|
27456
27448
|
"description": "",
|
|
27457
27449
|
"rawdescription": "\n",
|
|
27458
|
-
"sourceCode": "import { isPlatformBrowser } from '@angular/common';\nimport {
|
|
27450
|
+
"sourceCode": "import { isPlatformBrowser } from '@angular/common';\nimport { AfterContentInit, Directive, EventEmitter, HostBinding, HostListener, Input, Output, PLATFORM_ID, contentChild, forwardRef, inject, input } from '@angular/core';\nimport { EclIconComponent } from '@eui/ecl/components/ecl-icon';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n@Directive({\n selector: 'a[eclSiteHeaderCustomActionLink]',\n})\nexport class EclSiteHeaderCustomActionLinkDirective extends ECLBaseDirective implements AfterContentInit {\n @HostBinding('class') className = 'ecl-site-header__custom-action-toggle ecl-button ecl-button--tertiary ecl-button--neutral ecl-button--icon-only';\n @HostBinding('attr.aria-expanded') isOverlayExpanded : boolean;\n @HostBinding('attr.aria-controls') ariaControls : string;\n @Input() @HostBinding('attr.href') href : string;\n @Input() @HostBinding('attr.routerLink') routerLink : string;\n @Output() customActionOverlayToggle = new EventEmitter<boolean>();\n eclIconComponent = contentChild<EclIconComponent>(forwardRef(() => EclIconComponent), { descendants: true });\n private readonly ARIA_CONTROLS = 'custom-action-overlay';\n private platformId = inject(PLATFORM_ID);\n\n ngAfterContentInit(): void {\n if (!isPlatformBrowser(this.platformId)) return;\n if (this.eclIconComponent()) {\n this.eclIconComponent().addExtraClass('ecl-site-header__icon');\n }\n if (!this.hasLink()) {\n this.href = '#';\n this.isOverlayExpanded = false;\n this.ariaControls = this.ARIA_CONTROLS;\n }\n }\n\n @HostListener('click', ['$event']) onClick(evt: Event): void {\n if (!this.hasLink()) {\n this.isOverlayExpanded = !this.isOverlayExpanded;\n evt.preventDefault();\n this.customActionOverlayToggle.emit(this.isOverlayExpanded);\n }\n }\n\n hasLink(): boolean {\n return (!!this.href && this.href !== '#') || !!this.routerLink;\n }\n}\n@Directive({\n selector: 'div[eclSiteHeaderCustomActionContent]',\n})\nexport class EclSiteHeaderCustomActionContentDirective extends ECLBaseDirective {\n @HostBinding('class.ecl-site-header__custom-action-content') className = true;\n}\n\n@Directive({\n selector: 'div[eclSiteHeaderCustomActionTitle]',\n})\nexport class EclSiteHeaderCustomActionTitleDirective extends ECLBaseDirective {\n @HostBinding('class.ecl-site-header__custom-action-title') className = true;\n @HostBinding('attr.id')\n @Input() id = 'custom-action-overlay-title';\n\n}",
|
|
27459
27451
|
"selector": "div[eclSiteHeaderCustomActionTitle]",
|
|
27460
27452
|
"providers": [],
|
|
27461
27453
|
"hostDirectives": [],
|
|
@@ -27466,7 +27458,7 @@
|
|
|
27466
27458
|
"defaultValue": "'custom-action-overlay-title'",
|
|
27467
27459
|
"deprecated": false,
|
|
27468
27460
|
"deprecationMessage": "",
|
|
27469
|
-
"line":
|
|
27461
|
+
"line": 57,
|
|
27470
27462
|
"type": "string",
|
|
27471
27463
|
"decorators": []
|
|
27472
27464
|
},
|
|
@@ -27514,7 +27506,7 @@
|
|
|
27514
27506
|
"defaultValue": "true",
|
|
27515
27507
|
"deprecated": false,
|
|
27516
27508
|
"deprecationMessage": "",
|
|
27517
|
-
"line":
|
|
27509
|
+
"line": 55,
|
|
27518
27510
|
"type": "boolean",
|
|
27519
27511
|
"decorators": []
|
|
27520
27512
|
}
|
|
@@ -27530,7 +27522,7 @@
|
|
|
27530
27522
|
"indexKey": "",
|
|
27531
27523
|
"optional": false,
|
|
27532
27524
|
"description": "",
|
|
27533
|
-
"line":
|
|
27525
|
+
"line": 55,
|
|
27534
27526
|
"decorators": [
|
|
27535
27527
|
{
|
|
27536
27528
|
"name": "HostBinding",
|
|
@@ -35896,7 +35888,7 @@
|
|
|
35896
35888
|
}
|
|
35897
35889
|
}
|
|
35898
35890
|
},
|
|
35899
|
-
"templateData": "@if(hasControls()){\n<div class=\"ecl-carousel__controls\">\n <div class=\"ecl-container\">\n <div class=\"ecl-carousel__autoplay\">\n <button #playButton class=\"ecl-button ecl-button--tertiary ecl-carousel__play ecl-button--icon-only\"\n type=\"button\" [style.display]=\"isPlaying ? 'none' : 'flex'\" (keydown)=\"onPlayKeyboardPress($event)\"\n (click)=\"onPlayClick()\">\n <span class=\"ecl-button__container\">\n <span class=\"ecl-button__label\">\n {{ 'ecl.carousel.PLAY' | translate }}\n </span>\n <ecl-icon icon=\"play-outline\" size=\"m\" class=\"ecl-button__icon ecl-carousel__icon-default\">\n </ecl-icon>\n </span>\n </button>\n\n <button #pauseButton class=\"ecl-button ecl-button--tertiary ecl-carousel__pause ecl-button--icon-only\"\n type=\"button\" [style.display]=\"isPlaying ? 'flex' : 'none'\" (keydown)=\"onPlayKeyboardPress($event)\"\n (click)=\"onPauseClick()\">\n <span class=\"ecl-button__container\">\n <span class=\"ecl-button__label\">\n {{ 'ecl.carousel.PAUSE' | translate }}\n </span>\n <ecl-icon icon=\"pause-outline\" size=\"m\" class=\"ecl-button__icon ecl-carousel__icon-default\"> </ecl-icon>\n </span>\n\n </button>\n </div>\n\n <div class=\"ecl-carousel__navigation\" role=\"tablist\" >\n @for (slide of slides; let i = $index; track slide) {\n <button #currButton [attr.aria-current]=\"i === getCurrentSlideIndex()\" [attr.tabindex]=\"i === getCurrentSlideIndex() ? null: -1\"\n class=\"ecl-button ecl-button--tertiary ecl-carousel__navigation-item\" role=\"tab\" (click)=\"onSlideControlClick(slide)\"\n (keydown)=\"onNavBtnKeyboardPress($event, i)\">\n {{ i + 1 }}\n </button>\n }\n </div>\n </div>\n</div>\n}\n<div #carouselContainer class=\"ecl-carousel__container\" [class.ecl-carousel-container--padded]=\"isPadded()\">\n <div #slidesContainer (keyup)=\"onFirstCarouselElementPress($event)\" class=\"ecl-carousel__slides\"\n [style.width.px]=\"getCarouselSlidesWidth()\" [style.left.px]=\"!isRtl ? getCarouselSlidesOffsetLeft() : null\"\n [style.right.px]=\"isRtl ? getCarouselSlidesOffsetRight() : null\"\n [style.transition-duration.s]=\"transitionDuration\" (mouseover)=\"onSlideHover()\" (mouseout)=\"onSlideHoverout()\">\n\n @if(hasControls()){\n <ecl-carousel-item #firstHiddenItem [style.width.%]=\"slideWidth\"></ecl-carousel-item>\n }\n <ng-content></ng-content>\n\n @if(hasControls()){\n <ecl-carousel-item #lastHiddenItem [style.width.%]=\"slideWidth\"></ecl-carousel-item>\n }\n </div>\n</div>"
|
|
35891
|
+
"templateData": "@if(hasControls()){\n<div class=\"ecl-carousel__controls\">\n <div class=\"ecl-container\">\n <div class=\"ecl-carousel__autoplay\">\n <button #playButton class=\"ecl-button ecl-button--tertiary ecl-button--neutral ecl-carousel__play ecl-button--icon-only\"\n type=\"button\" [style.display]=\"isPlaying ? 'none' : 'flex'\" (keydown)=\"onPlayKeyboardPress($event)\"\n (click)=\"onPlayClick()\">\n <span class=\"ecl-button__container\">\n <span class=\"ecl-button__label\">\n {{ 'ecl.carousel.PLAY' | translate }}\n </span>\n <ecl-icon icon=\"play-outline\" size=\"m\" class=\"ecl-button__icon ecl-carousel__icon-default\">\n </ecl-icon>\n </span>\n </button>\n\n <button #pauseButton class=\"ecl-button ecl-button--tertiary ecl-button--neutral ecl-carousel__pause ecl-button--icon-only\"\n type=\"button\" [style.display]=\"isPlaying ? 'flex' : 'none'\" (keydown)=\"onPlayKeyboardPress($event)\"\n (click)=\"onPauseClick()\">\n <span class=\"ecl-button__container\">\n <span class=\"ecl-button__label\">\n {{ 'ecl.carousel.PAUSE' | translate }}\n </span>\n <ecl-icon icon=\"pause-outline\" size=\"m\" class=\"ecl-button__icon ecl-carousel__icon-default\"> </ecl-icon>\n </span>\n\n </button>\n </div>\n\n <div class=\"ecl-carousel__navigation\" role=\"tablist\" >\n @for (slide of slides; let i = $index; track slide) {\n <button #currButton [attr.aria-current]=\"i === getCurrentSlideIndex()\" [attr.tabindex]=\"i === getCurrentSlideIndex() ? null: -1\"\n class=\"ecl-button ecl-button--tertiary ecl-button--neutral ecl-carousel__navigation-item\" role=\"tab\" (click)=\"onSlideControlClick(slide)\"\n (keydown)=\"onNavBtnKeyboardPress($event, i)\">\n {{ i + 1 }}\n </button>\n }\n </div>\n </div>\n</div>\n}\n<div #carouselContainer class=\"ecl-carousel__container\" [class.ecl-carousel-container--padded]=\"isPadded()\">\n <div #slidesContainer (keyup)=\"onFirstCarouselElementPress($event)\" class=\"ecl-carousel__slides\"\n [style.width.px]=\"getCarouselSlidesWidth()\" [style.left.px]=\"!isRtl ? getCarouselSlidesOffsetLeft() : null\"\n [style.right.px]=\"isRtl ? getCarouselSlidesOffsetRight() : null\"\n [style.transition-duration.s]=\"transitionDuration\" (mouseover)=\"onSlideHover()\" (mouseout)=\"onSlideHoverout()\">\n\n @if(hasControls()){\n <ecl-carousel-item #firstHiddenItem [style.width.%]=\"slideWidth\"></ecl-carousel-item>\n }\n <ng-content></ng-content>\n\n @if(hasControls()){\n <ecl-carousel-item #lastHiddenItem [style.width.%]=\"slideWidth\"></ecl-carousel-item>\n }\n </div>\n</div>"
|
|
35900
35892
|
},
|
|
35901
35893
|
{
|
|
35902
35894
|
"name": "EclCarouselItemComponent",
|
package/docs/properties.html
CHANGED
|
@@ -743,7 +743,7 @@ class EclCarouselComponent extends ECLBaseDirective {
|
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
745
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: EclCarouselComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
746
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: EclCarouselComponent, isStandalone: true, selector: "ecl-carousel", inputs: { ariaLabel: ["aria-label", "ariaLabel"], isAutoplay: ["isAutoplay", "isAutoplay", booleanAttribute], playInterval: ["playInterval", "playInterval", numberAttribute] }, outputs: { slide: "slide" }, host: { properties: { "attr.aria-label": "this.ariaLabel", "attr.aria-roledescription": "this.ariaRoleDescription", "class": "this.cssClasses" } }, queries: [{ propertyName: "slides", predicate: i0.forwardRef(() => EclCarouselItemComponent) }], viewQueries: [{ propertyName: "carouselContainerElement", first: true, predicate: ["carouselContainer"], descendants: true }, { propertyName: "playButton", first: true, predicate: ["playButton"], descendants: true }, { propertyName: "pauseButton", first: true, predicate: ["pauseButton"], descendants: true }, { propertyName: "firstHiddenItem", first: true, predicate: ["firstHiddenItem"], descendants: true }, { propertyName: "lastHiddenItem", first: true, predicate: ["lastHiddenItem"], descendants: true }, { propertyName: "slidesContainer", first: true, predicate: ["slidesContainer"], descendants: true }, { propertyName: "navigationButtons", predicate: ["currButton"], descendants: true }], usesInheritance: true, ngImport: i0, template: "@if(hasControls()){\n<div class=\"ecl-carousel__controls\">\n <div class=\"ecl-container\">\n <div class=\"ecl-carousel__autoplay\">\n <button #playButton class=\"ecl-button ecl-button--tertiary ecl-carousel__play ecl-button--icon-only\"\n type=\"button\" [style.display]=\"isPlaying ? 'none' : 'flex'\" (keydown)=\"onPlayKeyboardPress($event)\"\n (click)=\"onPlayClick()\">\n <span class=\"ecl-button__container\">\n <span class=\"ecl-button__label\">\n {{ 'ecl.carousel.PLAY' | translate }}\n </span>\n <ecl-icon icon=\"play-outline\" size=\"m\" class=\"ecl-button__icon ecl-carousel__icon-default\">\n </ecl-icon>\n </span>\n </button>\n\n <button #pauseButton class=\"ecl-button ecl-button--tertiary ecl-carousel__pause ecl-button--icon-only\"\n type=\"button\" [style.display]=\"isPlaying ? 'flex' : 'none'\" (keydown)=\"onPlayKeyboardPress($event)\"\n (click)=\"onPauseClick()\">\n <span class=\"ecl-button__container\">\n <span class=\"ecl-button__label\">\n {{ 'ecl.carousel.PAUSE' | translate }}\n </span>\n <ecl-icon icon=\"pause-outline\" size=\"m\" class=\"ecl-button__icon ecl-carousel__icon-default\"> </ecl-icon>\n </span>\n\n </button>\n </div>\n\n <div class=\"ecl-carousel__navigation\" role=\"tablist\" >\n @for (slide of slides; let i = $index; track slide) {\n <button #currButton [attr.aria-current]=\"i === getCurrentSlideIndex()\" [attr.tabindex]=\"i === getCurrentSlideIndex() ? null: -1\"\n class=\"ecl-button ecl-button--tertiary ecl-carousel__navigation-item\" role=\"tab\" (click)=\"onSlideControlClick(slide)\"\n (keydown)=\"onNavBtnKeyboardPress($event, i)\">\n {{ i + 1 }}\n </button>\n }\n </div>\n </div>\n</div>\n}\n<div #carouselContainer class=\"ecl-carousel__container\" [class.ecl-carousel-container--padded]=\"isPadded()\">\n <div #slidesContainer (keyup)=\"onFirstCarouselElementPress($event)\" class=\"ecl-carousel__slides\"\n [style.width.px]=\"getCarouselSlidesWidth()\" [style.left.px]=\"!isRtl ? getCarouselSlidesOffsetLeft() : null\"\n [style.right.px]=\"isRtl ? getCarouselSlidesOffsetRight() : null\"\n [style.transition-duration.s]=\"transitionDuration\" (mouseover)=\"onSlideHover()\" (mouseout)=\"onSlideHoverout()\">\n\n @if(hasControls()){\n <ecl-carousel-item #firstHiddenItem [style.width.%]=\"slideWidth\"></ecl-carousel-item>\n }\n <ng-content></ng-content>\n\n @if(hasControls()){\n <ecl-carousel-item #lastHiddenItem [style.width.%]=\"slideWidth\"></ecl-carousel-item>\n }\n </div>\n</div>", styles: [".ecl-carousel__slides{transition-duration:.4s}\n"], dependencies: [{ kind: "ngmodule", type: TranslateModule }, { kind: "component", type: EclIconComponent, selector: "ecl-icon", inputs: ["iconSet", "icon", "size", "color", "transform", "ariaLabelledby", "role", "title", "ariaHidden", "focusable", "isFlipHorizontal"] }, { kind: "component", type: EclCarouselItemComponent, selector: "ecl-carousel-item", inputs: ["id", "isCurrent"], outputs: ["slideClick"] }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }] }); }
|
|
746
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: EclCarouselComponent, isStandalone: true, selector: "ecl-carousel", inputs: { ariaLabel: ["aria-label", "ariaLabel"], isAutoplay: ["isAutoplay", "isAutoplay", booleanAttribute], playInterval: ["playInterval", "playInterval", numberAttribute] }, outputs: { slide: "slide" }, host: { properties: { "attr.aria-label": "this.ariaLabel", "attr.aria-roledescription": "this.ariaRoleDescription", "class": "this.cssClasses" } }, queries: [{ propertyName: "slides", predicate: i0.forwardRef(() => EclCarouselItemComponent) }], viewQueries: [{ propertyName: "carouselContainerElement", first: true, predicate: ["carouselContainer"], descendants: true }, { propertyName: "playButton", first: true, predicate: ["playButton"], descendants: true }, { propertyName: "pauseButton", first: true, predicate: ["pauseButton"], descendants: true }, { propertyName: "firstHiddenItem", first: true, predicate: ["firstHiddenItem"], descendants: true }, { propertyName: "lastHiddenItem", first: true, predicate: ["lastHiddenItem"], descendants: true }, { propertyName: "slidesContainer", first: true, predicate: ["slidesContainer"], descendants: true }, { propertyName: "navigationButtons", predicate: ["currButton"], descendants: true }], usesInheritance: true, ngImport: i0, template: "@if(hasControls()){\n<div class=\"ecl-carousel__controls\">\n <div class=\"ecl-container\">\n <div class=\"ecl-carousel__autoplay\">\n <button #playButton class=\"ecl-button ecl-button--tertiary ecl-button--neutral ecl-carousel__play ecl-button--icon-only\"\n type=\"button\" [style.display]=\"isPlaying ? 'none' : 'flex'\" (keydown)=\"onPlayKeyboardPress($event)\"\n (click)=\"onPlayClick()\">\n <span class=\"ecl-button__container\">\n <span class=\"ecl-button__label\">\n {{ 'ecl.carousel.PLAY' | translate }}\n </span>\n <ecl-icon icon=\"play-outline\" size=\"m\" class=\"ecl-button__icon ecl-carousel__icon-default\">\n </ecl-icon>\n </span>\n </button>\n\n <button #pauseButton class=\"ecl-button ecl-button--tertiary ecl-button--neutral ecl-carousel__pause ecl-button--icon-only\"\n type=\"button\" [style.display]=\"isPlaying ? 'flex' : 'none'\" (keydown)=\"onPlayKeyboardPress($event)\"\n (click)=\"onPauseClick()\">\n <span class=\"ecl-button__container\">\n <span class=\"ecl-button__label\">\n {{ 'ecl.carousel.PAUSE' | translate }}\n </span>\n <ecl-icon icon=\"pause-outline\" size=\"m\" class=\"ecl-button__icon ecl-carousel__icon-default\"> </ecl-icon>\n </span>\n\n </button>\n </div>\n\n <div class=\"ecl-carousel__navigation\" role=\"tablist\" >\n @for (slide of slides; let i = $index; track slide) {\n <button #currButton [attr.aria-current]=\"i === getCurrentSlideIndex()\" [attr.tabindex]=\"i === getCurrentSlideIndex() ? null: -1\"\n class=\"ecl-button ecl-button--tertiary ecl-button--neutral ecl-carousel__navigation-item\" role=\"tab\" (click)=\"onSlideControlClick(slide)\"\n (keydown)=\"onNavBtnKeyboardPress($event, i)\">\n {{ i + 1 }}\n </button>\n }\n </div>\n </div>\n</div>\n}\n<div #carouselContainer class=\"ecl-carousel__container\" [class.ecl-carousel-container--padded]=\"isPadded()\">\n <div #slidesContainer (keyup)=\"onFirstCarouselElementPress($event)\" class=\"ecl-carousel__slides\"\n [style.width.px]=\"getCarouselSlidesWidth()\" [style.left.px]=\"!isRtl ? getCarouselSlidesOffsetLeft() : null\"\n [style.right.px]=\"isRtl ? getCarouselSlidesOffsetRight() : null\"\n [style.transition-duration.s]=\"transitionDuration\" (mouseover)=\"onSlideHover()\" (mouseout)=\"onSlideHoverout()\">\n\n @if(hasControls()){\n <ecl-carousel-item #firstHiddenItem [style.width.%]=\"slideWidth\"></ecl-carousel-item>\n }\n <ng-content></ng-content>\n\n @if(hasControls()){\n <ecl-carousel-item #lastHiddenItem [style.width.%]=\"slideWidth\"></ecl-carousel-item>\n }\n </div>\n</div>", styles: [".ecl-carousel__slides{transition-duration:.4s}\n"], dependencies: [{ kind: "ngmodule", type: TranslateModule }, { kind: "component", type: EclIconComponent, selector: "ecl-icon", inputs: ["iconSet", "icon", "size", "color", "transform", "ariaLabelledby", "role", "title", "ariaHidden", "focusable", "isFlipHorizontal"] }, { kind: "component", type: EclCarouselItemComponent, selector: "ecl-carousel-item", inputs: ["id", "isCurrent"], outputs: ["slideClick"] }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }] }); }
|
|
747
747
|
}
|
|
748
748
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: EclCarouselComponent, decorators: [{
|
|
749
749
|
type: Component,
|
|
@@ -751,7 +751,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
751
751
|
TranslateModule,
|
|
752
752
|
EclIconComponent,
|
|
753
753
|
EclCarouselItemComponent,
|
|
754
|
-
], template: "@if(hasControls()){\n<div class=\"ecl-carousel__controls\">\n <div class=\"ecl-container\">\n <div class=\"ecl-carousel__autoplay\">\n <button #playButton class=\"ecl-button ecl-button--tertiary ecl-carousel__play ecl-button--icon-only\"\n type=\"button\" [style.display]=\"isPlaying ? 'none' : 'flex'\" (keydown)=\"onPlayKeyboardPress($event)\"\n (click)=\"onPlayClick()\">\n <span class=\"ecl-button__container\">\n <span class=\"ecl-button__label\">\n {{ 'ecl.carousel.PLAY' | translate }}\n </span>\n <ecl-icon icon=\"play-outline\" size=\"m\" class=\"ecl-button__icon ecl-carousel__icon-default\">\n </ecl-icon>\n </span>\n </button>\n\n <button #pauseButton class=\"ecl-button ecl-button--tertiary ecl-carousel__pause ecl-button--icon-only\"\n type=\"button\" [style.display]=\"isPlaying ? 'flex' : 'none'\" (keydown)=\"onPlayKeyboardPress($event)\"\n (click)=\"onPauseClick()\">\n <span class=\"ecl-button__container\">\n <span class=\"ecl-button__label\">\n {{ 'ecl.carousel.PAUSE' | translate }}\n </span>\n <ecl-icon icon=\"pause-outline\" size=\"m\" class=\"ecl-button__icon ecl-carousel__icon-default\"> </ecl-icon>\n </span>\n\n </button>\n </div>\n\n <div class=\"ecl-carousel__navigation\" role=\"tablist\" >\n @for (slide of slides; let i = $index; track slide) {\n <button #currButton [attr.aria-current]=\"i === getCurrentSlideIndex()\" [attr.tabindex]=\"i === getCurrentSlideIndex() ? null: -1\"\n class=\"ecl-button ecl-button--tertiary ecl-carousel__navigation-item\" role=\"tab\" (click)=\"onSlideControlClick(slide)\"\n (keydown)=\"onNavBtnKeyboardPress($event, i)\">\n {{ i + 1 }}\n </button>\n }\n </div>\n </div>\n</div>\n}\n<div #carouselContainer class=\"ecl-carousel__container\" [class.ecl-carousel-container--padded]=\"isPadded()\">\n <div #slidesContainer (keyup)=\"onFirstCarouselElementPress($event)\" class=\"ecl-carousel__slides\"\n [style.width.px]=\"getCarouselSlidesWidth()\" [style.left.px]=\"!isRtl ? getCarouselSlidesOffsetLeft() : null\"\n [style.right.px]=\"isRtl ? getCarouselSlidesOffsetRight() : null\"\n [style.transition-duration.s]=\"transitionDuration\" (mouseover)=\"onSlideHover()\" (mouseout)=\"onSlideHoverout()\">\n\n @if(hasControls()){\n <ecl-carousel-item #firstHiddenItem [style.width.%]=\"slideWidth\"></ecl-carousel-item>\n }\n <ng-content></ng-content>\n\n @if(hasControls()){\n <ecl-carousel-item #lastHiddenItem [style.width.%]=\"slideWidth\"></ecl-carousel-item>\n }\n </div>\n</div>", styles: [".ecl-carousel__slides{transition-duration:.4s}\n"] }]
|
|
754
|
+
], template: "@if(hasControls()){\n<div class=\"ecl-carousel__controls\">\n <div class=\"ecl-container\">\n <div class=\"ecl-carousel__autoplay\">\n <button #playButton class=\"ecl-button ecl-button--tertiary ecl-button--neutral ecl-carousel__play ecl-button--icon-only\"\n type=\"button\" [style.display]=\"isPlaying ? 'none' : 'flex'\" (keydown)=\"onPlayKeyboardPress($event)\"\n (click)=\"onPlayClick()\">\n <span class=\"ecl-button__container\">\n <span class=\"ecl-button__label\">\n {{ 'ecl.carousel.PLAY' | translate }}\n </span>\n <ecl-icon icon=\"play-outline\" size=\"m\" class=\"ecl-button__icon ecl-carousel__icon-default\">\n </ecl-icon>\n </span>\n </button>\n\n <button #pauseButton class=\"ecl-button ecl-button--tertiary ecl-button--neutral ecl-carousel__pause ecl-button--icon-only\"\n type=\"button\" [style.display]=\"isPlaying ? 'flex' : 'none'\" (keydown)=\"onPlayKeyboardPress($event)\"\n (click)=\"onPauseClick()\">\n <span class=\"ecl-button__container\">\n <span class=\"ecl-button__label\">\n {{ 'ecl.carousel.PAUSE' | translate }}\n </span>\n <ecl-icon icon=\"pause-outline\" size=\"m\" class=\"ecl-button__icon ecl-carousel__icon-default\"> </ecl-icon>\n </span>\n\n </button>\n </div>\n\n <div class=\"ecl-carousel__navigation\" role=\"tablist\" >\n @for (slide of slides; let i = $index; track slide) {\n <button #currButton [attr.aria-current]=\"i === getCurrentSlideIndex()\" [attr.tabindex]=\"i === getCurrentSlideIndex() ? null: -1\"\n class=\"ecl-button ecl-button--tertiary ecl-button--neutral ecl-carousel__navigation-item\" role=\"tab\" (click)=\"onSlideControlClick(slide)\"\n (keydown)=\"onNavBtnKeyboardPress($event, i)\">\n {{ i + 1 }}\n </button>\n }\n </div>\n </div>\n</div>\n}\n<div #carouselContainer class=\"ecl-carousel__container\" [class.ecl-carousel-container--padded]=\"isPadded()\">\n <div #slidesContainer (keyup)=\"onFirstCarouselElementPress($event)\" class=\"ecl-carousel__slides\"\n [style.width.px]=\"getCarouselSlidesWidth()\" [style.left.px]=\"!isRtl ? getCarouselSlidesOffsetLeft() : null\"\n [style.right.px]=\"isRtl ? getCarouselSlidesOffsetRight() : null\"\n [style.transition-duration.s]=\"transitionDuration\" (mouseover)=\"onSlideHover()\" (mouseout)=\"onSlideHoverout()\">\n\n @if(hasControls()){\n <ecl-carousel-item #firstHiddenItem [style.width.%]=\"slideWidth\"></ecl-carousel-item>\n }\n <ng-content></ng-content>\n\n @if(hasControls()){\n <ecl-carousel-item #lastHiddenItem [style.width.%]=\"slideWidth\"></ecl-carousel-item>\n }\n </div>\n</div>", styles: [".ecl-carousel__slides{transition-duration:.4s}\n"] }]
|
|
755
755
|
}], ctorParameters: () => [], propDecorators: { ariaLabel: [{
|
|
756
756
|
type: HostBinding,
|
|
757
757
|
args: ['attr.aria-label']
|