@eui/eds 22.0.0-alpha.22 → 22.0.0-alpha.23

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.
Files changed (200) hide show
  1. package/docs/changelog.html +51 -0
  2. package/docs/components/EdsButton.html +77 -203
  3. package/docs/components/EdsCalendarDay.html +1 -1
  4. package/docs/components/EdsCalendarHeader.html +1 -1
  5. package/docs/components/EdsDatepicker.html +1 -1
  6. package/docs/components/EdsDialogContainer.html +1 -1
  7. package/docs/components/EdsFeedbackMessage.html +35 -73
  8. package/docs/components/EdsFileUpload.html +1 -1
  9. package/docs/components/EdsFlexLayout.html +1 -1
  10. package/docs/components/EdsGridLayout.html +1 -1
  11. package/docs/components/EdsGridLayoutCell.html +1 -1
  12. package/docs/components/EdsGridLayoutRow.html +1 -1
  13. package/docs/components/EdsIconState.html +38 -3
  14. package/docs/components/EdsInputButton.html +0 -57
  15. package/docs/components/EdsInputCheckbox.html +0 -62
  16. package/docs/components/EdsInputIcon.html +0 -53
  17. package/docs/components/EdsInputNumber.html +0 -60
  18. package/docs/components/EdsInputRadio.html +0 -62
  19. package/docs/components/EdsInputText.html +0 -62
  20. package/docs/components/EdsLabel.html +1 -1
  21. package/docs/components/EdsLanguageSelectorDialog.html +3 -5
  22. package/docs/components/EdsLink.html +1 -1
  23. package/docs/components/EdsLoadingIndicator.html +1 -1
  24. package/docs/components/EdsPaginator.html +1 -1
  25. package/docs/components/EdsRating.html +66 -57
  26. package/docs/components/EdsSelect.html +0 -45
  27. package/docs/components/EdsSnc.html +2 -2
  28. package/docs/components/EdsTab.html +8 -133
  29. package/docs/components/EdsTabBody.html +21 -41
  30. package/docs/components/EdsTabHeader.html +13 -25
  31. package/docs/components/EdsTabHeaderLabel.html +4 -126
  32. package/docs/components/EdsTabHeaderLeftContent.html +4 -126
  33. package/docs/components/EdsTabHeaderRightContent.html +4 -126
  34. package/docs/components/EdsTabHeaderSublabel.html +4 -126
  35. package/docs/components/EdsTabs.html +113 -140
  36. package/docs/components/EdsTextarea.html +0 -62
  37. package/docs/components/EdsTreeListToolbar.html +1 -1
  38. package/docs/components/EdsTrend.html +1 -1
  39. package/docs/directives/EdsColorDirective.html +0 -9
  40. package/docs/directives/EdsFlexColDirective.html +1 -1
  41. package/docs/directives/EdsFlexGrowDirective.html +1 -1
  42. package/docs/directives/EdsFlexNoShrinkDirective.html +1 -1
  43. package/docs/directives/EdsSizeDirective.html +0 -3
  44. package/docs/directives/EdsTooltip.html +45 -281
  45. package/docs/js/search/search_index.js +2 -2
  46. package/docs/json/EdsButton.md +15 -24
  47. package/docs/json/EdsFeedbackMessage.md +4 -10
  48. package/docs/json/EdsIconState.md +2 -1
  49. package/docs/json/EdsRating.md +2 -0
  50. package/docs/json/EdsTab.md +1 -1
  51. package/docs/json/EdsTabs.md +7 -8
  52. package/docs/json/EdsTooltip.md +3 -3
  53. package/docs/json/documentation.json +1803 -2031
  54. package/docs/llms.txt +72 -109
  55. package/docs/miscellaneous/typealiases.html +179 -16
  56. package/docs/miscellaneous/variables.html +16 -16
  57. package/docs/properties.html +1 -1
  58. package/eds-flex-layout/package.json +4 -0
  59. package/eds-grid-layout/package.json +4 -0
  60. package/eds-icon-state/package.json +4 -0
  61. package/eds-label/package.json +4 -0
  62. package/eds-link/package.json +4 -0
  63. package/eds-loading-indicator/package.json +4 -0
  64. package/eds-snc/package.json +4 -0
  65. package/eds-trend/package.json +4 -0
  66. package/fesm2022/eui-eds-eds-alert.mjs +3 -3
  67. package/fesm2022/eui-eds-eds-alert.mjs.map +1 -1
  68. package/fesm2022/eui-eds-eds-button.mjs +53 -85
  69. package/fesm2022/eui-eds-eds-button.mjs.map +1 -1
  70. package/fesm2022/eui-eds-eds-calendar.mjs +4 -4
  71. package/fesm2022/eui-eds-eds-calendar.mjs.map +1 -1
  72. package/fesm2022/eui-eds-eds-datepicker.mjs +2 -2
  73. package/fesm2022/eui-eds-eds-datepicker.mjs.map +1 -1
  74. package/fesm2022/eui-eds-eds-dialog.mjs +4 -4
  75. package/fesm2022/eui-eds-eds-dialog.mjs.map +1 -1
  76. package/fesm2022/eui-eds-eds-discussion-thread.mjs +3 -3
  77. package/fesm2022/eui-eds-eds-discussion-thread.mjs.map +1 -1
  78. package/fesm2022/eui-eds-eds-feedback-message.mjs +28 -42
  79. package/fesm2022/eui-eds-eds-feedback-message.mjs.map +1 -1
  80. package/fesm2022/eui-eds-eds-file-upload.mjs +2 -2
  81. package/fesm2022/eui-eds-eds-file-upload.mjs.map +1 -1
  82. package/fesm2022/{eui-eds-utilities-eds-flex-layout.mjs → eui-eds-eds-flex-layout.mjs} +1 -1
  83. package/fesm2022/eui-eds-eds-flex-layout.mjs.map +1 -0
  84. package/fesm2022/{eui-eds-utilities-eds-grid-layout.mjs → eui-eds-eds-grid-layout.mjs} +1 -1
  85. package/fesm2022/eui-eds-eds-grid-layout.mjs.map +1 -0
  86. package/fesm2022/eui-eds-eds-growl.mjs +3 -3
  87. package/fesm2022/eui-eds-eds-growl.mjs.map +1 -1
  88. package/fesm2022/eui-eds-eds-icon-state.mjs +56 -0
  89. package/fesm2022/eui-eds-eds-icon-state.mjs.map +1 -0
  90. package/fesm2022/eui-eds-eds-input-button.mjs +10 -13
  91. package/fesm2022/eui-eds-eds-input-button.mjs.map +1 -1
  92. package/fesm2022/eui-eds-eds-input-checkbox.mjs +6 -17
  93. package/fesm2022/eui-eds-eds-input-checkbox.mjs.map +1 -1
  94. package/fesm2022/eui-eds-eds-input-icon.mjs +10 -9
  95. package/fesm2022/eui-eds-eds-input-icon.mjs.map +1 -1
  96. package/fesm2022/eui-eds-eds-input-number.mjs +5 -14
  97. package/fesm2022/eui-eds-eds-input-number.mjs.map +1 -1
  98. package/fesm2022/eui-eds-eds-input-radio.mjs +6 -17
  99. package/fesm2022/eui-eds-eds-input-radio.mjs.map +1 -1
  100. package/fesm2022/eui-eds-eds-input-text.mjs +5 -16
  101. package/fesm2022/eui-eds-eds-input-text.mjs.map +1 -1
  102. package/fesm2022/{eui-eds-utilities-eds-label.mjs → eui-eds-eds-label.mjs} +1 -1
  103. package/fesm2022/eui-eds-eds-label.mjs.map +1 -0
  104. package/fesm2022/eui-eds-eds-language-selector.mjs +5 -9
  105. package/fesm2022/eui-eds-eds-language-selector.mjs.map +1 -1
  106. package/fesm2022/{eui-eds-utilities-eds-link.mjs → eui-eds-eds-link.mjs} +1 -1
  107. package/fesm2022/eui-eds-eds-link.mjs.map +1 -0
  108. package/fesm2022/{eui-eds-utilities-eds-loading-indicator.mjs → eui-eds-eds-loading-indicator.mjs} +1 -1
  109. package/fesm2022/eui-eds-eds-loading-indicator.mjs.map +1 -0
  110. package/fesm2022/eui-eds-eds-paginator.mjs +2 -2
  111. package/fesm2022/eui-eds-eds-paginator.mjs.map +1 -1
  112. package/fesm2022/eui-eds-eds-progress-bar.mjs +3 -3
  113. package/fesm2022/eui-eds-eds-progress-bar.mjs.map +1 -1
  114. package/fesm2022/eui-eds-eds-rating.mjs +30 -16
  115. package/fesm2022/eui-eds-eds-rating.mjs.map +1 -1
  116. package/fesm2022/eui-eds-eds-select.mjs +10 -33
  117. package/fesm2022/eui-eds-eds-select.mjs.map +1 -1
  118. package/fesm2022/{eui-eds-utilities-eds-snc.mjs → eui-eds-eds-snc.mjs} +3 -3
  119. package/fesm2022/eui-eds-eds-snc.mjs.map +1 -0
  120. package/fesm2022/eui-eds-eds-tabs.mjs +192 -259
  121. package/fesm2022/eui-eds-eds-tabs.mjs.map +1 -1
  122. package/fesm2022/eui-eds-eds-textarea.mjs +5 -16
  123. package/fesm2022/eui-eds-eds-textarea.mjs.map +1 -1
  124. package/fesm2022/eui-eds-eds-tooltip.mjs +71 -86
  125. package/fesm2022/eui-eds-eds-tooltip.mjs.map +1 -1
  126. package/fesm2022/eui-eds-eds-tree-list.mjs +2 -2
  127. package/fesm2022/eui-eds-eds-tree-list.mjs.map +1 -1
  128. package/fesm2022/eui-eds-eds-tree.mjs +2 -2
  129. package/fesm2022/eui-eds-eds-tree.mjs.map +1 -1
  130. package/fesm2022/{eui-eds-utilities-eds-trend.mjs → eui-eds-eds-trend.mjs} +1 -1
  131. package/fesm2022/eui-eds-eds-trend.mjs.map +1 -0
  132. package/package.json +33 -33
  133. package/types/eui-eds-eds-button.d.ts +47 -33
  134. package/types/eui-eds-eds-button.d.ts.map +1 -1
  135. package/types/eui-eds-eds-feedback-message.d.ts +20 -10
  136. package/types/eui-eds-eds-feedback-message.d.ts.map +1 -1
  137. package/types/{eui-eds-utilities-eds-flex-layout.d.ts → eui-eds-eds-flex-layout.d.ts} +1 -1
  138. package/types/eui-eds-eds-flex-layout.d.ts.map +1 -0
  139. package/types/{eui-eds-utilities-eds-grid-layout.d.ts → eui-eds-eds-grid-layout.d.ts} +1 -1
  140. package/types/eui-eds-eds-grid-layout.d.ts.map +1 -0
  141. package/types/{eui-eds-utilities-eds-icon-state.d.ts → eui-eds-eds-icon-state.d.ts} +8 -3
  142. package/types/eui-eds-eds-icon-state.d.ts.map +1 -0
  143. package/types/eui-eds-eds-input-button.d.ts +5 -1
  144. package/types/eui-eds-eds-input-button.d.ts.map +1 -1
  145. package/types/eui-eds-eds-input-checkbox.d.ts +0 -4
  146. package/types/eui-eds-eds-input-checkbox.d.ts.map +1 -1
  147. package/types/eui-eds-eds-input-icon.d.ts +5 -1
  148. package/types/eui-eds-eds-input-icon.d.ts.map +1 -1
  149. package/types/eui-eds-eds-input-number.d.ts +1 -5
  150. package/types/eui-eds-eds-input-number.d.ts.map +1 -1
  151. package/types/eui-eds-eds-input-radio.d.ts +0 -4
  152. package/types/eui-eds-eds-input-radio.d.ts.map +1 -1
  153. package/types/eui-eds-eds-input-text.d.ts +1 -5
  154. package/types/eui-eds-eds-input-text.d.ts.map +1 -1
  155. package/types/{eui-eds-utilities-eds-label.d.ts → eui-eds-eds-label.d.ts} +1 -1
  156. package/types/eui-eds-eds-label.d.ts.map +1 -0
  157. package/types/eui-eds-eds-language-selector.d.ts.map +1 -1
  158. package/types/{eui-eds-utilities-eds-link.d.ts → eui-eds-eds-link.d.ts} +1 -1
  159. package/types/eui-eds-eds-link.d.ts.map +1 -0
  160. package/types/{eui-eds-utilities-eds-loading-indicator.d.ts → eui-eds-eds-loading-indicator.d.ts} +1 -1
  161. package/types/eui-eds-eds-loading-indicator.d.ts.map +1 -0
  162. package/types/eui-eds-eds-rating.d.ts +19 -2
  163. package/types/eui-eds-eds-rating.d.ts.map +1 -1
  164. package/types/eui-eds-eds-select.d.ts +1 -5
  165. package/types/eui-eds-eds-select.d.ts.map +1 -1
  166. package/types/{eui-eds-utilities-eds-snc.d.ts → eui-eds-eds-snc.d.ts} +1 -1
  167. package/types/eui-eds-eds-snc.d.ts.map +1 -0
  168. package/types/eui-eds-eds-tabs.d.ts +87 -100
  169. package/types/eui-eds-eds-tabs.d.ts.map +1 -1
  170. package/types/eui-eds-eds-textarea.d.ts +1 -5
  171. package/types/eui-eds-eds-textarea.d.ts.map +1 -1
  172. package/types/eui-eds-eds-tooltip.d.ts +27 -25
  173. package/types/eui-eds-eds-tooltip.d.ts.map +1 -1
  174. package/types/{eui-eds-utilities-eds-trend.d.ts → eui-eds-eds-trend.d.ts} +1 -1
  175. package/types/eui-eds-eds-trend.d.ts.map +1 -0
  176. package/fesm2022/eui-eds-utilities-eds-flex-layout.mjs.map +0 -1
  177. package/fesm2022/eui-eds-utilities-eds-grid-layout.mjs.map +0 -1
  178. package/fesm2022/eui-eds-utilities-eds-icon-state.mjs +0 -49
  179. package/fesm2022/eui-eds-utilities-eds-icon-state.mjs.map +0 -1
  180. package/fesm2022/eui-eds-utilities-eds-label.mjs.map +0 -1
  181. package/fesm2022/eui-eds-utilities-eds-link.mjs.map +0 -1
  182. package/fesm2022/eui-eds-utilities-eds-loading-indicator.mjs.map +0 -1
  183. package/fesm2022/eui-eds-utilities-eds-snc.mjs.map +0 -1
  184. package/fesm2022/eui-eds-utilities-eds-trend.mjs.map +0 -1
  185. package/types/eui-eds-utilities-eds-flex-layout.d.ts.map +0 -1
  186. package/types/eui-eds-utilities-eds-grid-layout.d.ts.map +0 -1
  187. package/types/eui-eds-utilities-eds-icon-state.d.ts.map +0 -1
  188. package/types/eui-eds-utilities-eds-label.d.ts.map +0 -1
  189. package/types/eui-eds-utilities-eds-link.d.ts.map +0 -1
  190. package/types/eui-eds-utilities-eds-loading-indicator.d.ts.map +0 -1
  191. package/types/eui-eds-utilities-eds-snc.d.ts.map +0 -1
  192. package/types/eui-eds-utilities-eds-trend.d.ts.map +0 -1
  193. package/utilities/eds-flex-layout/package.json +0 -4
  194. package/utilities/eds-grid-layout/package.json +0 -4
  195. package/utilities/eds-icon-state/package.json +0 -4
  196. package/utilities/eds-label/package.json +0 -4
  197. package/utilities/eds-link/package.json +0 -4
  198. package/utilities/eds-loading-indicator/package.json +0 -4
  199. package/utilities/eds-snc/package.json +0 -4
  200. package/utilities/eds-trend/package.json +0 -4
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, computed, ChangeDetectionStrategy, Component, inject, ElementRef, booleanAttribute, numberAttribute, HostListener, Input, Directive } from '@angular/core';
2
+ import { input, ChangeDetectionStrategy, Component, numberAttribute, booleanAttribute, signal, inject, ElementRef, effect, Directive } from '@angular/core';
3
3
  import { Overlay, ConnectionPositionPair } from '@angular/cdk/overlay';
4
4
  import { Subject, BehaviorSubject, Subscription, timer, fromEvent, take } from 'rxjs';
5
5
  import { ComponentPortal } from '@angular/cdk/portal';
@@ -32,28 +32,19 @@ class EdsTooltipContainer {
32
32
  */
33
33
  this.e2e = input('eds-tooltip', /* @ts-ignore */
34
34
  ...(ngDevMode ? [{ debugName: "e2e" }] : /* istanbul ignore next */ []));
35
- /**
36
- * Computes and returns the CSS classes for the component based on its current state.
37
- */
38
- this.hostClasses = computed(() => {
39
- const cfg = this.config();
40
- return ['eds-tooltip', 'eds-tooltip--content-' + cfg.contentAlign, 'eds-tooltip--' + cfg.colorClass]
41
- .join(' ')
42
- .trim();
43
- }, /* @ts-ignore */
44
- ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
45
35
  }
46
36
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: EdsTooltipContainer, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
47
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.2", type: EdsTooltipContainer, isStandalone: true, selector: "eds-tooltip-container", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null }, e2e: { classPropertyName: "e2e", publicName: "e2e", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClasses()", "attr.data-e2e": "e2e()", "@showHide": "\"visible\"" }, classAttribute: "eds-tooltip" }, ngImport: i0, template: "<div class=\"eds-tooltip__content\" [innerHTML]=\"config().tooltipContent\"></div>\n", styles: [".eui-21 .eds-tooltip-panel{margin-bottom:var(--eds-sp-2xl);background:transparent!important}.eui-21 .eds-tooltip-panel.cdk-overlay-pane{background:transparent!important}.eui-21 .eds-tooltip-panel.eds-tooltip--above :host{margin-bottom:var(--eds-sp-s)}.eui-21 .eds-tooltip-panel.eds-tooltip--above :host:before{border-color:var(--eds-c-surface-inverted) transparent transparent transparent;bottom:2px;left:calc(50% - 8px);transform:translateY(16px)}.eui-21 .eds-tooltip-panel.eds-tooltip--below :host{margin-top:var(--eds-sp-s)}.eui-21 .eds-tooltip-panel.eds-tooltip--below :host:before{border-color:transparent transparent var(--eds-c-surface-inverted) transparent;left:calc(50% - 8px);top:0;transform:translateY(-100%)}.eui-21 .eds-tooltip-panel.eds-tooltip--left :host,.eui-21 .eds-tooltip-panel.eds-tooltip--before :host{margin-right:var(--eds-sp-s)}.eui-21 .eds-tooltip-panel.eds-tooltip--left :host:before,.eui-21 .eds-tooltip-panel.eds-tooltip--before :host:before{border-color:transparent transparent transparent var(--eds-c-surface-inverted);right:-6px;top:50%;transform:translate(8px,-8px)}.eui-21 .eds-tooltip-panel.eds-tooltip--right :host,.eui-21 .eds-tooltip-panel.eds-tooltip--after :host{margin-left:var(--eds-sp-s)}.eui-21 .eds-tooltip-panel.eds-tooltip--right :host:before,.eui-21 .eds-tooltip-panel.eds-tooltip--after :host:before{border-color:transparent var(--eds-c-surface-inverted) transparent transparent;left:-6px;top:50%;transform:translate(-8px,-8px)}.eui-21 :host{max-width:50vw;display:block;position:relative;background:transparent}.eui-21 :host:before{border-color:transparent;border-style:solid;border-width:8px;bottom:0;content:\"\";display:block;height:0;position:absolute;width:0}.eui-21 :host.eds-tooltip--content-left{text-align:left}.eui-21 :host.eds-tooltip--content-right{text-align:right}.eui-21 :host.eds-tooltip--content-center{text-align:center}.eui-21 :host.eds-tooltip--content-justify{text-align:justify}.eui-21 :host .eds-tooltip__content{background-color:var(--eds-c-surface-inverted);border-radius:var(--eds-br-s);box-shadow:var(--eds-sh-2);color:var(--eds-c-on-surface-inverted);letter-spacing:.05em;padding:var(--eds-sp-2xs);white-space:pre-line;font:var(--eds-f-label-s)}\n"], animations: [showHide], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
37
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.2", type: EdsTooltipContainer, isStandalone: true, selector: "eds-tooltip-container", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null }, e2e: { classPropertyName: "e2e", publicName: "e2e", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.content-align": "config().contentAlign", "attr.color": "config().colorClass", "attr.data-e2e": "e2e()", "@showHide": "\"visible\"" }, classAttribute: "eds-tooltip" }, ngImport: i0, template: "<div class=\"eds-tooltip__content\" [innerHTML]=\"config().tooltipContent\"></div>\n", styles: [".eui-21 .eds-tooltip-panel{margin-bottom:var(--eds-sp-2xl);background:transparent!important}.eui-21 .eds-tooltip-panel.cdk-overlay-pane{background:transparent!important}.eui-21 .eds-tooltip-panel.eds-tooltip--above :host{margin-bottom:var(--eds-sp-s)}.eui-21 .eds-tooltip-panel.eds-tooltip--above :host:before{border-color:var(--eds-c-surface-inverted) transparent transparent transparent;bottom:2px;left:calc(50% - 8px);transform:translateY(16px)}.eui-21 .eds-tooltip-panel.eds-tooltip--below :host{margin-top:var(--eds-sp-s)}.eui-21 .eds-tooltip-panel.eds-tooltip--below :host:before{border-color:transparent transparent var(--eds-c-surface-inverted) transparent;left:calc(50% - 8px);top:0;transform:translateY(-100%)}.eui-21 .eds-tooltip-panel.eds-tooltip--left :host,.eui-21 .eds-tooltip-panel.eds-tooltip--before :host{margin-right:var(--eds-sp-s)}.eui-21 .eds-tooltip-panel.eds-tooltip--left :host:before,.eui-21 .eds-tooltip-panel.eds-tooltip--before :host:before{border-color:transparent transparent transparent var(--eds-c-surface-inverted);right:-6px;top:50%;transform:translate(8px,-8px)}.eui-21 .eds-tooltip-panel.eds-tooltip--right :host,.eui-21 .eds-tooltip-panel.eds-tooltip--after :host{margin-left:var(--eds-sp-s)}.eui-21 .eds-tooltip-panel.eds-tooltip--right :host:before,.eui-21 .eds-tooltip-panel.eds-tooltip--after :host:before{border-color:transparent var(--eds-c-surface-inverted) transparent transparent;left:-6px;top:50%;transform:translate(-8px,-8px)}.eui-21 :host{max-width:50vw;display:block;position:relative;background:transparent}.eui-21 :host:before{border-color:transparent;border-style:solid;border-width:8px;bottom:0;content:\"\";display:block;height:0;position:absolute;width:0}.eui-21 :host[content-align=left]{text-align:left}.eui-21 :host[content-align=right]{text-align:right}.eui-21 :host[content-align=center]{text-align:center}.eui-21 :host[content-align=justify]{text-align:justify}.eui-21 :host .eds-tooltip__content{background-color:var(--eds-c-surface-inverted);border-radius:var(--eds-br-s);box-shadow:var(--eds-sh-2);color:var(--eds-c-on-surface-inverted);letter-spacing:.05em;padding:var(--eds-sp-2xs);white-space:pre-line;font:var(--eds-f-label-s)}\n"], animations: [showHide], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
48
38
  }
49
39
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: EdsTooltipContainer, decorators: [{
50
40
  type: Component,
51
41
  args: [{ selector: 'eds-tooltip-container', animations: [showHide], changeDetection: ChangeDetectionStrategy.OnPush, host: {
52
42
  class: 'eds-tooltip',
53
- '[class]': 'hostClasses()',
43
+ '[attr.content-align]': 'config().contentAlign',
44
+ '[attr.color]': 'config().colorClass',
54
45
  '[attr.data-e2e]': 'e2e()',
55
46
  '[@showHide]': '"visible"',
56
- }, template: "<div class=\"eds-tooltip__content\" [innerHTML]=\"config().tooltipContent\"></div>\n", styles: [".eui-21 .eds-tooltip-panel{margin-bottom:var(--eds-sp-2xl);background:transparent!important}.eui-21 .eds-tooltip-panel.cdk-overlay-pane{background:transparent!important}.eui-21 .eds-tooltip-panel.eds-tooltip--above :host{margin-bottom:var(--eds-sp-s)}.eui-21 .eds-tooltip-panel.eds-tooltip--above :host:before{border-color:var(--eds-c-surface-inverted) transparent transparent transparent;bottom:2px;left:calc(50% - 8px);transform:translateY(16px)}.eui-21 .eds-tooltip-panel.eds-tooltip--below :host{margin-top:var(--eds-sp-s)}.eui-21 .eds-tooltip-panel.eds-tooltip--below :host:before{border-color:transparent transparent var(--eds-c-surface-inverted) transparent;left:calc(50% - 8px);top:0;transform:translateY(-100%)}.eui-21 .eds-tooltip-panel.eds-tooltip--left :host,.eui-21 .eds-tooltip-panel.eds-tooltip--before :host{margin-right:var(--eds-sp-s)}.eui-21 .eds-tooltip-panel.eds-tooltip--left :host:before,.eui-21 .eds-tooltip-panel.eds-tooltip--before :host:before{border-color:transparent transparent transparent var(--eds-c-surface-inverted);right:-6px;top:50%;transform:translate(8px,-8px)}.eui-21 .eds-tooltip-panel.eds-tooltip--right :host,.eui-21 .eds-tooltip-panel.eds-tooltip--after :host{margin-left:var(--eds-sp-s)}.eui-21 .eds-tooltip-panel.eds-tooltip--right :host:before,.eui-21 .eds-tooltip-panel.eds-tooltip--after :host:before{border-color:transparent var(--eds-c-surface-inverted) transparent transparent;left:-6px;top:50%;transform:translate(-8px,-8px)}.eui-21 :host{max-width:50vw;display:block;position:relative;background:transparent}.eui-21 :host:before{border-color:transparent;border-style:solid;border-width:8px;bottom:0;content:\"\";display:block;height:0;position:absolute;width:0}.eui-21 :host.eds-tooltip--content-left{text-align:left}.eui-21 :host.eds-tooltip--content-right{text-align:right}.eui-21 :host.eds-tooltip--content-center{text-align:center}.eui-21 :host.eds-tooltip--content-justify{text-align:justify}.eui-21 :host .eds-tooltip__content{background-color:var(--eds-c-surface-inverted);border-radius:var(--eds-br-s);box-shadow:var(--eds-sh-2);color:var(--eds-c-on-surface-inverted);letter-spacing:.05em;padding:var(--eds-sp-2xs);white-space:pre-line;font:var(--eds-f-label-s)}\n"] }]
47
+ }, template: "<div class=\"eds-tooltip__content\" [innerHTML]=\"config().tooltipContent\"></div>\n", styles: [".eui-21 .eds-tooltip-panel{margin-bottom:var(--eds-sp-2xl);background:transparent!important}.eui-21 .eds-tooltip-panel.cdk-overlay-pane{background:transparent!important}.eui-21 .eds-tooltip-panel.eds-tooltip--above :host{margin-bottom:var(--eds-sp-s)}.eui-21 .eds-tooltip-panel.eds-tooltip--above :host:before{border-color:var(--eds-c-surface-inverted) transparent transparent transparent;bottom:2px;left:calc(50% - 8px);transform:translateY(16px)}.eui-21 .eds-tooltip-panel.eds-tooltip--below :host{margin-top:var(--eds-sp-s)}.eui-21 .eds-tooltip-panel.eds-tooltip--below :host:before{border-color:transparent transparent var(--eds-c-surface-inverted) transparent;left:calc(50% - 8px);top:0;transform:translateY(-100%)}.eui-21 .eds-tooltip-panel.eds-tooltip--left :host,.eui-21 .eds-tooltip-panel.eds-tooltip--before :host{margin-right:var(--eds-sp-s)}.eui-21 .eds-tooltip-panel.eds-tooltip--left :host:before,.eui-21 .eds-tooltip-panel.eds-tooltip--before :host:before{border-color:transparent transparent transparent var(--eds-c-surface-inverted);right:-6px;top:50%;transform:translate(8px,-8px)}.eui-21 .eds-tooltip-panel.eds-tooltip--right :host,.eui-21 .eds-tooltip-panel.eds-tooltip--after :host{margin-left:var(--eds-sp-s)}.eui-21 .eds-tooltip-panel.eds-tooltip--right :host:before,.eui-21 .eds-tooltip-panel.eds-tooltip--after :host:before{border-color:transparent var(--eds-c-surface-inverted) transparent transparent;left:-6px;top:50%;transform:translate(-8px,-8px)}.eui-21 :host{max-width:50vw;display:block;position:relative;background:transparent}.eui-21 :host:before{border-color:transparent;border-style:solid;border-width:8px;bottom:0;content:\"\";display:block;height:0;position:absolute;width:0}.eui-21 :host[content-align=left]{text-align:left}.eui-21 :host[content-align=right]{text-align:right}.eui-21 :host[content-align=center]{text-align:center}.eui-21 :host[content-align=justify]{text-align:justify}.eui-21 :host .eds-tooltip__content{background-color:var(--eds-c-surface-inverted);border-radius:var(--eds-br-s);box-shadow:var(--eds-sh-2);color:var(--eds-c-on-surface-inverted);letter-spacing:.05em;padding:var(--eds-sp-2xs);white-space:pre-line;font:var(--eds-f-label-s)}\n"] }]
57
48
  }], propDecorators: { config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: true }] }], e2e: [{ type: i0.Input, args: [{ isSignal: true, alias: "e2e", required: false }] }] } });
58
49
 
59
50
  class EdsTooltip {
@@ -63,43 +54,54 @@ class EdsTooltip {
63
54
  *
64
55
  * @default 'eds-tooltip'
65
56
  */
66
- this.e2eAttr = 'eds-tooltip';
57
+ this.e2eAttr = input('eds-tooltip', /* @ts-ignore */
58
+ ...(ngDevMode ? [{ debugName: "e2eAttr" }] : /* istanbul ignore next */ []));
67
59
  /**
68
60
  * Sets the delay for the tooltip to be visible.
69
61
  *
70
62
  * @default 0
71
63
  */
72
- this.showDelay = 0;
64
+ this.showDelay = input(0, { ...(ngDevMode ? { debugName: "showDelay" } : /* istanbul ignore next */ {}), transform: numberAttribute });
73
65
  /**
74
66
  * Sets the delay for the tooltip to be hidden
75
67
  *
76
68
  * @default 0
77
69
  */
78
- this.hideDelay = 0;
70
+ this.hideDelay = input(0, { ...(ngDevMode ? { debugName: "hideDelay" } : /* istanbul ignore next */ {}), transform: numberAttribute });
79
71
  /**
80
72
  * Sets the alignment of the content in the tooltip.
81
73
  *
82
- * @default 'center''
74
+ * @default 'center'
83
75
  */
84
- this.contentAlignment = 'center';
76
+ this.contentAlignment = input('center', /* @ts-ignore */
77
+ ...(ngDevMode ? [{ debugName: "contentAlignment" }] : /* istanbul ignore next */ []));
85
78
  /**
86
79
  * Sets the position of the tooltip relative to its trigger element.
87
80
  *
88
- * @default 'center''
81
+ * @default 'above'
89
82
  */
90
- this.position = 'above';
83
+ this.position = input('above', /* @ts-ignore */
84
+ ...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
91
85
  /**
92
86
  * Whether the tooltip is disabled.
93
87
  *
94
88
  * @default false (enable)
95
89
  */
96
- this.isDisabled = false;
90
+ this.isDisabled = input(false, { ...(ngDevMode ? { debugName: "isDisabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
91
+ /**
92
+ * Tooltip content.
93
+ */
94
+ this.tooltipContent = input('', { ...(ngDevMode ? { debugName: "tooltipContent" } : /* istanbul ignore next */ {}), alias: 'edsTooltip' });
97
95
  /**
98
96
  * Semantic color of the tooltip.
99
97
  *
100
98
  * @default 'secondary'
101
99
  */
102
- this.color = 'secondary';
100
+ this.color = input('secondary', /* @ts-ignore */
101
+ ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
102
+ /** Internal, runtime-resolved position (seeded from the `position` input, updated by the overlay). */
103
+ this._position = signal('above', /* @ts-ignore */
104
+ ...(ngDevMode ? [{ debugName: "_position" }] : /* istanbul ignore next */ []));
103
105
  this.originX = 'center';
104
106
  this.originY = 'top';
105
107
  this.overlayX = 'center';
@@ -116,15 +118,20 @@ class EdsTooltip {
116
118
  this.positionStrategySubscription = new Subscription();
117
119
  this.overlay = inject(Overlay);
118
120
  this.host = inject(ElementRef);
119
- }
120
- ngOnChanges() {
121
- if (this.tooltipInstance) {
122
- this.tooltipInstance.setInput('config', this.getTooltipConfig());
123
- }
124
- this.setPosition();
125
- }
126
- ngOnInit() {
127
- this.setPosition();
121
+ // Sync the position input into the runtime position and recompute the position strategy;
122
+ // also push updated config to a live tooltip instance whenever inputs change.
123
+ effect(() => {
124
+ this._position.set(this.position());
125
+ this.setPosition();
126
+ // Touch the other config-driving inputs so this effect re-runs on their change.
127
+ this.contentAlignment();
128
+ this.color();
129
+ this.tooltipContent();
130
+ this.e2eAttr();
131
+ if (this.tooltipInstance) {
132
+ this.tooltipInstance.setInput('config', this.getTooltipConfig());
133
+ }
134
+ });
128
135
  }
129
136
  ngOnDestroy() {
130
137
  this.destroy$.next(true);
@@ -136,12 +143,6 @@ class EdsTooltip {
136
143
  this.overlayRef?.dispose();
137
144
  this.overlayRef = null;
138
145
  }
139
- mouseEntering(event) {
140
- this.show(event.target ?? undefined);
141
- }
142
- focused(event) {
143
- this.show(event.target ?? undefined);
144
- }
145
146
  /**
146
147
  * Returns the current open state.
147
148
  *
@@ -159,8 +160,8 @@ class EdsTooltip {
159
160
  this.mouseleaveSubscription.unsubscribe();
160
161
  this.blurSubscription.unsubscribe();
161
162
  this.showDelaySubscription.unsubscribe();
162
- this.showDelaySubscription = timer(this.showDelay).subscribe(() => {
163
- if (!this.isOpen && !this.isDisabled && this.tooltipContent) {
163
+ this.showDelaySubscription = timer(this.showDelay()).subscribe(() => {
164
+ if (!this.isOpen && !this.isDisabled() && this.tooltipContent()) {
164
165
  const positionStrategy = this.overlay
165
166
  .position()
166
167
  .flexibleConnectedTo(origin)
@@ -179,7 +180,7 @@ class EdsTooltip {
179
180
  scrollStrategy,
180
181
  });
181
182
  this.positionStrategySubscription = positionStrategy.positionChanges.subscribe((overlayPosition) => {
182
- this.position = this.getPosition(overlayPosition);
183
+ this._position.set(this.getPosition(overlayPosition));
183
184
  const positionClasses = [
184
185
  'eds-tooltip--left',
185
186
  'eds-tooltip--right',
@@ -189,7 +190,8 @@ class EdsTooltip {
189
190
  'eds-tooltip--after',
190
191
  ];
191
192
  this.overlayRef?.removePanelClass(positionClasses);
192
- this.overlayRef?.addPanelClass(['eds-tooltip--' + this.position]);
193
+ this.overlayRef?.addPanelClass(['eds-tooltip--' + this._position()]);
194
+ this.tooltipInstance?.setInput('config', this.getTooltipConfig());
193
195
  });
194
196
  const componentPortal = new ComponentPortal(EdsTooltipContainer, null);
195
197
  this.tooltipInstance = this.overlayRef.attach(componentPortal);
@@ -208,7 +210,7 @@ class EdsTooltip {
208
210
  * Method that closes a tooltip.
209
211
  */
210
212
  hide() {
211
- timer(this.hideDelay)
213
+ timer(this.hideDelay())
212
214
  .pipe(take(1))
213
215
  .subscribe(() => {
214
216
  this.isOpen$.next(false);
@@ -220,6 +222,12 @@ class EdsTooltip {
220
222
  this.overlayRef = null;
221
223
  });
222
224
  }
225
+ mouseEntering(event) {
226
+ this.show(event.target ?? undefined);
227
+ }
228
+ focused(event) {
229
+ this.show(event.target ?? undefined);
230
+ }
223
231
  onEscapePressed(event) {
224
232
  if (this.isOpen) {
225
233
  event.stopPropagation();
@@ -229,15 +237,15 @@ class EdsTooltip {
229
237
  /**
230
238
  * Generates and returns the tooltip configuration based on the defined tooltip properties.
231
239
  *
232
- * @returns {edsTooltipInterface} The tooltip configuration object, including attributes used in container component.
240
+ * @returns {EdsTooltipInterface} The tooltip configuration object, including attributes used in container component.
233
241
  */
234
242
  getTooltipConfig() {
235
243
  return {
236
- e2eAttr: this.e2eAttr,
237
- tooltipContent: this.tooltipContent,
238
- position: this.position,
239
- contentAlign: this.contentAlignment,
240
- colorClass: this.color,
244
+ e2eAttr: this.e2eAttr(),
245
+ tooltipContent: this.tooltipContent(),
246
+ position: this._position(),
247
+ contentAlign: this.contentAlignment(),
248
+ colorClass: this.color(),
241
249
  };
242
250
  }
243
251
  /**
@@ -259,19 +267,20 @@ class EdsTooltip {
259
267
  if (overlayPosition.connectionPair.originX === 'end' && overlayPosition.connectionPair.overlayX === 'start') {
260
268
  return 'right';
261
269
  }
262
- return this.position;
270
+ return this._position();
263
271
  }
264
272
  /**
265
- * Sets the position-related properties based on the current `position` value.
273
+ * Sets the position-related properties based on the current resolved position.
266
274
  */
267
275
  setPosition() {
268
- if (this.position === 'above') {
276
+ const position = this._position();
277
+ if (position === 'above') {
269
278
  this.originY = 'top';
270
279
  this.overlayY = 'bottom';
271
280
  this.fallbackOriginY = 'bottom';
272
281
  this.fallbackOverlayY = 'top';
273
282
  }
274
- if (this.position === 'right' || this.position === 'after') {
283
+ if (position === 'right' || position === 'after') {
275
284
  this.originX = 'end';
276
285
  this.originY = 'center';
277
286
  this.overlayX = 'start';
@@ -281,13 +290,13 @@ class EdsTooltip {
281
290
  this.fallbackOverlayX = 'end';
282
291
  this.fallbackOverlayY = 'center';
283
292
  }
284
- if (this.position === 'below') {
293
+ if (position === 'below') {
285
294
  this.originY = 'bottom';
286
295
  this.overlayY = 'top';
287
296
  this.fallbackOriginY = 'top';
288
297
  this.fallbackOverlayY = 'bottom';
289
298
  }
290
- if (this.position === 'left' || this.position === 'before') {
299
+ if (position === 'left' || position === 'before') {
291
300
  this.originX = 'start';
292
301
  this.originY = 'center';
293
302
  this.overlayX = 'end';
@@ -299,44 +308,20 @@ class EdsTooltip {
299
308
  }
300
309
  }
301
310
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: EdsTooltip, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
302
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "22.1.2", type: EdsTooltip, isStandalone: true, selector: "[edsTooltip]", inputs: { e2eAttr: "e2eAttr", showDelay: ["showDelay", "showDelay", numberAttribute], hideDelay: ["hideDelay", "hideDelay", numberAttribute], contentAlignment: "contentAlignment", position: "position", isDisabled: ["isDisabled", "isDisabled", booleanAttribute], tooltipContent: ["edsTooltip", "tooltipContent"], color: "color" }, host: { listeners: { "mouseenter": "mouseEntering($event)", "focus": "focused($event)", "keydown.esc": "onEscapePressed($any($event))" } }, exportAs: ["edsTooltip"], usesOnChanges: true, ngImport: i0 }); }
311
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.2", type: EdsTooltip, isStandalone: true, selector: "[edsTooltip]", inputs: { e2eAttr: { classPropertyName: "e2eAttr", publicName: "e2eAttr", isSignal: true, isRequired: false, transformFunction: null }, showDelay: { classPropertyName: "showDelay", publicName: "showDelay", isSignal: true, isRequired: false, transformFunction: null }, hideDelay: { classPropertyName: "hideDelay", publicName: "hideDelay", isSignal: true, isRequired: false, transformFunction: null }, contentAlignment: { classPropertyName: "contentAlignment", publicName: "contentAlignment", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, isDisabled: { classPropertyName: "isDisabled", publicName: "isDisabled", isSignal: true, isRequired: false, transformFunction: null }, tooltipContent: { classPropertyName: "tooltipContent", publicName: "edsTooltip", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "mouseenter": "mouseEntering($event)", "focus": "focused($event)", "keydown.esc": "onEscapePressed($any($event))" } }, exportAs: ["edsTooltip"], ngImport: i0 }); }
303
312
  }
304
313
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: EdsTooltip, decorators: [{
305
314
  type: Directive,
306
315
  args: [{
307
316
  selector: '[edsTooltip]',
308
317
  exportAs: 'edsTooltip',
318
+ host: {
319
+ '(mouseenter)': 'mouseEntering($event)',
320
+ '(focus)': 'focused($event)',
321
+ '(keydown.esc)': 'onEscapePressed($any($event))',
322
+ },
309
323
  }]
310
- }], propDecorators: { e2eAttr: [{
311
- type: Input
312
- }], showDelay: [{
313
- type: Input,
314
- args: [{ transform: numberAttribute }]
315
- }], hideDelay: [{
316
- type: Input,
317
- args: [{ transform: numberAttribute }]
318
- }], contentAlignment: [{
319
- type: Input
320
- }], position: [{
321
- type: Input
322
- }], isDisabled: [{
323
- type: Input,
324
- args: [{ transform: booleanAttribute }]
325
- }], tooltipContent: [{
326
- type: Input,
327
- args: ['edsTooltip']
328
- }], color: [{
329
- type: Input
330
- }], mouseEntering: [{
331
- type: HostListener,
332
- args: ['mouseenter', ['$event']]
333
- }], focused: [{
334
- type: HostListener,
335
- args: ['focus', ['$event']]
336
- }], onEscapePressed: [{
337
- type: HostListener,
338
- args: ['keydown.esc', ['$any($event)']]
339
- }] } });
324
+ }], ctorParameters: () => [], propDecorators: { e2eAttr: [{ type: i0.Input, args: [{ isSignal: true, alias: "e2eAttr", required: false }] }], showDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "showDelay", required: false }] }], hideDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideDelay", required: false }] }], contentAlignment: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentAlignment", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], isDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "isDisabled", required: false }] }], tooltipContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "edsTooltip", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }] } });
340
325
 
341
326
  /**
342
327
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"eui-eds-eds-tooltip.mjs","sources":["../../eds-tooltip/eds-tooltip-animations.ts","../../eds-tooltip/eds-tooltip-container.ts","../../eds-tooltip/eds-tooltip-container.html","../../eds-tooltip/eds-tooltip.ts","../../eds-tooltip/eui-eds-eds-tooltip.ts"],"sourcesContent":["import { animate, state, style, transition, trigger, keyframes } from '@angular/animations';\n\n/**\n * Tooltip display animation.\n */\nexport const showHide = trigger('showHide', [\n state('initial, void, hidden', style({ opacity: 0, transform: 'scale(0)' })),\n state('visible', style({ transform: 'scale(1)' })),\n transition(\n '* => visible',\n animate(\n '200ms cubic-bezier(0, 0, 0.2, 1)',\n keyframes([\n style({ opacity: 0, transform: 'scale(0)', offset: 0 }),\n style({ opacity: 0.5, transform: 'scale(0.99)', offset: 0.5 }),\n style({ opacity: 1, transform: 'scale(1)', offset: 1 }),\n ]),\n ),\n ),\n transition('* => hidden', animate('100ms cubic-bezier(0, 0, 0.2, 1)', style({ opacity: 0 }))),\n]);\n","import { ChangeDetectionStrategy, Component, input, computed } from '@angular/core';\n\nimport { showHide } from './eds-tooltip-animations';\nimport { EdsTooltipInterface } from './eds-tooltip.config';\n\n@Component({\n selector: 'eds-tooltip-container',\n templateUrl: 'eds-tooltip-container.html',\n styleUrl: './eds-tooltip-container.scss',\n // Styles are in globals: \\packages\\styles\\src\\styles\\07-elements\\directives\\_eui-tooltip.scss\n animations: [showHide],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'eds-tooltip',\n '[class]': 'hostClasses()',\n '[attr.data-e2e]': 'e2e()',\n '[@showHide]': '\"visible\"',\n },\n})\nexport class EdsTooltipContainer {\n /**\n * Configuration provided by edsTooltip directive at instantiation.\n */\n config = input.required<EdsTooltipInterface>();\n\n /**\n * Sets the `data-e2e` attribute for the host element.\n * @default 'eds-tooltip'\n */\n e2e = input('eds-tooltip');\n\n /**\n * Computes and returns the CSS classes for the component based on its current state.\n */\n protected hostClasses = computed(() => {\n const cfg = this.config();\n return ['eds-tooltip', 'eds-tooltip--content-' + cfg.contentAlign, 'eds-tooltip--' + cfg.colorClass]\n .join(' ')\n .trim();\n });\n}\n","<div class=\"eds-tooltip__content\" [innerHTML]=\"config().tooltipContent\"></div>\n","import {\n Directive,\n Input,\n OnInit,\n OnDestroy,\n ElementRef,\n HostListener,\n OnChanges,\n numberAttribute,\n booleanAttribute,\n ComponentRef,\n inject,\n} from '@angular/core';\nimport {\n ConnectedOverlayPositionChange,\n ConnectionPositionPair,\n FlexibleConnectedPositionStrategyOrigin,\n Overlay,\n OverlayRef,\n} from '@angular/cdk/overlay';\nimport { BehaviorSubject, fromEvent, Subject, Subscription, take, timer } from 'rxjs';\nimport { ComponentPortal } from '@angular/cdk/portal';\n\nimport { EdsTooltipContainer } from './eds-tooltip-container';\nimport { EdsTooltipInterface } from './eds-tooltip.config';\n\n/**\n * Local narrowed color union — the tooltip's color contract.\n */\nexport type EdsTooltipColor =\n | 'primary'\n | 'secondary'\n | 'info'\n | 'success'\n | 'warning'\n | 'danger'\n | 'accent';\n\n@Directive({\n selector: '[edsTooltip]',\n exportAs: 'edsTooltip',\n})\nexport class EdsTooltip implements OnChanges, OnInit, OnDestroy {\n /**\n * Sets the `data-e2e` attribute for the host element.\n *\n * @default 'eds-tooltip'\n */\n @Input() e2eAttr = 'eds-tooltip';\n /**\n * Sets the delay for the tooltip to be visible.\n *\n * @default 0\n */\n @Input({ transform: numberAttribute }) showDelay = 0;\n /**\n * Sets the delay for the tooltip to be hidden\n *\n * @default 0\n */\n @Input({ transform: numberAttribute }) hideDelay = 0;\n /**\n * Sets the alignment of the content in the tooltip.\n *\n * @default 'center''\n */\n @Input() contentAlignment: 'left' | 'right' | 'center' | 'justify' = 'center';\n /**\n * Sets the position of the tooltip relative to its trigger element.\n *\n * @default 'center''\n */\n @Input() position: 'left' | 'right' | 'above' | 'below' | 'before' | 'after' | string = 'above';\n /**\n * Whether the tooltip is disabled.\n *\n * @default false (enable)\n */\n @Input({ transform: booleanAttribute }) isDisabled = false;\n /**\n * Tooltip content.\n */\n @Input('edsTooltip') tooltipContent!: string;\n /**\n * Semantic color of the tooltip.\n *\n * @default 'secondary'\n */\n @Input() color: EdsTooltipColor = 'secondary';\n\n private originX: 'start' | 'end' | 'center' = 'center';\n private originY: 'top' | 'bottom' | 'center' = 'top';\n private overlayX: 'start' | 'end' | 'center' = 'center';\n private overlayY: 'top' | 'bottom' | 'center' = 'bottom';\n private fallbackOriginX: 'start' | 'end' | 'center' = 'center';\n private fallbackOriginY: 'top' | 'bottom' | 'center' = 'bottom';\n private fallbackOverlayX: 'start' | 'end' | 'center' = 'center';\n private fallbackOverlayY: 'top' | 'bottom' | 'center' = 'top';\n private overlayRef!: OverlayRef | null;\n private destroy$ = new Subject<boolean>();\n private isOpen$ = new BehaviorSubject<boolean>(false);\n private mouseleaveSubscription = new Subscription();\n private blurSubscription = new Subscription();\n private showDelaySubscription = new Subscription();\n private positionStrategySubscription = new Subscription();\n private tooltipInstance!: ComponentRef<EdsTooltipContainer>;\n private overlay = inject(Overlay);\n private host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n ngOnChanges(): void {\n if (this.tooltipInstance) {\n this.tooltipInstance.setInput('config', this.getTooltipConfig());\n }\n\n this.setPosition();\n }\n\n ngOnInit(): void {\n this.setPosition();\n }\n\n ngOnDestroy(): void {\n this.destroy$.next(true);\n this.destroy$.unsubscribe();\n this.mouseleaveSubscription.unsubscribe();\n this.blurSubscription.unsubscribe();\n this.showDelaySubscription.unsubscribe();\n this.positionStrategySubscription.unsubscribe();\n this.overlayRef?.dispose();\n this.overlayRef = null;\n }\n\n @HostListener('mouseenter', ['$event'])\n mouseEntering(event: MouseEvent): void {\n this.show(event.target ?? undefined);\n }\n\n @HostListener('focus', ['$event'])\n focused(event: FocusEvent): void {\n this.show(event.target ?? undefined);\n }\n\n /**\n * Returns the current open state.\n *\n * @returns {boolean} `true` if the element is open, otherwise `false`.\n */\n get isOpen(): boolean {\n return this.isOpen$.value;\n }\n\n /**\n * Method that shows a tooltip.\n *\n * @param origin Origin of the tooltip. Where it will be displayed.\n */\n public show(origin: EventTarget = this.host.nativeElement): void {\n this.mouseleaveSubscription.unsubscribe();\n this.blurSubscription.unsubscribe();\n this.showDelaySubscription.unsubscribe();\n \n this.showDelaySubscription = timer(this.showDelay).subscribe(() => {\n if (!this.isOpen && !this.isDisabled && this.tooltipContent) {\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(origin as FlexibleConnectedPositionStrategyOrigin)\n .withPositions([\n new ConnectionPositionPair(\n { originX: this.originX, originY: this.originY },\n { overlayX: this.overlayX, overlayY: this.overlayY },\n ),\n new ConnectionPositionPair(\n { originX: this.fallbackOriginX, originY: this.fallbackOriginY },\n { overlayX: this.fallbackOverlayX, overlayY: this.fallbackOverlayY },\n ),\n ])\n .withFlexibleDimensions(false)\n .withLockedPosition(true);\n const scrollStrategy = this.overlay.scrollStrategies.reposition({ scrollThrottle: 10 });\n\n this.overlayRef = this.overlay.create({\n hasBackdrop: false,\n usePopover: false,\n panelClass: ['eds-tooltip-panel', 'eui-21'],\n positionStrategy,\n scrollStrategy,\n });\n\n this.positionStrategySubscription = positionStrategy.positionChanges.subscribe((overlayPosition) => {\n this.position = this.getPosition(overlayPosition);\n const positionClasses = [\n 'eds-tooltip--left',\n 'eds-tooltip--right',\n 'eds-tooltip--above',\n 'eds-tooltip--below',\n 'eds-tooltip--before',\n 'eds-tooltip--after',\n ];\n this.overlayRef?.removePanelClass(positionClasses);\n this.overlayRef?.addPanelClass(['eds-tooltip--' + this.position]);\n });\n\n const componentPortal = new ComponentPortal<EdsTooltipContainer>(\n EdsTooltipContainer,\n null,\n );\n\n this.tooltipInstance = this.overlayRef.attach(componentPortal);\n this.tooltipInstance.setInput('config', this.getTooltipConfig());\n\n this.isOpen$.next(true);\n }\n });\n\n this.mouseleaveSubscription = fromEvent(origin, 'mouseleave').subscribe(() => {\n this.hide();\n });\n\n this.blurSubscription = fromEvent(origin, 'blur').subscribe(() => {\n this.hide();\n });\n }\n\n /**\n * Method that closes a tooltip.\n */\n public hide(): void {\n timer(this.hideDelay)\n .pipe(take(1))\n .subscribe(() => {\n this.isOpen$.next(false);\n this.mouseleaveSubscription.unsubscribe();\n this.blurSubscription.unsubscribe();\n this.showDelaySubscription.unsubscribe();\n this.positionStrategySubscription.unsubscribe();\n this.overlayRef?.dispose();\n this.overlayRef = null;\n });\n }\n\n @HostListener('keydown.esc', ['$any($event)'])\n protected onEscapePressed(event: KeyboardEvent): void {\n if (this.isOpen) {\n event.stopPropagation();\n this.hide();\n }\n }\n\n /**\n * Generates and returns the tooltip configuration based on the defined tooltip properties.\n *\n * @returns {edsTooltipInterface} The tooltip configuration object, including attributes used in container component.\n */\n private getTooltipConfig(): EdsTooltipInterface {\n return {\n e2eAttr: this.e2eAttr,\n tooltipContent: this.tooltipContent,\n position: this.position,\n contentAlign: this.contentAlignment,\n colorClass: this.color,\n };\n }\n\n /**\n * Determines and returns the tooltip's position based on the overlay's connection pair.\n *\n * @param {ConnectedOverlayPositionChange} overlayPosition - The overlay position change event.\n * @returns {string} The calculated position (`'above'`, `'below'`, `'left'`, or `'right'`).\n */\n private getPosition(overlayPosition: ConnectedOverlayPositionChange): string {\n if (overlayPosition.connectionPair.originY === 'top' && overlayPosition.connectionPair.overlayY === 'bottom') {\n return 'above';\n }\n if (overlayPosition.connectionPair.originY === 'bottom' && overlayPosition.connectionPair.overlayY === 'top') {\n return 'below';\n }\n if (overlayPosition.connectionPair.originX === 'start' && overlayPosition.connectionPair.overlayX === 'end') {\n return 'left';\n }\n if (overlayPosition.connectionPair.originX === 'end' && overlayPosition.connectionPair.overlayX === 'start') {\n return 'right';\n }\n return this.position;\n }\n\n /**\n * Sets the position-related properties based on the current `position` value.\n */\n private setPosition(): void {\n if (this.position === 'above') {\n this.originY = 'top';\n this.overlayY = 'bottom';\n this.fallbackOriginY = 'bottom';\n this.fallbackOverlayY = 'top';\n }\n if (this.position === 'right' || this.position === 'after') {\n this.originX = 'end';\n this.originY = 'center';\n this.overlayX = 'start';\n this.overlayY = 'center';\n this.fallbackOriginX = 'start';\n this.fallbackOriginY = 'center';\n this.fallbackOverlayX = 'end';\n this.fallbackOverlayY = 'center';\n }\n if (this.position === 'below') {\n this.originY = 'bottom';\n this.overlayY = 'top';\n this.fallbackOriginY = 'top';\n this.fallbackOverlayY = 'bottom';\n }\n if (this.position === 'left' || this.position === 'before') {\n this.originX = 'start';\n this.originY = 'center';\n this.overlayX = 'end';\n this.overlayY = 'center';\n this.fallbackOriginX = 'end';\n this.fallbackOriginY = 'center';\n this.fallbackOverlayX = 'start';\n this.fallbackOverlayY = 'center';\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.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,EAAA,+BAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA,YAAA,CAAA,EAAA,aAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FApC3B,UAAU,EAAA,UAAA,EAAA,CAAA;kBAJtB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,cAAc;AACxB,oBAAA,QAAQ,EAAE,YAAY;AACzB,iBAAA;;sBAOI;;sBAMA,KAAK;uBAAC,EAAE,SAAS,EAAE,eAAe,EAAE;;sBAMpC,KAAK;uBAAC,EAAE,SAAS,EAAE,eAAe,EAAE;;sBAMpC;;sBAMA;;sBAMA,KAAK;uBAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE;;sBAIrC,KAAK;uBAAC,YAAY;;sBAMlB;;sBA4CA,YAAY;uBAAC,YAAY,EAAE,CAAC,QAAQ,CAAC;;sBAKrC,YAAY;uBAAC,OAAO,EAAE,CAAC,QAAQ,CAAC;;sBAuGhC,YAAY;uBAAC,aAAa,EAAE,CAAC,cAAc,CAAC;;;AChPjD;;AAEG;;;;"}
1
+ {"version":3,"file":"eui-eds-eds-tooltip.mjs","sources":["../../eds-tooltip/eds-tooltip-animations.ts","../../eds-tooltip/eds-tooltip-container.ts","../../eds-tooltip/eds-tooltip-container.html","../../eds-tooltip/eds-tooltip.ts","../../eds-tooltip/eui-eds-eds-tooltip.ts"],"sourcesContent":["import { animate, state, style, transition, trigger, keyframes } from '@angular/animations';\n\n/**\n * Tooltip display animation.\n */\nexport const showHide = trigger('showHide', [\n state('initial, void, hidden', style({ opacity: 0, transform: 'scale(0)' })),\n state('visible', style({ transform: 'scale(1)' })),\n transition(\n '* => visible',\n animate(\n '200ms cubic-bezier(0, 0, 0.2, 1)',\n keyframes([\n style({ opacity: 0, transform: 'scale(0)', offset: 0 }),\n style({ opacity: 0.5, transform: 'scale(0.99)', offset: 0.5 }),\n style({ opacity: 1, transform: 'scale(1)', offset: 1 }),\n ]),\n ),\n ),\n transition('* => hidden', animate('100ms cubic-bezier(0, 0, 0.2, 1)', style({ opacity: 0 }))),\n]);\n","import { ChangeDetectionStrategy, Component, input } from '@angular/core';\n\nimport { showHide } from './eds-tooltip-animations';\nimport { EdsTooltipInterface } from './eds-tooltip.config';\n\n@Component({\n selector: 'eds-tooltip-container',\n templateUrl: 'eds-tooltip-container.html',\n styleUrl: './eds-tooltip-container.scss',\n // Styles are in globals: \\packages\\styles\\src\\styles\\07-elements\\directives\\_eui-tooltip.scss\n animations: [showHide],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'eds-tooltip',\n '[attr.content-align]': 'config().contentAlign',\n '[attr.color]': 'config().colorClass',\n '[attr.data-e2e]': 'e2e()',\n '[@showHide]': '\"visible\"',\n },\n})\nexport class EdsTooltipContainer {\n /**\n * Configuration provided by edsTooltip directive at instantiation.\n */\n config = input.required<EdsTooltipInterface>();\n\n /**\n * Sets the `data-e2e` attribute for the host element.\n * @default 'eds-tooltip'\n */\n e2e = input('eds-tooltip');\n}\n","<div class=\"eds-tooltip__content\" [innerHTML]=\"config().tooltipContent\"></div>\n","import {\n Directive,\n OnDestroy,\n ElementRef,\n numberAttribute,\n booleanAttribute,\n ComponentRef,\n inject,\n input,\n signal,\n effect,\n} from '@angular/core';\nimport {\n ConnectedOverlayPositionChange,\n ConnectionPositionPair,\n FlexibleConnectedPositionStrategyOrigin,\n Overlay,\n OverlayRef,\n} from '@angular/cdk/overlay';\nimport { BehaviorSubject, fromEvent, Subject, Subscription, take, timer } from 'rxjs';\nimport { ComponentPortal } from '@angular/cdk/portal';\n\nimport { EdsTooltipContainer } from './eds-tooltip-container';\nimport { EdsTooltipInterface } from './eds-tooltip.config';\n\n/**\n * Local narrowed color union — the tooltip's color contract.\n */\nexport type EdsTooltipColor =\n | 'primary'\n | 'secondary'\n | 'info'\n | 'success'\n | 'warning'\n | 'danger'\n | 'accent';\n\n/** Position of the tooltip relative to its trigger element. */\nexport type EdsTooltipPosition = 'left' | 'right' | 'above' | 'below' | 'before' | 'after' | string;\n\n/** Content alignment inside the tooltip. */\nexport type EdsTooltipContentAlignment = 'left' | 'right' | 'center' | 'justify';\n\n@Directive({\n selector: '[edsTooltip]',\n exportAs: 'edsTooltip',\n host: {\n '(mouseenter)': 'mouseEntering($event)',\n '(focus)': 'focused($event)',\n '(keydown.esc)': 'onEscapePressed($any($event))',\n },\n})\nexport class EdsTooltip implements OnDestroy {\n /**\n * Sets the `data-e2e` attribute for the host element.\n *\n * @default 'eds-tooltip'\n */\n e2eAttr = input('eds-tooltip');\n /**\n * Sets the delay for the tooltip to be visible.\n *\n * @default 0\n */\n showDelay = input(0, { transform: numberAttribute });\n /**\n * Sets the delay for the tooltip to be hidden\n *\n * @default 0\n */\n hideDelay = input(0, { transform: numberAttribute });\n /**\n * Sets the alignment of the content in the tooltip.\n *\n * @default 'center'\n */\n contentAlignment = input<EdsTooltipContentAlignment>('center');\n /**\n * Sets the position of the tooltip relative to its trigger element.\n *\n * @default 'above'\n */\n position = input<EdsTooltipPosition>('above');\n /**\n * Whether the tooltip is disabled.\n *\n * @default false (enable)\n */\n isDisabled = input(false, { transform: booleanAttribute });\n /**\n * Tooltip content.\n */\n tooltipContent = input<string>('', { alias: 'edsTooltip' });\n /**\n * Semantic color of the tooltip.\n *\n * @default 'secondary'\n */\n color = input<EdsTooltipColor>('secondary');\n\n /** Internal, runtime-resolved position (seeded from the `position` input, updated by the overlay). */\n private _position = signal<EdsTooltipPosition>('above');\n\n private originX: 'start' | 'end' | 'center' = 'center';\n private originY: 'top' | 'bottom' | 'center' = 'top';\n private overlayX: 'start' | 'end' | 'center' = 'center';\n private overlayY: 'top' | 'bottom' | 'center' = 'bottom';\n private fallbackOriginX: 'start' | 'end' | 'center' = 'center';\n private fallbackOriginY: 'top' | 'bottom' | 'center' = 'bottom';\n private fallbackOverlayX: 'start' | 'end' | 'center' = 'center';\n private fallbackOverlayY: 'top' | 'bottom' | 'center' = 'top';\n private overlayRef!: OverlayRef | null;\n private destroy$ = new Subject<boolean>();\n private isOpen$ = new BehaviorSubject<boolean>(false);\n private mouseleaveSubscription = new Subscription();\n private blurSubscription = new Subscription();\n private showDelaySubscription = new Subscription();\n private positionStrategySubscription = new Subscription();\n private tooltipInstance!: ComponentRef<EdsTooltipContainer>;\n private overlay = inject(Overlay);\n private host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n constructor() {\n // Sync the position input into the runtime position and recompute the position strategy;\n // also push updated config to a live tooltip instance whenever inputs change.\n effect(() => {\n this._position.set(this.position());\n this.setPosition();\n // Touch the other config-driving inputs so this effect re-runs on their change.\n this.contentAlignment();\n this.color();\n this.tooltipContent();\n this.e2eAttr();\n if (this.tooltipInstance) {\n this.tooltipInstance.setInput('config', this.getTooltipConfig());\n }\n });\n }\n\n ngOnDestroy(): void {\n this.destroy$.next(true);\n this.destroy$.unsubscribe();\n this.mouseleaveSubscription.unsubscribe();\n this.blurSubscription.unsubscribe();\n this.showDelaySubscription.unsubscribe();\n this.positionStrategySubscription.unsubscribe();\n this.overlayRef?.dispose();\n this.overlayRef = null;\n }\n\n /**\n * Returns the current open state.\n *\n * @returns {boolean} `true` if the element is open, otherwise `false`.\n */\n get isOpen(): boolean {\n return this.isOpen$.value;\n }\n\n /**\n * Method that shows a tooltip.\n *\n * @param origin Origin of the tooltip. Where it will be displayed.\n */\n public show(origin: EventTarget = this.host.nativeElement): void {\n this.mouseleaveSubscription.unsubscribe();\n this.blurSubscription.unsubscribe();\n this.showDelaySubscription.unsubscribe();\n\n this.showDelaySubscription = timer(this.showDelay()).subscribe(() => {\n if (!this.isOpen && !this.isDisabled() && this.tooltipContent()) {\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(origin as FlexibleConnectedPositionStrategyOrigin)\n .withPositions([\n new ConnectionPositionPair(\n { originX: this.originX, originY: this.originY },\n { overlayX: this.overlayX, overlayY: this.overlayY },\n ),\n new ConnectionPositionPair(\n { originX: this.fallbackOriginX, originY: this.fallbackOriginY },\n { overlayX: this.fallbackOverlayX, overlayY: this.fallbackOverlayY },\n ),\n ])\n .withFlexibleDimensions(false)\n .withLockedPosition(true);\n const scrollStrategy = this.overlay.scrollStrategies.reposition({ scrollThrottle: 10 });\n\n this.overlayRef = this.overlay.create({\n hasBackdrop: false,\n usePopover: false,\n panelClass: ['eds-tooltip-panel', 'eui-21'],\n positionStrategy,\n scrollStrategy,\n });\n\n this.positionStrategySubscription = positionStrategy.positionChanges.subscribe((overlayPosition) => {\n this._position.set(this.getPosition(overlayPosition));\n const positionClasses = [\n 'eds-tooltip--left',\n 'eds-tooltip--right',\n 'eds-tooltip--above',\n 'eds-tooltip--below',\n 'eds-tooltip--before',\n 'eds-tooltip--after',\n ];\n this.overlayRef?.removePanelClass(positionClasses);\n this.overlayRef?.addPanelClass(['eds-tooltip--' + this._position()]);\n this.tooltipInstance?.setInput('config', this.getTooltipConfig());\n });\n\n const componentPortal = new ComponentPortal<EdsTooltipContainer>(\n EdsTooltipContainer,\n null,\n );\n\n this.tooltipInstance = this.overlayRef.attach(componentPortal);\n this.tooltipInstance.setInput('config', this.getTooltipConfig());\n\n this.isOpen$.next(true);\n }\n });\n\n this.mouseleaveSubscription = fromEvent(origin, 'mouseleave').subscribe(() => {\n this.hide();\n });\n\n this.blurSubscription = fromEvent(origin, 'blur').subscribe(() => {\n this.hide();\n });\n }\n\n /**\n * Method that closes a tooltip.\n */\n public hide(): void {\n timer(this.hideDelay())\n .pipe(take(1))\n .subscribe(() => {\n this.isOpen$.next(false);\n this.mouseleaveSubscription.unsubscribe();\n this.blurSubscription.unsubscribe();\n this.showDelaySubscription.unsubscribe();\n this.positionStrategySubscription.unsubscribe();\n this.overlayRef?.dispose();\n this.overlayRef = null;\n });\n }\n\n protected mouseEntering(event: MouseEvent): void {\n this.show(event.target ?? undefined);\n }\n\n protected focused(event: FocusEvent): void {\n this.show(event.target ?? undefined);\n }\n\n protected onEscapePressed(event: KeyboardEvent): void {\n if (this.isOpen) {\n event.stopPropagation();\n this.hide();\n }\n }\n\n /**\n * Generates and returns the tooltip configuration based on the defined tooltip properties.\n *\n * @returns {EdsTooltipInterface} The tooltip configuration object, including attributes used in container component.\n */\n private getTooltipConfig(): EdsTooltipInterface {\n return {\n e2eAttr: this.e2eAttr(),\n tooltipContent: this.tooltipContent(),\n position: this._position(),\n contentAlign: this.contentAlignment(),\n colorClass: this.color(),\n };\n }\n\n /**\n * Determines and returns the tooltip's position based on the overlay's connection pair.\n *\n * @param {ConnectedOverlayPositionChange} overlayPosition - The overlay position change event.\n * @returns {string} The calculated position (`'above'`, `'below'`, `'left'`, or `'right'`).\n */\n private getPosition(overlayPosition: ConnectedOverlayPositionChange): EdsTooltipPosition {\n if (overlayPosition.connectionPair.originY === 'top' && overlayPosition.connectionPair.overlayY === 'bottom') {\n return 'above';\n }\n if (overlayPosition.connectionPair.originY === 'bottom' && overlayPosition.connectionPair.overlayY === 'top') {\n return 'below';\n }\n if (overlayPosition.connectionPair.originX === 'start' && overlayPosition.connectionPair.overlayX === 'end') {\n return 'left';\n }\n if (overlayPosition.connectionPair.originX === 'end' && overlayPosition.connectionPair.overlayX === 'start') {\n return 'right';\n }\n return this._position();\n }\n\n /**\n * Sets the position-related properties based on the current resolved position.\n */\n private setPosition(): void {\n const position = this._position();\n if (position === 'above') {\n this.originY = 'top';\n this.overlayY = 'bottom';\n this.fallbackOriginY = 'bottom';\n this.fallbackOverlayY = 'top';\n }\n if (position === 'right' || position === 'after') {\n this.originX = 'end';\n this.originY = 'center';\n this.overlayX = 'start';\n this.overlayY = 'center';\n this.fallbackOriginX = 'start';\n this.fallbackOriginY = 'center';\n this.fallbackOverlayX = 'end';\n this.fallbackOverlayY = 'center';\n }\n if (position === 'below') {\n this.originY = 'bottom';\n this.overlayY = 'top';\n this.fallbackOriginY = 'top';\n this.fallbackOverlayY = 'bottom';\n }\n if (position === 'left' || position === 'before') {\n this.originX = 'start';\n this.originY = 'center';\n this.overlayX = 'end';\n this.overlayY = 'center';\n this.fallbackOriginX = 'end';\n this.fallbackOriginY = 'center';\n this.fallbackOverlayX = 'start';\n this.fallbackOverlayY = 'center';\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAEA;;AAEG;AACI,MAAM,QAAQ,GAAG,OAAO,CAAC,UAAU,EAAE;AACxC,IAAA,KAAK,CAAC,uBAAuB,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,CAAC;IAC5E,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,CAAC;IAClD,UAAU,CACN,cAAc,EACd,OAAO,CACH,kCAAkC,EAClC,SAAS,CAAC;AACN,QAAA,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;AACvD,QAAA,KAAK,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;AAC9D,QAAA,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;AAC1D,KAAA,CAAC,CACL,CACJ;AACD,IAAA,UAAU,CAAC,aAAa,EAAE,OAAO,CAAC,kCAAkC,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAChG,CAAA,CAAC;;MCAW,mBAAmB,CAAA;AAfhC,IAAA,WAAA,GAAA;AAgBI;;AAEG;QACH,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,QAAQ;mFAAuB;AAE9C;;;AAGG;QACH,IAAA,CAAA,GAAG,GAAG,KAAK,CAAC,aAAa;gFAAC;AAC7B,IAAA;8GAXY,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA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A,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,YAAA,EAAA,uBAAA,EAAA,OAAA,EAAA,iBAAA,EAAA,aAAA,EAAA,+BAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA,YAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAV,UAAU,EAAA,UAAA,EAAA,CAAA;kBATtB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,cAAc;AACxB,oBAAA,QAAQ,EAAE,YAAY;AACtB,oBAAA,IAAI,EAAE;AACF,wBAAA,cAAc,EAAE,uBAAuB;AACvC,wBAAA,SAAS,EAAE,iBAAiB;AAC5B,wBAAA,eAAe,EAAE,+BAA+B;AACnD,qBAAA;AACJ,iBAAA;;;ACnDD;;AAEG;;;;"}
@@ -373,7 +373,7 @@ class EdsTreeListToolbar {
373
373
  this.collapseAll.emit(event);
374
374
  }
375
375
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: EdsTreeListToolbar, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
376
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: EdsTreeListToolbar, isStandalone: true, selector: "eds-tree-list-toolbar", inputs: { isVisible: { classPropertyName: "isVisible", publicName: "isVisible", isSignal: true, isRequired: false, transformFunction: null }, filterLabel: { classPropertyName: "filterLabel", publicName: "filterLabel", isSignal: true, isRequired: false, transformFunction: null }, expandAllLabel: { classPropertyName: "expandAllLabel", publicName: "expandAllLabel", isSignal: true, isRequired: false, transformFunction: null }, collapseAllLabel: { classPropertyName: "collapseAllLabel", publicName: "collapseAllLabel", isSignal: true, isRequired: false, transformFunction: null }, isToggleExpanded: { classPropertyName: "isToggleExpanded", publicName: "isToggleExpanded", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, filterValue: { classPropertyName: "filterValue", publicName: "filterValue", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { filter: "filter", expandAll: "expandAll", collapseAll: "collapseAll" }, host: { classAttribute: "eds-tree-list-toolbar" }, usesOnChanges: true, ngImport: i0, template: "@if (isVisible()) {\n <eds-input-icon>\n <eds-icon icon=\"magnifying-glass:core\" size=\"s\"></eds-icon>\n <input\n edsInputText\n edsClearable\n [(ngModel)]=\"filterValue\"\n [placeholder]=\"filterLabel()\"\n (ngModelChange)=\"onFilter()\" />\n </eds-input-icon>\n\n @if (!isToggleExpanded) {\n <button edsButton edsNeutral (click)=\"onExpandAll($event)\" aria-label=\"Expand all\">\n {{ expandAllLabel() }}\n <eds-icon icon=\"arrows-out-simple:core\" size=\"s\"></eds-icon>\n </button>\n } @else {\n <button edsButton edsNeutral (click)=\"onCollapseAll($event)\" aria-label=\"Collapse all\">\n {{ collapseAllLabel() }}\n <eds-icon icon=\"arrows-in-simple:core\" size=\"s\"></eds-icon>\n </button>\n }\n}\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2$1.EdsButton, selector: "button[edsButton]", inputs: ["e2eAttr", "id", "edsDisabled", "edsBlockButton", "edsIconButton", "edsAvatarButton", "edsLineWrap", "edsButtonPrimary", "edsButtonSecondary", "edsButtonTertiary", "edsButtonRounded", "edsTypeVariant", "isChecked"] }, { kind: "component", type: i3.EdsIcon, selector: "eds-icon, span[edsIcon]", inputs: ["icon", "set", "color", "size", "ariaLabel", "ariaHidden", "rounded", "isLoading"] }, { kind: "component", type: i4.EdsInputText, selector: "input[edsInputText]", inputs: ["e2eAttr", "disabled", "readonly", "isInvalid"] }, { kind: "component", type: i5.EdsInputIcon, selector: "eds-input-icon", inputs: ["e2eAttr", "edsIconPositionStart", "edsIconPositionEnd"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
376
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: EdsTreeListToolbar, isStandalone: true, selector: "eds-tree-list-toolbar", inputs: { isVisible: { classPropertyName: "isVisible", publicName: "isVisible", isSignal: true, isRequired: false, transformFunction: null }, filterLabel: { classPropertyName: "filterLabel", publicName: "filterLabel", isSignal: true, isRequired: false, transformFunction: null }, expandAllLabel: { classPropertyName: "expandAllLabel", publicName: "expandAllLabel", isSignal: true, isRequired: false, transformFunction: null }, collapseAllLabel: { classPropertyName: "collapseAllLabel", publicName: "collapseAllLabel", isSignal: true, isRequired: false, transformFunction: null }, isToggleExpanded: { classPropertyName: "isToggleExpanded", publicName: "isToggleExpanded", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, filterValue: { classPropertyName: "filterValue", publicName: "filterValue", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { filter: "filter", expandAll: "expandAll", collapseAll: "collapseAll" }, host: { classAttribute: "eds-tree-list-toolbar" }, usesOnChanges: true, ngImport: i0, template: "@if (isVisible()) {\n <eds-input-icon>\n <eds-icon icon=\"magnifying-glass:core\" size=\"s\"></eds-icon>\n <input\n edsInputText\n edsClearable\n [(ngModel)]=\"filterValue\"\n [placeholder]=\"filterLabel()\"\n (ngModelChange)=\"onFilter()\" />\n </eds-input-icon>\n\n @if (!isToggleExpanded) {\n <button edsButton color=\"neutral\" (click)=\"onExpandAll($event)\" aria-label=\"Expand all\">\n {{ expandAllLabel() }}\n <eds-icon icon=\"arrows-out-simple:core\" size=\"s\"></eds-icon>\n </button>\n } @else {\n <button edsButton color=\"neutral\" (click)=\"onCollapseAll($event)\" aria-label=\"Collapse all\">\n {{ collapseAllLabel() }}\n <eds-icon icon=\"arrows-in-simple:core\" size=\"s\"></eds-icon>\n </button>\n }\n}\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2$1.EdsButton, selector: "button[edsButton]", inputs: ["e2eAttr", "id", "variant", "color", "size", "disabled", "block", "iconButton", "avatarButton", "lineWrap", "rounded", "isChecked"] }, { kind: "component", type: i3.EdsIcon, selector: "eds-icon, span[edsIcon]", inputs: ["icon", "set", "color", "size", "ariaLabel", "ariaHidden", "rounded", "isLoading"] }, { kind: "component", type: i4.EdsInputText, selector: "input[edsInputText]", inputs: ["e2eAttr", "disabled", "readonly", "isInvalid"] }, { kind: "component", type: i5.EdsInputIcon, selector: "eds-input-icon", inputs: ["e2eAttr", "edsIconPositionStart", "edsIconPositionEnd"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
377
377
  }
378
378
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: EdsTreeListToolbar, decorators: [{
379
379
  type: Component,
@@ -386,7 +386,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImpor
386
386
  EdsClearableDirective,
387
387
  ], host: {
388
388
  class: 'eds-tree-list-toolbar',
389
- }, template: "@if (isVisible()) {\n <eds-input-icon>\n <eds-icon icon=\"magnifying-glass:core\" size=\"s\"></eds-icon>\n <input\n edsInputText\n edsClearable\n [(ngModel)]=\"filterValue\"\n [placeholder]=\"filterLabel()\"\n (ngModelChange)=\"onFilter()\" />\n </eds-input-icon>\n\n @if (!isToggleExpanded) {\n <button edsButton edsNeutral (click)=\"onExpandAll($event)\" aria-label=\"Expand all\">\n {{ expandAllLabel() }}\n <eds-icon icon=\"arrows-out-simple:core\" size=\"s\"></eds-icon>\n </button>\n } @else {\n <button edsButton edsNeutral (click)=\"onCollapseAll($event)\" aria-label=\"Collapse all\">\n {{ collapseAllLabel() }}\n <eds-icon icon=\"arrows-in-simple:core\" size=\"s\"></eds-icon>\n </button>\n }\n}\n" }]
389
+ }, template: "@if (isVisible()) {\n <eds-input-icon>\n <eds-icon icon=\"magnifying-glass:core\" size=\"s\"></eds-icon>\n <input\n edsInputText\n edsClearable\n [(ngModel)]=\"filterValue\"\n [placeholder]=\"filterLabel()\"\n (ngModelChange)=\"onFilter()\" />\n </eds-input-icon>\n\n @if (!isToggleExpanded) {\n <button edsButton color=\"neutral\" (click)=\"onExpandAll($event)\" aria-label=\"Expand all\">\n {{ expandAllLabel() }}\n <eds-icon icon=\"arrows-out-simple:core\" size=\"s\"></eds-icon>\n </button>\n } @else {\n <button edsButton color=\"neutral\" (click)=\"onCollapseAll($event)\" aria-label=\"Collapse all\">\n {{ collapseAllLabel() }}\n <eds-icon icon=\"arrows-in-simple:core\" size=\"s\"></eds-icon>\n </button>\n }\n}\n" }]
390
390
  }], propDecorators: { isVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "isVisible", required: false }] }], filterLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterLabel", required: false }] }], expandAllLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandAllLabel", required: false }] }], collapseAllLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapseAllLabel", required: false }] }], isToggleExpanded: [{
391
391
  type: Input,
392
392
  args: [{ transform: booleanAttribute }]