bromcom-ui-next 0.1.2 → 0.1.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 (209) hide show
  1. package/dist/bromcom-ui/bromcom-ui.css +1 -1
  2. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  3. package/dist/bromcom-ui/bromcom-ui.esm.js.map +1 -1
  4. package/dist/bromcom-ui/global/global.js +14 -15
  5. package/dist/bromcom-ui/p-04f6d730.entry.js +2 -0
  6. package/dist/bromcom-ui/p-04f6d730.entry.js.map +1 -0
  7. package/dist/bromcom-ui/{p-b36f4f44.js → p-12360e4c.js} +1 -1
  8. package/dist/bromcom-ui/p-15fe392b.js +3 -0
  9. package/dist/bromcom-ui/p-15fe392b.js.map +1 -0
  10. package/dist/bromcom-ui/p-1b11150b.entry.js +2 -0
  11. package/dist/bromcom-ui/p-1b11150b.entry.js.map +1 -0
  12. package/dist/bromcom-ui/p-1d86c1cf.entry.js +2 -0
  13. package/dist/bromcom-ui/p-1d86c1cf.entry.js.map +1 -0
  14. package/dist/bromcom-ui/p-31354aaa.js +2 -0
  15. package/dist/bromcom-ui/p-31354aaa.js.map +1 -0
  16. package/dist/bromcom-ui/p-3b607038.entry.js +2 -0
  17. package/dist/bromcom-ui/p-3b607038.entry.js.map +1 -0
  18. package/dist/bromcom-ui/p-5d0838e9.entry.js +2 -0
  19. package/dist/bromcom-ui/p-5d0838e9.entry.js.map +1 -0
  20. package/dist/bromcom-ui/p-729a870f.js +2 -0
  21. package/dist/bromcom-ui/p-729a870f.js.map +1 -0
  22. package/dist/bromcom-ui/p-a590f793.entry.js +2 -0
  23. package/dist/bromcom-ui/p-a590f793.entry.js.map +1 -0
  24. package/dist/bromcom-ui/p-cd437280.entry.js +2 -0
  25. package/dist/bromcom-ui/p-cd437280.entry.js.map +1 -0
  26. package/dist/bromcom-ui/p-dcea8d62.entry.js +2 -0
  27. package/dist/bromcom-ui/{p-0a74cf15.entry.js.map → p-dcea8d62.entry.js.map} +1 -1
  28. package/dist/bromcom-ui/p-ebed10d5.entry.js +2 -0
  29. package/dist/bromcom-ui/{p-2d836917.entry.js.map → p-ebed10d5.entry.js.map} +1 -1
  30. package/dist/cjs/app-globals-29edfda4.js +39 -0
  31. package/dist/cjs/app-globals-29edfda4.js.map +1 -0
  32. package/dist/cjs/bcm-accordion-group.cjs.entry.js +92 -0
  33. package/dist/cjs/bcm-accordion-group.cjs.entry.js.map +1 -0
  34. package/dist/cjs/bcm-accordion.cjs.entry.js +128 -0
  35. package/dist/cjs/bcm-accordion.cjs.entry.js.map +1 -0
  36. package/dist/cjs/bcm-alert.cjs.entry.js +2 -2
  37. package/dist/cjs/bcm-alert.cjs.entry.js.map +1 -1
  38. package/dist/cjs/bcm-avatar_4.cjs.entry.js +577 -0
  39. package/dist/cjs/bcm-avatar_4.cjs.entry.js.map +1 -0
  40. package/dist/cjs/bcm-chip.cjs.entry.js +130 -0
  41. package/dist/cjs/bcm-chip.cjs.entry.js.map +1 -0
  42. package/dist/cjs/bcm-divider.cjs.entry.js +81 -0
  43. package/dist/cjs/bcm-divider.cjs.entry.js.map +1 -0
  44. package/dist/cjs/bcm-input.cjs.entry.js +313 -0
  45. package/dist/cjs/bcm-input.cjs.entry.js.map +1 -0
  46. package/dist/cjs/bcm-text.cjs.entry.js +4 -4
  47. package/dist/cjs/bcm-text.cjs.entry.js.map +1 -1
  48. package/dist/cjs/bcm-textarea.cjs.entry.js +316 -0
  49. package/dist/cjs/bcm-textarea.cjs.entry.js.map +1 -0
  50. package/dist/cjs/bromcom-ui.cjs.js +3 -3
  51. package/dist/cjs/{index-638f2d15.js → index-4795c073.js} +43 -5
  52. package/dist/cjs/index-4795c073.js.map +1 -0
  53. package/dist/{components/p-b36f4f44.js → cjs/index-5a88e57b.js} +5 -3
  54. package/dist/cjs/{index-a4eea4bb.js.map → index-5a88e57b.js.map} +1 -1
  55. package/dist/cjs/loader.cjs.js +3 -3
  56. package/dist/cjs/validation-messages-c36e5c31.js +134 -0
  57. package/dist/cjs/validation-messages-c36e5c31.js.map +1 -0
  58. package/dist/collection/collection-manifest.json +6 -1
  59. package/dist/collection/components/accordion/accordion.component.js +5 -5
  60. package/dist/collection/components/accordion/accordion.component.js.map +1 -1
  61. package/dist/collection/components/accordion/accordion.css +1 -1
  62. package/dist/collection/components/accordion-group/accordion-group.component.js +1 -1
  63. package/dist/collection/components/accordion-group/accordion-group.component.js.map +1 -1
  64. package/dist/collection/components/accordion-group/accordion-group.css +1 -1
  65. package/dist/collection/components/alert/alert.css +1 -1
  66. package/dist/collection/components/avatar/avatar.component.js.map +1 -1
  67. package/dist/collection/components/avatar/avatar.css +1 -1
  68. package/dist/collection/components/badge/badge.component.js +373 -0
  69. package/dist/collection/components/badge/badge.component.js.map +1 -0
  70. package/dist/collection/components/badge/badge.css +1 -0
  71. package/dist/collection/components/basic-badge/basic-badge.component.js +236 -0
  72. package/dist/collection/components/basic-badge/basic-badge.component.js.map +1 -0
  73. package/dist/collection/components/basic-badge/basic-badge.css +1 -0
  74. package/dist/collection/components/button/button.component.js +3 -3
  75. package/dist/collection/components/button/button.component.js.map +1 -1
  76. package/dist/collection/components/button/button.css +1 -1
  77. package/dist/collection/components/chip/chip.component.js +2 -2
  78. package/dist/collection/components/chip/chip.component.js.map +1 -1
  79. package/dist/collection/components/chip/chip.css +1 -1
  80. package/dist/collection/components/divider/divider.component.js +190 -0
  81. package/dist/collection/components/divider/divider.component.js.map +1 -0
  82. package/dist/collection/components/divider/divider.css +1 -0
  83. package/dist/collection/components/input/input.component.js +1050 -0
  84. package/dist/collection/components/input/input.component.js.map +1 -0
  85. package/dist/collection/components/input/input.css +2 -0
  86. package/dist/collection/components/input/types.js +11 -0
  87. package/dist/collection/components/input/types.js.map +1 -0
  88. package/dist/collection/components/text/text.component.js +1 -1
  89. package/dist/collection/components/text/text.css +1 -1
  90. package/dist/collection/components/textarea/textarea.component.js +1013 -0
  91. package/dist/collection/components/textarea/textarea.component.js.map +1 -0
  92. package/dist/collection/components/textarea/textarea.css +2 -0
  93. package/dist/collection/components/textarea/types.js +2 -0
  94. package/dist/collection/components/textarea/types.js.map +1 -0
  95. package/dist/collection/global/global.js +14 -15
  96. package/dist/collection/utils/i18n.js +29 -0
  97. package/dist/collection/utils/i18n.js.map +1 -0
  98. package/dist/collection/utils/id/generate-id.js +16 -0
  99. package/dist/collection/utils/id/generate-id.js.map +1 -0
  100. package/dist/collection/utils/slot/check-slot-content.js +15 -0
  101. package/dist/collection/utils/slot/check-slot-content.js.map +1 -0
  102. package/dist/collection/utils/validation-messages.js +17 -0
  103. package/dist/collection/utils/validation-messages.js.map +1 -0
  104. package/dist/components/bcm-accordion-group.js +3 -3
  105. package/dist/components/bcm-accordion-group.js.map +1 -1
  106. package/dist/components/bcm-accordion.js +7 -7
  107. package/dist/components/bcm-accordion.js.map +1 -1
  108. package/dist/components/bcm-alert.js +2 -2
  109. package/dist/components/bcm-alert.js.map +1 -1
  110. package/dist/components/bcm-avatar.js +13 -7
  111. package/dist/components/bcm-avatar.js.map +1 -1
  112. package/dist/components/bcm-badge.d.ts +11 -0
  113. package/dist/components/bcm-badge.js +8 -0
  114. package/dist/components/bcm-badge.js.map +1 -0
  115. package/dist/components/bcm-basic-badge.d.ts +11 -0
  116. package/dist/components/bcm-basic-badge.js +113 -0
  117. package/dist/components/bcm-basic-badge.js.map +1 -0
  118. package/dist/components/bcm-button.js +5 -5
  119. package/dist/components/bcm-button.js.map +1 -1
  120. package/dist/components/bcm-chip.js +4 -4
  121. package/dist/components/bcm-chip.js.map +1 -1
  122. package/dist/components/bcm-divider.d.ts +11 -0
  123. package/dist/components/bcm-divider.js +100 -0
  124. package/dist/components/bcm-divider.js.map +1 -0
  125. package/dist/components/bcm-input.d.ts +11 -0
  126. package/dist/components/bcm-input.js +369 -0
  127. package/dist/components/bcm-input.js.map +1 -0
  128. package/dist/components/bcm-text.js +4 -4
  129. package/dist/components/bcm-text.js.map +1 -1
  130. package/dist/components/bcm-textarea.d.ts +11 -0
  131. package/dist/components/bcm-textarea.js +369 -0
  132. package/dist/components/bcm-textarea.js.map +1 -0
  133. package/dist/components/index.js +12 -16
  134. package/dist/components/index.js.map +1 -1
  135. package/dist/{esm/index-f0e9d579.js → components/p-12360e4c.js} +3 -3
  136. package/dist/components/{p-b36f4f44.js.map → p-12360e4c.js.map} +1 -1
  137. package/dist/components/{p-0adcc84f.js → p-13582168.js} +34 -3
  138. package/dist/components/p-13582168.js.map +1 -0
  139. package/dist/components/p-31354aaa.js +129 -0
  140. package/dist/components/p-31354aaa.js.map +1 -0
  141. package/dist/components/p-39637e05.js +145 -0
  142. package/dist/components/p-39637e05.js.map +1 -0
  143. package/dist/esm/app-globals-bfa07b76.js +37 -0
  144. package/dist/esm/app-globals-bfa07b76.js.map +1 -0
  145. package/dist/esm/bcm-accordion-group.entry.js +88 -0
  146. package/dist/esm/bcm-accordion-group.entry.js.map +1 -0
  147. package/dist/esm/bcm-accordion.entry.js +124 -0
  148. package/dist/esm/bcm-accordion.entry.js.map +1 -0
  149. package/dist/esm/bcm-alert.entry.js +2 -2
  150. package/dist/esm/bcm-alert.entry.js.map +1 -1
  151. package/dist/esm/bcm-avatar_4.entry.js +570 -0
  152. package/dist/esm/bcm-avatar_4.entry.js.map +1 -0
  153. package/dist/esm/bcm-chip.entry.js +126 -0
  154. package/dist/esm/bcm-chip.entry.js.map +1 -0
  155. package/dist/esm/bcm-divider.entry.js +77 -0
  156. package/dist/esm/bcm-divider.entry.js.map +1 -0
  157. package/dist/esm/bcm-input.entry.js +309 -0
  158. package/dist/esm/bcm-input.entry.js.map +1 -0
  159. package/dist/esm/bcm-text.entry.js +4 -4
  160. package/dist/esm/bcm-text.entry.js.map +1 -1
  161. package/dist/esm/bcm-textarea.entry.js +312 -0
  162. package/dist/esm/bcm-textarea.entry.js.map +1 -0
  163. package/dist/esm/bromcom-ui.js +4 -4
  164. package/dist/{cjs/index-a4eea4bb.js → esm/index-097075ad.js} +3 -5
  165. package/dist/esm/{index-f0e9d579.js.map → index-097075ad.js.map} +1 -1
  166. package/dist/esm/{index-ce2fac11.js → index-27cc1bac.js} +43 -5
  167. package/dist/esm/index-27cc1bac.js.map +1 -0
  168. package/dist/esm/loader.js +4 -4
  169. package/dist/esm/validation-messages-a29d53be.js +129 -0
  170. package/dist/esm/validation-messages-a29d53be.js.map +1 -0
  171. package/dist/types/components/badge/badge.component.d.ts +87 -0
  172. package/dist/types/components/basic-badge/basic-badge.component.d.ts +54 -0
  173. package/dist/types/components/divider/divider.component.d.ts +40 -0
  174. package/dist/types/components/input/input.component.d.ts +93 -0
  175. package/dist/types/components/input/types.d.ts +13 -0
  176. package/dist/types/components/textarea/textarea.component.d.ts +85 -0
  177. package/dist/types/components/textarea/types.d.ts +7 -0
  178. package/dist/types/components.d.ts +889 -0
  179. package/dist/types/utils/i18n.d.ts +8 -0
  180. package/dist/types/utils/id/generate-id.d.ts +9 -0
  181. package/dist/types/utils/slot/check-slot-content.d.ts +7 -0
  182. package/dist/types/utils/validation-messages.d.ts +11 -0
  183. package/package.json +3 -2
  184. package/dist/bromcom-ui/p-0a74cf15.entry.js +0 -2
  185. package/dist/bromcom-ui/p-27c997d8.js +0 -3
  186. package/dist/bromcom-ui/p-27c997d8.js.map +0 -1
  187. package/dist/bromcom-ui/p-2d836917.entry.js +0 -2
  188. package/dist/bromcom-ui/p-40643b53.js +0 -2
  189. package/dist/bromcom-ui/p-40643b53.js.map +0 -1
  190. package/dist/bromcom-ui/p-84a5dcdb.entry.js +0 -2
  191. package/dist/bromcom-ui/p-84a5dcdb.entry.js.map +0 -1
  192. package/dist/bromcom-ui/p-f0c61f8c.entry.js +0 -2
  193. package/dist/bromcom-ui/p-f0c61f8c.entry.js.map +0 -1
  194. package/dist/cjs/app-globals-e8faea0d.js +0 -43
  195. package/dist/cjs/app-globals-e8faea0d.js.map +0 -1
  196. package/dist/cjs/bcm-accordion_4.cjs.entry.js +0 -623
  197. package/dist/cjs/bcm-accordion_4.cjs.entry.js.map +0 -1
  198. package/dist/cjs/bcm-avatar.cjs.entry.js +0 -89
  199. package/dist/cjs/bcm-avatar.cjs.entry.js.map +0 -1
  200. package/dist/cjs/index-638f2d15.js.map +0 -1
  201. package/dist/components/p-0adcc84f.js.map +0 -1
  202. package/dist/esm/app-globals-f781c325.js +0 -41
  203. package/dist/esm/app-globals-f781c325.js.map +0 -1
  204. package/dist/esm/bcm-accordion_4.entry.js +0 -616
  205. package/dist/esm/bcm-accordion_4.entry.js.map +0 -1
  206. package/dist/esm/bcm-avatar.entry.js +0 -85
  207. package/dist/esm/bcm-avatar.entry.js.map +0 -1
  208. package/dist/esm/index-ce2fac11.js.map +0 -1
  209. /package/dist/bromcom-ui/{p-b36f4f44.js.map → p-12360e4c.js.map} +0 -0
@@ -0,0 +1,1050 @@
1
+ import { h } from "@stencil/core";
2
+ import { defaultIcons } from "./types";
3
+ import { tv } from "tailwind-variants";
4
+ import classNames from "classnames";
5
+ import { generateId } from "../../utils/id/generate-id";
6
+ import { checkSlotContent } from "../../utils/slot/check-slot-content";
7
+ import { getValidationMessage, setValidationMessages, defaultValidationMessages } from "../../utils/validation-messages";
8
+ export class BcmInput {
9
+ constructor() {
10
+ this.isFocused = false;
11
+ this.isValid = true;
12
+ this.internalStatus = 'default';
13
+ /** Input value */
14
+ this.value = '';
15
+ /** Input id */
16
+ this._id = generateId('input');
17
+ /** Controls the input size */
18
+ this.size = 'medium';
19
+ /** Defines the input's status/state */
20
+ this.status = 'default';
21
+ /** Full width input */
22
+ this.fullWidth = false;
23
+ /** HTML input type */
24
+ this.type = 'text';
25
+ /** Whether the input is disabled */
26
+ this.disabled = false;
27
+ /** Whether the input is readonly */
28
+ this.readonly = false;
29
+ /** Whether the input is required */
30
+ this.required = false;
31
+ /** Whether to use native form validation
32
+ * If false, component will handle validation internally
33
+ */
34
+ this.useNativeValidation = true;
35
+ this.onInput = (event) => {
36
+ const input = event.target;
37
+ this.value = input.value;
38
+ this.bcmInput.emit(event);
39
+ this.validateInput();
40
+ };
41
+ this.onChange = (event) => {
42
+ this.bcmChange.emit(event);
43
+ };
44
+ this.onFocus = (event) => {
45
+ this.isFocused = true;
46
+ this.bcmFocus.emit(event);
47
+ };
48
+ this.onBlur = (event) => {
49
+ this.isFocused = false;
50
+ this.bcmBlur.emit(event);
51
+ this.validateInput();
52
+ };
53
+ this.onKeyDown = (event) => {
54
+ this.bcmKeyDown.emit(event);
55
+ };
56
+ this.onKeyUp = (event) => {
57
+ this.bcmKeyUp.emit(event);
58
+ };
59
+ this.styleClass = tv({
60
+ slots: {
61
+ base: [
62
+ 'bcm-input bcm-input__container',
63
+ 'bg-[--bcm-ui-color-background-base-default]',
64
+ 'border border-solid rounded',
65
+ 'flex items-center justify-between',
66
+ 'transition-colors duration-200',
67
+ 'px-2',
68
+ ],
69
+ inputClass: [
70
+ 'input',
71
+ 'w-full flex-1',
72
+ 'border-0 outline-0 bg-transparent',
73
+ 'appearance-none text-ellipsis',
74
+ 'text-[--bcm-ui-color-text-default] placeholder:text-[--bcm-ui-color-text-placeholder] placeholder:font-normal',
75
+ 'font-sans antialiased font-medium',
76
+ 'px-1',
77
+ ],
78
+ },
79
+ variants: {
80
+ size: {
81
+ small: {
82
+ base: '',
83
+ inputClass: 'text-size-4 h-6',
84
+ },
85
+ medium: {
86
+ base: '',
87
+ inputClass: 'text-size-5 h-8',
88
+ },
89
+ large: {
90
+ base: '',
91
+ inputClass: 'text-size-6 h-10',
92
+ },
93
+ },
94
+ status: {
95
+ default: {
96
+ base: ['border-[--bcm-ui-color-border-default]', 'hover:border-[--bcm-ui-color-border-primary]', 'has-[:focus]:border-[--bcm-ui-color-border-primary]'],
97
+ },
98
+ error: {
99
+ base: ['border-[--bcm-ui-color-border-error]', 'hover:border-[--bcm-ui-color-border-error]', 'has-[:focus]:border-[--bcm-ui-color-border-error]'],
100
+ },
101
+ success: {
102
+ base: ['border-[--bcm-ui-color-border-success]', 'hover:border-[--bcm-ui-color-border-success]', 'has-[:focus]:border-[--bcm-ui-color-border-success]'],
103
+ },
104
+ warning: {
105
+ base: ['border-[--bcm-ui-color-border-warning]', 'hover:border-[--bcm-ui-color-border-warning]', 'has-[:focus]:border-[--bcm-ui-color-border-warning]'],
106
+ },
107
+ info: {
108
+ base: ['border-[--bcm-ui-color-border-info]', 'hover:border-[--bcm-ui-color-border-info]', 'has-[:focus]:border-[--bcm-ui-color-border-info]'],
109
+ },
110
+ },
111
+ fullWidth: {
112
+ true: 'full-width w-full',
113
+ },
114
+ disabled: {
115
+ true: 'disabled cursor-not-allowed',
116
+ false: '',
117
+ },
118
+ focused: {
119
+ true: {
120
+ base: '',
121
+ },
122
+ },
123
+ },
124
+ defaultVariants: {
125
+ size: 'medium',
126
+ status: 'default',
127
+ fullWidth: false,
128
+ disabled: false,
129
+ focused: false,
130
+ },
131
+ }, {
132
+ twMerge: false,
133
+ });
134
+ }
135
+ handleValueChange(newValue) {
136
+ if (this.inputRef) {
137
+ this.inputRef.value = newValue;
138
+ }
139
+ }
140
+ watchStatus(newValue) {
141
+ this.internalStatus = newValue;
142
+ }
143
+ watchErrorMessage(newValue) {
144
+ this.internalErrorMessage = newValue;
145
+ }
146
+ async setFocus() {
147
+ var _a;
148
+ (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
149
+ }
150
+ async setBlur() {
151
+ var _a;
152
+ (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.blur();
153
+ }
154
+ async select() {
155
+ var _a;
156
+ (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.select();
157
+ }
158
+ /** Sets locale and messages for all inputs */
159
+ async setLocale(locale, messages) {
160
+ // Set messages and update validation immediately
161
+ setValidationMessages(locale, messages);
162
+ // Mevcut validasyon mesajını güncelle
163
+ if (!this.isValid) {
164
+ this.validateInput();
165
+ }
166
+ }
167
+ componentWillLoad() {
168
+ // I18n için default mesajları set et
169
+ setValidationMessages('en', defaultValidationMessages);
170
+ this.internalStatus = this.status;
171
+ this.internalErrorMessage = this.errorMessage;
172
+ }
173
+ validateInput() {
174
+ if (!this.inputRef)
175
+ return;
176
+ // Reset validation state
177
+ this.isValid = true;
178
+ this.validationMessage = '';
179
+ const value = this.inputRef.value;
180
+ // Required check
181
+ if (this.required && !value) {
182
+ this.isValid = false;
183
+ this.validationMessage = getValidationMessage('required');
184
+ this.internalStatus = 'error';
185
+ this.internalErrorMessage = this.validationMessage;
186
+ return;
187
+ }
188
+ // Minimum length check
189
+ else if (this.minLength && value.length < this.minLength) {
190
+ this.isValid = false;
191
+ this.validationMessage = getValidationMessage('minlength', { min: this.minLength });
192
+ }
193
+ // Maximum length check
194
+ else if (this.maxLength && value.length > this.maxLength) {
195
+ this.isValid = false;
196
+ this.validationMessage = getValidationMessage('maxlength', { max: this.maxLength });
197
+ }
198
+ // Pattern check
199
+ else if (this.pattern && !new RegExp(this.pattern).test(value)) {
200
+ this.isValid = false;
201
+ this.validationMessage = getValidationMessage('pattern');
202
+ }
203
+ // Email check
204
+ else if (this.type === 'email' && value && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value)) {
205
+ this.isValid = false;
206
+ this.validationMessage = getValidationMessage('email');
207
+ }
208
+ // Number range check
209
+ else if (this.type === 'number' && value) {
210
+ const numValue = parseFloat(value);
211
+ if (this.min !== undefined && numValue < this.min) {
212
+ this.isValid = false;
213
+ this.validationMessage = getValidationMessage('min', { min: this.min });
214
+ }
215
+ else if (this.max !== undefined && numValue > this.max) {
216
+ this.isValid = false;
217
+ this.validationMessage = getValidationMessage('max', { max: this.max });
218
+ }
219
+ }
220
+ // Update component state
221
+ this.internalStatus = this.isValid ? 'default' : 'error';
222
+ this.internalErrorMessage = this.validationMessage;
223
+ }
224
+ hasSlotContent(slotName) {
225
+ return checkSlotContent(this.el, slotName);
226
+ }
227
+ getDefaultIconForType() {
228
+ return defaultIcons[this.type];
229
+ }
230
+ render() {
231
+ const inputId = this._id + '-input' || this.name;
232
+ const { base, inputClass } = this.styleClass({
233
+ size: this.size,
234
+ status: this.internalStatus,
235
+ fullWidth: this.fullWidth,
236
+ disabled: this.disabled,
237
+ focused: this.isFocused,
238
+ });
239
+ const iconSize = {
240
+ small: 14,
241
+ medium: 16,
242
+ large: 18,
243
+ }[this.size];
244
+ return (h("div", { key: '2d734e68473e991fa5bf264a000387a7e8c6d806', class: "bcm-ui-element" }, this.label && (h("label", { key: 'ed2362eae0dbedb6ab360d8c8e437a3ca282b0ea', class: classNames('input-label font-medium', {
245
+ 'text-color-label': !this.disabled,
246
+ 'text-color-disabled': this.disabled,
247
+ }, {
248
+ 'text-size-3': this.size === 'small',
249
+ 'text-size-4': this.size === 'medium',
250
+ 'text-size-5': this.size === 'large',
251
+ }), htmlFor: inputId }, h("slot", { key: '9ef244524cbe01412d7860c4bb1842f8d3b58fdd', name: "label" }, this.label), this.required && h("span", { key: '411c0522038e0dba40bc2b335c5298dd1e538fcc' }, "*"))), h("div", { key: '567dbda203fba555203af092175165b32282c98b', class: base() }, (this.hasSlotContent('prefix') || this.prefixIcon || this.getDefaultIconForType()) && (h("div", { key: 'cc1073ccc66a13fb0bd8a21fcd5507755a2985a4', class: "flex items-center gap-2 px-2" }, (this.prefixIcon || this.getDefaultIconForType()) && (h("bcm-icon", { key: '10af5ceee34923e96229b1c0cb3acfc82c042fbe', class: "prefix-icon", "icon-name": this.prefixIcon || this.getDefaultIconForType(), size: iconSize })), h("slot", { key: '64677d561c6b8b909f3332c831c780c8213b192f', name: "prefix" }))), h("input", { key: 'e1cf6364100bb073b20fc7d0989e8d92c9dc41e8', ref: el => (this.inputRef = el), id: inputId, class: inputClass(), type: this.type, name: this.name, disabled: this.disabled, readonly: this.readonly, required: this.required, placeholder: this.placeholder, autocomplete: this.autocomplete, minlength: this.minLength, maxlength: this.maxLength, min: this.min, max: this.max, step: this.step, pattern: this.pattern, "aria-invalid": this.status === 'error', "aria-required": this.required, "aria-labelledby": this.labelledby, "aria-describedby": this.describedby, value: this.value, onInput: this.onInput, onChange: this.onChange, onFocus: this.onFocus, onBlur: this.onBlur, onKeyDown: this.onKeyDown, onKeyUp: this.onKeyUp }), (this.hasSlotContent('suffix') || this.suffixIcon) && (h("div", { key: 'a3b5e1bd54d8c4a326c71e0f6a955fcbeeec9723', class: "flex items-center gap-2 px-2" }, h("slot", { key: 'a90f3f8ccb5f82f85f726c714aa1a4f70c1fcecd', name: "suffix" }), this.suffixIcon && h("bcm-icon", { key: '6551bd6154e1f15906dfc098362d8f3269bda7f2', class: "suffix-icon", "icon-name": this.suffixIcon, size: iconSize })))), (this.captionText || this.internalErrorMessage || this.validationMessage) && (h("div", { key: '1d34fb86e2637d52ed5500e1a1906023fb084c78', class: classNames('input-caption-text font-regular mt-1', {
252
+ 'text-[--bcm-ui-color-text-caption]': !this.disabled && this.internalStatus === 'default',
253
+ 'text-[--bcm-ui-color-text-error]': !this.disabled && (this.internalStatus === 'error' || !this.isValid),
254
+ 'text-[--bcm-ui-color-text-success]': !this.disabled && this.internalStatus === 'success',
255
+ 'text-[--bcm-ui-color-text-warning]': !this.disabled && this.internalStatus === 'warning',
256
+ 'text-[--bcm-ui-color-text-info]': !this.disabled && this.internalStatus === 'info',
257
+ 'text-[--bcm-ui-color-text-disabled]': this.disabled,
258
+ }, {
259
+ 'text-size-3': this.size === 'small',
260
+ 'text-size-4': this.size === 'medium',
261
+ 'text-size-5': this.size === 'large',
262
+ }) }, !this.isValid ? this.validationMessage : this.internalStatus === 'error' ? this.internalErrorMessage : this.captionText))));
263
+ }
264
+ static get is() { return "bcm-input"; }
265
+ static get encapsulation() { return "shadow"; }
266
+ static get originalStyleUrls() {
267
+ return {
268
+ "$": ["input.scss"]
269
+ };
270
+ }
271
+ static get styleUrls() {
272
+ return {
273
+ "$": ["input.css"]
274
+ };
275
+ }
276
+ static get properties() {
277
+ return {
278
+ "value": {
279
+ "type": "string",
280
+ "mutable": true,
281
+ "complexType": {
282
+ "original": "string",
283
+ "resolved": "string",
284
+ "references": {}
285
+ },
286
+ "required": false,
287
+ "optional": false,
288
+ "docs": {
289
+ "tags": [],
290
+ "text": "Input value"
291
+ },
292
+ "getter": false,
293
+ "setter": false,
294
+ "attribute": "value",
295
+ "reflect": true,
296
+ "defaultValue": "''"
297
+ },
298
+ "placeholder": {
299
+ "type": "string",
300
+ "mutable": false,
301
+ "complexType": {
302
+ "original": "string",
303
+ "resolved": "string",
304
+ "references": {}
305
+ },
306
+ "required": false,
307
+ "optional": true,
308
+ "docs": {
309
+ "tags": [],
310
+ "text": "Input placeholder text"
311
+ },
312
+ "getter": false,
313
+ "setter": false,
314
+ "attribute": "placeholder",
315
+ "reflect": false
316
+ },
317
+ "name": {
318
+ "type": "string",
319
+ "mutable": false,
320
+ "complexType": {
321
+ "original": "string",
322
+ "resolved": "string",
323
+ "references": {}
324
+ },
325
+ "required": false,
326
+ "optional": true,
327
+ "docs": {
328
+ "tags": [],
329
+ "text": "Input name"
330
+ },
331
+ "getter": false,
332
+ "setter": false,
333
+ "attribute": "name",
334
+ "reflect": false
335
+ },
336
+ "_id": {
337
+ "type": "string",
338
+ "mutable": false,
339
+ "complexType": {
340
+ "original": "string",
341
+ "resolved": "string",
342
+ "references": {}
343
+ },
344
+ "required": false,
345
+ "optional": true,
346
+ "docs": {
347
+ "tags": [],
348
+ "text": "Input id"
349
+ },
350
+ "getter": false,
351
+ "setter": false,
352
+ "attribute": "id",
353
+ "reflect": true,
354
+ "defaultValue": "generateId('input')"
355
+ },
356
+ "size": {
357
+ "type": "string",
358
+ "mutable": false,
359
+ "complexType": {
360
+ "original": "InputSize",
361
+ "resolved": "\"large\" | \"medium\" | \"small\"",
362
+ "references": {
363
+ "InputSize": {
364
+ "location": "import",
365
+ "path": "./types",
366
+ "id": "src/components/input/types.ts::InputSize"
367
+ }
368
+ }
369
+ },
370
+ "required": false,
371
+ "optional": false,
372
+ "docs": {
373
+ "tags": [],
374
+ "text": "Controls the input size"
375
+ },
376
+ "getter": false,
377
+ "setter": false,
378
+ "attribute": "size",
379
+ "reflect": false,
380
+ "defaultValue": "'medium'"
381
+ },
382
+ "status": {
383
+ "type": "string",
384
+ "mutable": false,
385
+ "complexType": {
386
+ "original": "InputStatus",
387
+ "resolved": "\"default\" | \"error\" | \"info\" | \"success\" | \"warning\"",
388
+ "references": {
389
+ "InputStatus": {
390
+ "location": "import",
391
+ "path": "./types",
392
+ "id": "src/components/input/types.ts::InputStatus"
393
+ }
394
+ }
395
+ },
396
+ "required": false,
397
+ "optional": false,
398
+ "docs": {
399
+ "tags": [],
400
+ "text": "Defines the input's status/state"
401
+ },
402
+ "getter": false,
403
+ "setter": false,
404
+ "attribute": "status",
405
+ "reflect": false,
406
+ "defaultValue": "'default'"
407
+ },
408
+ "fullWidth": {
409
+ "type": "boolean",
410
+ "mutable": false,
411
+ "complexType": {
412
+ "original": "boolean",
413
+ "resolved": "boolean",
414
+ "references": {}
415
+ },
416
+ "required": false,
417
+ "optional": false,
418
+ "docs": {
419
+ "tags": [],
420
+ "text": "Full width input"
421
+ },
422
+ "getter": false,
423
+ "setter": false,
424
+ "attribute": "full-width",
425
+ "reflect": true,
426
+ "defaultValue": "false"
427
+ },
428
+ "type": {
429
+ "type": "string",
430
+ "mutable": false,
431
+ "complexType": {
432
+ "original": "InputType",
433
+ "resolved": "\"date\" | \"datetime-local\" | \"email\" | \"number\" | \"password\" | \"search\" | \"tel\" | \"text\" | \"time\" | \"url\"",
434
+ "references": {
435
+ "InputType": {
436
+ "location": "import",
437
+ "path": "./types",
438
+ "id": "src/components/input/types.ts::InputType"
439
+ }
440
+ }
441
+ },
442
+ "required": false,
443
+ "optional": false,
444
+ "docs": {
445
+ "tags": [],
446
+ "text": "HTML input type"
447
+ },
448
+ "getter": false,
449
+ "setter": false,
450
+ "attribute": "type",
451
+ "reflect": false,
452
+ "defaultValue": "'text'"
453
+ },
454
+ "disabled": {
455
+ "type": "boolean",
456
+ "mutable": false,
457
+ "complexType": {
458
+ "original": "boolean",
459
+ "resolved": "boolean",
460
+ "references": {}
461
+ },
462
+ "required": false,
463
+ "optional": false,
464
+ "docs": {
465
+ "tags": [],
466
+ "text": "Whether the input is disabled"
467
+ },
468
+ "getter": false,
469
+ "setter": false,
470
+ "attribute": "disabled",
471
+ "reflect": false,
472
+ "defaultValue": "false"
473
+ },
474
+ "readonly": {
475
+ "type": "boolean",
476
+ "mutable": false,
477
+ "complexType": {
478
+ "original": "boolean",
479
+ "resolved": "boolean",
480
+ "references": {}
481
+ },
482
+ "required": false,
483
+ "optional": false,
484
+ "docs": {
485
+ "tags": [],
486
+ "text": "Whether the input is readonly"
487
+ },
488
+ "getter": false,
489
+ "setter": false,
490
+ "attribute": "readonly",
491
+ "reflect": false,
492
+ "defaultValue": "false"
493
+ },
494
+ "required": {
495
+ "type": "boolean",
496
+ "mutable": false,
497
+ "complexType": {
498
+ "original": "boolean",
499
+ "resolved": "boolean",
500
+ "references": {}
501
+ },
502
+ "required": false,
503
+ "optional": false,
504
+ "docs": {
505
+ "tags": [],
506
+ "text": "Whether the input is required"
507
+ },
508
+ "getter": false,
509
+ "setter": false,
510
+ "attribute": "required",
511
+ "reflect": false,
512
+ "defaultValue": "false"
513
+ },
514
+ "autocomplete": {
515
+ "type": "string",
516
+ "mutable": false,
517
+ "complexType": {
518
+ "original": "string",
519
+ "resolved": "string",
520
+ "references": {}
521
+ },
522
+ "required": false,
523
+ "optional": true,
524
+ "docs": {
525
+ "tags": [],
526
+ "text": "Input autocomplete attribute"
527
+ },
528
+ "getter": false,
529
+ "setter": false,
530
+ "attribute": "autocomplete",
531
+ "reflect": false
532
+ },
533
+ "minLength": {
534
+ "type": "number",
535
+ "mutable": false,
536
+ "complexType": {
537
+ "original": "number",
538
+ "resolved": "number",
539
+ "references": {}
540
+ },
541
+ "required": false,
542
+ "optional": true,
543
+ "docs": {
544
+ "tags": [],
545
+ "text": "Min length for text input"
546
+ },
547
+ "getter": false,
548
+ "setter": false,
549
+ "attribute": "min-length",
550
+ "reflect": false
551
+ },
552
+ "maxLength": {
553
+ "type": "number",
554
+ "mutable": false,
555
+ "complexType": {
556
+ "original": "number",
557
+ "resolved": "number",
558
+ "references": {}
559
+ },
560
+ "required": false,
561
+ "optional": true,
562
+ "docs": {
563
+ "tags": [],
564
+ "text": "Max length for text input"
565
+ },
566
+ "getter": false,
567
+ "setter": false,
568
+ "attribute": "max-length",
569
+ "reflect": false
570
+ },
571
+ "min": {
572
+ "type": "number",
573
+ "mutable": false,
574
+ "complexType": {
575
+ "original": "number",
576
+ "resolved": "number",
577
+ "references": {}
578
+ },
579
+ "required": false,
580
+ "optional": true,
581
+ "docs": {
582
+ "tags": [],
583
+ "text": "Min value for number input"
584
+ },
585
+ "getter": false,
586
+ "setter": false,
587
+ "attribute": "min",
588
+ "reflect": false
589
+ },
590
+ "max": {
591
+ "type": "number",
592
+ "mutable": false,
593
+ "complexType": {
594
+ "original": "number",
595
+ "resolved": "number",
596
+ "references": {}
597
+ },
598
+ "required": false,
599
+ "optional": true,
600
+ "docs": {
601
+ "tags": [],
602
+ "text": "Max value for number input"
603
+ },
604
+ "getter": false,
605
+ "setter": false,
606
+ "attribute": "max",
607
+ "reflect": false
608
+ },
609
+ "step": {
610
+ "type": "number",
611
+ "mutable": false,
612
+ "complexType": {
613
+ "original": "number",
614
+ "resolved": "number",
615
+ "references": {}
616
+ },
617
+ "required": false,
618
+ "optional": true,
619
+ "docs": {
620
+ "tags": [],
621
+ "text": "Step value for number input"
622
+ },
623
+ "getter": false,
624
+ "setter": false,
625
+ "attribute": "step",
626
+ "reflect": false
627
+ },
628
+ "pattern": {
629
+ "type": "string",
630
+ "mutable": false,
631
+ "complexType": {
632
+ "original": "string",
633
+ "resolved": "string",
634
+ "references": {}
635
+ },
636
+ "required": false,
637
+ "optional": true,
638
+ "docs": {
639
+ "tags": [],
640
+ "text": "Pattern for validation"
641
+ },
642
+ "getter": false,
643
+ "setter": false,
644
+ "attribute": "pattern",
645
+ "reflect": false
646
+ },
647
+ "label": {
648
+ "type": "string",
649
+ "mutable": false,
650
+ "complexType": {
651
+ "original": "string",
652
+ "resolved": "string",
653
+ "references": {}
654
+ },
655
+ "required": false,
656
+ "optional": true,
657
+ "docs": {
658
+ "tags": [],
659
+ "text": "Input label for accessibility"
660
+ },
661
+ "getter": false,
662
+ "setter": false,
663
+ "attribute": "label",
664
+ "reflect": false
665
+ },
666
+ "errorMessage": {
667
+ "type": "string",
668
+ "mutable": false,
669
+ "complexType": {
670
+ "original": "string",
671
+ "resolved": "string",
672
+ "references": {}
673
+ },
674
+ "required": false,
675
+ "optional": true,
676
+ "docs": {
677
+ "tags": [],
678
+ "text": "Error message to display"
679
+ },
680
+ "getter": false,
681
+ "setter": false,
682
+ "attribute": "error-message",
683
+ "reflect": false
684
+ },
685
+ "captionText": {
686
+ "type": "string",
687
+ "mutable": false,
688
+ "complexType": {
689
+ "original": "string",
690
+ "resolved": "string",
691
+ "references": {}
692
+ },
693
+ "required": false,
694
+ "optional": true,
695
+ "docs": {
696
+ "tags": [],
697
+ "text": "Caption text to display below input"
698
+ },
699
+ "getter": false,
700
+ "setter": false,
701
+ "attribute": "caption-text",
702
+ "reflect": false
703
+ },
704
+ "labelledby": {
705
+ "type": "string",
706
+ "mutable": false,
707
+ "complexType": {
708
+ "original": "string",
709
+ "resolved": "string",
710
+ "references": {}
711
+ },
712
+ "required": false,
713
+ "optional": true,
714
+ "docs": {
715
+ "tags": [],
716
+ "text": "ID of associated label element"
717
+ },
718
+ "getter": false,
719
+ "setter": false,
720
+ "attribute": "labelledby",
721
+ "reflect": false
722
+ },
723
+ "describedby": {
724
+ "type": "string",
725
+ "mutable": false,
726
+ "complexType": {
727
+ "original": "string",
728
+ "resolved": "string",
729
+ "references": {}
730
+ },
731
+ "required": false,
732
+ "optional": true,
733
+ "docs": {
734
+ "tags": [],
735
+ "text": "ID of associated caption/error text element"
736
+ },
737
+ "getter": false,
738
+ "setter": false,
739
+ "attribute": "describedby",
740
+ "reflect": false
741
+ },
742
+ "prefixIcon": {
743
+ "type": "string",
744
+ "mutable": false,
745
+ "complexType": {
746
+ "original": "string",
747
+ "resolved": "string",
748
+ "references": {}
749
+ },
750
+ "required": false,
751
+ "optional": true,
752
+ "docs": {
753
+ "tags": [],
754
+ "text": "Prefix icon class name"
755
+ },
756
+ "getter": false,
757
+ "setter": false,
758
+ "attribute": "prefix-icon",
759
+ "reflect": false
760
+ },
761
+ "suffixIcon": {
762
+ "type": "string",
763
+ "mutable": false,
764
+ "complexType": {
765
+ "original": "string",
766
+ "resolved": "string",
767
+ "references": {}
768
+ },
769
+ "required": false,
770
+ "optional": true,
771
+ "docs": {
772
+ "tags": [],
773
+ "text": "Suffix icon class name"
774
+ },
775
+ "getter": false,
776
+ "setter": false,
777
+ "attribute": "suffix-icon",
778
+ "reflect": false
779
+ },
780
+ "useNativeValidation": {
781
+ "type": "boolean",
782
+ "mutable": false,
783
+ "complexType": {
784
+ "original": "boolean",
785
+ "resolved": "boolean",
786
+ "references": {}
787
+ },
788
+ "required": false,
789
+ "optional": false,
790
+ "docs": {
791
+ "tags": [],
792
+ "text": "Whether to use native form validation\nIf false, component will handle validation internally"
793
+ },
794
+ "getter": false,
795
+ "setter": false,
796
+ "attribute": "use-native-validation",
797
+ "reflect": false,
798
+ "defaultValue": "true"
799
+ },
800
+ "validator": {
801
+ "type": "unknown",
802
+ "mutable": false,
803
+ "complexType": {
804
+ "original": "(value: string) => string | undefined",
805
+ "resolved": "(value: string) => string",
806
+ "references": {}
807
+ },
808
+ "required": false,
809
+ "optional": true,
810
+ "docs": {
811
+ "tags": [],
812
+ "text": "Custom validation function"
813
+ },
814
+ "getter": false,
815
+ "setter": false
816
+ }
817
+ };
818
+ }
819
+ static get states() {
820
+ return {
821
+ "isFocused": {},
822
+ "validationMessage": {},
823
+ "isValid": {},
824
+ "internalStatus": {},
825
+ "internalErrorMessage": {}
826
+ };
827
+ }
828
+ static get events() {
829
+ return [{
830
+ "method": "bcmInput",
831
+ "name": "bcmInput",
832
+ "bubbles": false,
833
+ "cancelable": true,
834
+ "composed": false,
835
+ "docs": {
836
+ "tags": [],
837
+ "text": ""
838
+ },
839
+ "complexType": {
840
+ "original": "InputEvent",
841
+ "resolved": "InputEvent",
842
+ "references": {
843
+ "InputEvent": {
844
+ "location": "global",
845
+ "id": "global::InputEvent"
846
+ }
847
+ }
848
+ }
849
+ }, {
850
+ "method": "bcmChange",
851
+ "name": "bcmChange",
852
+ "bubbles": false,
853
+ "cancelable": true,
854
+ "composed": false,
855
+ "docs": {
856
+ "tags": [],
857
+ "text": ""
858
+ },
859
+ "complexType": {
860
+ "original": "Event",
861
+ "resolved": "Event",
862
+ "references": {
863
+ "Event": {
864
+ "location": "import",
865
+ "path": "@stencil/core",
866
+ "id": "node_modules::Event"
867
+ }
868
+ }
869
+ }
870
+ }, {
871
+ "method": "bcmFocus",
872
+ "name": "bcmFocus",
873
+ "bubbles": false,
874
+ "cancelable": true,
875
+ "composed": false,
876
+ "docs": {
877
+ "tags": [],
878
+ "text": ""
879
+ },
880
+ "complexType": {
881
+ "original": "FocusEvent",
882
+ "resolved": "FocusEvent",
883
+ "references": {
884
+ "FocusEvent": {
885
+ "location": "global",
886
+ "id": "global::FocusEvent"
887
+ }
888
+ }
889
+ }
890
+ }, {
891
+ "method": "bcmBlur",
892
+ "name": "bcmBlur",
893
+ "bubbles": false,
894
+ "cancelable": true,
895
+ "composed": false,
896
+ "docs": {
897
+ "tags": [],
898
+ "text": ""
899
+ },
900
+ "complexType": {
901
+ "original": "FocusEvent",
902
+ "resolved": "FocusEvent",
903
+ "references": {
904
+ "FocusEvent": {
905
+ "location": "global",
906
+ "id": "global::FocusEvent"
907
+ }
908
+ }
909
+ }
910
+ }, {
911
+ "method": "bcmKeyDown",
912
+ "name": "bcmKeyDown",
913
+ "bubbles": false,
914
+ "cancelable": true,
915
+ "composed": false,
916
+ "docs": {
917
+ "tags": [],
918
+ "text": ""
919
+ },
920
+ "complexType": {
921
+ "original": "KeyboardEvent",
922
+ "resolved": "KeyboardEvent",
923
+ "references": {
924
+ "KeyboardEvent": {
925
+ "location": "global",
926
+ "id": "global::KeyboardEvent"
927
+ }
928
+ }
929
+ }
930
+ }, {
931
+ "method": "bcmKeyUp",
932
+ "name": "bcmKeyUp",
933
+ "bubbles": false,
934
+ "cancelable": true,
935
+ "composed": false,
936
+ "docs": {
937
+ "tags": [],
938
+ "text": ""
939
+ },
940
+ "complexType": {
941
+ "original": "KeyboardEvent",
942
+ "resolved": "KeyboardEvent",
943
+ "references": {
944
+ "KeyboardEvent": {
945
+ "location": "global",
946
+ "id": "global::KeyboardEvent"
947
+ }
948
+ }
949
+ }
950
+ }];
951
+ }
952
+ static get methods() {
953
+ return {
954
+ "setFocus": {
955
+ "complexType": {
956
+ "signature": "() => Promise<void>",
957
+ "parameters": [],
958
+ "references": {
959
+ "Promise": {
960
+ "location": "global",
961
+ "id": "global::Promise"
962
+ }
963
+ },
964
+ "return": "Promise<void>"
965
+ },
966
+ "docs": {
967
+ "text": "",
968
+ "tags": []
969
+ }
970
+ },
971
+ "setBlur": {
972
+ "complexType": {
973
+ "signature": "() => Promise<void>",
974
+ "parameters": [],
975
+ "references": {
976
+ "Promise": {
977
+ "location": "global",
978
+ "id": "global::Promise"
979
+ }
980
+ },
981
+ "return": "Promise<void>"
982
+ },
983
+ "docs": {
984
+ "text": "",
985
+ "tags": []
986
+ }
987
+ },
988
+ "select": {
989
+ "complexType": {
990
+ "signature": "() => Promise<void>",
991
+ "parameters": [],
992
+ "references": {
993
+ "Promise": {
994
+ "location": "global",
995
+ "id": "global::Promise"
996
+ }
997
+ },
998
+ "return": "Promise<void>"
999
+ },
1000
+ "docs": {
1001
+ "text": "",
1002
+ "tags": []
1003
+ }
1004
+ },
1005
+ "setLocale": {
1006
+ "complexType": {
1007
+ "signature": "(locale: string, messages: Record<string, string>) => Promise<void>",
1008
+ "parameters": [{
1009
+ "name": "locale",
1010
+ "type": "string",
1011
+ "docs": ""
1012
+ }, {
1013
+ "name": "messages",
1014
+ "type": "{ [x: string]: string; }",
1015
+ "docs": ""
1016
+ }],
1017
+ "references": {
1018
+ "Promise": {
1019
+ "location": "global",
1020
+ "id": "global::Promise"
1021
+ },
1022
+ "Record": {
1023
+ "location": "global",
1024
+ "id": "global::Record"
1025
+ }
1026
+ },
1027
+ "return": "Promise<void>"
1028
+ },
1029
+ "docs": {
1030
+ "text": "Sets locale and messages for all inputs",
1031
+ "tags": []
1032
+ }
1033
+ }
1034
+ };
1035
+ }
1036
+ static get elementRef() { return "el"; }
1037
+ static get watchers() {
1038
+ return [{
1039
+ "propName": "value",
1040
+ "methodName": "handleValueChange"
1041
+ }, {
1042
+ "propName": "status",
1043
+ "methodName": "watchStatus"
1044
+ }, {
1045
+ "propName": "errorMessage",
1046
+ "methodName": "watchErrorMessage"
1047
+ }];
1048
+ }
1049
+ }
1050
+ //# sourceMappingURL=input.component.js.map