@eui/components 19.0.3 → 19.0.4

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 (170) hide show
  1. package/directives/eui-has-permission.directive.d.ts +70 -2
  2. package/directives/eui-has-permission.directive.d.ts.map +1 -1
  3. package/directives/eui-maxlength.directive.d.ts +94 -10
  4. package/directives/eui-maxlength.directive.d.ts.map +1 -1
  5. package/docs/components/EuiAlertComponent.html +129 -0
  6. package/docs/components/EuiAlertTitleComponent.html +12 -0
  7. package/docs/components/EuiChipComponent.html +108 -1
  8. package/docs/components/EuiInputCheckboxComponent.html +169 -10
  9. package/docs/components/EuiInputGroupAddOnComponent.html +22 -0
  10. package/docs/components/EuiInputGroupAddOnItemComponent.html +30 -0
  11. package/docs/components/EuiInputGroupComponent.html +35 -0
  12. package/docs/components/EuiInputNumberComponent.html +83 -4
  13. package/docs/components/EuiInputRadioComponent.html +228 -0
  14. package/docs/components/EuiInputTextComponent.html +50 -0
  15. package/docs/components/EuiPaginatorComponent.html +204 -0
  16. package/docs/components/EuiTextareaComponent.html +207 -1
  17. package/docs/dependencies.html +2 -2
  18. package/docs/directives/AutoResizeDirective.html +49 -1
  19. package/docs/directives/EuiHasPermissionDirective.html +34 -0
  20. package/docs/directives/EuiInputNumberDirective.html +17 -0
  21. package/docs/directives/EuiMaxLengthDirective.html +35 -7
  22. package/docs/js/menu-wc.js +65 -119
  23. package/docs/js/menu-wc_es5.js +1 -1
  24. package/docs/js/search/search_index.js +2 -2
  25. package/docs/miscellaneous/functions.html +14 -0
  26. package/docs/modules/EuiAlertModule.html +11 -0
  27. package/docs/modules/EuiChipModule.html +11 -0
  28. package/docs/modules/EuiHasPermissionDirectiveModule.html +17 -3
  29. package/docs/modules/EuiInputCheckboxModule.html +25 -4
  30. package/docs/modules/EuiInputGroupModule.html +20 -5
  31. package/docs/modules/EuiInputNumberModule.html +26 -5
  32. package/docs/modules/EuiInputRadioModule.html +27 -4
  33. package/docs/modules/EuiInputTextModule.html +25 -4
  34. package/docs/modules/EuiMaxLengthDirectiveModule.html +25 -4
  35. package/docs/modules/EuiPaginatorModule.html +11 -0
  36. package/docs/modules/EuiTextAreaModule.html +20 -4
  37. package/eui-alert/components/eui-alert-title.component.d.ts +1 -0
  38. package/eui-alert/components/eui-alert-title.component.d.ts.map +1 -1
  39. package/eui-alert/eui-alert.component.d.ts +74 -0
  40. package/eui-alert/eui-alert.component.d.ts.map +1 -1
  41. package/eui-alert/eui-alert.module.d.ts +12 -0
  42. package/eui-alert/eui-alert.module.d.ts.map +1 -1
  43. package/eui-chip/eui-chip.component.d.ts +71 -0
  44. package/eui-chip/eui-chip.component.d.ts.map +1 -1
  45. package/eui-chip/eui-chip.module.d.ts +12 -0
  46. package/eui-chip/eui-chip.module.d.ts.map +1 -1
  47. package/eui-input-checkbox/eui-input-checkbox.component.d.ts +88 -11
  48. package/eui-input-checkbox/eui-input-checkbox.component.d.ts.map +1 -1
  49. package/eui-input-checkbox/eui-input-checkbox.module.d.ts +17 -3
  50. package/eui-input-checkbox/eui-input-checkbox.module.d.ts.map +1 -1
  51. package/eui-input-group/eui-input-group-addon-item.component.d.ts +33 -1
  52. package/eui-input-group/eui-input-group-addon-item.component.d.ts.map +1 -1
  53. package/eui-input-group/eui-input-group-addon.component.d.ts +40 -2
  54. package/eui-input-group/eui-input-group-addon.component.d.ts.map +1 -1
  55. package/eui-input-group/eui-input-group.component.d.ts +44 -1
  56. package/eui-input-group/eui-input-group.component.d.ts.map +1 -1
  57. package/eui-input-group/eui-input-group.module.d.ts +21 -5
  58. package/eui-input-group/eui-input-group.module.d.ts.map +1 -1
  59. package/eui-input-number/eui-input-number.component.d.ts +73 -9
  60. package/eui-input-number/eui-input-number.component.d.ts.map +1 -1
  61. package/eui-input-number/eui-input-number.module.d.ts +19 -4
  62. package/eui-input-number/eui-input-number.module.d.ts.map +1 -1
  63. package/eui-input-number/eui-number-control.directive.d.ts +27 -2
  64. package/eui-input-number/eui-number-control.directive.d.ts.map +1 -1
  65. package/eui-input-radio/eui-input-radio.component.d.ts +96 -1
  66. package/eui-input-radio/eui-input-radio.component.d.ts.map +1 -1
  67. package/eui-input-radio/eui-input-radio.module.d.ts +20 -3
  68. package/eui-input-radio/eui-input-radio.module.d.ts.map +1 -1
  69. package/eui-input-text/eui-input-text.component.d.ts +54 -1
  70. package/eui-input-text/eui-input-text.component.d.ts.map +1 -1
  71. package/eui-input-text/eui-input-text.module.d.ts +19 -3
  72. package/eui-input-text/eui-input-text.module.d.ts.map +1 -1
  73. package/eui-paginator/eui-paginator.component.d.ts +148 -4
  74. package/eui-paginator/eui-paginator.component.d.ts.map +1 -1
  75. package/eui-paginator/eui-paginator.module.d.ts +12 -0
  76. package/eui-paginator/eui-paginator.module.d.ts.map +1 -1
  77. package/eui-textarea/auto-resize.directive.d.ts +90 -3
  78. package/eui-textarea/auto-resize.directive.d.ts.map +1 -1
  79. package/eui-textarea/eui-textarea.component.d.ts +111 -5
  80. package/eui-textarea/eui-textarea.component.d.ts.map +1 -1
  81. package/eui-textarea/eui-textarea.module.d.ts +23 -4
  82. package/eui-textarea/eui-textarea.module.d.ts.map +1 -1
  83. package/eui-timepicker/eui-timepicker.component.d.ts.map +1 -1
  84. package/fesm2022/eui-components-directives.mjs +180 -34
  85. package/fesm2022/eui-components-directives.mjs.map +1 -1
  86. package/fesm2022/eui-components-eui-accordion.mjs +1 -1
  87. package/fesm2022/eui-components-eui-alert.mjs +85 -3
  88. package/fesm2022/eui-components-eui-alert.mjs.map +1 -1
  89. package/fesm2022/eui-components-eui-autocomplete.mjs +2 -2
  90. package/fesm2022/eui-components-eui-avatar.mjs +1 -1
  91. package/fesm2022/eui-components-eui-badge.mjs +1 -1
  92. package/fesm2022/eui-components-eui-block-content.mjs +1 -1
  93. package/fesm2022/eui-components-eui-block-document.mjs +1 -1
  94. package/fesm2022/eui-components-eui-breadcrumb.mjs +1 -1
  95. package/fesm2022/eui-components-eui-button-group.mjs +1 -1
  96. package/fesm2022/eui-components-eui-button-v2.mjs +1 -1
  97. package/fesm2022/eui-components-eui-button.mjs +1 -1
  98. package/fesm2022/eui-components-eui-card.mjs +3 -3
  99. package/fesm2022/eui-components-eui-card.mjs.map +1 -1
  100. package/fesm2022/eui-components-eui-chip-group.mjs +1 -1
  101. package/fesm2022/eui-components-eui-chip-list.mjs +1 -1
  102. package/fesm2022/eui-components-eui-chip.mjs +75 -1
  103. package/fesm2022/eui-components-eui-chip.mjs.map +1 -1
  104. package/fesm2022/eui-components-eui-dashboard-button.mjs +1 -1
  105. package/fesm2022/eui-components-eui-dashboard-card.mjs +1 -1
  106. package/fesm2022/eui-components-eui-date-range-selector.mjs +5 -5
  107. package/fesm2022/eui-components-eui-date-range-selector.mjs.map +1 -1
  108. package/fesm2022/eui-components-eui-datepicker.mjs +1 -1
  109. package/fesm2022/eui-components-eui-dialog.mjs +1 -1
  110. package/fesm2022/eui-components-eui-dimmer.mjs +1 -1
  111. package/fesm2022/eui-components-eui-disable-content.mjs +1 -1
  112. package/fesm2022/eui-components-eui-discussion-thread.mjs +1 -1
  113. package/fesm2022/eui-components-eui-dropdown.mjs +2 -2
  114. package/fesm2022/eui-components-eui-feedback-message.mjs +1 -1
  115. package/fesm2022/eui-components-eui-fieldset.mjs +1 -1
  116. package/fesm2022/eui-components-eui-file-upload.mjs +1 -1
  117. package/fesm2022/eui-components-eui-growl.mjs +1 -1
  118. package/fesm2022/eui-components-eui-icon-button-expander.mjs +1 -1
  119. package/fesm2022/eui-components-eui-icon-button.mjs +1 -1
  120. package/fesm2022/eui-components-eui-icon-color.mjs +1 -1
  121. package/fesm2022/eui-components-eui-icon-input.mjs +1 -1
  122. package/fesm2022/eui-components-eui-icon-state.mjs +1 -1
  123. package/fesm2022/eui-components-eui-icon-toggle.mjs +1 -1
  124. package/fesm2022/eui-components-eui-icon.mjs +1 -1
  125. package/fesm2022/eui-components-eui-input-checkbox.mjs +104 -14
  126. package/fesm2022/eui-components-eui-input-checkbox.mjs.map +1 -1
  127. package/fesm2022/eui-components-eui-input-group.mjs +142 -12
  128. package/fesm2022/eui-components-eui-input-group.mjs.map +1 -1
  129. package/fesm2022/eui-components-eui-input-number.mjs +109 -13
  130. package/fesm2022/eui-components-eui-input-number.mjs.map +1 -1
  131. package/fesm2022/eui-components-eui-input-radio.mjs +117 -6
  132. package/fesm2022/eui-components-eui-input-radio.mjs.map +1 -1
  133. package/fesm2022/eui-components-eui-input-text.mjs +73 -6
  134. package/fesm2022/eui-components-eui-input-text.mjs.map +1 -1
  135. package/fesm2022/eui-components-eui-label.mjs +1 -1
  136. package/fesm2022/eui-components-eui-language-selector.mjs +1 -1
  137. package/fesm2022/eui-components-eui-list.mjs +1 -1
  138. package/fesm2022/eui-components-eui-menu.mjs +1 -1
  139. package/fesm2022/eui-components-eui-message-box.mjs +1 -1
  140. package/fesm2022/eui-components-eui-navbar.mjs +1 -1
  141. package/fesm2022/eui-components-eui-overlay.mjs +1 -1
  142. package/fesm2022/eui-components-eui-page.mjs +1 -1
  143. package/fesm2022/eui-components-eui-paginator.mjs +153 -6
  144. package/fesm2022/eui-components-eui-paginator.mjs.map +1 -1
  145. package/fesm2022/eui-components-eui-popover.mjs +1 -1
  146. package/fesm2022/eui-components-eui-progress-bar.mjs +1 -1
  147. package/fesm2022/eui-components-eui-progress-circle.mjs +1 -1
  148. package/fesm2022/eui-components-eui-select.mjs +1 -1
  149. package/fesm2022/eui-components-eui-sidebar-menu.mjs +1 -1
  150. package/fesm2022/eui-components-eui-skeleton.mjs +1 -1
  151. package/fesm2022/eui-components-eui-slide-toggle.mjs +2 -2
  152. package/fesm2022/eui-components-eui-split-button.mjs +1 -1
  153. package/fesm2022/eui-components-eui-table-v2.mjs +1 -1
  154. package/fesm2022/eui-components-eui-table.mjs +1 -1
  155. package/fesm2022/eui-components-eui-tabs.mjs +1 -1
  156. package/fesm2022/eui-components-eui-textarea.mjs +221 -15
  157. package/fesm2022/eui-components-eui-textarea.mjs.map +1 -1
  158. package/fesm2022/eui-components-eui-timebar.mjs +1 -1
  159. package/fesm2022/eui-components-eui-timeline.mjs +1 -1
  160. package/fesm2022/eui-components-eui-timepicker.mjs +36 -29
  161. package/fesm2022/eui-components-eui-timepicker.mjs.map +1 -1
  162. package/fesm2022/eui-components-eui-tree-list.mjs +1 -1
  163. package/fesm2022/eui-components-eui-tree.mjs +1 -1
  164. package/fesm2022/eui-components-eui-user-profile.mjs +1 -1
  165. package/fesm2022/eui-components-eui-wizard.mjs +1 -1
  166. package/fesm2022/eui-components-externals-eui-editor.mjs +1 -1
  167. package/fesm2022/eui-components-externals-quill.mjs +1 -1
  168. package/fesm2022/eui-components-layout.mjs +2 -2
  169. package/fesm2022/eui-components-shared.mjs +2 -2
  170. package/package.json +3 -3
@@ -2,22 +2,90 @@ import { TemplateRef, ViewContainerRef } from '@angular/core';
2
2
  import { EuiPermissionService } from '@eui/core';
3
3
  import * as i0 from "@angular/core";
4
4
  import * as i1 from "@angular/common";
5
+ /**
6
+ * @description
7
+ * A structural directive that conditionally renders content based on user permissions.
8
+ * Similar to *ngIf, but checks against a permission service to determine visibility.
9
+ *
10
+ * @example
11
+ * ```html
12
+ * <!-- Single permission check -->
13
+ * <div *euiHasPermission="['READ_USERS']">
14
+ * Content only visible to users with READ_USERS permission
15
+ * </div>
16
+ *
17
+ * <!-- Multiple permission check (AND operation) -->
18
+ * <div *euiHasPermission="['READ_USERS', 'WRITE_USERS']">
19
+ * Content only visible to users with both permissions
20
+ * </div>
21
+ * ```
22
+ *
23
+ * @usageNotes
24
+ * The directive performs an AND operation when multiple permissions are provided,
25
+ * meaning all permissions must be granted for the content to be displayed.
26
+ */
5
27
  export declare class EuiHasPermissionDirective {
6
28
  private templateRef;
7
29
  private viewContainer;
8
30
  private permissionService;
31
+ /**
32
+ * @internal
33
+ * Array storing the current permission requirements
34
+ */
9
35
  private permissions;
36
+ /**
37
+ * @internal
38
+ * Flag tracking whether the content is currently hidden
39
+ */
10
40
  private isHidden;
11
41
  constructor(templateRef: TemplateRef<never>, viewContainer: ViewContainerRef, permissionService: EuiPermissionService);
42
+ /**
43
+ * @input
44
+ * @description
45
+ * Sets the permissions required to display the content. Can be a single permission
46
+ * string or an array of permission strings.
47
+ *
48
+ * @param val - Permission or array of permissions to check
49
+ */
12
50
  set euiHasPermission(val: any);
51
+ /**
52
+ * @internal
53
+ * @description
54
+ * Updates the view based on the current permission check results.
55
+ * If permissions are granted, displays the content.
56
+ * If permissions are not granted, hides the content.
57
+ */
13
58
  private updateView;
59
+ /**
60
+ * @internal
61
+ * @description
62
+ * Checks if all required permissions are granted.
63
+ * Uses AND logic - all permissions must be granted for the method to return true.
64
+ *
65
+ * @returns {boolean} True if all permissions are granted, false otherwise
66
+ */
14
67
  private checkPermission;
15
68
  static ɵfac: i0.ɵɵFactoryDeclaration<EuiHasPermissionDirective, never>;
16
- static ɵdir: i0.ɵɵDirectiveDeclaration<EuiHasPermissionDirective, "[euiHasPermission]", never, { "euiHasPermission": { "alias": "euiHasPermission"; "required": false; }; }, {}, never, never, false, never>;
69
+ static ɵdir: i0.ɵɵDirectiveDeclaration<EuiHasPermissionDirective, "[euiHasPermission]", never, { "euiHasPermission": { "alias": "euiHasPermission"; "required": false; }; }, {}, never, never, true, never>;
17
70
  }
71
+ /**
72
+ * @description
73
+ * Angular module that declares and exports the EuiHasPermissionDirective.
74
+ * Import this module to use the euiHasPermission directive in your components.
75
+ *
76
+ * @example
77
+ * ```typescript
78
+ * import { EuiHasPermissionDirectiveModule } from '@eui/components';
79
+ *
80
+ * @NgModule({
81
+ * imports: [EuiHasPermissionDirectiveModule],
82
+ * })
83
+ * export class MyModule {}
84
+ * ```
85
+ */
18
86
  export declare class EuiHasPermissionDirectiveModule {
19
87
  static ɵfac: i0.ɵɵFactoryDeclaration<EuiHasPermissionDirectiveModule, never>;
20
- static ɵmod: i0.ɵɵNgModuleDeclaration<EuiHasPermissionDirectiveModule, [typeof EuiHasPermissionDirective], [typeof i1.CommonModule], [typeof EuiHasPermissionDirective]>;
88
+ static ɵmod: i0.ɵɵNgModuleDeclaration<EuiHasPermissionDirectiveModule, never, [typeof i1.CommonModule, typeof EuiHasPermissionDirective], [typeof EuiHasPermissionDirective]>;
21
89
  static ɵinj: i0.ɵɵInjectorDeclaration<EuiHasPermissionDirectiveModule>;
22
90
  }
23
91
  //# sourceMappingURL=eui-has-permission.directive.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"eui-has-permission.directive.d.ts","sourceRoot":"","sources":["../../directives/eui-has-permission.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,WAAW,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAE1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;;;AAGjD,qBAKa,yBAAyB;IAK9B,OAAO,CAAC,WAAW;IACnB,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,iBAAiB;IAN7B,OAAO,CAAC,WAAW,CAAM;IACzB,OAAO,CAAC,QAAQ,CAAQ;gBAGZ,WAAW,EAAE,WAAW,CAAC,KAAK,CAAC,EAC/B,aAAa,EAAE,gBAAgB,EAC/B,iBAAiB,EAAE,oBAAoB;IAGnD,IACI,gBAAgB,CAAC,GAAG,KAAA,EAGvB;IAED,OAAO,CAAC,UAAU;IAYlB,OAAO,CAAC,eAAe;yCA5Bd,yBAAyB;2CAAzB,yBAAyB;CAoCrC;AAED,qBAKa,+BAA+B;yCAA/B,+BAA+B;0CAA/B,+BAA+B,UA3C/B,yBAAyB,qCAAzB,yBAAyB;0CA2CzB,+BAA+B;CAAG"}
1
+ {"version":3,"file":"eui-has-permission.directive.d.ts","sourceRoot":"","sources":["../../directives/eui-has-permission.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,WAAW,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAE1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;;;AAEjD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBAIa,yBAAyB;IAa9B,OAAO,CAAC,WAAW;IACnB,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,iBAAiB;IAd7B;;;OAGG;IACH,OAAO,CAAC,WAAW,CAAM;IACzB;;;OAGG;IACH,OAAO,CAAC,QAAQ,CAAQ;gBAGZ,WAAW,EAAE,WAAW,CAAC,KAAK,CAAC,EAC/B,aAAa,EAAE,gBAAgB,EAC/B,iBAAiB,EAAE,oBAAoB;IAGnD;;;;;;;OAOG;IACH,IACI,gBAAgB,CAAC,GAAG,KAAA,EAGvB;IAED;;;;;;OAMG;IACH,OAAO,CAAC,UAAU;IAYlB;;;;;;;OAOG;IACH,OAAO,CAAC,eAAe;yCA3Dd,yBAAyB;2CAAzB,yBAAyB;CAmErC;AAED;;;;;;;;;;;;;;GAcG;AACH,qBAIa,+BAA+B;yCAA/B,+BAA+B;0CAA/B,+BAA+B,yCAxF/B,yBAAyB,WAAzB,yBAAyB;0CAwFzB,+BAA+B;CAAG"}
@@ -3,16 +3,53 @@ import { NgControl } from '@angular/forms';
3
3
  import { Subscription } from 'rxjs';
4
4
  import * as i0 from "@angular/core";
5
5
  import * as i1 from "@angular/common";
6
+ /**
7
+ * @description
8
+ * A directive that adds maxLength functionality to input and textarea elements with visual feedback.
9
+ * It shows the remaining characters count and provides visual indication when the limit is reached.
10
+ *
11
+ * @selector input[euiMaxlength], textarea[euiMaxlength], [ngModel][euiMaxlength], [formControlName][euiMaxlength]
12
+ *
13
+ * @example
14
+ * ```html
15
+ * <!-- Basic usage -->
16
+ * <input [euiMaxlength]="50">
17
+ *
18
+ * <!-- With form control -->
19
+ * <input [formControlName]="'name'" [euiMaxlength]="100">
20
+ *
21
+ * <!-- Hide maxlength indicator -->
22
+ * <textarea [euiMaxlength]="200" [isShowMaxlength]="false"></textarea>
23
+ * ```
24
+ *
25
+ * @publicApi
26
+ */
6
27
  export declare class EuiMaxLengthDirective implements AfterContentInit, OnDestroy, OnChanges {
7
28
  private el;
8
29
  private renderer;
9
30
  private control;
10
31
  /**
32
+ * @description
11
33
  * It accepts number values to indicate the maxLength of an input. To reset or disable it set the value to null.
12
34
  * NULL value will remove any MaxLength indicator even if another input like isShowMaxlength equals true.
13
35
  */
14
36
  maxLength: number;
37
+ /**
38
+ * @description
39
+ * Controls the visibility of the maxLength indicator.
40
+ * When true, shows a counter with remaining characters.
41
+ * When false, hides the counter but maintains the maxLength restriction.
42
+ *
43
+ * @default true
44
+ */
15
45
  isShowMaxlength: boolean;
46
+ /**
47
+ * @description
48
+ * Emits when the input value length reaches or exceeds the maxLength limit.
49
+ * Emits true when limit is reached, false when below limit.
50
+ *
51
+ * @emits {boolean} True when max length is reached, false otherwise
52
+ */
16
53
  maxLengthReached: EventEmitter<boolean>;
17
54
  valueChangesSubscription: Subscription;
18
55
  private maxLengthSpan;
@@ -25,40 +62,87 @@ export declare class EuiMaxLengthDirective implements AfterContentInit, OnDestro
25
62
  onChange(event: Event): void;
26
63
  onInput(event: KeyboardEvent): void;
27
64
  onPaste(event: ClipboardEvent): void;
65
+ /**
66
+ * Sets a custom function to calculate the length of the input value.
67
+ * Useful for implementing custom length calculation logic (e.g., counting characters differently).
68
+ *
69
+ * @param fn Function that takes a string input and returns its calculated length
70
+ *
71
+ * @example
72
+ * ```typescript
73
+ * // Custom length calculation excluding spaces
74
+ * directive.setLengthCalcFactory((value: string) => value.replace(/\s/g, '').length);
75
+ * ```
76
+ */
28
77
  setLengthCalcFactory(fn: (input: string) => number): void;
29
78
  /**
30
- * calculates the maxLength of an input element. Calculation is made
31
- * against the value of the Model or Input Element.
32
- * @param value Optional the value to calculate max length against (override the Model one)
79
+ * Calculates the maximum length for the input element based on current value or provided value.
80
+ *
81
+ * @param value Optional value to calculate max length against (overrides the current input value)
82
+ * @returns {number} Calculated maximum length
33
83
  * @private
34
84
  */
35
85
  private calculateMaxLength;
86
+ /**
87
+ * @description
88
+ * Refreshes the visual state of the maxLength indicator and updates input restrictions.
89
+ * - Updates the remaining characters count
90
+ * - Applies/removes error styling
91
+ * - Emits maxLengthReached event
92
+ * - Truncates value if it exceeds maxLength
93
+ *
94
+ * @private
95
+ */
36
96
  private _refreshValue;
37
97
  /**
38
- * creates the maxLength box by adding it to DOM and attaching correct Classes
39
- * for Wrapper and Span (actual box holding max length)
98
+ * @description
99
+ * Creates the maxLength indicator box in the DOM.
100
+ * Wraps the input element and adds the counter span with appropriate styling.
101
+ *
40
102
  * @private
41
103
  */
42
104
  private createMaxLengthBox;
43
105
  /**
44
- * destroys the maxLength box from DOM
106
+ * @description
107
+ * Removes the maxLength indicator box from the DOM.
108
+ * Restores the original DOM structure by unwrapping the input element.
109
+ *
45
110
  * @private
46
111
  */
47
112
  private destroyMaxLengthBox;
48
113
  /**
49
- * returns the value based on whether control is present and control's
50
- * updateOn strategy.
114
+ * @description
115
+ * Returns the current value of the input element.
116
+ * Handles different update strategies when used with forms.
117
+ *
118
+ * @returns {string} Current input value
51
119
  * @private
52
120
  */
53
121
  private getValue;
54
122
  static ɵfac: i0.ɵɵFactoryDeclaration<EuiMaxLengthDirective, [null, null, { optional: true; self: true; }]>;
55
- static ɵdir: i0.ɵɵDirectiveDeclaration<EuiMaxLengthDirective, " input[euiMaxlength], textarea[euiMaxlength], [ngModel][euiMaxlength], [formControlName][euiMaxlength]", never, { "maxLength": { "alias": "euiMaxlength"; "required": false; }; "isShowMaxlength": { "alias": "isShowMaxlength"; "required": false; }; }, { "maxLengthReached": "maxLengthReached"; }, never, never, false, never>;
123
+ static ɵdir: i0.ɵɵDirectiveDeclaration<EuiMaxLengthDirective, " input[euiMaxlength], textarea[euiMaxlength], [ngModel][euiMaxlength], [formControlName][euiMaxlength]", never, { "maxLength": { "alias": "euiMaxlength"; "required": false; }; "isShowMaxlength": { "alias": "isShowMaxlength"; "required": false; }; }, { "maxLengthReached": "maxLengthReached"; }, never, never, true, never>;
56
124
  static ngAcceptInputType_maxLength: unknown;
57
125
  static ngAcceptInputType_isShowMaxlength: unknown;
58
126
  }
127
+ /**
128
+ * @description
129
+ * Module that provides the EuiMaxLengthDirective.
130
+ * Import this module to use the directive in your application.
131
+ *
132
+ * @example
133
+ * ```typescript
134
+ * @NgModule({
135
+ * imports: [EuiMaxLengthDirectiveModule]
136
+ * })
137
+ * export class MyModule { }
138
+ * ```
139
+ *
140
+ * @deprecated Use {@link `EuiMaxLengthDirective`} instead.
141
+ * @publicApi
142
+ */
59
143
  export declare class EuiMaxLengthDirectiveModule {
60
144
  static ɵfac: i0.ɵɵFactoryDeclaration<EuiMaxLengthDirectiveModule, never>;
61
- static ɵmod: i0.ɵɵNgModuleDeclaration<EuiMaxLengthDirectiveModule, [typeof EuiMaxLengthDirective], [typeof i1.CommonModule], [typeof EuiMaxLengthDirective]>;
145
+ static ɵmod: i0.ɵɵNgModuleDeclaration<EuiMaxLengthDirectiveModule, never, [typeof i1.CommonModule, typeof EuiMaxLengthDirective], [typeof EuiMaxLengthDirective]>;
62
146
  static ɵinj: i0.ɵɵInjectorDeclaration<EuiMaxLengthDirectiveModule>;
63
147
  }
64
148
  //# sourceMappingURL=eui-maxlength.directive.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"eui-maxlength.directive.d.ts","sourceRoot":"","sources":["../../directives/eui-maxlength.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,UAAU,EAGV,gBAAgB,EAEhB,YAAY,EACZ,SAAS,EAIT,SAAS,EACT,aAAa,EACb,SAAS,EAGZ,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;;;AAGpC,qBAQa,qBAAsB,YAAW,gBAAgB,EAAE,SAAS,EAAE,SAAS;IAepE,OAAO,CAAC,EAAE;IACV,OAAO,CAAC,QAAQ;IACI,OAAO,CAAC,OAAO;IAhB/C;;;OAGG;IAC0D,SAAS,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,OAAO,CAAQ;IACvF,gBAAgB,EAAE,YAAY,CAAC,OAAO,CAAC,C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5R3B,qBAAqB,WAArB,qBAAqB;0CA4RrB,2BAA2B;CACvC"}
@@ -109,6 +109,16 @@
109
109
  </p>
110
110
 
111
111
 
112
+ <p class="comment">
113
+ <h3>Description</h3>
114
+ </p>
115
+ <p class="comment">
116
+ <p>Alert displays a short, important message to attract the user&#39;s attention without interrupting its task.</p>
117
+ <b>Example :</b><div><pre class="line-numbers"><code class="language-html"></code></pre></div><b>Example :</b><div><pre class="line-numbers"><code class="language-html">&lt;eui-alert&gt;
118
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam accumsan semper lorem, ac mollis lacus tincidunt eu.
119
+ &lt;/eui-alert&gt;</code></pre></div><p>See <a href="https://eui.ecdevops.eu/eui-showcase-ux-components-19.x/style-guide/components/eui-alert">https://eui.ecdevops.eu/eui-showcase-ux-components-19.x/style-guide/components/eui-alert</a>.</p>
120
+
121
+ </p>
112
122
 
113
123
 
114
124
  <p class="comment">
@@ -380,6 +390,12 @@
380
390
 
381
391
  </td>
382
392
  </tr>
393
+ <tr>
394
+ <td class="col-md-4">
395
+ <div class="io-description"><p>Sets the <code>aria-describedby</code> attribute for the host element.</p>
396
+ </div>
397
+ </td>
398
+ </tr>
383
399
  </tbody>
384
400
  </table>
385
401
  <table class="table table-sm table-bordered">
@@ -401,6 +417,12 @@
401
417
  <i>Default value : </i><code>&#x27;eui-alert&#x27;</code>
402
418
  </td>
403
419
  </tr>
420
+ <tr>
421
+ <td class="col-md-4">
422
+ <div class="io-description"><p>Sets the <code>data-e2e</code> attribute for the host element. Default: <code>eui-alert</code>.</p>
423
+ </div>
424
+ </td>
425
+ </tr>
404
426
  </tbody>
405
427
  </table>
406
428
  <table class="table table-sm table-bordered">
@@ -422,6 +444,12 @@
422
444
  <i>Default value : </i><code>false</code>
423
445
  </td>
424
446
  </tr>
447
+ <tr>
448
+ <td class="col-md-4">
449
+ <div class="io-description"><p>Removes the left border and icon from the alert.</p>
450
+ </div>
451
+ </td>
452
+ </tr>
425
453
  </tbody>
426
454
  </table>
427
455
  <table class="table table-sm table-bordered">
@@ -443,6 +471,12 @@
443
471
  <i>Default value : </i><code>false</code>
444
472
  </td>
445
473
  </tr>
474
+ <tr>
475
+ <td class="col-md-4">
476
+ <div class="io-description"><p>Allows the alert to be closed by the user.</p>
477
+ </div>
478
+ </td>
479
+ </tr>
446
480
  </tbody>
447
481
  </table>
448
482
  <table class="table table-sm table-bordered">
@@ -464,6 +498,12 @@
464
498
  <i>Default value : </i><code>false</code>
465
499
  </td>
466
500
  </tr>
501
+ <tr>
502
+ <td class="col-md-4">
503
+ <div class="io-description"><p>Allows the alert to be focused by the user.</p>
504
+ </div>
505
+ </td>
506
+ </tr>
467
507
  </tbody>
468
508
  </table>
469
509
  <table class="table table-sm table-bordered">
@@ -485,6 +525,12 @@
485
525
  <i>Default value : </i><code>false</code>
486
526
  </td>
487
527
  </tr>
528
+ <tr>
529
+ <td class="col-md-4">
530
+ <div class="io-description"><p>Removes the left border and icon from the alert.</p>
531
+ </div>
532
+ </td>
533
+ </tr>
488
534
  </tbody>
489
535
  </table>
490
536
  <table class="table table-sm table-bordered">
@@ -506,6 +552,12 @@
506
552
  <i>Default value : </i><code>true</code>
507
553
  </td>
508
554
  </tr>
555
+ <tr>
556
+ <td class="col-md-4">
557
+ <div class="io-description"><p>Controls the visibility of the alert. Default: true</p>
558
+ </div>
559
+ </td>
560
+ </tr>
509
561
  </tbody>
510
562
  </table>
511
563
  </section>
@@ -525,6 +577,12 @@
525
577
 
526
578
  </td>
527
579
  </tr>
580
+ <tr>
581
+ <td class="col-md-4">
582
+ <div class="io-description"><p>Event emitted when the alert is closed.</p>
583
+ </div>
584
+ </td>
585
+ </tr>
528
586
  </tbody>
529
587
  </table>
530
588
  </section>
@@ -552,6 +610,12 @@
552
610
  </td>
553
611
  </tr>
554
612
 
613
+ <tr>
614
+ <td class="col-md-4">
615
+ <div class="io-description"><p>Sets the <code>role</code> attribute for the host element.</p>
616
+ </div>
617
+ </td>
618
+ </tr>
555
619
 
556
620
  </tbody>
557
621
  </table>
@@ -573,6 +637,12 @@
573
637
  </td>
574
638
  </tr>
575
639
 
640
+ <tr>
641
+ <td class="col-md-4">
642
+ <div class="io-description"><p>Sets the <code>tabindex</code> attribute for the host element.</p>
643
+ </div>
644
+ </td>
645
+ </tr>
576
646
 
577
647
  </tbody>
578
648
  </table>
@@ -594,6 +664,12 @@
594
664
  </td>
595
665
  </tr>
596
666
 
667
+ <tr>
668
+ <td class="col-md-4">
669
+ <div class="io-description"><p>Sets the <code>class</code> attribute for the host element.</p>
670
+ </div>
671
+ </td>
672
+ </tr>
597
673
 
598
674
  </tbody>
599
675
  </table>
@@ -627,6 +703,8 @@
627
703
 
628
704
  <tr>
629
705
  <td class="col-md-4">
706
+ <div class="io-description"><p>Hide the alert and emits the <code>closeAlert</code> event when the close button is clicked.</p>
707
+ </div>
630
708
 
631
709
  <div class="io-description">
632
710
  <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
@@ -712,6 +790,12 @@
712
790
  </td>
713
791
  </tr>
714
792
 
793
+ <tr>
794
+ <td class="col-md-4">
795
+ <div class="io-description"><p>Content for the alert title given by <code>&lt;eui-alert-title&gt;</code>.</p>
796
+ </div>
797
+ </td>
798
+ </tr>
715
799
 
716
800
  </tbody>
717
801
  </table>
@@ -770,6 +854,12 @@
770
854
  </td>
771
855
  </tr>
772
856
 
857
+ <tr>
858
+ <td class="col-md-4">
859
+ <div class="io-description"><p>Sets the <code>role</code> attribute for the host element.</p>
860
+ </div>
861
+ </td>
862
+ </tr>
773
863
 
774
864
  </tbody>
775
865
  </table>
@@ -793,6 +883,19 @@
793
883
  <span class="accessor"><b>get</b><code>cssClasses()</code></span>
794
884
  </td>
795
885
  </tr>
886
+ <tr>
887
+ <td class="col-md-4">
888
+ <div class="io-description"><p>Sets the <code>class</code> attribute for the host element.</p>
889
+ </div>
890
+
891
+ <div>
892
+ </div>
893
+ <div class="io-description">
894
+ <b>Returns : </b> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
895
+
896
+ </div>
897
+ </td>
898
+ </tr>
796
899
 
797
900
  </tbody>
798
901
  </table>
@@ -810,6 +913,19 @@
810
913
  <span class="accessor"><b>get</b><code>ariaDescribedBy()</code></span>
811
914
  </td>
812
915
  </tr>
916
+ <tr>
917
+ <td class="col-md-4">
918
+ <div class="io-description"><p>Sets the <code>aria-describedby</code> attribute for the host element.</p>
919
+ </div>
920
+
921
+ <div>
922
+ </div>
923
+ <div class="io-description">
924
+ <b>Returns : </b> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
925
+
926
+ </div>
927
+ </td>
928
+ </tr>
813
929
 
814
930
  </tbody>
815
931
  </table>
@@ -827,6 +943,19 @@
827
943
  <span class="accessor"><b>get</b><code>tabindex()</code></span>
828
944
  </td>
829
945
  </tr>
946
+ <tr>
947
+ <td class="col-md-4">
948
+ <div class="io-description"><p>Sets the <code>tabindex</code> attribute for the host element.</p>
949
+ </div>
950
+
951
+ <div>
952
+ </div>
953
+ <div class="io-description">
954
+ <b>Returns : </b> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
955
+
956
+ </div>
957
+ </td>
958
+ </tr>
830
959
 
831
960
  </tbody>
832
961
  </table>
@@ -225,6 +225,12 @@
225
225
  </td>
226
226
  </tr>
227
227
 
228
+ <tr>
229
+ <td class="col-md-4">
230
+ <div class="io-description"><p>Sets the <code>class</code> attribute for the host element.</p>
231
+ </div>
232
+ </td>
233
+ </tr>
228
234
 
229
235
  </tbody>
230
236
  </table>
@@ -270,6 +276,12 @@
270
276
  </td>
271
277
  </tr>
272
278
 
279
+ <tr>
280
+ <td class="col-md-4">
281
+ <div class="io-description"><p>Sets the <code>class</code> attribute for the host element.</p>
282
+ </div>
283
+ </td>
284
+ </tr>
273
285
 
274
286
  </tbody>
275
287
  </table>