@eui/ecl 22.0.0-alpha.36 → 22.0.0-alpha.37
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 +20 -0
- package/docs/components/EclAccordionSummaryComponent.html +2 -2
- package/docs/components/EclAddToCalendarComponent.html +2 -2
- package/docs/components/EclAnimatedNumbersComponent.html +2 -2
- package/docs/components/EclAnimatedNumbersItemComponent.html +2 -2
- package/docs/components/EclAppComponent.html +2 -2
- package/docs/components/EclBannerComponent.html +2 -2
- package/docs/components/EclBlockquoteComponent.html +2 -2
- package/docs/components/EclBreadcrumbComponent.html +2 -2
- package/docs/components/EclBreadcrumbSegmentComponent.html +2 -2
- package/docs/components/EclButtonComponent.html +2 -2
- package/docs/components/EclCardBodyComponent.html +2 -2
- package/docs/components/EclCardComponent.html +2 -2
- package/docs/components/EclCarouselComponent.html +2 -2
- package/docs/components/EclCarouselItemComponent.html +2 -2
- package/docs/components/EclCategoryFilterComponent.html +2 -2
- package/docs/components/EclCategoryFilterItemComponent.html +2 -2
- package/docs/components/EclCategoryFilterListComponent.html +2 -2
- package/docs/components/EclCheckboxHelpComponent.html +2 -2
- package/docs/components/EclCheckboxLabelComponent.html +2 -2
- package/docs/components/EclContentBlockComponent.html +2 -2
- package/docs/components/EclContentItemComponent.html +2 -2
- package/docs/components/EclDateBlockComponent.html +2 -2
- package/docs/components/EclDescriptionListDefinitionComponent.html +2 -2
- package/docs/components/EclExpandableComponent.html +2 -2
- package/docs/components/EclFactFiguresComponent.html +2 -2
- package/docs/components/EclFactFiguresItemComponent.html +2 -2
- package/docs/components/EclFactFiguresViewAllComponent.html +2 -2
- package/docs/components/EclFeaturedComponent.html +2 -2
- package/docs/components/EclFeaturedItemComponent.html +2 -2
- package/docs/components/EclFeaturedItemDescriptionComponent.html +2 -2
- package/docs/components/EclFileComponent.html +2 -2
- package/docs/components/EclFileItemComponent.html +2 -2
- package/docs/components/EclFileItemsComponent.html +2 -2
- package/docs/components/EclFileListsComponent.html +2 -2
- package/docs/components/EclFormGroupComponent.html +2 -2
- package/docs/components/EclFormLabelComponent.html +2 -2
- package/docs/components/EclGalleryComponent.html +2 -2
- package/docs/components/EclGalleryFooterComponent.html +2 -2
- package/docs/components/EclGalleryItemComponent.html +2 -2
- package/docs/components/EclHighlightBoxComponent.html +2 -2
- package/docs/components/EclHighlightedSearchComponent.html +2 -2
- package/docs/components/EclIconComponent.html +2 -2
- package/docs/components/EclIndicatorComponent.html +2 -2
- package/docs/components/EclInpageNavigationComponent.html +2 -2
- package/docs/components/EclInpageNavigationItemComponent.html +2 -2
- package/docs/components/EclLayoutWrapperComponent.html +2 -2
- package/docs/components/EclListIllustrationComponent.html +2 -2
- package/docs/components/EclListIllustrationItemComponent.html +2 -2
- package/docs/components/EclLoadingIndicatorComponent.html +2 -2
- package/docs/components/EclMediaContainerComponent.html +2 -2
- package/docs/components/EclMegaMenuComponent.html +2 -2
- package/docs/components/EclMegaMenuFeaturedComponent.html +2 -2
- package/docs/components/EclMegaMenuInfoComponent.html +2 -2
- package/docs/components/EclMegaMenuItemComponent.html +2 -2
- package/docs/components/EclMegaMenuSubitemComponent.html +2 -2
- package/docs/components/EclMenuComponent.html +2 -2
- package/docs/components/EclMenuItemComponent.html +2 -2
- package/docs/components/EclMenuMegaComponent.html +2 -2
- package/docs/components/EclMenuMegaItemComponent.html +2 -2
- package/docs/components/EclModalBodyComponent.html +2 -2
- package/docs/components/EclModalComponent.html +2 -2
- package/docs/components/EclModalFooterComponent.html +2 -2
- package/docs/components/EclModalHeaderComponent.html +2 -2
- package/docs/components/EclMultiselectComponent.html +2 -2
- package/docs/components/EclMultiselectDropdownComponent.html +2 -2
- package/docs/components/EclMultiselectInputComponent.html +2 -2
- package/docs/components/EclMultiselectOptgroupComponent.html +2 -2
- package/docs/components/EclMultiselectOptionComponent.html +2 -2
- package/docs/components/EclNavigationListComponent.html +2 -2
- package/docs/components/EclNavigationListItemComponent.html +2 -2
- package/docs/components/EclNewsTickerComponent.html +2 -2
- package/docs/components/EclNewsTickerItemComponent.html +2 -2
- package/docs/components/EclNotificationComponent.html +2 -2
- package/docs/components/EclPageHeaderComponent.html +2 -2
- package/docs/components/EclPageHeaderDescriptionContainerComponent.html +2 -2
- package/docs/components/EclPageHeaderExpandableComponent.html +2 -2
- package/docs/components/EclPageHeaderSectionComponent.html +2 -2
- package/docs/components/EclPageHeaderSectionInfoComponent.html +2 -2
- package/docs/components/EclPageSummaryComponent.html +2 -2
- package/docs/components/EclPaginationComponent.html +2 -2
- package/docs/components/EclPaginationItemComponent.html +2 -2
- package/docs/components/EclPopoverComponent.html +2 -2
- package/docs/components/EclQuizCardComponent.html +2 -2
- package/docs/components/EclQuizComponent.html +2 -2
- package/docs/components/EclRadioHelpComponent.html +2 -2
- package/docs/components/EclRadioLabelComponent.html +2 -2
- package/docs/components/EclRangeBubbleComponent.html +2 -2
- package/docs/components/EclRangeValueComponent.html +2 -2
- package/docs/components/EclRatingFieldComponent.html +2 -2
- package/docs/components/EclSearchFormComponent.html +2 -2
- package/docs/components/EclSelectContainerComponent.html +2 -2
- package/docs/components/EclSiteFooterComponent.html +2 -2
- package/docs/components/EclSiteFooterCoownerComponent.html +2 -2
- package/docs/components/EclSiteFooterCoreComponent.html +2 -2
- package/docs/components/EclSiteFooterFeedbackComponent.html +2 -2
- package/docs/components/EclSiteFooterFixedContentEUComponent.html +2 -2
- package/docs/components/EclSiteFooterRowCommonComponent.html +2 -2
- package/docs/components/EclSiteHeaderActionComponent.html +2 -2
- package/docs/components/EclSiteHeaderBannerTopComponent.html +2 -2
- package/docs/components/EclSiteHeaderComponent.html +2 -2
- package/docs/components/EclSiteHeaderCustomActionComponent.html +2 -2
- package/docs/components/EclSiteHeaderEnvironmentComponent.html +2 -2
- package/docs/components/EclSiteHeaderLanguageComponent.html +2 -2
- package/docs/components/EclSiteHeaderLanguagePopoverComponent.html +2 -2
- package/docs/components/EclSiteHeaderLoginComponent.html +2 -2
- package/docs/components/EclSiteHeaderNotificationComponent.html +2 -2
- package/docs/components/EclSiteHeaderSearchComponent.html +2 -2
- package/docs/components/EclSloganTickerComponent.html +2 -2
- package/docs/components/EclSocialMediaFollowComponent.html +2 -2
- package/docs/components/EclSocialMediaFollowItemComponent.html +2 -2
- package/docs/components/EclSplashPageComponent.html +2 -2
- package/docs/components/EclSplashPageLanguageCategoryComponent.html +2 -2
- package/docs/components/EclSplashPageLanguageContainerComponent.html +2 -2
- package/docs/components/EclSplashPageLanguageLinkComponent.html +2 -2
- package/docs/components/EclSpotlightComponent.html +2 -2
- package/docs/components/EclSpotlightLinkComponent.html +2 -2
- package/docs/components/EclStickyContainerComponent.html +2 -2
- package/docs/components/EclStoryCardComponent.html +2 -2
- package/docs/components/EclStoryCardGridDetailsComponent.html +2 -2
- package/docs/components/EclStoryCardItemComponent.html +2 -2
- package/docs/components/EclTabComponent.html +2 -2
- package/docs/components/EclTabLabelComponent.html +2 -2
- package/docs/components/EclTableSortButtonComponent.html +2 -2
- package/docs/components/EclTabsComponent.html +2 -2
- package/docs/components/EclTagComponent.html +2 -2
- package/docs/components/EclTextMediaComponent.html +2 -2
- package/docs/components/EclTimelineComponent.html +2 -2
- package/docs/components/EclTimelineItemComponent.html +2 -2
- package/docs/components/EclTimelineItemTogglerComponent.html +2 -2
- package/docs/js/menu-wc.js +0 -6
- package/docs/js/search/search_index.js +2 -2
- package/docs/json/EclIndicatorComponent.md +1 -1
- package/docs/json/EclIndicatorLabelDirective.md +1 -1
- package/docs/json/documentation.json +29 -203
- package/docs/llms.txt +5 -25
- package/docs/miscellaneous/variables.html +48 -48
- package/docs/overview.html +2 -2
- package/docs/properties.html +1 -1
- package/fesm2022/eui-ecl-components-ecl-link.mjs +4 -48
- package/fesm2022/eui-ecl-components-ecl-link.mjs.map +1 -1
- package/package.json +1 -1
- package/types/eui-ecl-components-ecl-link.d.ts +19 -43
- package/types/eui-ecl-components-ecl-link.d.ts.map +1 -1
- package/docs/components/EclIndicatorComponent-1.html +0 -458
- package/docs/directives/EclIndicatorLabelDirective-1.html +0 -422
package/docs/properties.html
CHANGED
|
@@ -1,54 +1,10 @@
|
|
|
1
|
+
import { EclIndicatorComponent, EclIndicatorLabelDirective } from '@eui/ecl/components/ecl-button';
|
|
2
|
+
export { EclIndicatorComponent, EclIndicatorLabelDirective } from '@eui/ecl/components/ecl-button';
|
|
1
3
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { HostBinding,
|
|
4
|
+
import { HostBinding, Directive, inject, ElementRef, Renderer2, input, booleanAttribute, contentChildren, forwardRef, computed, effect } from '@angular/core';
|
|
3
5
|
import { ECLBaseDirective } from '@eui/ecl/core';
|
|
4
6
|
import { EclIconComponent } from '@eui/ecl/components/ecl-icon';
|
|
5
7
|
|
|
6
|
-
/**
|
|
7
|
-
* Component for indicating special content inside the ECL Link.
|
|
8
|
-
* Automatically applies the `ecl-indicator` CSS class.
|
|
9
|
-
*/
|
|
10
|
-
class EclIndicatorComponent {
|
|
11
|
-
constructor() {
|
|
12
|
-
/**
|
|
13
|
-
* Applies the `ecl-indicator` CSS class.
|
|
14
|
-
*/
|
|
15
|
-
this.hasClass = true;
|
|
16
|
-
}
|
|
17
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: EclIndicatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
18
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.2", type: EclIndicatorComponent, isStandalone: true, selector: "[eclIndicator]", host: { properties: { "class.ecl-indicator": "this.hasClass" } }, ngImport: i0, template: "<span class=\"ecl-indicator__value\"><ng-content></ng-content></span>\n<ng-content select=\"[eclIndicatorLabel]\"></ng-content>" }); }
|
|
19
|
-
}
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: EclIndicatorComponent, decorators: [{
|
|
21
|
-
type: Component,
|
|
22
|
-
args: [{ selector: '[eclIndicator]', template: "<span class=\"ecl-indicator__value\"><ng-content></ng-content></span>\n<ng-content select=\"[eclIndicatorLabel]\"></ng-content>" }]
|
|
23
|
-
}], propDecorators: { hasClass: [{
|
|
24
|
-
type: HostBinding,
|
|
25
|
-
args: ['class.ecl-indicator']
|
|
26
|
-
}] } });
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Directive for indicating special content inside the ECL Link.
|
|
30
|
-
* Automatically applies the `ecl-indicator__label` CSS class.
|
|
31
|
-
*/
|
|
32
|
-
class EclIndicatorLabelDirective {
|
|
33
|
-
constructor() {
|
|
34
|
-
/**
|
|
35
|
-
* Applies the `ecl-indicator__label` CSS class.
|
|
36
|
-
*/
|
|
37
|
-
this.hasClass = true;
|
|
38
|
-
}
|
|
39
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: EclIndicatorLabelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
40
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.2", type: EclIndicatorLabelDirective, isStandalone: true, selector: "[eclIndicatorLabel]", host: { properties: { "class.ecl-indicator__label": "this.hasClass" } }, ngImport: i0 }); }
|
|
41
|
-
}
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: EclIndicatorLabelDirective, decorators: [{
|
|
43
|
-
type: Directive,
|
|
44
|
-
args: [{
|
|
45
|
-
selector: '[eclIndicatorLabel]',
|
|
46
|
-
}]
|
|
47
|
-
}], propDecorators: { hasClass: [{
|
|
48
|
-
type: HostBinding,
|
|
49
|
-
args: ['class.ecl-indicator__label']
|
|
50
|
-
}] } });
|
|
51
|
-
|
|
52
8
|
class EclLinkLabelDirective extends ECLBaseDirective {
|
|
53
9
|
get cssClasses() {
|
|
54
10
|
return [super.getCssClasses('ecl-link__label')].join(' ').trim();
|
|
@@ -221,5 +177,5 @@ const EUI_ECL_LINK = [
|
|
|
221
177
|
* Generated bundle index. Do not edit.
|
|
222
178
|
*/
|
|
223
179
|
|
|
224
|
-
export { EUI_ECL_LINK,
|
|
180
|
+
export { EUI_ECL_LINK, EclLinkDirective, EclLinkIconContainerDirective, EclLinkLabelDirective };
|
|
225
181
|
//# sourceMappingURL=eui-ecl-components-ecl-link.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-ecl-components-ecl-link.mjs","sources":["../../components/ecl-link/ecl-indicator/ecl-indicator.component.ts","../../components/ecl-link/ecl-indicator/ecl-indicator.component.html","../../components/ecl-link/ecl-indicator/ecl-indicator.directive.ts","../../components/ecl-link/ecl-link-label.directive.ts","../../components/ecl-link/ecl-link.directive.ts","../../components/ecl-link/index.ts","../../components/ecl-link/eui-ecl-components-ecl-link.ts"],"sourcesContent":["import { Component, HostBinding } from '@angular/core';\n\n/**\n * Component for indicating special content inside the ECL Link.\n * Automatically applies the `ecl-indicator` CSS class.\n */\n@Component({\n selector: '[eclIndicator]',\n templateUrl: './ecl-indicator.component.html',\n})\nexport class EclIndicatorComponent {\n /**\n * Applies the `ecl-indicator` CSS class.\n */\n @HostBinding('class.ecl-indicator') hasClass = true;\n}\n","<span class=\"ecl-indicator__value\"><ng-content></ng-content></span>\n<ng-content select=\"[eclIndicatorLabel]\"></ng-content>","import { Directive, HostBinding } from '@angular/core';\n\n/**\n * Directive for indicating special content inside the ECL Link.\n * Automatically applies the `ecl-indicator__label` CSS class.\n */\n@Directive({\n selector: '[eclIndicatorLabel]',\n})\nexport class EclIndicatorLabelDirective {\n /**\n * Applies the `ecl-indicator__label` CSS class.\n */\n @HostBinding('class.ecl-indicator__label') hasClass = true;\n}\n","import { Directive, HostBinding } from '@angular/core';\n\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n@Directive({\n selector: '[eclLinkLabel]',\n})\nexport class EclLinkLabelDirective extends ECLBaseDirective {\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-link__label')].join(' ').trim();\n }\n}\n\n@Directive({\n selector: '[eclLinkIconContainer]',\n})\nexport class EclLinkIconContainerDirective {\n @HostBinding('class.ecl-link__icon-container') hasClass = true;\n}\n","import { booleanAttribute, 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 {\n el = inject(ElementRef);\n renderer = inject(Renderer2);\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 isBranded = 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' | 'secondary-neutral' | '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 // Add 'ecl-link__icon' class to child icons reactively.\n effect(() => {\n const icons = this.eclIconComponents();\n if (icons?.length > 0) {\n icons.forEach((icn) => {\n icn.addExtraClass('ecl-link__icon');\n });\n }\n });\n }\n\n @HostBinding('class.ecl-link--inverted')\n get hostIsInverted(): boolean {\n return (!this.variant() || this.variant() === 'standalone') && this.isInverted();\n }\n\n @HostBinding('class.ecl-link--brand')\n get hostIsBranded(): boolean {\n return (!this.variant() || this.variant() === 'standalone') && this.isBranded();\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 get hasIcon(): boolean {\n return this._hasIcon();\n }\n\n private _hasIcon = computed(() => {\n return this.eclIconComponents()?.length > 0;\n });\n\n /**\n * Adds speific ECL classes to the <a> component.\n */\n @HostBinding('class')\n get cssClasses(): string {\n const variantClass = this.variant()\n ? (this.variant() === 'secondary' && this.isInverted()\n ? 'ecl-link--secondary-inverted'\n : `ecl-link--${this.variant()}`)\n : '';\n\n return [super.getCssClasses('ecl-link'),\n variantClass,\n (this.variant() === 'primary' && this.isHighlight()) ? 'ecl-link--primary-highlight' : '',\n ].join(' ').trim();\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","import { EclIndicatorComponent } from './ecl-indicator/ecl-indicator.component';\nimport { EclIndicatorLabelDirective } from './ecl-indicator/ecl-indicator.directive';\nimport { EclLinkIconContainerDirective, EclLinkLabelDirective } from './ecl-link-label.directive';\nimport { EclLinkDirective } from './ecl-link.directive';\n\nexport * from './ecl-link.directive';\nexport * from './ecl-link-label.directive';\nexport * from './ecl-indicator/ecl-indicator.component';\nexport * from './ecl-indicator/ecl-indicator.directive';\n\nexport const EUI_ECL_LINK = [\n EclLinkDirective, EclLinkLabelDirective, EclLinkIconContainerDirective, EclIndicatorComponent,\n EclIndicatorLabelDirective,\n] as const;","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAEA;;;AAGG;MAKU,qBAAqB,CAAA;AAJlC,IAAA,WAAA,GAAA;AAKI;;AAEG;QACiC,IAAA,CAAA,QAAQ,GAAG,IAAI;AACtD,IAAA;8GALY,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,4ICVlC,iIACsD,EAAA,CAAA,CAAA;;2FDSzC,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAJjC,SAAS;+BACI,gBAAgB,EAAA,QAAA,EAAA,iIAAA,EAAA;;sBAOzB,WAAW;uBAAC,qBAAqB;;;AEZtC;;;AAGG;MAIU,0BAA0B,CAAA;AAHvC,IAAA,WAAA,GAAA;AAII;;AAEG;QACwC,IAAA,CAAA,QAAQ,GAAG,IAAI;AAC7D,IAAA;8GALY,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAA1B,0BAA0B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,4BAAA,EAAA,eAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAHtC,SAAS;AAAC,YAAA,IAAA,EAAA,CA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AA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,WAAW;AACxB,iBAAA;izBAsCuC,UAAU,CAAC,MAAM,gBAAgB,CAAC,EAAA,EAAA,GAAE,EAAE,WAAW,EAAE,IAAI,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,cAAA,EAAA,CAAA;sBA0B5F,WAAW;uBAAC,0BAA0B;;sBAKtC,WAAW;uBAAC,uBAAuB;;sBAKnC,WAAW;uBAAC,2BAA2B;;sBAKvC,WAAW;uBAAC,sBAAsB;;sBAYlC,WAAW;uBAAC,OAAO;;;AC1FjB,MAAM,YAAY,GAAG;AACxB,IAAA,gBAAgB,EAAE,qBAAqB,EAAE,6BAA6B,EAAE,qBAAqB;IAC7F,0BAA0B;;;ACZ9B;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"eui-ecl-components-ecl-link.mjs","sources":["../../components/ecl-link/ecl-link-label.directive.ts","../../components/ecl-link/ecl-link.directive.ts","../../components/ecl-link/index.ts","../../components/ecl-link/eui-ecl-components-ecl-link.ts"],"sourcesContent":["import { Directive, HostBinding } from '@angular/core';\n\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n@Directive({\n selector: '[eclLinkLabel]',\n})\nexport class EclLinkLabelDirective extends ECLBaseDirective {\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-link__label')].join(' ').trim();\n }\n}\n\n@Directive({\n selector: '[eclLinkIconContainer]',\n})\nexport class EclLinkIconContainerDirective {\n @HostBinding('class.ecl-link__icon-container') hasClass = true;\n}\n","import { booleanAttribute, 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 {\n el = inject(ElementRef);\n renderer = inject(Renderer2);\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 isBranded = 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' | 'secondary-neutral' | '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 // Add 'ecl-link__icon' class to child icons reactively.\n effect(() => {\n const icons = this.eclIconComponents();\n if (icons?.length > 0) {\n icons.forEach((icn) => {\n icn.addExtraClass('ecl-link__icon');\n });\n }\n });\n }\n\n @HostBinding('class.ecl-link--inverted')\n get hostIsInverted(): boolean {\n return (!this.variant() || this.variant() === 'standalone') && this.isInverted();\n }\n\n @HostBinding('class.ecl-link--brand')\n get hostIsBranded(): boolean {\n return (!this.variant() || this.variant() === 'standalone') && this.isBranded();\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 get hasIcon(): boolean {\n return this._hasIcon();\n }\n\n private _hasIcon = computed(() => {\n return this.eclIconComponents()?.length > 0;\n });\n\n /**\n * Adds speific ECL classes to the <a> component.\n */\n @HostBinding('class')\n get cssClasses(): string {\n const variantClass = this.variant()\n ? (this.variant() === 'secondary' && this.isInverted()\n ? 'ecl-link--secondary-inverted'\n : `ecl-link--${this.variant()}`)\n : '';\n\n return [super.getCssClasses('ecl-link'),\n variantClass,\n (this.variant() === 'primary' && this.isHighlight()) ? 'ecl-link--primary-highlight' : '',\n ].join(' ').trim();\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","import { EclIndicatorComponent, EclIndicatorLabelDirective } from '@eui/ecl/components/ecl-button';\nimport { EclLinkIconContainerDirective, EclLinkLabelDirective } from './ecl-link-label.directive';\nimport { EclLinkDirective } from './ecl-link.directive';\n\nexport * from './ecl-link.directive';\nexport * from './ecl-link-label.directive';\n// The indicator component/directive are shared with ecl-button; re-exported here\n// so the ecl-link entry point keeps exposing them (non-breaking) while a single\n// EclIndicatorComponent class exists (avoids NG0912 component ID collision).\nexport { EclIndicatorComponent, EclIndicatorLabelDirective } from '@eui/ecl/components/ecl-button';\n\nexport const EUI_ECL_LINK = [\n EclLinkDirective, EclLinkLabelDirective, EclLinkIconContainerDirective, EclIndicatorComponent,\n EclIndicatorLabelDirective,\n] as const;","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAOM,MAAO,qBAAsB,SAAQ,gBAAgB,CAAA;AACvD,IAAA,IACI,UAAU,GAAA;AACV,QAAA,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC,CAAC,IA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,WAAW;uBAAC,0BAA0B;;sBAKtC,WAAW;uBAAC,uBAAuB;;sBAKnC,WAAW;uBAAC,2BAA2B;;sBAKvC,WAAW;uBAAC,sBAAsB;;sBAYlC,WAAW;uBAAC,OAAO;;;ACzFjB,MAAM,YAAY,GAAG;AACxB,IAAA,gBAAgB,EAAE,qBAAqB,EAAE,6BAA6B,EAAE,qBAAqB;IAC7F,0BAA0B;;;ACb9B;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,42 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { EclIndicatorComponent, EclIndicatorLabelDirective } from '@eui/ecl/components/ecl-button';
|
|
2
|
+
export { EclIndicatorComponent, EclIndicatorLabelDirective } from '@eui/ecl/components/ecl-button';
|
|
3
3
|
import { ECLBaseDirective } from '@eui/ecl/core';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
* Component for indicating special content inside the ECL Link.
|
|
7
|
-
* Automatically applies the `ecl-indicator` CSS class.
|
|
8
|
-
*/
|
|
9
|
-
declare class EclIndicatorComponent {
|
|
10
|
-
/**
|
|
11
|
-
* Applies the `ecl-indicator` CSS class.
|
|
12
|
-
*/
|
|
13
|
-
hasClass: boolean;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EclIndicatorComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EclIndicatorComponent, "[eclIndicator]", never, {}, {}, never, ["*", "[eclIndicatorLabel]"], true, never>;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Directive for indicating special content inside the ECL Link.
|
|
20
|
-
* Automatically applies the `ecl-indicator__label` CSS class.
|
|
21
|
-
*/
|
|
22
|
-
declare class EclIndicatorLabelDirective {
|
|
23
|
-
/**
|
|
24
|
-
* Applies the `ecl-indicator__label` CSS class.
|
|
25
|
-
*/
|
|
26
|
-
hasClass: boolean;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EclIndicatorLabelDirective, never>;
|
|
28
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<EclIndicatorLabelDirective, "[eclIndicatorLabel]", never, {}, {}, never, never, true, never>;
|
|
29
|
-
}
|
|
4
|
+
import * as _angular_core from '@angular/core';
|
|
5
|
+
import { ElementRef, Renderer2 } from '@angular/core';
|
|
30
6
|
|
|
31
7
|
declare class EclLinkLabelDirective extends ECLBaseDirective {
|
|
32
8
|
get cssClasses(): string;
|
|
33
|
-
static ɵfac:
|
|
34
|
-
static ɵdir:
|
|
9
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EclLinkLabelDirective, never>;
|
|
10
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<EclLinkLabelDirective, "[eclLinkLabel]", never, {}, {}, never, never, true, never>;
|
|
35
11
|
}
|
|
36
12
|
declare class EclLinkIconContainerDirective {
|
|
37
13
|
hasClass: boolean;
|
|
38
|
-
static ɵfac:
|
|
39
|
-
static ɵdir:
|
|
14
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EclLinkIconContainerDirective, never>;
|
|
15
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<EclLinkIconContainerDirective, "[eclLinkIconContainer]", never, {}, {}, never, never, true, never>;
|
|
40
16
|
}
|
|
41
17
|
|
|
42
18
|
/**
|
|
@@ -49,32 +25,32 @@ declare class EclLinkDirective extends ECLBaseDirective {
|
|
|
49
25
|
* Additional HTML attributes to be set on the link element.
|
|
50
26
|
* Used e.g. by social-media-follow for passing extra_attributes.
|
|
51
27
|
*/
|
|
52
|
-
extraAttributes:
|
|
28
|
+
extraAttributes: _angular_core.InputSignal<{
|
|
53
29
|
name: string;
|
|
54
30
|
value?: string | null;
|
|
55
31
|
}[]>;
|
|
56
32
|
/**
|
|
57
33
|
* Property to style the component as 'inverted' (with dark background). Can be used alone or with 'standalone' variant.
|
|
58
34
|
*/
|
|
59
|
-
isInverted:
|
|
35
|
+
isInverted: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
60
36
|
/**
|
|
61
37
|
* Property to style the component if it consist only of an icon.
|
|
62
38
|
*/
|
|
63
|
-
isIconOnly:
|
|
39
|
+
isIconOnly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
64
40
|
/** Adds class for hightlighted link (works only with 'primary' variant)
|
|
65
41
|
* @deprecated - to be removed in v23. Use variant='primary-highlight', as only primary variant can be highlighted.
|
|
66
42
|
*/
|
|
67
|
-
isHighlight:
|
|
43
|
+
isHighlight: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
68
44
|
/**
|
|
69
45
|
* @deprecated - will be removed in v21. Deprecated on ECL side.
|
|
70
46
|
*/
|
|
71
|
-
isNoVisited:
|
|
72
|
-
isBranded:
|
|
47
|
+
isNoVisited: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
48
|
+
isBranded: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
73
49
|
/**
|
|
74
50
|
* With 'variant' property user can add some more specific styling to the <a> component.
|
|
75
51
|
*/
|
|
76
|
-
variant:
|
|
77
|
-
eclIconComponents:
|
|
52
|
+
variant: _angular_core.InputSignal<"standalone" | "primary" | "secondary" | "secondary-neutral" | "primary-neutral" | "primary-highlight">;
|
|
53
|
+
eclIconComponents: _angular_core.Signal<readonly any[]>;
|
|
78
54
|
constructor();
|
|
79
55
|
get hostIsInverted(): boolean;
|
|
80
56
|
get hostIsBranded(): boolean;
|
|
@@ -97,11 +73,11 @@ declare class EclLinkDirective extends ECLBaseDirective {
|
|
|
97
73
|
* Calls the native blur() method of the default HTML element.
|
|
98
74
|
*/
|
|
99
75
|
onBlur(): void;
|
|
100
|
-
static ɵfac:
|
|
101
|
-
static ɵdir:
|
|
76
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EclLinkDirective, never>;
|
|
77
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<EclLinkDirective, "[eclLink]", never, { "extraAttributes": { "alias": "extraAttributes"; "required": false; "isSignal": true; }; "isInverted": { "alias": "isInverted"; "required": false; "isSignal": true; }; "isIconOnly": { "alias": "isIconOnly"; "required": false; "isSignal": true; }; "isHighlight": { "alias": "isHighlight"; "required": false; "isSignal": true; }; "isNoVisited": { "alias": "isNoVisited"; "required": false; "isSignal": true; }; "isBranded": { "alias": "isBranded"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, {}, ["eclIconComponents"], never, true, never>;
|
|
102
78
|
}
|
|
103
79
|
|
|
104
80
|
declare const EUI_ECL_LINK: readonly [typeof EclLinkDirective, typeof EclLinkLabelDirective, typeof EclLinkIconContainerDirective, typeof EclIndicatorComponent, typeof EclIndicatorLabelDirective];
|
|
105
81
|
|
|
106
|
-
export { EUI_ECL_LINK,
|
|
82
|
+
export { EUI_ECL_LINK, EclLinkDirective, EclLinkIconContainerDirective, EclLinkLabelDirective };
|
|
107
83
|
//# sourceMappingURL=eui-ecl-components-ecl-link.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-ecl-components-ecl-link.d.ts","sources":["../../components/ecl-link/ecl-
|
|
1
|
+
{"version":3,"file":"eui-ecl-components-ecl-link.d.ts","sources":["../../components/ecl-link/ecl-link-label.directive.ts","../../components/ecl-link/ecl-link.directive.ts","../../components/ecl-link/index.ts"],"mappings":";;;;;;AAIA,cAGa,qBAAsB,SAAQ,gBAAgB;;oDAA9C,qBAAqB;sDAArB,qBAAqB;AAKjC;AAED,cAGa,6BAA6B;AACS;oDADtC,6BAA6B;sDAA7B,6BAA6B;AAEzC;;ACfD;;AAEG;AACH,cAGa,gBAAiB,SAAQ,gBAAgB;AAClD,QAAE,UAAA;AACF,cAAQ,SAAA;AAER;;;AAGG;qBACY,aAAA,CAAA,WAAA;;AAAiC;AAAiC;AAEjF;;AAEG;AACH,gBAAU,aAAA,CAAA,wBAAA;AAEV;;AAEG;AACH,gBAAU,aAAA,CAAA,wBAAA;AAEV;;AAEE;AACF,iBAAW,aAAA,CAAA,wBAAA;AAEX;;AAEG;AACH,iBAAW,aAAA,CAAA,wBAAA;AAEX,eAAS,aAAA,CAAA,wBAAA;AAET;;AAEG;AACH,aAAO,aAAA,CAAA,WAAA;AAEP,uBAAiB,aAAA,CAAA,MAAA;;;;;;;AAkDjB;;AAEG;;AAeH;;AAEG;AACH;AAIA;;AAEG;AACH;AAIA;;AAEG;AACH;oDAzHS,gBAAgB;sDAAhB,gBAAgB;AA4H5B;;AC3HD,cAAa,YAAY,mBAAA,gBAAA,SAAA,qBAAA,SAAA,6BAAA,SAAA,qBAAA,SAAA,0BAAA;;;;","names":[]}
|