q2-tecton-elements 1.25.2 → 1.26.0

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 (124) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/q2-badge_2.cjs.entry.js +21 -21
  3. package/dist/cjs/q2-btn_2.cjs.entry.js +4 -4
  4. package/dist/cjs/q2-calendar.cjs.entry.js +2 -2
  5. package/dist/cjs/q2-carousel.cjs.entry.js +1 -1
  6. package/dist/cjs/q2-checkbox-group.cjs.entry.js +1 -1
  7. package/dist/cjs/q2-checkbox.cjs.entry.js +4 -4
  8. package/dist/cjs/q2-dropdown-item.cjs.entry.js +1 -1
  9. package/dist/cjs/q2-dropdown.cjs.entry.js +1 -1
  10. package/dist/cjs/q2-editable-field.cjs.entry.js +1 -1
  11. package/dist/cjs/q2-pill.cjs.entry.js +1 -1
  12. package/dist/cjs/q2-radio-group.cjs.entry.js +8 -6
  13. package/dist/cjs/q2-radio.cjs.entry.js +4 -4
  14. package/dist/cjs/q2-select.cjs.entry.js +1 -1
  15. package/dist/cjs/q2-tab-container.cjs.entry.js +14 -2
  16. package/dist/cjs/q2-tab-pane.cjs.entry.js +6 -1
  17. package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
  18. package/dist/cjs/q2-tooltip.cjs.entry.js +17 -2
  19. package/dist/cjs/tecton-tab-pane.cjs.entry.js +5 -0
  20. package/dist/collection/collection-manifest.json +2 -2
  21. package/dist/collection/components/q2-btn/index.js +52 -43
  22. package/dist/collection/components/q2-calendar/index.js +48 -39
  23. package/dist/collection/components/q2-carousel/index.js +21 -18
  24. package/dist/collection/components/q2-checkbox/index.js +42 -36
  25. package/dist/collection/components/q2-checkbox-group/index.js +1 -1
  26. package/dist/collection/components/q2-dropdown/index.js +25 -22
  27. package/dist/collection/components/q2-dropdown-item/index.js +11 -8
  28. package/dist/collection/components/q2-editable-field/index.js +32 -24
  29. package/dist/collection/components/q2-input/index.js +71 -49
  30. package/dist/collection/components/q2-loading/index.js +18 -15
  31. package/dist/collection/components/q2-pill/styles.css +1 -1
  32. package/dist/collection/components/q2-radio/index.js +24 -21
  33. package/dist/collection/components/q2-radio/styles.css +6 -6
  34. package/dist/collection/components/q2-radio-group/index.js +14 -9
  35. package/dist/collection/components/q2-select/index.js +21 -18
  36. package/dist/collection/components/q2-tab-container/index.js +18 -6
  37. package/dist/collection/components/q2-tab-pane/index.js +55 -0
  38. package/dist/collection/components/q2-tooltip/index.js +42 -3
  39. package/dist/collection/components/tecton-tab-pane/index.js +55 -0
  40. package/dist/components/index5.js +7 -7
  41. package/dist/components/index6.js +4 -4
  42. package/dist/components/index8.js +22 -22
  43. package/dist/components/index9.js +3 -3
  44. package/dist/components/q2-calendar.js +6 -6
  45. package/dist/components/q2-carousel.js +2 -2
  46. package/dist/components/q2-checkbox-group.js +1 -1
  47. package/dist/components/q2-checkbox.js +7 -7
  48. package/dist/components/q2-dropdown.js +4 -4
  49. package/dist/components/q2-editable-field.js +4 -4
  50. package/dist/components/q2-pill.js +1 -1
  51. package/dist/components/q2-radio-group.js +10 -8
  52. package/dist/components/q2-radio.js +7 -7
  53. package/dist/components/q2-select.js +2 -2
  54. package/dist/components/q2-tab-container.js +14 -2
  55. package/dist/components/q2-tab-pane.js +8 -1
  56. package/dist/components/q2-tooltip.js +19 -3
  57. package/dist/components/tecton-tab-pane.js +7 -0
  58. package/dist/docs.json +427 -40
  59. package/dist/esm/loader.js +1 -1
  60. package/dist/esm/q2-badge_2.entry.js +21 -21
  61. package/dist/esm/q2-btn_2.entry.js +4 -4
  62. package/dist/esm/q2-calendar.entry.js +2 -2
  63. package/dist/esm/q2-carousel.entry.js +1 -1
  64. package/dist/esm/q2-checkbox-group.entry.js +1 -1
  65. package/dist/esm/q2-checkbox.entry.js +4 -4
  66. package/dist/esm/q2-dropdown-item.entry.js +1 -1
  67. package/dist/esm/q2-dropdown.entry.js +1 -1
  68. package/dist/esm/q2-editable-field.entry.js +1 -1
  69. package/dist/esm/q2-pill.entry.js +1 -1
  70. package/dist/esm/q2-radio-group.entry.js +8 -6
  71. package/dist/esm/q2-radio.entry.js +4 -4
  72. package/dist/esm/q2-select.entry.js +1 -1
  73. package/dist/esm/q2-tab-container.entry.js +14 -2
  74. package/dist/esm/q2-tab-pane.entry.js +6 -1
  75. package/dist/esm/q2-tecton-elements.js +1 -1
  76. package/dist/esm/q2-tooltip.entry.js +17 -2
  77. package/dist/esm/tecton-tab-pane.entry.js +5 -0
  78. package/dist/q2-tecton-elements/p-09639e95.entry.js +1 -0
  79. package/dist/q2-tecton-elements/p-0b82891e.entry.js +1 -0
  80. package/dist/q2-tecton-elements/{p-73c12774.entry.js → p-0cbad3bc.entry.js} +1 -1
  81. package/dist/q2-tecton-elements/p-159d94cc.entry.js +1 -0
  82. package/dist/q2-tecton-elements/p-18808c27.entry.js +1 -0
  83. package/dist/q2-tecton-elements/{p-0a394c3b.entry.js → p-4734a577.entry.js} +1 -1
  84. package/dist/q2-tecton-elements/{p-fa8cb091.entry.js → p-55d192b3.entry.js} +1 -1
  85. package/dist/q2-tecton-elements/p-5878b8bd.entry.js +1 -0
  86. package/dist/q2-tecton-elements/{p-d4909df7.entry.js → p-74ac19cd.entry.js} +1 -1
  87. package/dist/q2-tecton-elements/{p-f0a716dd.entry.js → p-87cecc80.entry.js} +1 -1
  88. package/dist/q2-tecton-elements/p-8d703466.entry.js +1 -0
  89. package/dist/q2-tecton-elements/{p-3fe98171.entry.js → p-a411f2f3.entry.js} +1 -1
  90. package/dist/q2-tecton-elements/{p-30069b63.entry.js → p-a7679912.entry.js} +1 -1
  91. package/dist/q2-tecton-elements/p-b8420bfe.entry.js +1 -0
  92. package/dist/q2-tecton-elements/{p-406f8ca9.entry.js → p-bc8a507b.entry.js} +1 -1
  93. package/dist/q2-tecton-elements/{p-f83d2df5.entry.js → p-bfaff58b.entry.js} +1 -1
  94. package/dist/q2-tecton-elements/p-e43d437d.entry.js +1 -0
  95. package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
  96. package/dist/test/helpers.js +11 -0
  97. package/dist/types/components/q2-btn/index.d.ts +6 -3
  98. package/dist/types/components/q2-calendar/index.d.ts +5 -2
  99. package/dist/types/components/q2-carousel/index.d.ts +2 -1
  100. package/dist/types/components/q2-checkbox/index.d.ts +6 -4
  101. package/dist/types/components/q2-checkbox-group/index.d.ts +1 -1
  102. package/dist/types/components/q2-dropdown/index.d.ts +3 -2
  103. package/dist/types/components/q2-dropdown-item/index.d.ts +2 -1
  104. package/dist/types/components/q2-editable-field/index.d.ts +5 -3
  105. package/dist/types/components/q2-input/index.d.ts +31 -7
  106. package/dist/types/components/q2-loading/index.d.ts +4 -3
  107. package/dist/types/components/q2-radio/index.d.ts +3 -2
  108. package/dist/types/components/q2-radio-group/index.d.ts +3 -2
  109. package/dist/types/components/q2-select/index.d.ts +2 -1
  110. package/dist/types/components/q2-tab-container/index.d.ts +5 -2
  111. package/dist/types/components/q2-tab-pane/index.d.ts +3 -0
  112. package/dist/types/components/q2-tooltip/index.d.ts +4 -1
  113. package/dist/types/components/tecton-tab-pane/index.d.ts +3 -0
  114. package/dist/types/components.d.ts +140 -24
  115. package/dist/types/workspace/workspace/{tecton-production_release_1.25.x → Tecton_tecton-production_master}/packages/q2-tecton-elements/.stencil/test/helpers.d.ts +2 -1
  116. package/package.json +3 -3
  117. package/dist/q2-tecton-elements/p-18d9cea8.entry.js +0 -1
  118. package/dist/q2-tecton-elements/p-2313e9a9.entry.js +0 -1
  119. package/dist/q2-tecton-elements/p-2b9c1815.entry.js +0 -1
  120. package/dist/q2-tecton-elements/p-471e5d58.entry.js +0 -1
  121. package/dist/q2-tecton-elements/p-a6bfe392.entry.js +0 -1
  122. package/dist/q2-tecton-elements/p-c01d0332.entry.js +0 -1
  123. package/dist/q2-tecton-elements/p-df91e954.entry.js +0 -1
  124. package/dist/q2-tecton-elements/p-e8e113c2.entry.js +0 -1
@@ -2,7 +2,7 @@ import { h } from '@stencil/core';
2
2
  import { createGuid, handleAriaLabel, isEventFromElement, loc, overrideFocus } from 'src/utils';
3
3
  export class Q2Checkbox {
4
4
  constructor() {
5
- this.id = `checkbox-${createGuid()}`;
5
+ this._id = `checkbox-${createGuid()}`;
6
6
  ///// Actions ////////
7
7
  this.onInputClick = (event) => {
8
8
  const hasCustomHandler = !!this.hostElement.onchange;
@@ -24,16 +24,16 @@ export class Q2Checkbox {
24
24
  this.type = undefined;
25
25
  this.label = undefined;
26
26
  this.hideLabel = undefined;
27
- this.ariaLabel = undefined;
28
27
  this.indeterminate = undefined;
29
28
  this.disabled = undefined;
30
29
  this.readonly = undefined;
31
30
  this.value = undefined;
32
31
  this.name = undefined;
33
- this.hasError = undefined;
34
32
  this.groupDisabled = undefined;
35
33
  this.alignment = undefined;
36
34
  this.description = undefined;
35
+ this.hasError = undefined;
36
+ this.ariaLabel = undefined;
37
37
  }
38
38
  ////////// LIFECYCLE HOOKS ////////
39
39
  componentWillLoad() {
@@ -63,7 +63,7 @@ export class Q2Checkbox {
63
63
  const textLabelClasses = ['label-text'];
64
64
  if (this.hideLabel)
65
65
  textLabelClasses.push('sr');
66
- return (h("div", { class: "container" }, h("input", { ref: el => (this.inputElement = el), id: this.id, type: "checkbox", checked: this.indeterminate || this.checked || false, disabled: !!this.disabled || !!this.groupDisabled, class: "sr", value: this.value, name: this.name || this.id, "aria-describedby": this.description ? 'description' : undefined, "test-id": "q2CheckboxInnerCheckBox", onClick: this.onInputClick }), h("label", { htmlFor: this.id, class: "label-control", "test-id": "checkboxButton" }, this.generateCheckboxSVG()), h("div", { class: textLabelClasses.join(' ') }, h("label", { "test-id": "checkboxLabel", htmlFor: this.id }, loc(this.label), h("slot", null))), this.description && (h("div", { class: "description-text", "test-id": "checkboxDescription", id: "description" }, loc(this.description)))));
66
+ return (h("div", { class: "container" }, h("input", { ref: el => (this.inputElement = el), id: this._id, type: "checkbox", checked: this.indeterminate || this.checked || false, disabled: !!this.disabled || !!this.groupDisabled, class: "sr", value: this.value, name: this.name || this._id, "aria-describedby": this.description ? 'description' : undefined, "test-id": "q2CheckboxInnerCheckBox", onClick: this.onInputClick }), h("label", { htmlFor: this._id, class: "label-control", "test-id": "checkboxButton" }, this.generateCheckboxSVG()), h("div", { class: textLabelClasses.join(' ') }, h("label", { "test-id": "checkboxLabel", htmlFor: this._id }, loc(this.label), h("slot", null))), this.description && (h("div", { class: "description-text", "test-id": "checkboxDescription", id: "description" }, loc(this.description)))));
67
67
  }
68
68
  generateCheckboxSVG() {
69
69
  if (this.type === 'favorite') {
@@ -119,8 +119,8 @@ export class Q2Checkbox {
119
119
  "type": "string",
120
120
  "mutable": false,
121
121
  "complexType": {
122
- "original": "string",
123
- "resolved": "string",
122
+ "original": "'favorite' | 'toggle'",
123
+ "resolved": "\"favorite\" | \"toggle\"",
124
124
  "references": {}
125
125
  },
126
126
  "required": false,
@@ -166,23 +166,6 @@ export class Q2Checkbox {
166
166
  "attribute": "hide-label",
167
167
  "reflect": true
168
168
  },
169
- "ariaLabel": {
170
- "type": "string",
171
- "mutable": true,
172
- "complexType": {
173
- "original": "string",
174
- "resolved": "string",
175
- "references": {}
176
- },
177
- "required": false,
178
- "optional": false,
179
- "docs": {
180
- "tags": [],
181
- "text": ""
182
- },
183
- "attribute": "aria-label",
184
- "reflect": true
185
- },
186
169
  "indeterminate": {
187
170
  "type": "boolean",
188
171
  "mutable": false,
@@ -268,7 +251,7 @@ export class Q2Checkbox {
268
251
  "attribute": "name",
269
252
  "reflect": true
270
253
  },
271
- "hasError": {
254
+ "groupDisabled": {
272
255
  "type": "boolean",
273
256
  "mutable": false,
274
257
  "complexType": {
@@ -282,15 +265,15 @@ export class Q2Checkbox {
282
265
  "tags": [],
283
266
  "text": ""
284
267
  },
285
- "attribute": "has-error",
268
+ "attribute": "group-disabled",
286
269
  "reflect": true
287
270
  },
288
- "groupDisabled": {
289
- "type": "boolean",
271
+ "alignment": {
272
+ "type": "string",
290
273
  "mutable": false,
291
274
  "complexType": {
292
- "original": "boolean",
293
- "resolved": "boolean",
275
+ "original": "string",
276
+ "resolved": "string",
294
277
  "references": {}
295
278
  },
296
279
  "required": false,
@@ -299,10 +282,10 @@ export class Q2Checkbox {
299
282
  "tags": [],
300
283
  "text": ""
301
284
  },
302
- "attribute": "group-disabled",
285
+ "attribute": "alignment",
303
286
  "reflect": true
304
287
  },
305
- "alignment": {
288
+ "description": {
306
289
  "type": "string",
307
290
  "mutable": false,
308
291
  "complexType": {
@@ -316,12 +299,32 @@ export class Q2Checkbox {
316
299
  "tags": [],
317
300
  "text": ""
318
301
  },
319
- "attribute": "alignment",
302
+ "attribute": "description",
320
303
  "reflect": true
321
304
  },
322
- "description": {
323
- "type": "string",
305
+ "hasError": {
306
+ "type": "boolean",
324
307
  "mutable": false,
308
+ "complexType": {
309
+ "original": "boolean",
310
+ "resolved": "boolean",
311
+ "references": {}
312
+ },
313
+ "required": false,
314
+ "optional": false,
315
+ "docs": {
316
+ "tags": [{
317
+ "name": "deprecated",
318
+ "text": undefined
319
+ }],
320
+ "text": ""
321
+ },
322
+ "attribute": "has-error",
323
+ "reflect": true
324
+ },
325
+ "ariaLabel": {
326
+ "type": "string",
327
+ "mutable": true,
325
328
  "complexType": {
326
329
  "original": "string",
327
330
  "resolved": "string",
@@ -330,10 +333,13 @@ export class Q2Checkbox {
330
333
  "required": false,
331
334
  "optional": false,
332
335
  "docs": {
333
- "tags": [],
336
+ "tags": [{
337
+ "name": "deprecated",
338
+ "text": undefined
339
+ }],
334
340
  "text": ""
335
341
  },
336
- "attribute": "description",
342
+ "attribute": "aria-label",
337
343
  "reflect": true
338
344
  }
339
345
  };
@@ -2,7 +2,7 @@ import { h } from '@stencil/core';
2
2
  import { createGuid, loc } from 'src/utils';
3
3
  export class Q2CheckboxGroup {
4
4
  constructor() {
5
- this.id = `checkbox-group-${createGuid()}`;
5
+ this._id = `checkbox-group-${createGuid()}`;
6
6
  this.onMutationObserved = () => {
7
7
  this.valueUpdated();
8
8
  this.disabledUpdated();
@@ -95,7 +95,6 @@ export class Q2Dropdown {
95
95
  this.icon = undefined;
96
96
  this.label = undefined;
97
97
  this.hideLabel = undefined;
98
- this.ariaLabel = undefined;
99
98
  this.disabled = undefined;
100
99
  this.popDirection = undefined;
101
100
  this.name = undefined;
@@ -103,6 +102,7 @@ export class Q2Dropdown {
103
102
  this.contextValue = undefined;
104
103
  this.resolvedType = undefined;
105
104
  this.block = undefined;
105
+ this.ariaLabel = undefined;
106
106
  this.dropdownOpen = false;
107
107
  }
108
108
  resizeIframe() {
@@ -282,8 +282,8 @@ export class Q2Dropdown {
282
282
  "type": "string",
283
283
  "mutable": false,
284
284
  "complexType": {
285
- "original": "string",
286
- "resolved": "string",
285
+ "original": "'icon' | 'fab' | 'custom' | 'primary' | 'secondary' | 'neutral'",
286
+ "resolved": "\"custom\" | \"fab\" | \"icon\" | \"neutral\" | \"primary\" | \"secondary\"",
287
287
  "references": {}
288
288
  },
289
289
  "required": false,
@@ -315,7 +315,7 @@ export class Q2Dropdown {
315
315
  },
316
316
  "label": {
317
317
  "type": "string",
318
- "mutable": false,
318
+ "mutable": true,
319
319
  "complexType": {
320
320
  "original": "string",
321
321
  "resolved": "string",
@@ -332,7 +332,7 @@ export class Q2Dropdown {
332
332
  },
333
333
  "hideLabel": {
334
334
  "type": "boolean",
335
- "mutable": false,
335
+ "mutable": true,
336
336
  "complexType": {
337
337
  "original": "boolean",
338
338
  "resolved": "boolean",
@@ -347,23 +347,6 @@ export class Q2Dropdown {
347
347
  "attribute": "hide-label",
348
348
  "reflect": true
349
349
  },
350
- "ariaLabel": {
351
- "type": "string",
352
- "mutable": true,
353
- "complexType": {
354
- "original": "string",
355
- "resolved": "string",
356
- "references": {}
357
- },
358
- "required": false,
359
- "optional": false,
360
- "docs": {
361
- "tags": [],
362
- "text": ""
363
- },
364
- "attribute": "aria-label",
365
- "reflect": true
366
- },
367
350
  "disabled": {
368
351
  "type": "boolean",
369
352
  "mutable": false,
@@ -482,6 +465,26 @@ export class Q2Dropdown {
482
465
  },
483
466
  "attribute": "block",
484
467
  "reflect": true
468
+ },
469
+ "ariaLabel": {
470
+ "type": "string",
471
+ "mutable": true,
472
+ "complexType": {
473
+ "original": "string",
474
+ "resolved": "string",
475
+ "references": {}
476
+ },
477
+ "required": false,
478
+ "optional": false,
479
+ "docs": {
480
+ "tags": [{
481
+ "name": "deprecated",
482
+ "text": undefined
483
+ }],
484
+ "text": ""
485
+ },
486
+ "attribute": "aria-label",
487
+ "reflect": true
485
488
  }
486
489
  };
487
490
  }
@@ -42,8 +42,8 @@ export class Q2DropdownItem {
42
42
  this.removable = undefined;
43
43
  this.separator = undefined;
44
44
  this.label = undefined;
45
- this.ariaLabel = undefined;
46
45
  this.value = undefined;
46
+ this.ariaLabel = undefined;
47
47
  }
48
48
  /////// LIFECYCLE HOOKS //////
49
49
  componentWillLoad() {
@@ -157,7 +157,7 @@ export class Q2DropdownItem {
157
157
  },
158
158
  "label": {
159
159
  "type": "string",
160
- "mutable": false,
160
+ "mutable": true,
161
161
  "complexType": {
162
162
  "original": "string",
163
163
  "resolved": "string",
@@ -172,7 +172,7 @@ export class Q2DropdownItem {
172
172
  "attribute": "label",
173
173
  "reflect": true
174
174
  },
175
- "ariaLabel": {
175
+ "value": {
176
176
  "type": "string",
177
177
  "mutable": false,
178
178
  "complexType": {
@@ -186,12 +186,12 @@ export class Q2DropdownItem {
186
186
  "tags": [],
187
187
  "text": ""
188
188
  },
189
- "attribute": "aria-label",
189
+ "attribute": "value",
190
190
  "reflect": true
191
191
  },
192
- "value": {
192
+ "ariaLabel": {
193
193
  "type": "string",
194
- "mutable": false,
194
+ "mutable": true,
195
195
  "complexType": {
196
196
  "original": "string",
197
197
  "resolved": "string",
@@ -200,10 +200,13 @@ export class Q2DropdownItem {
200
200
  "required": false,
201
201
  "optional": false,
202
202
  "docs": {
203
- "tags": [],
203
+ "tags": [{
204
+ "name": "deprecated",
205
+ "text": undefined
206
+ }],
204
207
  "text": ""
205
208
  },
206
- "attribute": "value",
209
+ "attribute": "aria-label",
207
210
  "reflect": true
208
211
  }
209
212
  };
@@ -59,7 +59,6 @@ export class Q2EditableField {
59
59
  this.editing = false;
60
60
  this.label = '';
61
61
  this.hideLabel = undefined;
62
- this.ariaLabel = undefined;
63
62
  this.type = undefined;
64
63
  this.formatModifier = undefined;
65
64
  this.truncated = undefined;
@@ -68,6 +67,7 @@ export class Q2EditableField {
68
67
  this.disabled = undefined;
69
68
  this.hints = undefined;
70
69
  this.errors = undefined;
70
+ this.ariaLabel = undefined;
71
71
  }
72
72
  get locLabel() {
73
73
  return (this.label && loc(this.label)) || '';
@@ -224,30 +224,18 @@ export class Q2EditableField {
224
224
  "attribute": "hide-label",
225
225
  "reflect": true
226
226
  },
227
- "ariaLabel": {
228
- "type": "string",
229
- "mutable": true,
230
- "complexType": {
231
- "original": "string",
232
- "resolved": "string",
233
- "references": {}
234
- },
235
- "required": false,
236
- "optional": false,
237
- "docs": {
238
- "tags": [],
239
- "text": ""
240
- },
241
- "attribute": "aria-label",
242
- "reflect": true
243
- },
244
227
  "type": {
245
228
  "type": "string",
246
229
  "mutable": false,
247
230
  "complexType": {
248
- "original": "string",
249
- "resolved": "string",
250
- "references": {}
231
+ "original": "Q2Input['type']",
232
+ "resolved": "\"alpha\" | \"alphanumeric\" | \"credit-card\" | \"currency\" | \"date\" | \"email\" | \"number\" | \"numeric\" | \"password\" | \"percentage\" | \"phone\" | \"postal\" | \"search\" | \"ssn\" | \"tel\" | \"text\" | \"url\"",
233
+ "references": {
234
+ "Q2Input": {
235
+ "location": "import",
236
+ "path": "../q2-input"
237
+ }
238
+ }
251
239
  },
252
240
  "required": false,
253
241
  "optional": false,
@@ -276,11 +264,11 @@ export class Q2EditableField {
276
264
  "reflect": true
277
265
  },
278
266
  "truncated": {
279
- "type": "string",
267
+ "type": "boolean",
280
268
  "mutable": false,
281
269
  "complexType": {
282
- "original": "string",
283
- "resolved": "string",
270
+ "original": "boolean",
271
+ "resolved": "boolean",
284
272
  "references": {}
285
273
  },
286
274
  "required": false,
@@ -372,6 +360,26 @@ export class Q2EditableField {
372
360
  "tags": [],
373
361
  "text": ""
374
362
  }
363
+ },
364
+ "ariaLabel": {
365
+ "type": "string",
366
+ "mutable": true,
367
+ "complexType": {
368
+ "original": "string",
369
+ "resolved": "string",
370
+ "references": {}
371
+ },
372
+ "required": false,
373
+ "optional": false,
374
+ "docs": {
375
+ "tags": [{
376
+ "name": "deprecated",
377
+ "text": undefined
378
+ }],
379
+ "text": ""
380
+ },
381
+ "attribute": "aria-label",
382
+ "reflect": true
375
383
  }
376
384
  };
377
385
  }
@@ -9,6 +9,25 @@ import formatNumeric, { formatPercentage } from './formatting/numeric';
9
9
  import formatPostalCode from './formatting/postal';
10
10
  import formatDate from './formatting/date';
11
11
  import formatCreditCard from './formatting/credit-card';
12
+ const inputTypeMap = {
13
+ text: 'text',
14
+ tel: 'tel',
15
+ number: 'number',
16
+ password: 'text',
17
+ search: 'search',
18
+ url: 'url',
19
+ email: 'email',
20
+ currency: 'text',
21
+ phone: 'tel',
22
+ ssn: 'text',
23
+ alphanumeric: 'text',
24
+ alpha: 'text',
25
+ numeric: 'text',
26
+ percentage: 'text',
27
+ postal: 'text',
28
+ date: 'text',
29
+ 'credit-card': 'text',
30
+ };
12
31
  export class Q2Input {
13
32
  constructor() {
14
33
  this.scheduledAfterRender = [];
@@ -100,11 +119,11 @@ export class Q2Input {
100
119
  this.ariaControls = undefined;
101
120
  this.role = undefined;
102
121
  this.ariaOwns = undefined;
103
- this.ariaLabel = undefined;
104
122
  this.ariaHaspopup = undefined;
105
123
  this.ariaExpanded = undefined;
106
124
  this.ariaActivedescendant = undefined;
107
125
  this.current = undefined;
126
+ this.ariaLabel = undefined;
108
127
  this.errors = undefined;
109
128
  this.hints = undefined;
110
129
  this.formattedValueObject = undefined;
@@ -225,25 +244,6 @@ export class Q2Input {
225
244
  return classNames.join(' ');
226
245
  }
227
246
  get computedType() {
228
- const inputTypeMap = {
229
- text: 'text',
230
- tel: 'tel',
231
- number: 'number',
232
- password: 'text',
233
- search: 'search',
234
- url: 'url',
235
- email: 'email',
236
- currency: 'text',
237
- phone: 'tel',
238
- ssn: 'text',
239
- alphanumeric: 'text',
240
- alpha: 'text',
241
- numeric: 'text',
242
- percentage: 'text',
243
- postal: 'text',
244
- date: 'text',
245
- 'credit-card': 'text',
246
- };
247
247
  if (['password', 'text', 'ssn'].includes(this.type) && this.textHidden) {
248
248
  return 'password';
249
249
  }
@@ -371,7 +371,7 @@ export class Q2Input {
371
371
  const inputClasses = ['input-field'];
372
372
  if (hasCustomDisplaySlot)
373
373
  inputClasses.push('sr');
374
- return (h(Fragment, null, hasCustomDisplaySlot && (h("div", { class: "custom-display-container" }, h("slot", { name: "custom-display" }))), h("input", { class: inputClasses.join(' '), id: this.inputId, type: this.computedType, size: this.formattedValueObject.prefix ? 10 : undefined, max: this.max, min: this.min, step: this.step, "aria-current": this.current || undefined, "aria-describedby": this.inputDescribedBy, "aria-required": `${!this.optional}`, "aria-invalid": `${this.hasError}`, "aria-controls": (this.ariaControls && `${this.ariaControls}`) || undefined, "aria-owns": (this.ariaOwns && `${this.ariaOwns}`) || undefined, "aria-haspopup": (this.ariaHaspopup && `${this.ariaHaspopup}`) || undefined, "aria-expanded": (!!this.ariaExpanded && `${!!this.ariaExpanded}`) || undefined, "aria-activedescendant": this.ariaActivedescendant && `${this.ariaActivedescendant}`, "aria-label": this.hideLabel && this.label ? loc(this.label) : undefined, autocomplete: this.computedAutocomplete, autocapitalize: this.autocapitalize === 'on' ? 'on' : 'off', autocorrect: this.autocorrect === 'on' ? 'on' : 'off', placeholder: (this.placeholder && loc(this.placeholder)) || undefined, role: (this.role && `${this.role}`) || undefined, "test-id": "inputField", readonly: !!this.readonly, disabled: !!this.disabled, onFocus: this.onInputFocus, onBlur: this.onInputBlur, onClick: this.onInputClick, onKeyDown: this.onInputKeydown, onInput: this.onInputInput, onPaste: this.onInputPaste, inputmode: this.inputMode })));
374
+ return (h(Fragment, null, hasCustomDisplaySlot && (h("div", { class: "custom-display-container" }, h("slot", { name: "custom-display" }))), h("input", { class: inputClasses.join(' '), id: this.inputId, type: this.computedType, size: this.formattedValueObject.prefix ? 10 : undefined, max: this.max, min: this.min, step: this.step, "aria-current": this.current || undefined, "aria-describedby": this.inputDescribedBy, "aria-required": `${!this.optional}`, "aria-invalid": `${this.hasError}`, "aria-controls": (this.ariaControls && `${this.ariaControls}`) || undefined, "aria-owns": (this.ariaOwns && `${this.ariaOwns}`) || undefined, "aria-haspopup": (this.ariaHaspopup && `${this.ariaHaspopup}`) || undefined, "aria-expanded": (!!this.ariaExpanded && `${!!this.ariaExpanded}`) || undefined, "aria-activedescendant": this.ariaActivedescendant && `${this.ariaActivedescendant}`, "aria-label": this.hideLabel && this.label ? loc(this.label) : undefined, autocomplete: this.computedAutocomplete, autocapitalize: this.autocapitalize, autocorrect: this.autocorrect === 'on' ? 'on' : 'off', placeholder: (this.placeholder && loc(this.placeholder)) || undefined, role: (this.role && `${this.role}`) || undefined, "test-id": "inputField", readonly: !!this.readonly, disabled: !!this.disabled, onFocus: this.onInputFocus, onBlur: this.onInputBlur, onClick: this.onInputClick, onKeyDown: this.onInputKeydown, onInput: this.onInputInput, onPaste: this.onInputPaste, inputmode: this.inputMode })));
375
375
  }
376
376
  /* tslint:enable:cyclomatic-complexity */
377
377
  pseudoInputDOM() {
@@ -497,9 +497,13 @@ export class Q2Input {
497
497
  "type": "string",
498
498
  "mutable": false,
499
499
  "complexType": {
500
- "original": "string",
501
- "resolved": "string",
502
- "references": {}
500
+ "original": "InputType",
501
+ "resolved": "\"alpha\" | \"alphanumeric\" | \"credit-card\" | \"currency\" | \"date\" | \"email\" | \"number\" | \"numeric\" | \"password\" | \"percentage\" | \"phone\" | \"postal\" | \"search\" | \"ssn\" | \"tel\" | \"text\" | \"url\"",
502
+ "references": {
503
+ "InputType": {
504
+ "location": "local"
505
+ }
506
+ }
503
507
  },
504
508
  "required": false,
505
509
  "optional": false,
@@ -567,8 +571,8 @@ export class Q2Input {
567
571
  "type": "string",
568
572
  "mutable": false,
569
573
  "complexType": {
570
- "original": "string",
571
- "resolved": "string",
574
+ "original": "'on' | 'off'",
575
+ "resolved": "\"off\" | \"on\"",
572
576
  "references": {}
573
577
  },
574
578
  "required": false,
@@ -618,9 +622,14 @@ export class Q2Input {
618
622
  "type": "string",
619
623
  "mutable": false,
620
624
  "complexType": {
621
- "original": "string",
625
+ "original": "Q2Icon['type']",
622
626
  "resolved": "string",
623
- "references": {}
627
+ "references": {
628
+ "Q2Icon": {
629
+ "location": "import",
630
+ "path": "../q2-icon"
631
+ }
632
+ }
624
633
  },
625
634
  "required": false,
626
635
  "optional": false,
@@ -635,9 +644,14 @@ export class Q2Input {
635
644
  "type": "string",
636
645
  "mutable": false,
637
646
  "complexType": {
638
- "original": "string",
647
+ "original": "Q2Icon['type']",
639
648
  "resolved": "string",
640
- "references": {}
649
+ "references": {
650
+ "Q2Icon": {
651
+ "location": "import",
652
+ "path": "../q2-icon"
653
+ }
654
+ }
641
655
  },
642
656
  "required": false,
643
657
  "optional": false,
@@ -857,9 +871,14 @@ export class Q2Input {
857
871
  "type": "string",
858
872
  "mutable": false,
859
873
  "complexType": {
860
- "original": "'primary' | 'secondary' | 'tertiary'",
874
+ "original": "Q2Badge['theme']",
861
875
  "resolved": "\"primary\" | \"secondary\" | \"tertiary\"",
862
- "references": {}
876
+ "references": {
877
+ "Q2Badge": {
878
+ "location": "import",
879
+ "path": "../q2-badge"
880
+ }
881
+ }
863
882
  },
864
883
  "required": false,
865
884
  "optional": false,
@@ -921,23 +940,6 @@ export class Q2Input {
921
940
  "attribute": "aria-owns",
922
941
  "reflect": false
923
942
  },
924
- "ariaLabel": {
925
- "type": "string",
926
- "mutable": true,
927
- "complexType": {
928
- "original": "string",
929
- "resolved": "string",
930
- "references": {}
931
- },
932
- "required": false,
933
- "optional": false,
934
- "docs": {
935
- "tags": [],
936
- "text": ""
937
- },
938
- "attribute": "aria-label",
939
- "reflect": true
940
- },
941
943
  "ariaHaspopup": {
942
944
  "type": "string",
943
945
  "mutable": false,
@@ -1006,6 +1008,26 @@ export class Q2Input {
1006
1008
  "attribute": "current",
1007
1009
  "reflect": false
1008
1010
  },
1011
+ "ariaLabel": {
1012
+ "type": "string",
1013
+ "mutable": true,
1014
+ "complexType": {
1015
+ "original": "string",
1016
+ "resolved": "string",
1017
+ "references": {}
1018
+ },
1019
+ "required": false,
1020
+ "optional": false,
1021
+ "docs": {
1022
+ "tags": [{
1023
+ "name": "deprecated",
1024
+ "text": undefined
1025
+ }],
1026
+ "text": ""
1027
+ },
1028
+ "attribute": "aria-label",
1029
+ "reflect": true
1030
+ },
1009
1031
  "errors": {
1010
1032
  "type": "unknown",
1011
1033
  "mutable": false,