@eui/components 19.0.3-snapshot-1737728205029 → 19.0.4-snapshot-1738753092246

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 (143) 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/EuiInputCheckboxComponent.html +169 -10
  6. package/docs/components/EuiInputGroupAddOnComponent.html +22 -0
  7. package/docs/components/EuiInputGroupAddOnItemComponent.html +30 -0
  8. package/docs/components/EuiInputGroupComponent.html +35 -0
  9. package/docs/components/EuiInputNumberComponent.html +83 -4
  10. package/docs/components/EuiInputRadioComponent.html +228 -0
  11. package/docs/components/EuiInputTextComponent.html +50 -0
  12. package/docs/components/EuiTextareaComponent.html +207 -1
  13. package/docs/dependencies.html +2 -2
  14. package/docs/directives/AutoResizeDirective.html +49 -1
  15. package/docs/directives/EuiHasPermissionDirective.html +34 -0
  16. package/docs/directives/EuiInputNumberDirective.html +17 -0
  17. package/docs/directives/EuiMaxLengthDirective.html +35 -7
  18. package/docs/js/menu-wc.js +53 -107
  19. package/docs/js/menu-wc_es5.js +1 -1
  20. package/docs/js/search/search_index.js +2 -2
  21. package/docs/miscellaneous/functions.html +14 -0
  22. package/docs/modules/EuiHasPermissionDirectiveModule.html +17 -3
  23. package/docs/modules/EuiInputCheckboxModule.html +25 -4
  24. package/docs/modules/EuiInputGroupModule.html +20 -5
  25. package/docs/modules/EuiInputNumberModule.html +26 -5
  26. package/docs/modules/EuiInputRadioModule.html +27 -4
  27. package/docs/modules/EuiInputTextModule.html +25 -4
  28. package/docs/modules/EuiMaxLengthDirectiveModule.html +25 -4
  29. package/docs/modules/EuiTextAreaModule.html +20 -4
  30. package/eui-input-checkbox/eui-input-checkbox.component.d.ts +88 -11
  31. package/eui-input-checkbox/eui-input-checkbox.component.d.ts.map +1 -1
  32. package/eui-input-checkbox/eui-input-checkbox.module.d.ts +17 -3
  33. package/eui-input-checkbox/eui-input-checkbox.module.d.ts.map +1 -1
  34. package/eui-input-group/eui-input-group-addon-item.component.d.ts +33 -1
  35. package/eui-input-group/eui-input-group-addon-item.component.d.ts.map +1 -1
  36. package/eui-input-group/eui-input-group-addon.component.d.ts +40 -2
  37. package/eui-input-group/eui-input-group-addon.component.d.ts.map +1 -1
  38. package/eui-input-group/eui-input-group.component.d.ts +44 -1
  39. package/eui-input-group/eui-input-group.component.d.ts.map +1 -1
  40. package/eui-input-group/eui-input-group.module.d.ts +21 -5
  41. package/eui-input-group/eui-input-group.module.d.ts.map +1 -1
  42. package/eui-input-number/eui-input-number.component.d.ts +73 -9
  43. package/eui-input-number/eui-input-number.component.d.ts.map +1 -1
  44. package/eui-input-number/eui-input-number.module.d.ts +19 -4
  45. package/eui-input-number/eui-input-number.module.d.ts.map +1 -1
  46. package/eui-input-number/eui-number-control.directive.d.ts +27 -2
  47. package/eui-input-number/eui-number-control.directive.d.ts.map +1 -1
  48. package/eui-input-radio/eui-input-radio.component.d.ts +96 -1
  49. package/eui-input-radio/eui-input-radio.component.d.ts.map +1 -1
  50. package/eui-input-radio/eui-input-radio.module.d.ts +20 -3
  51. package/eui-input-radio/eui-input-radio.module.d.ts.map +1 -1
  52. package/eui-input-text/eui-input-text.component.d.ts +54 -1
  53. package/eui-input-text/eui-input-text.component.d.ts.map +1 -1
  54. package/eui-input-text/eui-input-text.module.d.ts +19 -3
  55. package/eui-input-text/eui-input-text.module.d.ts.map +1 -1
  56. package/eui-textarea/auto-resize.directive.d.ts +90 -3
  57. package/eui-textarea/auto-resize.directive.d.ts.map +1 -1
  58. package/eui-textarea/eui-textarea.component.d.ts +111 -5
  59. package/eui-textarea/eui-textarea.component.d.ts.map +1 -1
  60. package/eui-textarea/eui-textarea.module.d.ts +23 -4
  61. package/eui-textarea/eui-textarea.module.d.ts.map +1 -1
  62. package/fesm2022/eui-components-directives.mjs +180 -34
  63. package/fesm2022/eui-components-directives.mjs.map +1 -1
  64. package/fesm2022/eui-components-eui-accordion.mjs +1 -1
  65. package/fesm2022/eui-components-eui-alert.mjs +1 -1
  66. package/fesm2022/eui-components-eui-autocomplete.mjs +2 -2
  67. package/fesm2022/eui-components-eui-avatar.mjs +1 -1
  68. package/fesm2022/eui-components-eui-badge.mjs +1 -1
  69. package/fesm2022/eui-components-eui-block-content.mjs +1 -1
  70. package/fesm2022/eui-components-eui-block-document.mjs +1 -1
  71. package/fesm2022/eui-components-eui-breadcrumb.mjs +1 -1
  72. package/fesm2022/eui-components-eui-button-group.mjs +1 -1
  73. package/fesm2022/eui-components-eui-button-v2.mjs +1 -1
  74. package/fesm2022/eui-components-eui-button.mjs +1 -1
  75. package/fesm2022/eui-components-eui-card.mjs +3 -3
  76. package/fesm2022/eui-components-eui-card.mjs.map +1 -1
  77. package/fesm2022/eui-components-eui-chip-group.mjs +1 -1
  78. package/fesm2022/eui-components-eui-chip-list.mjs +1 -1
  79. package/fesm2022/eui-components-eui-chip.mjs +1 -1
  80. package/fesm2022/eui-components-eui-dashboard-button.mjs +1 -1
  81. package/fesm2022/eui-components-eui-dashboard-card.mjs +1 -1
  82. package/fesm2022/eui-components-eui-date-range-selector.mjs +1 -1
  83. package/fesm2022/eui-components-eui-datepicker.mjs +1 -1
  84. package/fesm2022/eui-components-eui-dialog.mjs +1 -1
  85. package/fesm2022/eui-components-eui-dimmer.mjs +1 -1
  86. package/fesm2022/eui-components-eui-disable-content.mjs +1 -1
  87. package/fesm2022/eui-components-eui-discussion-thread.mjs +1 -1
  88. package/fesm2022/eui-components-eui-dropdown.mjs +2 -2
  89. package/fesm2022/eui-components-eui-feedback-message.mjs +1 -1
  90. package/fesm2022/eui-components-eui-fieldset.mjs +1 -1
  91. package/fesm2022/eui-components-eui-file-upload.mjs +1 -1
  92. package/fesm2022/eui-components-eui-growl.mjs +1 -1
  93. package/fesm2022/eui-components-eui-icon-button-expander.mjs +1 -1
  94. package/fesm2022/eui-components-eui-icon-button.mjs +1 -1
  95. package/fesm2022/eui-components-eui-icon-color.mjs +1 -1
  96. package/fesm2022/eui-components-eui-icon-input.mjs +1 -1
  97. package/fesm2022/eui-components-eui-icon-state.mjs +1 -1
  98. package/fesm2022/eui-components-eui-icon-toggle.mjs +1 -1
  99. package/fesm2022/eui-components-eui-icon.mjs +1 -1
  100. package/fesm2022/eui-components-eui-input-checkbox.mjs +104 -14
  101. package/fesm2022/eui-components-eui-input-checkbox.mjs.map +1 -1
  102. package/fesm2022/eui-components-eui-input-group.mjs +142 -12
  103. package/fesm2022/eui-components-eui-input-group.mjs.map +1 -1
  104. package/fesm2022/eui-components-eui-input-number.mjs +109 -13
  105. package/fesm2022/eui-components-eui-input-number.mjs.map +1 -1
  106. package/fesm2022/eui-components-eui-input-radio.mjs +117 -6
  107. package/fesm2022/eui-components-eui-input-radio.mjs.map +1 -1
  108. package/fesm2022/eui-components-eui-input-text.mjs +73 -6
  109. package/fesm2022/eui-components-eui-input-text.mjs.map +1 -1
  110. package/fesm2022/eui-components-eui-label.mjs +1 -1
  111. package/fesm2022/eui-components-eui-language-selector.mjs +1 -1
  112. package/fesm2022/eui-components-eui-list.mjs +1 -1
  113. package/fesm2022/eui-components-eui-menu.mjs +1 -1
  114. package/fesm2022/eui-components-eui-message-box.mjs +1 -1
  115. package/fesm2022/eui-components-eui-navbar.mjs +1 -1
  116. package/fesm2022/eui-components-eui-overlay.mjs +1 -1
  117. package/fesm2022/eui-components-eui-page.mjs +1 -1
  118. package/fesm2022/eui-components-eui-paginator.mjs +1 -1
  119. package/fesm2022/eui-components-eui-popover.mjs +1 -1
  120. package/fesm2022/eui-components-eui-progress-bar.mjs +1 -1
  121. package/fesm2022/eui-components-eui-progress-circle.mjs +1 -1
  122. package/fesm2022/eui-components-eui-select.mjs +1 -1
  123. package/fesm2022/eui-components-eui-sidebar-menu.mjs +1 -1
  124. package/fesm2022/eui-components-eui-skeleton.mjs +1 -1
  125. package/fesm2022/eui-components-eui-slide-toggle.mjs +2 -2
  126. package/fesm2022/eui-components-eui-split-button.mjs +1 -1
  127. package/fesm2022/eui-components-eui-table-v2.mjs +1 -1
  128. package/fesm2022/eui-components-eui-table.mjs +1 -1
  129. package/fesm2022/eui-components-eui-tabs.mjs +1 -1
  130. package/fesm2022/eui-components-eui-textarea.mjs +221 -15
  131. package/fesm2022/eui-components-eui-textarea.mjs.map +1 -1
  132. package/fesm2022/eui-components-eui-timebar.mjs +1 -1
  133. package/fesm2022/eui-components-eui-timeline.mjs +1 -1
  134. package/fesm2022/eui-components-eui-timepicker.mjs +1 -1
  135. package/fesm2022/eui-components-eui-tree-list.mjs +1 -1
  136. package/fesm2022/eui-components-eui-tree.mjs +1 -1
  137. package/fesm2022/eui-components-eui-user-profile.mjs +1 -1
  138. package/fesm2022/eui-components-eui-wizard.mjs +1 -1
  139. package/fesm2022/eui-components-externals-eui-editor.mjs +1 -1
  140. package/fesm2022/eui-components-externals-quill.mjs +1 -1
  141. package/fesm2022/eui-components-layout.mjs +2 -2
  142. package/fesm2022/eui-components-shared.mjs +2 -2
  143. package/package.json +9 -9
@@ -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;;;AAGp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B;;;;;;OAMG;IACH,OAAO,CAAC,mBAAmB;IAoB3B;;;;;;;OAOG;IACH,OAAO,CAAC,QAAQ;yCAlQP,qBAAqB;2CAArB,qBAAqB;wCA8R42pQ,OAAQ;8CAAtqrO,OAAQ;CAxBvv+B;AAED;;;;;;;;;;;;;;;GAeG;AACH,qBAIa,2BAA2B;yCAA3B,2BAA2B;0CAA3B,2BAA2B,yCA5R3B,qBAAqB,WAArB,qBAAqB;0CA4RrB,2BAA2B;CACvC"}
@@ -109,6 +109,17 @@
109
109
  </p>
110
110
 
111
111
 
112
+ <p class="comment">
113
+ <h3>Description</h3>
114
+ </p>
115
+ <p class="comment">
116
+ <p>Angular component that provides a custom checkbox input implementation.
117
+ Extends <a href="../directives/InputDirective.html">InputDirective</a> and implements form control functionality.</p>
118
+ <b>Example :</b><div><pre class="line-numbers"><code class="language-html">&lt;input euiInputCheckBox
119
+ [(ngModel)]=&quot;isChecked&quot;
120
+ [indeterminate]=&quot;isIndeterminate&quot;
121
+ [isInvalid]=&quot;hasError&quot;&gt;</code></pre></div>
122
+ </p>
112
123
 
113
124
  <p class="comment">
114
125
  <h3>Extends</h3>
@@ -149,6 +160,10 @@
149
160
  <td class="col-md-9"><code>input[euiInputCheckBox]</code></td>
150
161
  </tr>
151
162
 
163
+ <tr>
164
+ <td class="col-md-3">standalone</td>
165
+ <td class="col-md-9"><code>true</code></td>
166
+ </tr>
152
167
 
153
168
 
154
169
  <tr>
@@ -413,6 +428,12 @@
413
428
 
414
429
  </td>
415
430
  </tr>
431
+ <tr>
432
+ <td class="col-md-4">
433
+ <div class="io-description"><p>Controls the checked state of the checkbox.</p>
434
+ </div>
435
+ </td>
436
+ </tr>
416
437
  </tbody>
417
438
  </table>
418
439
  <table class="table table-sm table-bordered">
@@ -431,10 +452,9 @@
431
452
  </tr>
432
453
  <tr>
433
454
  <td class="col-md-4">
434
- <div class="io-description"><p>Whether the checkbox is indeterminate. This is also known as &quot;mixed&quot; mode and can be used to
435
- represent a checkbox with three states, e.g. a checkbox that represents a nested list of
436
- checkable items. Note that whenever checkbox is manually clicked, indeterminate is immediately
437
- set to false.</p>
455
+ <div class="io-description"><p>Controls the indeterminate (mixed) state of the checkbox.
456
+ When true, the checkbox appears in an indeterminate state.
457
+ This state is automatically cleared when the checkbox is clicked.</p>
438
458
  </div>
439
459
  </td>
440
460
  </tr>
@@ -454,6 +474,12 @@ set to false.</p>
454
474
 
455
475
  </td>
456
476
  </tr>
477
+ <tr>
478
+ <td class="col-md-4">
479
+ <div class="io-description"><p>Controls the invalid state of the checkbox. Used for displaying validation errors.</p>
480
+ </div>
481
+ </td>
482
+ </tr>
457
483
  </tbody>
458
484
  </table>
459
485
  <table class="table table-sm table-bordered">
@@ -565,7 +591,7 @@ set to false.</p>
565
591
  </tr>
566
592
  <tr>
567
593
  <td class="col-md-4">
568
- <div class="io-description"><p>Event emitted when the checkbox <code>indeterminate</code> value changes.</p>
594
+ <div class="io-description"><p>Event emitter that fires when the indeterminate state changes.</p>
569
595
  </div>
570
596
  </td>
571
597
  </tr>
@@ -617,6 +643,13 @@ set to false.</p>
617
643
  </td>
618
644
  </tr>
619
645
 
646
+ <tr>
647
+ <td class="col-md-4">
648
+ <div class="io-description"><p>Gets the CSS classes for the checkbox component.
649
+ Combines base classes with validation state classes.</p>
650
+ </div>
651
+ </td>
652
+ </tr>
620
653
 
621
654
  </tbody>
622
655
  </table>
@@ -641,13 +674,50 @@ set to false.</p>
641
674
  </tr>
642
675
  <tr>
643
676
  <td class="col-md-4">
644
- <code>change(checked)</code>
677
+ <code>change(checked: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank">boolean</a>)</code>
645
678
  </td>
646
679
  </tr>
647
680
 
648
681
 
649
682
 
650
683
 
684
+ <tr>
685
+ <td class="col-md-4">
686
+ <div class="io-description"><p>Event handler for checkbox change events.</p>
687
+ </div>
688
+
689
+ <div class="io-description">
690
+ <b>Parameters :</b>
691
+
692
+ <table class="params">
693
+ <thead>
694
+ <tr>
695
+ <td>Name</td>
696
+ <td>Optional</td>
697
+ <td>Description</td>
698
+ </tr>
699
+ </thead>
700
+ <tbody>
701
+ <tr>
702
+ <td>checked</td>
703
+
704
+ <td>
705
+ No
706
+ </td>
707
+
708
+
709
+ <td>
710
+ <ul>
711
+ <li>The new checked state</li>
712
+ </ul>
713
+
714
+ </td>
715
+ </tr>
716
+ </tbody>
717
+ </table>
718
+ </div>
719
+ </td>
720
+ </tr>
651
721
  </tbody>
652
722
  </table>
653
723
  <table class="table table-sm table-bordered">
@@ -675,6 +745,44 @@ set to false.</p>
675
745
 
676
746
 
677
747
 
748
+ <tr>
749
+ <td class="col-md-4">
750
+ <div class="io-description"><p>Event handler for space key press.
751
+ Prevents space key action when checkbox is readonly.</p>
752
+ </div>
753
+
754
+ <div class="io-description">
755
+ <b>Parameters :</b>
756
+
757
+ <table class="params">
758
+ <thead>
759
+ <tr>
760
+ <td>Name</td>
761
+ <td>Optional</td>
762
+ <td>Description</td>
763
+ </tr>
764
+ </thead>
765
+ <tbody>
766
+ <tr>
767
+ <td>event</td>
768
+
769
+ <td>
770
+ No
771
+ </td>
772
+
773
+
774
+ <td>
775
+ <ul>
776
+ <li>The keyboard event</li>
777
+ </ul>
778
+
779
+ </td>
780
+ </tr>
781
+ </tbody>
782
+ </table>
783
+ </div>
784
+ </td>
785
+ </tr>
678
786
  </tbody>
679
787
  </table>
680
788
  </section>
@@ -889,6 +997,9 @@ set to false.</p>
889
997
 
890
998
  <tr>
891
999
  <td class="col-md-4">
1000
+ <div class="io-description"><p>Implements ControlValueAccessor writeValue method.
1001
+ Updates the checked state of the checkbox.</p>
1002
+ </div>
892
1003
 
893
1004
  <div class="io-description">
894
1005
  <b>Parameters :</b>
@@ -899,6 +1010,7 @@ set to false.</p>
899
1010
  <td>Name</td>
900
1011
  <td>Type</td>
901
1012
  <td>Optional</td>
1013
+ <td>Description</td>
902
1014
  </tr>
903
1015
  </thead>
904
1016
  <tbody>
@@ -913,6 +1025,12 @@ set to false.</p>
913
1025
  </td>
914
1026
 
915
1027
 
1028
+ <td>
1029
+ <ul>
1030
+ <li>The value to write</li>
1031
+ </ul>
1032
+
1033
+ </td>
916
1034
  </tr>
917
1035
  </tbody>
918
1036
  </table>
@@ -1009,6 +1127,20 @@ set to false.</p>
1009
1127
  <span class="accessor"><b>get</b><code>cssClasses()</code></span>
1010
1128
  </td>
1011
1129
  </tr>
1130
+ <tr>
1131
+ <td class="col-md-4">
1132
+ <div class="io-description"><p>Gets the CSS classes for the checkbox component.
1133
+ Combines base classes with validation state classes.</p>
1134
+ </div>
1135
+
1136
+ <div>
1137
+ </div>
1138
+ <div class="io-description">
1139
+ <b>Returns : </b> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
1140
+
1141
+ </div>
1142
+ </td>
1143
+ </tr>
1012
1144
 
1013
1145
  </tbody>
1014
1146
  </table>
@@ -1028,12 +1160,13 @@ set to false.</p>
1028
1160
  </tr>
1029
1161
  <tr>
1030
1162
  <td class="col-md-4">
1031
- <div class="io-description"><p>Whether the checkbox is indeterminate. This is also known as &quot;mixed&quot; mode and can be used to
1032
- represent a checkbox with three states, e.g. a checkbox that represents a nested list of
1033
- checkable items. Note that whenever checkbox is manually clicked, indeterminate is immediately
1034
- set to false.</p>
1163
+ <div class="io-description"><p>Controls the indeterminate (mixed) state of the checkbox.
1164
+ When true, the checkbox appears in an indeterminate state.
1165
+ This state is automatically cleared when the checkbox is clicked.</p>
1035
1166
  </div>
1036
1167
 
1168
+ <div>
1169
+ </div>
1037
1170
  <div class="io-description">
1038
1171
  <b>Returns : </b> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
1039
1172
 
@@ -1099,6 +1232,19 @@ set to false.</p>
1099
1232
  <span class="accessor"><b>get</b><code>isInvalid()</code></span>
1100
1233
  </td>
1101
1234
  </tr>
1235
+ <tr>
1236
+ <td class="col-md-4">
1237
+ <div class="io-description"><p>Controls the invalid state of the checkbox. Used for displaying validation errors.</p>
1238
+ </div>
1239
+
1240
+ <div>
1241
+ </div>
1242
+ <div class="io-description">
1243
+ <b>Returns : </b> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
1244
+
1245
+ </div>
1246
+ </td>
1247
+ </tr>
1102
1248
 
1103
1249
  <tr>
1104
1250
  <td class="col-md-4">
@@ -1158,6 +1304,19 @@ set to false.</p>
1158
1304
  <span class="accessor"><b>get</b><code>checked()</code></span>
1159
1305
  </td>
1160
1306
  </tr>
1307
+ <tr>
1308
+ <td class="col-md-4">
1309
+ <div class="io-description"><p>Controls the checked state of the checkbox.</p>
1310
+ </div>
1311
+
1312
+ <div>
1313
+ </div>
1314
+ <div class="io-description">
1315
+ <b>Returns : </b> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
1316
+
1317
+ </div>
1318
+ </td>
1319
+ </tr>
1161
1320
 
1162
1321
  <tr>
1163
1322
  <td class="col-md-4">
@@ -109,6 +109,24 @@
109
109
  </p>
110
110
 
111
111
 
112
+ <p class="comment">
113
+ <h3>Description</h3>
114
+ </p>
115
+ <p class="comment">
116
+ <p>A component that serves as a container for input group add-on items.
117
+ Can be used either as an attribute selector on a div or as a custom element.</p>
118
+ <b>Example :</b><div><pre class="line-numbers"><code class="language-html">As an attribute
119
+ ```html
120
+ &lt;div euiInputGroupAddOn&gt;
121
+ &lt;div euiInputGroupAddOnItem&gt;Item 1&lt;/div&gt;
122
+ &lt;div euiInputGroupAddOnItem&gt;Item 2&lt;/div&gt;
123
+ &lt;/div&gt;</code></pre></div><b>Example :</b><div><pre class="line-numbers"><code class="language-none">As an element
124
+ ```html
125
+ &lt;eui-input-group-addon&gt;
126
+ &lt;eui-input-group-addon-item&gt;Item 1&lt;/eui-input-group-addon-item&gt;
127
+ &lt;eui-input-group-addon-item&gt;Item 2&lt;/eui-input-group-addon-item&gt;
128
+ &lt;/eui-input-group-addon&gt;</code></pre></div>
129
+ </p>
112
130
 
113
131
 
114
132
 
@@ -134,6 +152,10 @@
134
152
  <td class="col-md-9"><code>div[euiInputGroupAddOn], eui-input-group-addon</code></td>
135
153
  </tr>
136
154
 
155
+ <tr>
156
+ <td class="col-md-3">standalone</td>
157
+ <td class="col-md-9"><code>true</code></td>
158
+ </tr>
137
159
 
138
160
 
139
161
  <tr>
@@ -109,6 +109,18 @@
109
109
  </p>
110
110
 
111
111
 
112
+ <p class="comment">
113
+ <h3>Description</h3>
114
+ </p>
115
+ <p class="comment">
116
+ <p>A component that represents an individual item within an input group add-on.
117
+ Can be used either as an attribute selector on a div or as a custom element.</p>
118
+ <b>Example :</b><div><pre class="line-numbers"><code class="language-html">As an attribute
119
+ ```html
120
+ &lt;div euiInputGroupAddOnItem&gt;Content&lt;/div&gt;</code></pre></div><b>Example :</b><div><pre class="line-numbers"><code class="language-none">As an element
121
+ ```html
122
+ &lt;eui-input-group-addon-item&gt;Content&lt;/eui-input-group-addon-item&gt;</code></pre></div>
123
+ </p>
112
124
 
113
125
 
114
126
 
@@ -134,6 +146,10 @@
134
146
  <td class="col-md-9"><code>div[euiInputGroupAddOnItem], eui-input-group-addon-item</code></td>
135
147
  </tr>
136
148
 
149
+ <tr>
150
+ <td class="col-md-3">standalone</td>
151
+ <td class="col-md-9"><code>true</code></td>
152
+ </tr>
137
153
 
138
154
 
139
155
  <tr>
@@ -286,6 +302,20 @@
286
302
  <span class="accessor"><b>get</b><code>cssClasses()</code></span>
287
303
  </td>
288
304
  </tr>
305
+ <tr>
306
+ <td class="col-md-4">
307
+ <div class="io-description"><p>Getter that returns the CSS class for the component.
308
+ Bound to the host element&#39;s class attribute.</p>
309
+ </div>
310
+
311
+ <div>
312
+ </div>
313
+ <div class="io-description">
314
+ <b>Returns : </b> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
315
+
316
+ </div>
317
+ </td>
318
+ </tr>
289
319
 
290
320
  </tbody>
291
321
  </table>