q2-tecton-elements 1.25.1 → 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.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/q2-badge_2.cjs.entry.js +22 -22
- package/dist/cjs/q2-btn_2.cjs.entry.js +4 -4
- package/dist/cjs/q2-calendar.cjs.entry.js +2 -2
- package/dist/cjs/q2-carousel.cjs.entry.js +1 -1
- package/dist/cjs/q2-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/q2-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/q2-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/q2-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/q2-editable-field.cjs.entry.js +1 -1
- package/dist/cjs/q2-option-list_2.cjs.entry.js +55 -16
- package/dist/cjs/q2-pill.cjs.entry.js +1 -1
- package/dist/cjs/q2-radio-group.cjs.entry.js +8 -6
- package/dist/cjs/q2-radio.cjs.entry.js +4 -4
- package/dist/cjs/q2-select.cjs.entry.js +5 -2
- package/dist/cjs/q2-tab-container.cjs.entry.js +14 -2
- package/dist/cjs/q2-tab-pane.cjs.entry.js +6 -1
- package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
- package/dist/cjs/q2-tooltip.cjs.entry.js +17 -2
- package/dist/cjs/tecton-tab-pane.cjs.entry.js +5 -0
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/q2-btn/index.js +52 -43
- package/dist/collection/components/q2-calendar/index.js +48 -39
- package/dist/collection/components/q2-carousel/index.js +21 -18
- package/dist/collection/components/q2-checkbox/index.js +42 -36
- package/dist/collection/components/q2-checkbox-group/index.js +1 -1
- package/dist/collection/components/q2-dropdown/index.js +25 -22
- package/dist/collection/components/q2-dropdown-item/index.js +11 -8
- package/dist/collection/components/q2-editable-field/index.js +32 -24
- package/dist/collection/components/q2-input/index.js +72 -50
- package/dist/collection/components/q2-loading/index.js +18 -15
- package/dist/collection/components/q2-pill/styles.css +1 -1
- package/dist/collection/components/q2-popover/index.js +55 -16
- package/dist/collection/components/q2-popover/styles.css +1 -1
- package/dist/collection/components/q2-radio/index.js +24 -21
- package/dist/collection/components/q2-radio/styles.css +6 -6
- package/dist/collection/components/q2-radio-group/index.js +14 -9
- package/dist/collection/components/q2-select/index.js +25 -19
- package/dist/collection/components/q2-tab-container/index.js +18 -6
- package/dist/collection/components/q2-tab-pane/index.js +55 -0
- package/dist/collection/components/q2-tooltip/index.js +42 -3
- package/dist/collection/components/tecton-tab-pane/index.js +55 -0
- package/dist/components/index14.js +56 -17
- package/dist/components/index5.js +7 -7
- package/dist/components/index6.js +4 -4
- package/dist/components/index8.js +23 -23
- package/dist/components/index9.js +3 -3
- package/dist/components/q2-calendar.js +6 -6
- package/dist/components/q2-carousel.js +2 -2
- package/dist/components/q2-checkbox-group.js +1 -1
- package/dist/components/q2-checkbox.js +7 -7
- package/dist/components/q2-dropdown.js +4 -4
- package/dist/components/q2-editable-field.js +4 -4
- package/dist/components/q2-pill.js +1 -1
- package/dist/components/q2-radio-group.js +10 -8
- package/dist/components/q2-radio.js +7 -7
- package/dist/components/q2-select.js +6 -3
- package/dist/components/q2-tab-container.js +14 -2
- package/dist/components/q2-tab-pane.js +8 -1
- package/dist/components/q2-tooltip.js +19 -3
- package/dist/components/tecton-tab-pane.js +7 -0
- package/dist/docs.json +427 -40
- package/dist/esm/loader.js +1 -1
- package/dist/esm/q2-badge_2.entry.js +22 -22
- package/dist/esm/q2-btn_2.entry.js +4 -4
- package/dist/esm/q2-calendar.entry.js +2 -2
- package/dist/esm/q2-carousel.entry.js +1 -1
- package/dist/esm/q2-checkbox-group.entry.js +1 -1
- package/dist/esm/q2-checkbox.entry.js +4 -4
- package/dist/esm/q2-dropdown-item.entry.js +1 -1
- package/dist/esm/q2-dropdown.entry.js +1 -1
- package/dist/esm/q2-editable-field.entry.js +1 -1
- package/dist/esm/q2-option-list_2.entry.js +55 -16
- package/dist/esm/q2-pill.entry.js +1 -1
- package/dist/esm/q2-radio-group.entry.js +8 -6
- package/dist/esm/q2-radio.entry.js +4 -4
- package/dist/esm/q2-select.entry.js +5 -2
- package/dist/esm/q2-tab-container.entry.js +14 -2
- package/dist/esm/q2-tab-pane.entry.js +6 -1
- package/dist/esm/q2-tecton-elements.js +1 -1
- package/dist/esm/q2-tooltip.entry.js +17 -2
- package/dist/esm/tecton-tab-pane.entry.js +5 -0
- package/dist/q2-tecton-elements/p-09639e95.entry.js +1 -0
- package/dist/q2-tecton-elements/p-0b82891e.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-73c12774.entry.js → p-0cbad3bc.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-159d94cc.entry.js +1 -0
- package/dist/q2-tecton-elements/p-18808c27.entry.js +1 -0
- package/dist/q2-tecton-elements/p-4734a577.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-fa8cb091.entry.js → p-55d192b3.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-5878b8bd.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-f573fe5a.entry.js → p-721d0aee.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-d4909df7.entry.js → p-74ac19cd.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-82fef3f9.entry.js → p-87cecc80.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-8d703466.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-3fe98171.entry.js → p-a411f2f3.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-30069b63.entry.js → p-a7679912.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-b8420bfe.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-406f8ca9.entry.js → p-bc8a507b.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-f83d2df5.entry.js → p-bfaff58b.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-e43d437d.entry.js +1 -0
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
- package/dist/test/helpers.js +11 -0
- package/dist/types/components/q2-btn/index.d.ts +6 -3
- package/dist/types/components/q2-calendar/index.d.ts +5 -2
- package/dist/types/components/q2-carousel/index.d.ts +2 -1
- package/dist/types/components/q2-checkbox/index.d.ts +6 -4
- package/dist/types/components/q2-checkbox-group/index.d.ts +1 -1
- package/dist/types/components/q2-dropdown/index.d.ts +3 -2
- package/dist/types/components/q2-dropdown-item/index.d.ts +2 -1
- package/dist/types/components/q2-editable-field/index.d.ts +5 -3
- package/dist/types/components/q2-input/index.d.ts +31 -7
- package/dist/types/components/q2-loading/index.d.ts +4 -3
- package/dist/types/components/q2-popover/index.d.ts +5 -1
- package/dist/types/components/q2-radio/index.d.ts +3 -2
- package/dist/types/components/q2-radio-group/index.d.ts +3 -2
- package/dist/types/components/q2-select/index.d.ts +2 -1
- package/dist/types/components/q2-tab-container/index.d.ts +5 -2
- package/dist/types/components/q2-tab-pane/index.d.ts +3 -0
- package/dist/types/components/q2-tooltip/index.d.ts +4 -1
- package/dist/types/components/tecton-tab-pane/index.d.ts +3 -0
- package/dist/types/components.d.ts +140 -24
- 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
- package/package.json +3 -3
- package/dist/q2-tecton-elements/p-18d9cea8.entry.js +0 -1
- package/dist/q2-tecton-elements/p-2313e9a9.entry.js +0 -1
- package/dist/q2-tecton-elements/p-2b9c1815.entry.js +0 -1
- package/dist/q2-tecton-elements/p-3410c675.entry.js +0 -1
- package/dist/q2-tecton-elements/p-471e5d58.entry.js +0 -1
- package/dist/q2-tecton-elements/p-a6bfe392.entry.js +0 -1
- package/dist/q2-tecton-elements/p-c01d0332.entry.js +0 -1
- package/dist/q2-tecton-elements/p-df91e954.entry.js +0 -1
- package/dist/q2-tecton-elements/p-e8e113c2.entry.js +0 -1
|
@@ -265,7 +265,6 @@ export class Q2Calendar {
|
|
|
265
265
|
this.value = undefined;
|
|
266
266
|
this.label = undefined;
|
|
267
267
|
this.hideLabel = undefined;
|
|
268
|
-
this.ariaLabel = undefined;
|
|
269
268
|
this.optional = undefined;
|
|
270
269
|
this.disabled = undefined;
|
|
271
270
|
this.readonly = undefined;
|
|
@@ -273,7 +272,6 @@ export class Q2Calendar {
|
|
|
273
272
|
this.typeable = undefined;
|
|
274
273
|
this.clearable = undefined;
|
|
275
274
|
this.placeholder = undefined;
|
|
276
|
-
this.buttonLabel = undefined;
|
|
277
275
|
this.disabledMsg = undefined;
|
|
278
276
|
this.calendarLabel = undefined;
|
|
279
277
|
this.disclaimer = undefined;
|
|
@@ -288,6 +286,8 @@ export class Q2Calendar {
|
|
|
288
286
|
this.invalidDates = undefined;
|
|
289
287
|
this.validDates = undefined;
|
|
290
288
|
this.onsuccess = undefined;
|
|
289
|
+
this.buttonLabel = undefined;
|
|
290
|
+
this.ariaLabel = undefined;
|
|
291
291
|
this.dropdownOpen = false;
|
|
292
292
|
this.keyboardSelection = false;
|
|
293
293
|
this.typedValue = '';
|
|
@@ -638,7 +638,7 @@ export class Q2Calendar {
|
|
|
638
638
|
},
|
|
639
639
|
"label": {
|
|
640
640
|
"type": "string",
|
|
641
|
-
"mutable":
|
|
641
|
+
"mutable": true,
|
|
642
642
|
"complexType": {
|
|
643
643
|
"original": "string",
|
|
644
644
|
"resolved": "string",
|
|
@@ -655,7 +655,7 @@ export class Q2Calendar {
|
|
|
655
655
|
},
|
|
656
656
|
"hideLabel": {
|
|
657
657
|
"type": "boolean",
|
|
658
|
-
"mutable":
|
|
658
|
+
"mutable": true,
|
|
659
659
|
"complexType": {
|
|
660
660
|
"original": "boolean",
|
|
661
661
|
"resolved": "boolean",
|
|
@@ -670,23 +670,6 @@ export class Q2Calendar {
|
|
|
670
670
|
"attribute": "hide-label",
|
|
671
671
|
"reflect": true
|
|
672
672
|
},
|
|
673
|
-
"ariaLabel": {
|
|
674
|
-
"type": "string",
|
|
675
|
-
"mutable": false,
|
|
676
|
-
"complexType": {
|
|
677
|
-
"original": "string",
|
|
678
|
-
"resolved": "string",
|
|
679
|
-
"references": {}
|
|
680
|
-
},
|
|
681
|
-
"required": false,
|
|
682
|
-
"optional": false,
|
|
683
|
-
"docs": {
|
|
684
|
-
"tags": [],
|
|
685
|
-
"text": ""
|
|
686
|
-
},
|
|
687
|
-
"attribute": "aria-label",
|
|
688
|
-
"reflect": true
|
|
689
|
-
},
|
|
690
673
|
"optional": {
|
|
691
674
|
"type": "boolean",
|
|
692
675
|
"mutable": false,
|
|
@@ -806,23 +789,6 @@ export class Q2Calendar {
|
|
|
806
789
|
"attribute": "placeholder",
|
|
807
790
|
"reflect": true
|
|
808
791
|
},
|
|
809
|
-
"buttonLabel": {
|
|
810
|
-
"type": "string",
|
|
811
|
-
"mutable": false,
|
|
812
|
-
"complexType": {
|
|
813
|
-
"original": "string",
|
|
814
|
-
"resolved": "string",
|
|
815
|
-
"references": {}
|
|
816
|
-
},
|
|
817
|
-
"required": false,
|
|
818
|
-
"optional": false,
|
|
819
|
-
"docs": {
|
|
820
|
-
"tags": [],
|
|
821
|
-
"text": ""
|
|
822
|
-
},
|
|
823
|
-
"attribute": "button-label",
|
|
824
|
-
"reflect": true
|
|
825
|
-
},
|
|
826
792
|
"disabledMsg": {
|
|
827
793
|
"type": "string",
|
|
828
794
|
"mutable": false,
|
|
@@ -1054,9 +1020,52 @@ export class Q2Calendar {
|
|
|
1054
1020
|
"required": false,
|
|
1055
1021
|
"optional": false,
|
|
1056
1022
|
"docs": {
|
|
1057
|
-
"tags": [
|
|
1023
|
+
"tags": [{
|
|
1024
|
+
"name": "deprecated",
|
|
1025
|
+
"text": undefined
|
|
1026
|
+
}],
|
|
1058
1027
|
"text": ""
|
|
1059
1028
|
}
|
|
1029
|
+
},
|
|
1030
|
+
"buttonLabel": {
|
|
1031
|
+
"type": "string",
|
|
1032
|
+
"mutable": false,
|
|
1033
|
+
"complexType": {
|
|
1034
|
+
"original": "string",
|
|
1035
|
+
"resolved": "string",
|
|
1036
|
+
"references": {}
|
|
1037
|
+
},
|
|
1038
|
+
"required": false,
|
|
1039
|
+
"optional": false,
|
|
1040
|
+
"docs": {
|
|
1041
|
+
"tags": [{
|
|
1042
|
+
"name": "deprecated",
|
|
1043
|
+
"text": undefined
|
|
1044
|
+
}],
|
|
1045
|
+
"text": ""
|
|
1046
|
+
},
|
|
1047
|
+
"attribute": "button-label",
|
|
1048
|
+
"reflect": true
|
|
1049
|
+
},
|
|
1050
|
+
"ariaLabel": {
|
|
1051
|
+
"type": "string",
|
|
1052
|
+
"mutable": false,
|
|
1053
|
+
"complexType": {
|
|
1054
|
+
"original": "string",
|
|
1055
|
+
"resolved": "string",
|
|
1056
|
+
"references": {}
|
|
1057
|
+
},
|
|
1058
|
+
"required": false,
|
|
1059
|
+
"optional": false,
|
|
1060
|
+
"docs": {
|
|
1061
|
+
"tags": [{
|
|
1062
|
+
"name": "deprecated",
|
|
1063
|
+
"text": undefined
|
|
1064
|
+
}],
|
|
1065
|
+
"text": ""
|
|
1066
|
+
},
|
|
1067
|
+
"attribute": "aria-label",
|
|
1068
|
+
"reflect": true
|
|
1060
1069
|
}
|
|
1061
1070
|
};
|
|
1062
1071
|
}
|
|
@@ -154,9 +154,9 @@ export class Q2Carousel {
|
|
|
154
154
|
this.fullWidthPanes = false;
|
|
155
155
|
this.hidePagination = false;
|
|
156
156
|
this.showNavigationArrows = false;
|
|
157
|
-
this.ariaLabel = undefined;
|
|
158
157
|
this.label = 'tecton.element.carousel.ariaLabel';
|
|
159
158
|
this.index = 1;
|
|
159
|
+
this.ariaLabel = undefined;
|
|
160
160
|
this.universalCarouselOptions = {
|
|
161
161
|
centeredSlides: true,
|
|
162
162
|
focusableElements: 'q2-btn, a, input, select, textarea, button, video, label, option',
|
|
@@ -365,23 +365,6 @@ export class Q2Carousel {
|
|
|
365
365
|
"reflect": true,
|
|
366
366
|
"defaultValue": "false"
|
|
367
367
|
},
|
|
368
|
-
"ariaLabel": {
|
|
369
|
-
"type": "string",
|
|
370
|
-
"mutable": false,
|
|
371
|
-
"complexType": {
|
|
372
|
-
"original": "string",
|
|
373
|
-
"resolved": "string",
|
|
374
|
-
"references": {}
|
|
375
|
-
},
|
|
376
|
-
"required": false,
|
|
377
|
-
"optional": false,
|
|
378
|
-
"docs": {
|
|
379
|
-
"tags": [],
|
|
380
|
-
"text": ""
|
|
381
|
-
},
|
|
382
|
-
"attribute": "aria-label",
|
|
383
|
-
"reflect": true
|
|
384
|
-
},
|
|
385
368
|
"label": {
|
|
386
369
|
"type": "string",
|
|
387
370
|
"mutable": false,
|
|
@@ -417,6 +400,26 @@ export class Q2Carousel {
|
|
|
417
400
|
"attribute": "index",
|
|
418
401
|
"reflect": true,
|
|
419
402
|
"defaultValue": "1"
|
|
403
|
+
},
|
|
404
|
+
"ariaLabel": {
|
|
405
|
+
"type": "string",
|
|
406
|
+
"mutable": false,
|
|
407
|
+
"complexType": {
|
|
408
|
+
"original": "string",
|
|
409
|
+
"resolved": "string",
|
|
410
|
+
"references": {}
|
|
411
|
+
},
|
|
412
|
+
"required": false,
|
|
413
|
+
"optional": false,
|
|
414
|
+
"docs": {
|
|
415
|
+
"tags": [{
|
|
416
|
+
"name": "deprecated",
|
|
417
|
+
"text": undefined
|
|
418
|
+
}],
|
|
419
|
+
"text": ""
|
|
420
|
+
},
|
|
421
|
+
"attribute": "aria-label",
|
|
422
|
+
"reflect": true
|
|
420
423
|
}
|
|
421
424
|
};
|
|
422
425
|
}
|
|
@@ -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.
|
|
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.
|
|
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": "
|
|
123
|
-
"resolved": "
|
|
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
|
-
"
|
|
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": "
|
|
268
|
+
"attribute": "group-disabled",
|
|
286
269
|
"reflect": true
|
|
287
270
|
},
|
|
288
|
-
"
|
|
289
|
-
"type": "
|
|
271
|
+
"alignment": {
|
|
272
|
+
"type": "string",
|
|
290
273
|
"mutable": false,
|
|
291
274
|
"complexType": {
|
|
292
|
-
"original": "
|
|
293
|
-
"resolved": "
|
|
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": "
|
|
285
|
+
"attribute": "alignment",
|
|
303
286
|
"reflect": true
|
|
304
287
|
},
|
|
305
|
-
"
|
|
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": "
|
|
302
|
+
"attribute": "description",
|
|
320
303
|
"reflect": true
|
|
321
304
|
},
|
|
322
|
-
"
|
|
323
|
-
"type": "
|
|
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": "
|
|
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.
|
|
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": "
|
|
286
|
-
"resolved": "
|
|
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":
|
|
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":
|
|
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":
|
|
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
|
-
"
|
|
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": "
|
|
189
|
+
"attribute": "value",
|
|
190
190
|
"reflect": true
|
|
191
191
|
},
|
|
192
|
-
"
|
|
192
|
+
"ariaLabel": {
|
|
193
193
|
"type": "string",
|
|
194
|
-
"mutable":
|
|
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": "
|
|
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": "
|
|
249
|
-
"resolved": "
|
|
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": "
|
|
267
|
+
"type": "boolean",
|
|
280
268
|
"mutable": false,
|
|
281
269
|
"complexType": {
|
|
282
|
-
"original": "
|
|
283
|
-
"resolved": "
|
|
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
|
}
|