bromcom-ui-next 0.1.2 → 0.1.3

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 (111) 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/p-047e562f.entry.js +2 -0
  5. package/dist/bromcom-ui/p-047e562f.entry.js.map +1 -0
  6. package/dist/bromcom-ui/p-3805363a.entry.js +2 -0
  7. package/dist/bromcom-ui/{p-2d836917.entry.js.map → p-3805363a.entry.js.map} +1 -1
  8. package/dist/bromcom-ui/p-61c030c5.js +3 -0
  9. package/dist/bromcom-ui/p-61c030c5.js.map +1 -0
  10. package/dist/bromcom-ui/p-6430a887.entry.js +2 -0
  11. package/dist/bromcom-ui/p-6430a887.entry.js.map +1 -0
  12. package/dist/bromcom-ui/p-9e94d920.entry.js +2 -0
  13. package/dist/bromcom-ui/p-9e94d920.entry.js.map +1 -0
  14. package/dist/bromcom-ui/p-bde58312.entry.js +2 -0
  15. package/dist/bromcom-ui/p-bde58312.entry.js.map +1 -0
  16. package/dist/bromcom-ui/p-dcc13a55.entry.js +2 -0
  17. package/dist/bromcom-ui/{p-0a74cf15.entry.js.map → p-dcc13a55.entry.js.map} +1 -1
  18. package/dist/bromcom-ui/p-e7732b0c.entry.js +2 -0
  19. package/dist/bromcom-ui/{p-f0c61f8c.entry.js.map → p-e7732b0c.entry.js.map} +1 -1
  20. package/dist/cjs/bcm-accordion-group.cjs.entry.js +92 -0
  21. package/dist/cjs/bcm-accordion-group.cjs.entry.js.map +1 -0
  22. package/dist/cjs/bcm-accordion.cjs.entry.js +128 -0
  23. package/dist/cjs/bcm-accordion.cjs.entry.js.map +1 -0
  24. package/dist/cjs/bcm-alert.cjs.entry.js +2 -2
  25. package/dist/cjs/bcm-alert.cjs.entry.js.map +1 -1
  26. package/dist/cjs/bcm-avatar.cjs.entry.js +2 -2
  27. package/dist/cjs/bcm-avatar.cjs.entry.js.map +1 -1
  28. package/dist/cjs/bcm-button_2.cjs.entry.js +549 -0
  29. package/dist/cjs/bcm-button_2.cjs.entry.js.map +1 -0
  30. package/dist/cjs/bcm-chip.cjs.entry.js +130 -0
  31. package/dist/cjs/bcm-chip.cjs.entry.js.map +1 -0
  32. package/dist/cjs/bcm-text.cjs.entry.js +3 -3
  33. package/dist/cjs/bcm-text.cjs.entry.js.map +1 -1
  34. package/dist/cjs/bromcom-ui.cjs.js +2 -2
  35. package/dist/cjs/{index-638f2d15.js → index-c36002ae.js} +32 -3
  36. package/dist/cjs/index-c36002ae.js.map +1 -0
  37. package/dist/cjs/loader.cjs.js +2 -2
  38. package/dist/collection/collection-manifest.json +1 -0
  39. package/dist/collection/components/accordion/accordion.css +1 -1
  40. package/dist/collection/components/accordion-group/accordion-group.css +1 -1
  41. package/dist/collection/components/alert/alert.css +1 -1
  42. package/dist/collection/components/avatar/avatar.css +1 -1
  43. package/dist/collection/components/button/button.component.js +3 -3
  44. package/dist/collection/components/button/button.component.js.map +1 -1
  45. package/dist/collection/components/button/button.css +1 -1
  46. package/dist/collection/components/chip/chip.css +1 -1
  47. package/dist/collection/components/input/input.component.js +865 -0
  48. package/dist/collection/components/input/input.component.js.map +1 -0
  49. package/dist/collection/components/input/input.css +2 -0
  50. package/dist/collection/components/input/types.js +2 -0
  51. package/dist/collection/components/input/types.js.map +1 -0
  52. package/dist/collection/components/text/text.component.js +1 -1
  53. package/dist/collection/components/text/text.css +1 -1
  54. package/dist/collection/utils/id/generate-id.js +16 -0
  55. package/dist/collection/utils/id/generate-id.js.map +1 -0
  56. package/dist/components/bcm-accordion-group.js +2 -2
  57. package/dist/components/bcm-accordion-group.js.map +1 -1
  58. package/dist/components/bcm-accordion.js +2 -2
  59. package/dist/components/bcm-accordion.js.map +1 -1
  60. package/dist/components/bcm-alert.js +2 -2
  61. package/dist/components/bcm-alert.js.map +1 -1
  62. package/dist/components/bcm-avatar.js +2 -2
  63. package/dist/components/bcm-avatar.js.map +1 -1
  64. package/dist/components/bcm-button.js +5 -5
  65. package/dist/components/bcm-button.js.map +1 -1
  66. package/dist/components/bcm-chip.js +2 -2
  67. package/dist/components/bcm-chip.js.map +1 -1
  68. package/dist/components/bcm-input.d.ts +11 -0
  69. package/dist/components/bcm-input.js +306 -0
  70. package/dist/components/bcm-input.js.map +1 -0
  71. package/dist/components/bcm-text.js +3 -3
  72. package/dist/components/bcm-text.js.map +1 -1
  73. package/dist/components/index.js +1 -1
  74. package/dist/components/{p-0adcc84f.js → p-8ded2c73.js} +26 -3
  75. package/dist/{cjs/index-638f2d15.js.map → components/p-8ded2c73.js.map} +1 -1
  76. package/dist/esm/bcm-accordion-group.entry.js +88 -0
  77. package/dist/esm/bcm-accordion-group.entry.js.map +1 -0
  78. package/dist/esm/bcm-accordion.entry.js +124 -0
  79. package/dist/esm/bcm-accordion.entry.js.map +1 -0
  80. package/dist/esm/bcm-alert.entry.js +2 -2
  81. package/dist/esm/bcm-alert.entry.js.map +1 -1
  82. package/dist/esm/bcm-avatar.entry.js +2 -2
  83. package/dist/esm/bcm-avatar.entry.js.map +1 -1
  84. package/dist/esm/bcm-button_2.entry.js +544 -0
  85. package/dist/esm/bcm-button_2.entry.js.map +1 -0
  86. package/dist/esm/bcm-chip.entry.js +126 -0
  87. package/dist/esm/bcm-chip.entry.js.map +1 -0
  88. package/dist/esm/bcm-text.entry.js +3 -3
  89. package/dist/esm/bcm-text.entry.js.map +1 -1
  90. package/dist/esm/bromcom-ui.js +3 -3
  91. package/dist/esm/{index-ce2fac11.js → index-e23ee9b0.js} +32 -3
  92. package/dist/esm/index-e23ee9b0.js.map +1 -0
  93. package/dist/esm/loader.js +3 -3
  94. package/dist/types/components/input/input.component.d.ts +74 -0
  95. package/dist/types/components/input/types.d.ts +3 -0
  96. package/dist/types/components.d.ts +246 -0
  97. package/dist/types/utils/id/generate-id.d.ts +9 -0
  98. package/package.json +3 -2
  99. package/dist/bromcom-ui/p-0a74cf15.entry.js +0 -2
  100. package/dist/bromcom-ui/p-27c997d8.js +0 -3
  101. package/dist/bromcom-ui/p-27c997d8.js.map +0 -1
  102. package/dist/bromcom-ui/p-2d836917.entry.js +0 -2
  103. package/dist/bromcom-ui/p-84a5dcdb.entry.js +0 -2
  104. package/dist/bromcom-ui/p-84a5dcdb.entry.js.map +0 -1
  105. package/dist/bromcom-ui/p-f0c61f8c.entry.js +0 -2
  106. package/dist/cjs/bcm-accordion_4.cjs.entry.js +0 -623
  107. package/dist/cjs/bcm-accordion_4.cjs.entry.js.map +0 -1
  108. package/dist/components/p-0adcc84f.js.map +0 -1
  109. package/dist/esm/bcm-accordion_4.entry.js +0 -616
  110. package/dist/esm/bcm-accordion_4.entry.js.map +0 -1
  111. package/dist/esm/index-ce2fac11.js.map +0 -1
@@ -0,0 +1,865 @@
1
+ import { h } from "@stencil/core";
2
+ import { tv } from "tailwind-variants";
3
+ import classNames from "classnames";
4
+ import { generateId } from "../../utils/id/generate-id";
5
+ export class BcmInput {
6
+ constructor() {
7
+ this.isFocused = false;
8
+ /** Input value */
9
+ this.value = '';
10
+ /** Input id */
11
+ this._id = generateId('input');
12
+ /** Controls the input size */
13
+ this.size = 'medium';
14
+ /** Defines the input's status/state */
15
+ this.status = 'default';
16
+ /** Full width input */
17
+ this.fullWidth = false;
18
+ /** HTML input type */
19
+ this.type = 'text';
20
+ /** Whether the input is disabled */
21
+ this.disabled = false;
22
+ /** Whether the input is readonly */
23
+ this.readonly = false;
24
+ /** Whether the input is required */
25
+ this.required = false;
26
+ this.onInput = (event) => {
27
+ const input = event.target;
28
+ this.value = input.value;
29
+ this.bcmInput.emit(event);
30
+ };
31
+ this.onChange = (event) => {
32
+ this.bcmChange.emit(event);
33
+ };
34
+ this.onFocus = (event) => {
35
+ this.isFocused = true;
36
+ this.bcmFocus.emit(event);
37
+ };
38
+ this.onBlur = (event) => {
39
+ this.isFocused = false;
40
+ this.bcmBlur.emit(event);
41
+ };
42
+ this.onKeyDown = (event) => {
43
+ this.bcmKeyDown.emit(event);
44
+ };
45
+ this.onKeyUp = (event) => {
46
+ this.bcmKeyUp.emit(event);
47
+ };
48
+ this.styleClass = tv({
49
+ slots: {
50
+ base: [
51
+ 'bcm-input bcm-input__container',
52
+ 'bg-[--bcm-ui-color-background-base-default] border-[--bcm-ui-color-border-default]',
53
+ 'border border-solid rounded',
54
+ 'flex items-center justify-between gap-2',
55
+ // 'px-3',
56
+ ],
57
+ inputClass: [
58
+ 'input',
59
+ 'w-full flex-1',
60
+ 'border-0 outline-0 bg-transparent',
61
+ 'appearance-none text-ellipsis',
62
+ 'text-[--bcm-ui-color-text-default] placeholder:text-[--bcm-ui-color-text-placeholder] placeholder:font-normal',
63
+ 'font-sans antialiased font-medium',
64
+ ],
65
+ },
66
+ variants: {
67
+ size: {
68
+ small: {
69
+ base: '',
70
+ inputClass: 'text-size-4 px-3 h-6',
71
+ },
72
+ medium: {
73
+ base: '',
74
+ inputClass: 'text-size-5 px-3 h-8',
75
+ },
76
+ large: {
77
+ base: '',
78
+ inputClass: 'text-size-6 px-3 h-10',
79
+ },
80
+ },
81
+ fullWidth: {
82
+ true: 'full-width w-full',
83
+ },
84
+ disabled: {
85
+ true: 'disabled cursor-not-allowed',
86
+ false: '',
87
+ },
88
+ focused: {
89
+ true: {
90
+ base: 'ring',
91
+ },
92
+ },
93
+ },
94
+ defaultVariants: {
95
+ size: 'medium',
96
+ fullWidth: false,
97
+ disabled: false,
98
+ focused: false,
99
+ },
100
+ }, {
101
+ twMerge: false,
102
+ });
103
+ }
104
+ handleValueChange(newValue) {
105
+ if (this.inputRef) {
106
+ this.inputRef.value = newValue;
107
+ }
108
+ }
109
+ async setFocus() {
110
+ var _a;
111
+ (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
112
+ }
113
+ async setBlur() {
114
+ var _a;
115
+ (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.blur();
116
+ }
117
+ async select() {
118
+ var _a;
119
+ (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.select();
120
+ }
121
+ // private inputStyles = {
122
+ // '--bcm-input-bg': `var(--bcm-ui-color-background-${this.status}-default)`,
123
+ // '--bcm-button-bg-hover': `var(--bcm-ui-color-background-${this.status}-hover)`,
124
+ // '--bcm-button-bg-active': `var(--bcm-ui-color-background-${this.status}-active)`,
125
+ // '--bcm-button-border': 'transparent',
126
+ // '--bcm-button-text': 'var(--bcm-ui-color-text-base)',
127
+ // };
128
+ render() {
129
+ const inputId = this._id + '-input' || this.name;
130
+ const { base, inputClass } = this.styleClass({
131
+ size: this.size,
132
+ fullWidth: this.fullWidth,
133
+ disabled: this.disabled,
134
+ focused: this.isFocused,
135
+ });
136
+ return (h("div", { key: '4e8b381764b3bf96ccd8e8506286d0e88e989a30', class: "bcm-ui-element" }, this.label && (h("label", { key: 'dc213a515a6596e388b4a60c23c498f8bdd22247', class: classNames('input-label font-medium', {
137
+ 'text-color-label': !this.disabled,
138
+ 'text-color-disabled': this.disabled,
139
+ }, {
140
+ 'text-size-3': this.size === 'small',
141
+ 'text-size-4': this.size === 'medium',
142
+ 'text-size-5': this.size === 'large',
143
+ }), htmlFor: inputId }, h("slot", { key: '513585e5000edf7f7f9e3ff73241b7203e3433a3', name: "label" }, this.label), this.required && h("span", { key: '5ffc16ce50aa435033518ce1b7a2e616150f99ca' }, "*"))), h("div", { key: '3a9d0bdbc9d1d6949a05088c889d7feb2fa6d64b', class: base() }, h("slot", { key: '3d10c90faeb1ee767de8f5261551c8bd62652856', name: "prefix" }), this.prefixIcon && h("bcm-icon", { key: 'e4e01b842c49cac8da1f2ac2e37a80311caa32d3', class: "prefix-icon", "icon-name": this.prefixIcon }), h("input", { key: '17d404e0e63f2b89ad1be1a564c0a462e76bbd72', 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.suffixIcon && h("bcm-icon", { key: '293c7b2d1853bb86c7733d70201817b5c809f645', class: "suffix-icon", "icon-name": this.suffixIcon }), h("slot", { key: '0ccd4968dbeeff480e452c23fb10913df8436dc6', name: "suffix" })), (this.captionText || this.errorMessage) && (h("div", { key: '30f7cd413c012c755dd0297d252afacf1405c1fb', class: classNames('input-caption-text font-regular', {
144
+ 'text-color-caption': !this.disabled && this.status === 'default',
145
+ 'text-color-error': !this.disabled && this.status === 'error',
146
+ 'text-color-success': !this.disabled && this.status === 'success',
147
+ 'text-color-warning': !this.disabled && this.status === 'warning',
148
+ 'text-color-info': !this.disabled && this.status === 'info',
149
+ 'text-color-disabled': this.disabled,
150
+ }, {
151
+ 'text-size-3': this.size === 'small',
152
+ 'text-size-4': this.size === 'medium',
153
+ 'text-size-5': this.size === 'large',
154
+ }) }, this.status === 'error' ? this.errorMessage : this.captionText))));
155
+ }
156
+ static get is() { return "bcm-input"; }
157
+ static get encapsulation() { return "shadow"; }
158
+ static get originalStyleUrls() {
159
+ return {
160
+ "$": ["input.scss"]
161
+ };
162
+ }
163
+ static get styleUrls() {
164
+ return {
165
+ "$": ["input.css"]
166
+ };
167
+ }
168
+ static get properties() {
169
+ return {
170
+ "value": {
171
+ "type": "string",
172
+ "mutable": true,
173
+ "complexType": {
174
+ "original": "string",
175
+ "resolved": "string",
176
+ "references": {}
177
+ },
178
+ "required": false,
179
+ "optional": false,
180
+ "docs": {
181
+ "tags": [],
182
+ "text": "Input value"
183
+ },
184
+ "getter": false,
185
+ "setter": false,
186
+ "attribute": "value",
187
+ "reflect": true,
188
+ "defaultValue": "''"
189
+ },
190
+ "placeholder": {
191
+ "type": "string",
192
+ "mutable": false,
193
+ "complexType": {
194
+ "original": "string",
195
+ "resolved": "string",
196
+ "references": {}
197
+ },
198
+ "required": false,
199
+ "optional": true,
200
+ "docs": {
201
+ "tags": [],
202
+ "text": "Input placeholder text"
203
+ },
204
+ "getter": false,
205
+ "setter": false,
206
+ "attribute": "placeholder",
207
+ "reflect": false
208
+ },
209
+ "name": {
210
+ "type": "string",
211
+ "mutable": false,
212
+ "complexType": {
213
+ "original": "string",
214
+ "resolved": "string",
215
+ "references": {}
216
+ },
217
+ "required": false,
218
+ "optional": true,
219
+ "docs": {
220
+ "tags": [],
221
+ "text": "Input name"
222
+ },
223
+ "getter": false,
224
+ "setter": false,
225
+ "attribute": "name",
226
+ "reflect": false
227
+ },
228
+ "_id": {
229
+ "type": "string",
230
+ "mutable": false,
231
+ "complexType": {
232
+ "original": "string",
233
+ "resolved": "string",
234
+ "references": {}
235
+ },
236
+ "required": false,
237
+ "optional": true,
238
+ "docs": {
239
+ "tags": [],
240
+ "text": "Input id"
241
+ },
242
+ "getter": false,
243
+ "setter": false,
244
+ "attribute": "id",
245
+ "reflect": true,
246
+ "defaultValue": "generateId('input')"
247
+ },
248
+ "size": {
249
+ "type": "string",
250
+ "mutable": false,
251
+ "complexType": {
252
+ "original": "InputSize",
253
+ "resolved": "\"large\" | \"medium\" | \"small\"",
254
+ "references": {
255
+ "InputSize": {
256
+ "location": "import",
257
+ "path": "./types",
258
+ "id": "src/components/input/types.ts::InputSize"
259
+ }
260
+ }
261
+ },
262
+ "required": false,
263
+ "optional": false,
264
+ "docs": {
265
+ "tags": [],
266
+ "text": "Controls the input size"
267
+ },
268
+ "getter": false,
269
+ "setter": false,
270
+ "attribute": "size",
271
+ "reflect": false,
272
+ "defaultValue": "'medium'"
273
+ },
274
+ "status": {
275
+ "type": "string",
276
+ "mutable": false,
277
+ "complexType": {
278
+ "original": "InputStatus",
279
+ "resolved": "\"default\" | \"error\" | \"info\" | \"success\" | \"warning\"",
280
+ "references": {
281
+ "InputStatus": {
282
+ "location": "import",
283
+ "path": "./types",
284
+ "id": "src/components/input/types.ts::InputStatus"
285
+ }
286
+ }
287
+ },
288
+ "required": false,
289
+ "optional": false,
290
+ "docs": {
291
+ "tags": [],
292
+ "text": "Defines the input's status/state"
293
+ },
294
+ "getter": false,
295
+ "setter": false,
296
+ "attribute": "status",
297
+ "reflect": false,
298
+ "defaultValue": "'default'"
299
+ },
300
+ "fullWidth": {
301
+ "type": "boolean",
302
+ "mutable": false,
303
+ "complexType": {
304
+ "original": "boolean",
305
+ "resolved": "boolean",
306
+ "references": {}
307
+ },
308
+ "required": false,
309
+ "optional": false,
310
+ "docs": {
311
+ "tags": [],
312
+ "text": "Full width input"
313
+ },
314
+ "getter": false,
315
+ "setter": false,
316
+ "attribute": "full-width",
317
+ "reflect": true,
318
+ "defaultValue": "false"
319
+ },
320
+ "type": {
321
+ "type": "string",
322
+ "mutable": false,
323
+ "complexType": {
324
+ "original": "InputType",
325
+ "resolved": "\"date\" | \"datetime-local\" | \"email\" | \"number\" | \"password\" | \"search\" | \"tel\" | \"text\" | \"time\" | \"url\"",
326
+ "references": {
327
+ "InputType": {
328
+ "location": "import",
329
+ "path": "./types",
330
+ "id": "src/components/input/types.ts::InputType"
331
+ }
332
+ }
333
+ },
334
+ "required": false,
335
+ "optional": false,
336
+ "docs": {
337
+ "tags": [],
338
+ "text": "HTML input type"
339
+ },
340
+ "getter": false,
341
+ "setter": false,
342
+ "attribute": "type",
343
+ "reflect": false,
344
+ "defaultValue": "'text'"
345
+ },
346
+ "disabled": {
347
+ "type": "boolean",
348
+ "mutable": false,
349
+ "complexType": {
350
+ "original": "boolean",
351
+ "resolved": "boolean",
352
+ "references": {}
353
+ },
354
+ "required": false,
355
+ "optional": false,
356
+ "docs": {
357
+ "tags": [],
358
+ "text": "Whether the input is disabled"
359
+ },
360
+ "getter": false,
361
+ "setter": false,
362
+ "attribute": "disabled",
363
+ "reflect": false,
364
+ "defaultValue": "false"
365
+ },
366
+ "readonly": {
367
+ "type": "boolean",
368
+ "mutable": false,
369
+ "complexType": {
370
+ "original": "boolean",
371
+ "resolved": "boolean",
372
+ "references": {}
373
+ },
374
+ "required": false,
375
+ "optional": false,
376
+ "docs": {
377
+ "tags": [],
378
+ "text": "Whether the input is readonly"
379
+ },
380
+ "getter": false,
381
+ "setter": false,
382
+ "attribute": "readonly",
383
+ "reflect": false,
384
+ "defaultValue": "false"
385
+ },
386
+ "required": {
387
+ "type": "boolean",
388
+ "mutable": false,
389
+ "complexType": {
390
+ "original": "boolean",
391
+ "resolved": "boolean",
392
+ "references": {}
393
+ },
394
+ "required": false,
395
+ "optional": false,
396
+ "docs": {
397
+ "tags": [],
398
+ "text": "Whether the input is required"
399
+ },
400
+ "getter": false,
401
+ "setter": false,
402
+ "attribute": "required",
403
+ "reflect": false,
404
+ "defaultValue": "false"
405
+ },
406
+ "autocomplete": {
407
+ "type": "string",
408
+ "mutable": false,
409
+ "complexType": {
410
+ "original": "string",
411
+ "resolved": "string",
412
+ "references": {}
413
+ },
414
+ "required": false,
415
+ "optional": true,
416
+ "docs": {
417
+ "tags": [],
418
+ "text": "Input autocomplete attribute"
419
+ },
420
+ "getter": false,
421
+ "setter": false,
422
+ "attribute": "autocomplete",
423
+ "reflect": false
424
+ },
425
+ "minLength": {
426
+ "type": "number",
427
+ "mutable": false,
428
+ "complexType": {
429
+ "original": "number",
430
+ "resolved": "number",
431
+ "references": {}
432
+ },
433
+ "required": false,
434
+ "optional": true,
435
+ "docs": {
436
+ "tags": [],
437
+ "text": "Min length for text input"
438
+ },
439
+ "getter": false,
440
+ "setter": false,
441
+ "attribute": "min-length",
442
+ "reflect": false
443
+ },
444
+ "maxLength": {
445
+ "type": "number",
446
+ "mutable": false,
447
+ "complexType": {
448
+ "original": "number",
449
+ "resolved": "number",
450
+ "references": {}
451
+ },
452
+ "required": false,
453
+ "optional": true,
454
+ "docs": {
455
+ "tags": [],
456
+ "text": "Max length for text input"
457
+ },
458
+ "getter": false,
459
+ "setter": false,
460
+ "attribute": "max-length",
461
+ "reflect": false
462
+ },
463
+ "min": {
464
+ "type": "number",
465
+ "mutable": false,
466
+ "complexType": {
467
+ "original": "number",
468
+ "resolved": "number",
469
+ "references": {}
470
+ },
471
+ "required": false,
472
+ "optional": true,
473
+ "docs": {
474
+ "tags": [],
475
+ "text": "Min value for number input"
476
+ },
477
+ "getter": false,
478
+ "setter": false,
479
+ "attribute": "min",
480
+ "reflect": false
481
+ },
482
+ "max": {
483
+ "type": "number",
484
+ "mutable": false,
485
+ "complexType": {
486
+ "original": "number",
487
+ "resolved": "number",
488
+ "references": {}
489
+ },
490
+ "required": false,
491
+ "optional": true,
492
+ "docs": {
493
+ "tags": [],
494
+ "text": "Max value for number input"
495
+ },
496
+ "getter": false,
497
+ "setter": false,
498
+ "attribute": "max",
499
+ "reflect": false
500
+ },
501
+ "step": {
502
+ "type": "number",
503
+ "mutable": false,
504
+ "complexType": {
505
+ "original": "number",
506
+ "resolved": "number",
507
+ "references": {}
508
+ },
509
+ "required": false,
510
+ "optional": true,
511
+ "docs": {
512
+ "tags": [],
513
+ "text": "Step value for number input"
514
+ },
515
+ "getter": false,
516
+ "setter": false,
517
+ "attribute": "step",
518
+ "reflect": false
519
+ },
520
+ "pattern": {
521
+ "type": "string",
522
+ "mutable": false,
523
+ "complexType": {
524
+ "original": "string",
525
+ "resolved": "string",
526
+ "references": {}
527
+ },
528
+ "required": false,
529
+ "optional": true,
530
+ "docs": {
531
+ "tags": [],
532
+ "text": "Pattern for validation"
533
+ },
534
+ "getter": false,
535
+ "setter": false,
536
+ "attribute": "pattern",
537
+ "reflect": false
538
+ },
539
+ "label": {
540
+ "type": "string",
541
+ "mutable": false,
542
+ "complexType": {
543
+ "original": "string",
544
+ "resolved": "string",
545
+ "references": {}
546
+ },
547
+ "required": false,
548
+ "optional": true,
549
+ "docs": {
550
+ "tags": [],
551
+ "text": "Input label for accessibility"
552
+ },
553
+ "getter": false,
554
+ "setter": false,
555
+ "attribute": "label",
556
+ "reflect": false
557
+ },
558
+ "errorMessage": {
559
+ "type": "string",
560
+ "mutable": false,
561
+ "complexType": {
562
+ "original": "string",
563
+ "resolved": "string",
564
+ "references": {}
565
+ },
566
+ "required": false,
567
+ "optional": true,
568
+ "docs": {
569
+ "tags": [],
570
+ "text": "Error message to display"
571
+ },
572
+ "getter": false,
573
+ "setter": false,
574
+ "attribute": "error-message",
575
+ "reflect": false
576
+ },
577
+ "captionText": {
578
+ "type": "string",
579
+ "mutable": false,
580
+ "complexType": {
581
+ "original": "string",
582
+ "resolved": "string",
583
+ "references": {}
584
+ },
585
+ "required": false,
586
+ "optional": true,
587
+ "docs": {
588
+ "tags": [],
589
+ "text": "Caption text to display below input"
590
+ },
591
+ "getter": false,
592
+ "setter": false,
593
+ "attribute": "caption-text",
594
+ "reflect": false
595
+ },
596
+ "labelledby": {
597
+ "type": "string",
598
+ "mutable": false,
599
+ "complexType": {
600
+ "original": "string",
601
+ "resolved": "string",
602
+ "references": {}
603
+ },
604
+ "required": false,
605
+ "optional": true,
606
+ "docs": {
607
+ "tags": [],
608
+ "text": "ID of associated label element"
609
+ },
610
+ "getter": false,
611
+ "setter": false,
612
+ "attribute": "labelledby",
613
+ "reflect": false
614
+ },
615
+ "describedby": {
616
+ "type": "string",
617
+ "mutable": false,
618
+ "complexType": {
619
+ "original": "string",
620
+ "resolved": "string",
621
+ "references": {}
622
+ },
623
+ "required": false,
624
+ "optional": true,
625
+ "docs": {
626
+ "tags": [],
627
+ "text": "ID of associated caption/error text element"
628
+ },
629
+ "getter": false,
630
+ "setter": false,
631
+ "attribute": "describedby",
632
+ "reflect": false
633
+ },
634
+ "prefixIcon": {
635
+ "type": "string",
636
+ "mutable": false,
637
+ "complexType": {
638
+ "original": "string",
639
+ "resolved": "string",
640
+ "references": {}
641
+ },
642
+ "required": false,
643
+ "optional": true,
644
+ "docs": {
645
+ "tags": [],
646
+ "text": "Prefix icon class name"
647
+ },
648
+ "getter": false,
649
+ "setter": false,
650
+ "attribute": "prefix-icon",
651
+ "reflect": false
652
+ },
653
+ "suffixIcon": {
654
+ "type": "string",
655
+ "mutable": false,
656
+ "complexType": {
657
+ "original": "string",
658
+ "resolved": "string",
659
+ "references": {}
660
+ },
661
+ "required": false,
662
+ "optional": true,
663
+ "docs": {
664
+ "tags": [],
665
+ "text": "Suffix icon class name"
666
+ },
667
+ "getter": false,
668
+ "setter": false,
669
+ "attribute": "suffix-icon",
670
+ "reflect": false
671
+ }
672
+ };
673
+ }
674
+ static get states() {
675
+ return {
676
+ "isFocused": {}
677
+ };
678
+ }
679
+ static get events() {
680
+ return [{
681
+ "method": "bcmInput",
682
+ "name": "bcmInput",
683
+ "bubbles": false,
684
+ "cancelable": true,
685
+ "composed": false,
686
+ "docs": {
687
+ "tags": [],
688
+ "text": ""
689
+ },
690
+ "complexType": {
691
+ "original": "InputEvent",
692
+ "resolved": "InputEvent",
693
+ "references": {
694
+ "InputEvent": {
695
+ "location": "global",
696
+ "id": "global::InputEvent"
697
+ }
698
+ }
699
+ }
700
+ }, {
701
+ "method": "bcmChange",
702
+ "name": "bcmChange",
703
+ "bubbles": false,
704
+ "cancelable": true,
705
+ "composed": false,
706
+ "docs": {
707
+ "tags": [],
708
+ "text": ""
709
+ },
710
+ "complexType": {
711
+ "original": "Event",
712
+ "resolved": "Event",
713
+ "references": {
714
+ "Event": {
715
+ "location": "import",
716
+ "path": "@stencil/core",
717
+ "id": "node_modules::Event"
718
+ }
719
+ }
720
+ }
721
+ }, {
722
+ "method": "bcmFocus",
723
+ "name": "bcmFocus",
724
+ "bubbles": false,
725
+ "cancelable": true,
726
+ "composed": false,
727
+ "docs": {
728
+ "tags": [],
729
+ "text": ""
730
+ },
731
+ "complexType": {
732
+ "original": "FocusEvent",
733
+ "resolved": "FocusEvent",
734
+ "references": {
735
+ "FocusEvent": {
736
+ "location": "global",
737
+ "id": "global::FocusEvent"
738
+ }
739
+ }
740
+ }
741
+ }, {
742
+ "method": "bcmBlur",
743
+ "name": "bcmBlur",
744
+ "bubbles": false,
745
+ "cancelable": true,
746
+ "composed": false,
747
+ "docs": {
748
+ "tags": [],
749
+ "text": ""
750
+ },
751
+ "complexType": {
752
+ "original": "FocusEvent",
753
+ "resolved": "FocusEvent",
754
+ "references": {
755
+ "FocusEvent": {
756
+ "location": "global",
757
+ "id": "global::FocusEvent"
758
+ }
759
+ }
760
+ }
761
+ }, {
762
+ "method": "bcmKeyDown",
763
+ "name": "bcmKeyDown",
764
+ "bubbles": false,
765
+ "cancelable": true,
766
+ "composed": false,
767
+ "docs": {
768
+ "tags": [],
769
+ "text": ""
770
+ },
771
+ "complexType": {
772
+ "original": "KeyboardEvent",
773
+ "resolved": "KeyboardEvent",
774
+ "references": {
775
+ "KeyboardEvent": {
776
+ "location": "global",
777
+ "id": "global::KeyboardEvent"
778
+ }
779
+ }
780
+ }
781
+ }, {
782
+ "method": "bcmKeyUp",
783
+ "name": "bcmKeyUp",
784
+ "bubbles": false,
785
+ "cancelable": true,
786
+ "composed": false,
787
+ "docs": {
788
+ "tags": [],
789
+ "text": ""
790
+ },
791
+ "complexType": {
792
+ "original": "KeyboardEvent",
793
+ "resolved": "KeyboardEvent",
794
+ "references": {
795
+ "KeyboardEvent": {
796
+ "location": "global",
797
+ "id": "global::KeyboardEvent"
798
+ }
799
+ }
800
+ }
801
+ }];
802
+ }
803
+ static get methods() {
804
+ return {
805
+ "setFocus": {
806
+ "complexType": {
807
+ "signature": "() => Promise<void>",
808
+ "parameters": [],
809
+ "references": {
810
+ "Promise": {
811
+ "location": "global",
812
+ "id": "global::Promise"
813
+ }
814
+ },
815
+ "return": "Promise<void>"
816
+ },
817
+ "docs": {
818
+ "text": "",
819
+ "tags": []
820
+ }
821
+ },
822
+ "setBlur": {
823
+ "complexType": {
824
+ "signature": "() => Promise<void>",
825
+ "parameters": [],
826
+ "references": {
827
+ "Promise": {
828
+ "location": "global",
829
+ "id": "global::Promise"
830
+ }
831
+ },
832
+ "return": "Promise<void>"
833
+ },
834
+ "docs": {
835
+ "text": "",
836
+ "tags": []
837
+ }
838
+ },
839
+ "select": {
840
+ "complexType": {
841
+ "signature": "() => Promise<void>",
842
+ "parameters": [],
843
+ "references": {
844
+ "Promise": {
845
+ "location": "global",
846
+ "id": "global::Promise"
847
+ }
848
+ },
849
+ "return": "Promise<void>"
850
+ },
851
+ "docs": {
852
+ "text": "",
853
+ "tags": []
854
+ }
855
+ }
856
+ };
857
+ }
858
+ static get watchers() {
859
+ return [{
860
+ "propName": "value",
861
+ "methodName": "handleValueChange"
862
+ }];
863
+ }
864
+ }
865
+ //# sourceMappingURL=input.component.js.map