@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
@@ -25,6 +25,44 @@ export interface CleaveInstance extends Cleave {
25
25
  onCutListener?: (event?: Event) => void;
26
26
  onCopyListener?: (event?: Event) => void;
27
27
  }
28
+ /**
29
+ * Input number component that allows the user to enter a number. It supports number
30
+ * formatting and validation. It uses Cleave.js to format the number. It depends on
31
+ * the {@link LocaleService} to get the current locale and format the number accordingly.
32
+ *
33
+ * It supports the following attributes:
34
+ * - {@link min}: The minimum number can be entered. Blocks user's input if not in range.
35
+ * - {@link max}: The maximum number can be entered. Blocks user's input if not in range.
36
+ * - {@link leadingZero}: Adds leading zero to a number. Formatting will not work.
37
+ * - {@link isInvalid}: Sets the invalid state of the input element.
38
+ * - {@link fractionDigits}: Determines how many digits to show after the decimal point.
39
+ * - {@link digits}: Determines how many digits to show before the decimal point.
40
+ * - {@link fillFraction}: Fills the decimal part with zeros in case it's less than the fractionDigits.
41
+ * - {@link roundUp}: Rounds a number with more than two decimals UP.
42
+ * - {@link noFormat}: Disables the number formatting. It will be treated as a plain number.
43
+ * - {@link value}: The value of the input element.
44
+ * - {@link placeholder}: The placeholder value of the input element.
45
+ * - {@link euiClearable}: Adds a clear button to the input element.
46
+ * - {@link euiLoading}: Adds a loading spinner to the input element.
47
+ * - {@link readonly}: Disables the input element.
48
+ * - {@link disabled}: Disables the input element.
49
+ * - {@link euiDanger}: Sets the invalid state of the input element.
50
+ * - {@link euiSuccess}: Sets the success state of the input element.
51
+ * - {@link euiWarning}: Sets the warning state of the input element.
52
+ * - {@link euiInfo}: Sets the info state of the input element.
53
+ * - {@link euiPrimary}: Sets the primary state of the input element.
54
+ * - {@link euiSecondary}: Sets the secondary state of the input element.
55
+ *
56
+ * @example
57
+ * ```html
58
+ * <input euiInputNumber
59
+ * min="0"
60
+ * max="100"
61
+ * leadingZero="3"
62
+ * value="100.00"
63
+ * placeholder="100.00" />
64
+ * ```
65
+ */
28
66
  export declare class EuiInputNumberComponent extends InputDirective implements OnInit, OnDestroy, DoCheck, OnChanges {
29
67
  protected _elementRef: ElementRef;
30
68
  protected _renderer: Renderer2;
@@ -40,32 +78,53 @@ export declare class EuiInputNumberComponent extends InputDirective implements O
40
78
  * The maximum number can be entered. Blocks user's input if not in range.
41
79
  */
42
80
  max: number;
43
- /** Adds leading zero to a number. Formatting will not work.
81
+ /**
82
+ * Adds leading zero to a number. Formatting will not work.
44
83
  * e.g. with leadingZero=3 input number 5 => 005
45
84
  */
46
85
  leadingZero: number;
47
86
  get isInvalid(): boolean;
48
87
  set isInvalid(state: BooleanInput);
88
+ /**
89
+ * CSS classes to be added to the host element.
90
+ */
49
91
  get cssClasses(): string;
50
- /** how many digits for the decimal part */
92
+ /**
93
+ * determines how many digits to show after the decimal point
94
+ */
51
95
  get fractionDigits(): number;
52
96
  set fractionDigits(value: NumberInput);
53
- /** how many digits for the integer part */
97
+ /**
98
+ * determines how many digits to show before the decimal point
99
+ */
54
100
  digits: number;
101
+ /**
102
+ * fills the decimal part with zeros in case it's less than the fractionDigits
103
+ */
55
104
  fillFraction: boolean;
56
- /** rounds a number with more than two decimals UP */
105
+ /**
106
+ * rounds a number with more than two decimals UP
107
+ */
57
108
  roundUp: number;
58
109
  protected _isInvalid: boolean;
59
110
  /**
60
- * does not format the and do a thousand grouping of number
111
+ * Disables the number formatting. It will be treated as a plain number.
112
+ * Will do a thousand grouping of number.
61
113
  */
62
114
  noFormat: boolean;
63
115
  protected type: string;
116
+ /**
117
+ * The value of the input element.
118
+ */
64
119
  value: string;
65
120
  onChangeCallback: <T>(_: T) => void;
121
+ /**
122
+ * holds instance of cleave.js
123
+ */
66
124
  cleaveInstance: CleaveInstance;
67
- /** holds instance of cleave */
68
- /** options for the Cleave instance */
125
+ /**
126
+ * holds instance of cleave options for the Cleave instance
127
+ */
69
128
  private options;
70
129
  private _fractionDigits;
71
130
  constructor(_elementRef: ElementRef, _renderer: Renderer2, localeService: LocaleService, locale_id: string, injector: Injector, document: Document, platformId: unknown);
@@ -78,6 +137,12 @@ export declare class EuiInputNumberComponent extends InputDirective implements O
78
137
  onPaste(event: ClipboardEvent): void;
79
138
  protected onKeyDown(e: KeyboardEvent): void;
80
139
  protected onFocusout(): void;
140
+ /**
141
+ * @Override setInvalid setInvalidAttribute of InputDirective
142
+ * Sets the invalid state of the input element.
143
+ *
144
+ * @param state
145
+ */
81
146
  protected setInvalid(state?: BooleanInput): void;
82
147
  /**
83
148
  * @Override setPlaceholder setPlaceholderAttribute of InputDirective
@@ -157,11 +222,10 @@ export declare class EuiInputNumberComponent extends InputDirective implements O
157
222
  * Checks whether a value is defined or not
158
223
  *
159
224
  * @param value
160
- * @private
161
225
  */
162
226
  private isDefined;
163
227
  static ɵfac: i0.ɵɵFactoryDeclaration<EuiInputNumberComponent, [null, null, { optional: true; }, null, null, null, null]>;
164
- static ɵcmp: i0.ɵɵComponentDeclaration<EuiInputNumberComponent, "input[euiInputNumber]", never, { "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "leadingZero": { "alias": "leadingZero"; "required": false; }; "isInvalid": { "alias": "isInvalid"; "required": false; }; "fractionDigits": { "alias": "fractionDigits"; "required": false; }; "digits": { "alias": "digits"; "required": false; }; "fillFraction": { "alias": "fillFraction"; "required": false; }; "roundUp": { "alias": "roundUp"; "required": false; }; "noFormat": { "alias": "noFormat"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, [{ directive: typeof i1.EuiClearableDirective; inputs: { "euiClearable": "euiClearable"; "readonly": "readonly"; "disabled": "disabled"; }; outputs: {}; }, { directive: typeof i1.EuiLoadingDirective; inputs: { "euiLoading": "euiLoading"; "readonly": "readonly"; }; outputs: {}; }]>;
228
+ static ɵcmp: i0.ɵɵComponentDeclaration<EuiInputNumberComponent, "input[euiInputNumber]", never, { "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "leadingZero": { "alias": "leadingZero"; "required": false; }; "isInvalid": { "alias": "isInvalid"; "required": false; }; "fractionDigits": { "alias": "fractionDigits"; "required": false; }; "digits": { "alias": "digits"; "required": false; }; "fillFraction": { "alias": "fillFraction"; "required": false; }; "roundUp": { "alias": "roundUp"; "required": false; }; "noFormat": { "alias": "noFormat"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, true, [{ directive: typeof i1.EuiClearableDirective; inputs: { "euiClearable": "euiClearable"; "readonly": "readonly"; "disabled": "disabled"; }; outputs: {}; }, { directive: typeof i1.EuiLoadingDirective; inputs: { "euiLoading": "euiLoading"; "readonly": "readonly"; }; outputs: {}; }]>;
165
229
  static ngAcceptInputType_min: unknown;
166
230
  static ngAcceptInputType_max: unknown;
167
231
  static ngAcceptInputType_leadingZero: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"eui-input-number.component.d.ts","sourceRoot":"","sources":["../../eui-input-number/eui-input-number.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAKH,OAAO,EACP,UAAU,EAIV,SAAS,EACT,SAAS,EACT,MAAM,EACN,SAAS,EACT,aAAa,EACb,QAAQ,EAIX,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAe,MAAM,WAAW,CAAC;AACvD,OAAO,EAA+C,YAAY,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE/G,OAAO,MAAM,MAAM,WAAW,CAAC;AAE/B,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AAC,cAAc;IAkCtB;;;;;;OAMG;IACH,OAAO,CAAC,aAAa;IAmBrB;;;;OAIG;IACH,OAAO,CAAC,SAAS;yCA3lBR,uBAAuB;2CAAvB,uBAAuB;kCA+lBo8mP,OAAQ;kCAAR,OAAQ;0CAAR,OAAQ;qCAAR,OAAQ;2CAAtqrO,OAAQ;sCAAsprO,OAAQ;uCAAtqrO,OAAQ;CADj1b"}
@@ -1,10 +1,25 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./eui-input-number.component";
3
- import * as i2 from "./eui-number-control.directive";
4
- import * as i3 from "@angular/common";
2
+ import * as i1 from "@angular/common";
3
+ import * as i2 from "./eui-input-number.component";
4
+ import * as i3 from "./eui-number-control.directive";
5
+ /**
6
+ * @description
7
+ * Module for the {@link EuiInputNumberComponent} and {@link EuiInputNumberDirective}.
8
+ *
9
+ * @example
10
+ * ```typescript
11
+ * import { EuiInputNumberModule } from '@eui/components/eui-input-number';
12
+ *
13
+ * @NgModule({
14
+ * imports: [EuiInputNumberModule]
15
+ * })
16
+ * export class AppModule {}
17
+ * ```
18
+ * @deprecated Use {@link `EuiInputNumberComponent`} and or {@link `EuiInputNumberDirective`} instead.
19
+ */
5
20
  export declare class EuiInputNumberModule {
6
21
  static ɵfac: i0.ɵɵFactoryDeclaration<EuiInputNumberModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<EuiInputNumberModule, [typeof i1.EuiInputNumberComponent, typeof i2.EuiInputNumberDirective], [typeof i3.CommonModule], [typeof i1.EuiInputNumberComponent, typeof i2.EuiInputNumberDirective]>;
22
+ static ɵmod: i0.ɵɵNgModuleDeclaration<EuiInputNumberModule, never, [typeof i1.CommonModule, typeof i2.EuiInputNumberComponent, typeof i3.EuiInputNumberDirective], [typeof i2.EuiInputNumberComponent, typeof i3.EuiInputNumberDirective]>;
8
23
  static ɵinj: i0.ɵɵInjectorDeclaration<EuiInputNumberModule>;
9
24
  }
10
25
  //# sourceMappingURL=eui-input-number.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"eui-input-number.module.d.ts","sourceRoot":"","sources":["../../eui-input-number/eui-input-number.module.ts"],"names":[],"mappings":";;;;AAKA,qBAKa,oBAAoB;yCAApB,oBAAoB;0CAApB,oBAAoB;0CAApB,oBAAoB;CAAG"}
1
+ {"version":3,"file":"eui-input-number.module.d.ts","sourceRoot":"","sources":["../../eui-input-number/eui-input-number.module.ts"],"names":[],"mappings":";;;;AAKA;;;;;;;;;;;;;;GAcG;AACH,qBAIa,oBAAoB;yCAApB,oBAAoB;0CAApB,oBAAoB;0CAApB,oBAAoB;CAAG"}
@@ -2,12 +2,26 @@ import { ElementRef, OnInit } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import { EuiInputNumberComponent } from './eui-input-number.component';
4
4
  import * as i0 from "@angular/core";
5
+ /**
6
+ * @description
7
+ * Directive for the {@link EuiInputNumberComponent}. This directive is used to
8
+ * handle the value changes of the input element and update the value of the
9
+ * directive and the form control. It also implements the ControlValueAccessor
10
+ * interface to allow the directive to be used with reactive forms.
11
+ *
12
+ * @example
13
+ * ```html
14
+ * <input euiInputNumber formControlName="number" />
15
+ * ```
16
+ */
5
17
  export declare class EuiInputNumberDirective implements ControlValueAccessor, OnInit {
6
18
  private elementRef;
7
19
  private euiNumberComponent;
8
20
  private document;
9
21
  private platformId;
10
- /** hold a copy of the value */
22
+ /**
23
+ * holds a copy of the value
24
+ */
11
25
  private value;
12
26
  private onChange;
13
27
  constructor(elementRef: ElementRef, euiNumberComponent: EuiInputNumberComponent, document: Document, platformId: unknown);
@@ -15,10 +29,21 @@ export declare class EuiInputNumberDirective implements ControlValueAccessor, On
15
29
  writeValue(obj: any): void;
16
30
  registerOnChange(fn: any): void;
17
31
  registerOnTouched(fn: any): void;
32
+ /**
33
+ * Set the disabled state of the input element.
34
+ *
35
+ * @param isDisabled
36
+ */
18
37
  setDisabledState(isDisabled: boolean): void;
19
38
  private onTouched;
39
+ /**
40
+ * Handle the value changes of the input element and update the value of the
41
+ * directive and the form control.
42
+ *
43
+ * @param event
44
+ */
20
45
  private valueChanges;
21
46
  static ɵfac: i0.ɵɵFactoryDeclaration<EuiInputNumberDirective, [null, { optional: true; }, null, null]>;
22
- static ɵdir: i0.ɵɵDirectiveDeclaration<EuiInputNumberDirective, "input[euiInputNumber][formControl],input[euiInputNumber][formControlName],input[euiInputNumber][ngModel]", never, {}, {}, never, never, false, never>;
47
+ static ɵdir: i0.ɵɵDirectiveDeclaration<EuiInputNumberDirective, "input[euiInputNumber][formControl],input[euiInputNumber][formControlName],input[euiInputNumber][ngModel]", never, {}, {}, never, never, true, never>;
23
48
  }
24
49
  //# sourceMappingURL=eui-number-control.directive.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"eui-number-control.directive.d.ts","sourceRoot":"","sources":["../../eui-input-number/eui-number-control.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAsB,MAAM,EAAyB,MAAM,eAAe,CAAC;AACzG,OAAO,EAAE,oBAAoB,EAAqB,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAkB,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;;AAIvF,qBAWa,uBAAwB,YAAW,oBAAoB,EAAE,MAAM;IAQpE,OAAO,CAAC,UAAU;IACN,OAAO,CAAC,kBAAkB;IACpB,OAAO,CAAC,QAAQ;IACb,OAAO,CAAC,UAAU;IAV3C,+BAA+B;IAC/B,OAAO,CAAC,KAAK,CAAS;IAGtB,OAAO,CAAC,QAAQ,CAAmB;gBAGvB,UAAU,EAAE,UAAU,EACV,kBAAkB,EAAE,uBAAuB,EACrC,QAAQ,EAAE,QAAQ,EACf,UAAU,EAAE,OAAO;IAGpD,QAAQ,IAAI,IAAI;IAMhB,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI;IA2B1B,gBAAgB,CAAC,EAAE,EAAE,GAAG,GAAG,IAAI;IAS/B,iBAAiB,CAAC,EAAE,EAAE,GAAG,GAAG,IAAI;IAIhC,gBAAgB,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI;IAI3C,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,YAAY;yCApEX,uBAAuB;2CAAvB,uBAAuB;CA6EnC"}
1
+ {"version":3,"file":"eui-number-control.directive.d.ts","sourceRoot":"","sources":["../../eui-input-number/eui-number-control.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAsB,MAAM,EAAyB,MAAM,eAAe,CAAC;AACzG,OAAO,EAAE,oBAAoB,EAAqB,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAkB,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;;AAIvF;;;;;;;;;;;GAWG;AACH,qBAWa,uBAAwB,YAAW,oBAAoB,EAAE,MAAM;IAUpE,OAAO,CAAC,UAAU;IACN,OAAO,CAAC,kBAAkB;IACpB,OAAO,CAAC,QAAQ;IACb,OAAO,CAAC,UAAU;IAZ3C;;OAEG;IACH,OAAO,CAAC,KAAK,CAAS;IAGtB,OAAO,CAAC,QAAQ,CAAmB;gBAGvB,UAAU,EAAE,UAAU,EACV,kBAAkB,EAAE,uBAAuB,EACrC,QAAQ,EAAE,QAAQ,EACf,UAAU,EAAE,OAAO;IAGpD,QAAQ,IAAI,IAAI;IAMhB,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI;IA2B1B,gBAAgB,CAAC,EAAE,EAAE,GAAG,GAAG,IAAI;IAS/B,iBAAiB,CAAC,EAAE,EAAE,GAAG,GAAG,IAAI;IAIhC;;;;OAIG;IACH,gBAAgB,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI;IAI3C,OAAO,CAAC,SAAS;IAIjB;;;;;OAKG;IACH,OAAO,CAAC,YAAY;yCAjFX,uBAAuB;2CAAvB,uBAAuB;CA0FnC"}
@@ -4,36 +4,131 @@ import { InputDirective } from '@eui/components/shared';
4
4
  import { BooleanInput } from '@angular/cdk/coercion';
5
5
  import { ChangeEvent } from 'cleave.js/react/props';
6
6
  import * as i0 from "@angular/core";
7
+ /**
8
+ * A radio input component that implements form control functionality and custom styling.
9
+ * This component extends InputDirective and implements form control interfaces for seamless
10
+ * integration with Angular's form controls.
11
+ *
12
+ * @example
13
+ * ```html
14
+ * <input euiInputRadio
15
+ * [(ngModel)]="selectedValue"
16
+ * [value]="optionValue"
17
+ * [isInvalid]="false"
18
+ * [readonly]="false">
19
+ * ```
20
+ */
7
21
  export declare class EuiInputRadioComponent extends InputDirective implements OnInit, DoCheck, OnChanges, ControlValueAccessor {
8
22
  protected ngControl: NgControl;
9
23
  protected _elementRef: ElementRef<HTMLInputElement>;
10
24
  protected _renderer: Renderer2;
25
+ /**
26
+ * Gets or sets whether the radio input is in an invalid state.
27
+ * This can be set manually or will be automatically set when used with form validation.
28
+ *
29
+ * @property {boolean} isInvalid - The invalid state of the radio input
30
+ */
11
31
  get isInvalid(): boolean;
12
32
  set isInvalid(state: BooleanInput);
13
33
  protected _isInvalid: boolean;
34
+ /**
35
+ * Gets the CSS classes for the radio input component.
36
+ * Combines base classes with invalid state modifier if applicable.
37
+ *
38
+ * @returns {string} Space-separated list of CSS classes
39
+ */
14
40
  get class(): string;
15
41
  protected type: string;
42
+ /**
43
+ * Gets or sets the default checked state of the radio input.
44
+ * This is different from the current checked state and represents the initial value.
45
+ *
46
+ * @property {any} defaultChecked - The default checked state
47
+ */
16
48
  get defaultChecked(): any;
17
49
  set defaultChecked(value: BooleanInput);
18
50
  protected _defaultChecked: boolean;
51
+ /**
52
+ * Gets whether the radio input is currently selected.
53
+ *
54
+ * @returns {boolean} True if the radio input is selected, false otherwise
55
+ */
19
56
  get selected(): boolean;
57
+ /**
58
+ * Gets or sets the value of the radio input.
59
+ * The value can be of any type and will be used when the radio is selected in a form group.
60
+ *
61
+ * @property {any} value - The value associated with this radio input
62
+ */
20
63
  get value(): any;
21
64
  set value(value: any);
22
65
  private _value;
23
66
  constructor(ngControl: NgControl, _elementRef: ElementRef<HTMLInputElement>, _renderer: Renderer2, injector: Injector);
67
+ /**
68
+ * Initializes the component.
69
+ * Sets up form control validation status subscription and handles initial state.
70
+ */
24
71
  ngOnInit(): void;
72
+ /**
73
+ * Performs change detection and updates invalid state based on form control status.
74
+ */
25
75
  ngDoCheck(): void;
76
+ /**
77
+ * Handles changes to component inputs. Specifically handles changes to
78
+ * readonly and invalid states.
79
+ *
80
+ * @param {SimpleChanges} changes - Object containing changed properties
81
+ */
26
82
  ngOnChanges(changes: SimpleChanges): void;
83
+ /**
84
+ * Implements ControlValueAccessor.writeValue.
85
+ * Updates the checked state based on the form control value.
86
+ *
87
+ * @param {string} obj - The value to write
88
+ */
27
89
  writeValue(obj: string): void;
90
+ /**
91
+ * Registers a callback function that is called when the control's value changes.
92
+ *
93
+ * @param {Function} fn - The callback function
94
+ */
28
95
  registerOnChange(fn: any): void;
96
+ /**
97
+ * Registers a callback function that is called when the control is touched.
98
+ *
99
+ * @param {Function} fn - The callback function
100
+ */
29
101
  registerOnTouched(fn: any): void;
102
+ /**
103
+ * Sets the disabled state of the radio input.
104
+ *
105
+ * @param {boolean} isDisabled - Whether the radio input should be disabled
106
+ */
30
107
  setDisabledState?(isDisabled: boolean): void;
108
+ /**
109
+ * Handles change events on the radio input.
110
+ * Updates the model value when the radio selection changes.
111
+ *
112
+ * @param {ChangeEvent<any>} event - The change event
113
+ */
31
114
  protected onCheckedChanged(event: ChangeEvent<any>): void;
115
+ /**
116
+ * Handles space key press events. Prevents selection changes when the input
117
+ * is readonly.
118
+ *
119
+ * @param {KeyboardEvent} event - The keyboard event
120
+ */
32
121
  protected onSpacePressed(event: KeyboardEvent): void;
122
+ /**
123
+ * Sets the invalid state of the radio input.
124
+ * Updates both the internal state and the visual appearance.
125
+ *
126
+ * @param {boolean} state - The invalid state to set
127
+ */
33
128
  protected setInvalid(state: any): void;
34
129
  protected onChange: (_: any) => void;
35
130
  protected onTouched: (_: any) => void;
36
131
  static ɵfac: i0.ɵɵFactoryDeclaration<EuiInputRadioComponent, [{ optional: true; self: true; }, null, null, null]>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<EuiInputRadioComponent, "input[euiInputRadio]", never, { "isInvalid": { "alias": "isInvalid"; "required": false; }; "defaultChecked": { "alias": "checked"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
132
+ static ɵcmp: i0.ɵɵComponentDeclaration<EuiInputRadioComponent, "input[euiInputRadio]", never, { "isInvalid": { "alias": "isInvalid"; "required": false; }; "defaultChecked": { "alias": "checked"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, true, never>;
38
133
  }
39
134
  //# sourceMappingURL=eui-input-radio.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"eui-input-radio.component.d.ts","sourceRoot":"","sources":["../../eui-input-radio/eui-input-radio.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,OAAO,EACP,UAAU,EAGV,SAAS,EAET,SAAS,EAET,aAAa,EACb,MAAM,EAGN,QAAQ,EACX,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAyB,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;;AAEpD,qBAOa,sBAAuB,SAAQ,cAAe,YAAW,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,oBAAoB;IA8C1F,SAAS,CAAC,SAAS,EAAE,SAAS;IAClD,SAAS,CAAC,WAAW,EAAE,UAAU,CAAC,gBAAgB,CAAC;IACnD,SAAS,CAAC,SAAS,EAAE,SAAS;IA/ClC,IACW,SAAS,IAAI,OAAO,CAE9B;IACD,IAAW,SAAS,CAAC,KAAK,EAAE,YAAY,EAEvC;IACD,SAAS,CAAC,UAAU,EAAE,OAAO,CAAC;IAE9B,IACW,KAAK,IAAI,MAAM,CAEzB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IAoBhB;;OAEG;IACH,SAAS,IAAI,IAAI;IAMjB;;;;;OAKG;IACH,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAoBzC;;;;;OAKG;IACH,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAK7B;;;;OAIG;IAGH,gBAAgB,CAAC,EAAE,EAAE,GAAG,GAAG,IAAI;IAI/B;;;;OAIG;IAGH,iBAAiB,CAAC,EAAE,EAAE,GAAG,GAAG,IAAI;IAIhC;;;;OAIG;IACH,gBAAgB,CAAC,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI;IAI5C;;;;;OAKG;IAIH,SAAS,CAAC,gBAAgB,CAAC,KAAK,EAAE,WAAW,CAAC,GAAG,CAAC,GAAG,IAAI;IAKzD;;;;;OAKG;IAEH,SAAS,CAAC,cAAc,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAOpD;;;;;OAKG;IACH,SAAS,CAAC,UAAU,CAAC,KAAK,KAAA,GAAG,IAAI;IASjC,SAAS,CAAC,QAAQ,cAAQ,IAAI,CAE5B;IAGF,SAAS,CAAC,SAAS,cAAQ,IAAI,CAE7B;yCAvPO,sBAAsB;2CAAtB,sBAAsB;CAwPlC"}
@@ -1,9 +1,26 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./eui-input-radio.component";
3
- import * as i2 from "@angular/common";
2
+ import * as i1 from "@angular/common";
3
+ import * as i2 from "./eui-input-radio.component";
4
+ /**
5
+ * Angular module that provides radio input functionality.
6
+ *
7
+ * @example
8
+ * ```typescript
9
+ * import { EuiInputRadioModule } from '@eui/components/input-radio';
10
+ *
11
+ * @NgModule({
12
+ * imports: [
13
+ * EuiInputRadioModule
14
+ * ]
15
+ * })
16
+ * export class YourModule { }
17
+ * ```
18
+ *
19
+ * @deprecated Use {@link `EuiInputRadioComponent`} instead.
20
+ */
4
21
  export declare class EuiInputRadioModule {
5
22
  static ɵfac: i0.ɵɵFactoryDeclaration<EuiInputRadioModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<EuiInputRadioModule, [typeof i1.EuiInputRadioComponent], [typeof i2.CommonModule], [typeof i1.EuiInputRadioComponent]>;
23
+ static ɵmod: i0.ɵɵNgModuleDeclaration<EuiInputRadioModule, never, [typeof i1.CommonModule, typeof i2.EuiInputRadioComponent], [typeof i2.EuiInputRadioComponent]>;
7
24
  static ɵinj: i0.ɵɵInjectorDeclaration<EuiInputRadioModule>;
8
25
  }
9
26
  //# sourceMappingURL=eui-input-radio.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"eui-input-radio.module.d.ts","sourceRoot":"","sources":["../../eui-input-radio/eui-input-radio.module.ts"],"names":[],"mappings":";;;AAIA,qBAKa,mBAAmB;yCAAnB,mBAAmB;0CAAnB,mBAAmB;0CAAnB,mBAAmB;CAAG"}
1
+ {"version":3,"file":"eui-input-radio.module.d.ts","sourceRoot":"","sources":["../../eui-input-radio/eui-input-radio.module.ts"],"names":[],"mappings":";;;AAIA;;;;;;;;;;;;;;;;GAgBG;AACH,qBAIa,mBAAmB;yCAAnB,mBAAmB;0CAAnB,mBAAmB;0CAAnB,mBAAmB;CAAG"}
@@ -4,20 +4,73 @@ import { InputDirective } from '@eui/components/shared';
4
4
  import { BooleanInput } from '@angular/cdk/coercion';
5
5
  import * as i0 from "@angular/core";
6
6
  import * as i1 from "@eui/components/directives";
7
+ /**
8
+ * @description
9
+ * A custom input text component that extends InputDirective and provides additional functionality
10
+ * such as validation states, clearable input, and loading states.
11
+ *
12
+ * @example
13
+ * ```html
14
+ * <input euiInputText
15
+ * [isInvalid]="true"
16
+ * [euiClearable]="true"
17
+ * [euiLoading]="isLoading">
18
+ * ```
19
+ *
20
+ * @implements {@link OnInit}
21
+ * @implements {@link OnDestroy}
22
+ * @implements {@link DoCheck}
23
+ */
7
24
  export declare class EuiInputTextComponent extends InputDirective implements OnInit, OnDestroy, DoCheck {
8
25
  protected control: NgControl;
9
26
  protected _elementRef: ElementRef;
10
27
  protected _renderer: Renderer2;
28
+ /**
29
+ * @description
30
+ * Gets the CSS classes for the component, including validation state classes
31
+ *
32
+ * @returns {string} Space-separated string of CSS class names
33
+ */
11
34
  get class(): string;
35
+ /**
36
+ * @description
37
+ * Gets or sets the invalid state of the input
38
+ * When used with NgControl, this state is automatically managed based on control state
39
+ *
40
+ * @returns {boolean} Current invalid state
41
+ */
12
42
  get isInvalid(): boolean;
43
+ /**
44
+ * @param {BooleanInput} state - The invalid state to set
45
+ */
13
46
  set isInvalid(state: BooleanInput);
47
+ /** @internal */
14
48
  protected _isInvalid: boolean;
15
49
  constructor(control: NgControl, _elementRef: ElementRef, _renderer: Renderer2, injector: Injector);
50
+ /**
51
+ * @description
52
+ * Initializes the component and sets the root class name
53
+ */
16
54
  ngOnInit(): void;
55
+ /**
56
+ * @description
57
+ * Cleans up component resources
58
+ */
17
59
  ngOnDestroy(): void;
60
+ /**
61
+ * @description
62
+ * Checks and updates the invalid state when using NgControl
63
+ */
18
64
  ngDoCheck(): void;
65
+ /**
66
+ * @description
67
+ * Sets the invalid state of the input and updates related properties
68
+ *
69
+ * @param {BooleanInput} state - The invalid state to set
70
+ * @protected
71
+ */
19
72
  protected setInvalid(state?: BooleanInput): void;
20
73
  static ɵfac: i0.ɵɵFactoryDeclaration<EuiInputTextComponent, [{ optional: true; self: true; }, null, null, null]>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<EuiInputTextComponent, "input[euiInputText]", never, { "isInvalid": { "alias": "isInvalid"; "required": false; }; }, {}, never, never, false, [{ directive: typeof i1.EuiClearableDirective; inputs: { "euiClearable": "euiClearable"; "readonly": "readonly"; "disabled": "disabled"; }; outputs: {}; }, { directive: typeof i1.EuiLoadingDirective; inputs: { "euiLoading": "euiLoading"; "readonly": "readonly"; }; outputs: {}; }]>;
74
+ static ɵcmp: i0.ɵɵComponentDeclaration<EuiInputTextComponent, "input[euiInputText]", never, { "isInvalid": { "alias": "isInvalid"; "required": false; }; }, {}, never, never, true, [{ directive: typeof i1.EuiClearableDirective; inputs: { "euiClearable": "euiClearable"; "readonly": "readonly"; "disabled": "disabled"; }; outputs: {}; }, { directive: typeof i1.EuiLoadingDirective; inputs: { "euiLoading": "euiLoading"; "readonly": "readonly"; }; outputs: {}; }]>;
22
75
  }
23
76
  //# sourceMappingURL=eui-input-text.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"eui-input-text.component.d.ts","sourceRoot":"","sources":["../../eui-input-text/eui-input-text.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,OAAO,EACP,UAAU,EAGV,QAAQ,EAER,SAAS,EACT,MAAM,EAEN,SAAS,EACZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAyB,YAAY,EAAE,MAAM,uBAAuB,CAAC;;;AAG5E,qBAiBa,qBAAsB,SAAQ,cAAe,YAAW,MAAM,EAAE,SAAS,EAAE,OAAO;IAgBnE,SAAS,CAAC,OAAO,EAAE,SAAS;IAChD,SAAS,CAAC,WAAW,EAAE,UAAU;IACjC,SAAS,CAAC,SAAS,EAAE,SAAS;IAjBlC,IACW,KAAK,IAAI,MAAM,CAEzB;IAED,IACW,SAAS,IAAI,OAAO,CAE9B;IACD,IAAW,SAAS,CAAC,KAAK,EAAE,YAAY,EAEvC;IACD,SAAS,CAAC,UAAU,EAAE,OAAO,CAAC;gBAGI,OAAO,EAAE,SAAS,EACtC,WAAW,EAAE,UAAU,EACvB,SAAS,EAAE,SAAS,EAC9B,QAAQ,EAAE,QAAQ;IAKtB,QAAQ,IAAI,IAAI;IAKhB,WAAW,IAAI,IAAI;IAInB,SAAS,IAAI,IAAI;IAMjB,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI;yCAvCvC,qBAAqB;2CAArB,qBAAqB;CA8CjC"}
1
+ {"version":3,"file":"eui-input-text.component.d.ts","sourceRoot":"","sources":["../../eui-input-text/eui-input-text.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,OAAO,EACP,UAAU,EAGV,QAAQ,EAER,SAAS,EACT,MAAM,EAEN,SAAS,EACZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAyB,YAAY,EAAE,MAAM,uBAAuB,CAAC;;;AAG5E;;;;;;;;;;;;;;;;GAgBG;AACH,qBAiBa,qBAAsB,SAAQ,cAAe,YAAW,MAAM,EAAE,SAAS,EAAE,OAAO;IAiCnE,SAAS,CAAC,OAAO,EAAE,SAAS;IAChD,SAAS,CAAC,WAAW,EAAE,UAAU;IACjC,SAAS,CAAC,SAAS,EAAE,SAAS;IAlClC;;;;;OAKG;IACH,IACW,KAAK,IAAI,MAAM,CAEzB;IAED;;;;;;OAMG;IACH,IACW,SAAS,IAAI,OAAO,CAE9B;IACD;;OAEG;IACH,IAAW,SAAS,CAAC,KAAK,EAAE,YAAY,EAEvC;IACD,gBAAgB;IAChB,SAAS,CAAC,UAAU,EAAE,OAAO,CAAC;gBAGI,OAAO,EAAE,SAAS,EACtC,WAAW,EAAE,UAAU,EACvB,SAAS,EAAE,SAAS,EAC9B,QAAQ,EAAE,QAAQ;IAKtB;;;OAGG;IACH,QAAQ,IAAI,IAAI;IAKhB;;;OAGG;IACH,WAAW,IAAI,IAAI;IAInB;;;OAGG;IACH,SAAS,IAAI,IAAI;IAMjB;;;;;;OAMG;IACH,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI;yCA3EvC,qBAAqB;2CAArB,qBAAqB;CAkFjC"}
@@ -1,9 +1,25 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./eui-input-text.component";
3
- import * as i2 from "@angular/common";
2
+ import * as i1 from "@angular/common";
3
+ import * as i2 from "./eui-input-text.component";
4
+ /**
5
+ * @description
6
+ * Module that provides the EuiInputText component and its dependencies
7
+ *
8
+ * @example
9
+ * ```typescript
10
+ * @NgModule({
11
+ * imports: [EuiInputTextModule]
12
+ * })
13
+ * export class YourModule { }
14
+ * ```
15
+ *
16
+ * @deprecated
17
+ * Use {@link `EuiInputTextComponent`} instead. This module is deprecated and
18
+ * will be removed in the next major version of the library.
19
+ */
4
20
  export declare class EuiInputTextModule {
5
21
  static ɵfac: i0.ɵɵFactoryDeclaration<EuiInputTextModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<EuiInputTextModule, [typeof i1.EuiInputTextComponent], [typeof i2.CommonModule], [typeof i1.EuiInputTextComponent]>;
22
+ static ɵmod: i0.ɵɵNgModuleDeclaration<EuiInputTextModule, never, [typeof i1.CommonModule, typeof i2.EuiInputTextComponent], [typeof i2.EuiInputTextComponent]>;
7
23
  static ɵinj: i0.ɵɵInjectorDeclaration<EuiInputTextModule>;
8
24
  }
9
25
  //# sourceMappingURL=eui-input-text.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"eui-input-text.module.d.ts","sourceRoot":"","sources":["../../eui-input-text/eui-input-text.module.ts"],"names":[],"mappings":";;;AAIA,qBAKa,kBAAkB;yCAAlB,kBAAkB;0CAAlB,kBAAkB;0CAAlB,kBAAkB;CAAG"}
1
+ {"version":3,"file":"eui-input-text.module.d.ts","sourceRoot":"","sources":["../../eui-input-text/eui-input-text.module.ts"],"names":[],"mappings":";;;AAIA;;;;;;;;;;;;;;;GAeG;AACH,qBAIa,kBAAkB;yCAAlB,kBAAkB;0CAAlB,kBAAkB;0CAAlB,kBAAkB;CAAG"}