q2-tecton-elements 1.12.0-alpha.0 → 1.12.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/{icons-4595ee47.js → icons-9bd0febe.js} +10 -0
- package/dist/cjs/{index-a55d3c34.js → index-773c3eec.js} +25 -12
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/q2-avatar.cjs.entry.js +1 -1
- package/dist/cjs/q2-btn_2.cjs.entry.js +3 -3
- package/dist/cjs/q2-calendar.cjs.entry.js +15 -4
- package/dist/cjs/q2-card.cjs.entry.js +89 -0
- package/dist/cjs/q2-carousel-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-carousel.cjs.entry.js +1 -1
- package/dist/cjs/q2-checkbox-group.cjs.entry.js +4 -1
- package/dist/cjs/q2-checkbox.cjs.entry.js +17 -6
- package/dist/cjs/q2-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/q2-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/q2-editable-field.cjs.entry.js +1 -1
- package/dist/cjs/q2-icon.cjs.entry.js +2 -2
- package/dist/cjs/q2-input.cjs.entry.js +12 -7
- package/dist/cjs/q2-loc.cjs.entry.js +1 -1
- package/dist/cjs/q2-message.cjs.entry.js +1 -1
- package/dist/cjs/q2-optgroup.cjs.entry.js +1 -1
- package/dist/cjs/q2-option-list.cjs.entry.js +357 -0
- package/dist/cjs/q2-option.cjs.entry.js +2 -10
- package/dist/cjs/q2-pagination.cjs.entry.js +118 -0
- package/dist/cjs/q2-pill.cjs.entry.js +137 -0
- package/dist/cjs/q2-radio-group.cjs.entry.js +40 -12
- package/dist/cjs/q2-radio.cjs.entry.js +20 -3
- package/dist/cjs/q2-section.cjs.entry.js +1 -1
- package/dist/cjs/q2-select.cjs.entry.js +14 -6
- package/dist/cjs/q2-stepper-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-stepper.cjs.entry.js +2 -2
- package/dist/cjs/q2-tab-container.cjs.entry.js +5 -1
- package/dist/cjs/q2-tag.cjs.entry.js +94 -0
- package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
- package/dist/cjs/q2-textarea.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +5 -0
- package/dist/collection/components/q2-btn/styles.css +1 -1
- package/dist/collection/components/q2-calendar/helpers.js +6 -0
- package/dist/collection/components/q2-calendar/index.js +25 -3
- package/dist/collection/components/q2-calendar/styles.css +1 -1
- package/dist/collection/components/q2-card/index.js +290 -0
- package/dist/collection/components/q2-card/styles.css +161 -0
- package/dist/collection/components/q2-checkbox/index.js +32 -4
- package/dist/collection/components/q2-checkbox/styles.css +1 -1
- package/dist/collection/components/q2-checkbox-group/index.js +21 -0
- package/dist/collection/components/q2-dropdown/styles.css +3 -3
- package/dist/collection/components/q2-icon/icons.js +10 -0
- package/dist/collection/components/q2-input/index.js +63 -6
- package/dist/collection/components/q2-input/styles.css +25 -33
- package/dist/collection/components/q2-loading/styles.css +1 -1
- package/dist/collection/components/q2-option/index.js +19 -25
- package/dist/collection/components/q2-option/styles.css +5 -0
- package/dist/collection/components/q2-option-list/index.js +646 -0
- package/dist/collection/components/q2-option-list/styles.css +128 -0
- package/dist/collection/components/q2-pagination/index.js +277 -0
- package/dist/collection/components/q2-pagination/styles.css +120 -0
- package/dist/collection/components/q2-pill/index.js +324 -0
- package/dist/collection/components/q2-pill/styles.css +227 -0
- package/dist/collection/components/q2-radio/index.js +38 -1
- package/dist/collection/components/q2-radio-group/index.js +64 -19
- package/dist/collection/components/q2-select/index.js +30 -4
- package/dist/collection/components/q2-select/styles.css +4 -4
- package/dist/collection/components/q2-stepper/styles.css +8 -8
- package/dist/collection/components/q2-tab-container/index.js +4 -0
- package/dist/collection/components/q2-tag/index.js +200 -0
- package/dist/collection/components/q2-tag/styles.css +141 -0
- package/dist/collection/utils/index.js +24 -12
- package/dist/esm/{icons-3ee662ea.js → icons-6a143c2f.js} +10 -0
- package/dist/esm/{index-ec6660af.js → index-fa32f694.js} +25 -13
- package/dist/esm/loader.js +1 -1
- package/dist/esm/q2-avatar.entry.js +1 -1
- package/dist/esm/q2-btn_2.entry.js +3 -3
- package/dist/esm/q2-calendar.entry.js +15 -4
- package/dist/esm/q2-card.entry.js +85 -0
- package/dist/esm/q2-carousel-pane.entry.js +1 -1
- package/dist/esm/q2-carousel.entry.js +1 -1
- package/dist/esm/q2-checkbox-group.entry.js +4 -1
- package/dist/esm/q2-checkbox.entry.js +17 -6
- package/dist/esm/q2-dropdown-item.entry.js +1 -1
- package/dist/esm/q2-dropdown.entry.js +2 -2
- package/dist/esm/q2-editable-field.entry.js +1 -1
- package/dist/esm/q2-icon.entry.js +2 -2
- package/dist/esm/q2-input.entry.js +12 -7
- package/dist/esm/q2-loc.entry.js +1 -1
- package/dist/esm/q2-message.entry.js +1 -1
- package/dist/esm/q2-optgroup.entry.js +1 -1
- package/dist/esm/q2-option-list.entry.js +353 -0
- package/dist/esm/q2-option.entry.js +3 -11
- package/dist/esm/q2-pagination.entry.js +114 -0
- package/dist/esm/q2-pill.entry.js +133 -0
- package/dist/esm/q2-radio-group.entry.js +41 -13
- package/dist/esm/q2-radio.entry.js +20 -3
- package/dist/esm/q2-section.entry.js +1 -1
- package/dist/esm/q2-select.entry.js +14 -6
- package/dist/esm/q2-stepper-pane.entry.js +1 -1
- package/dist/esm/q2-stepper.entry.js +2 -2
- package/dist/esm/q2-tab-container.entry.js +5 -1
- package/dist/esm/q2-tag.entry.js +90 -0
- package/dist/esm/q2-tecton-elements.js +1 -1
- package/dist/esm/q2-textarea.entry.js +1 -1
- package/dist/q2-tecton-elements/p-08668234.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-fbf7c5e6.entry.js → p-0a7cff38.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-167a19fd.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-07a5d703.entry.js → p-30bf5f44.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-7e030e92.entry.js → p-34415315.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-3c6f73cb.js +1 -0
- package/dist/q2-tecton-elements/p-54300d2f.entry.js +1 -0
- package/dist/q2-tecton-elements/p-54f0d64e.entry.js +1 -0
- package/dist/q2-tecton-elements/p-5b906cf1.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-06fff43d.entry.js → p-650d7497.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-7ce98c1a.entry.js +1 -0
- package/dist/q2-tecton-elements/p-8c22e6b4.entry.js +1 -0
- package/dist/q2-tecton-elements/p-91dba21f.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-a6f8d09a.entry.js → p-9a3c37ab.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-75e87cca.entry.js → p-a0248299.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-aca8302b.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-df182f61.entry.js → p-af202624.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-c5e55b9f.entry.js → p-b9c2c1d3.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-c3d68d5c.js +1 -0
- package/dist/q2-tecton-elements/{p-bb2e110a.entry.js → p-c5199147.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-843b1ee9.entry.js → p-c5e6f7fa.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-ce44ee47.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-50967020.entry.js → p-d3058002.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-d65aaed2.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-9b50c3c3.entry.js → p-d9bc6494.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-df86f160.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-9a977ee6.entry.js → p-e38080d2.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-e9d69ba8.entry.js +1 -0
- package/dist/q2-tecton-elements/p-f98dc161.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-7e6fc65d.entry.js → p-fa9e3825.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-b281c349.entry.js → p-fe6407a4.entry.js} +1 -1
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
- package/dist/test/elements/q2-tag-test.js +151 -0
- package/dist/test/helpers.js +14 -3
- package/dist/types/components/q2-calendar/helpers.d.ts +1 -0
- package/dist/types/components/q2-calendar/index.d.ts +1 -0
- package/dist/types/components/q2-card/index.d.ts +31 -0
- package/dist/types/components/q2-checkbox/index.d.ts +3 -1
- package/dist/types/components/q2-checkbox-group/index.d.ts +1 -0
- package/dist/types/components/q2-input/index.d.ts +3 -0
- package/dist/types/components/q2-option/index.d.ts +2 -3
- package/dist/types/components/q2-option-list/index.d.ts +62 -0
- package/dist/types/components/q2-pagination/index.d.ts +30 -0
- package/dist/types/components/q2-pill/index.d.ts +39 -0
- package/dist/types/components/q2-radio/index.d.ts +4 -1
- package/dist/types/components/q2-radio-group/index.d.ts +5 -1
- package/dist/types/components/q2-select/index.d.ts +1 -0
- package/dist/types/components/q2-tag/index.d.ts +28 -0
- package/dist/types/components.d.ts +175 -1
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/workspace/workspace/Tecton_tecton-production_master/packages/q2-tecton-elements/.stencil/test/elements/q2-tag-test.d.ts +1 -0
- package/dist/types/workspace/workspace/{_production_release_1.11.0-alpha → Tecton_tecton-production_master}/packages/q2-tecton-elements/.stencil/test/helpers.d.ts +4 -1
- package/package.json +2 -2
- package/dist/q2-tecton-elements/p-29a37091.entry.js +0 -1
- package/dist/q2-tecton-elements/p-37aba2a4.js +0 -1
- package/dist/q2-tecton-elements/p-4cd00f1a.js +0 -1
- package/dist/q2-tecton-elements/p-6702eb4d.entry.js +0 -1
- package/dist/q2-tecton-elements/p-768e3a5d.entry.js +0 -1
- package/dist/q2-tecton-elements/p-943c7745.entry.js +0 -1
- package/dist/q2-tecton-elements/p-95a73559.entry.js +0 -1
- package/dist/q2-tecton-elements/p-ac859fcc.entry.js +0 -1
- package/dist/q2-tecton-elements/p-ccbe9158.entry.js +0 -1
- package/dist/q2-tecton-elements/p-db6f90ac.entry.js +0 -1
- package/dist/q2-tecton-elements/p-fa6eea5c.entry.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, Prop, Element, h, Listen, Event, Watch } from '@stencil/core';
|
|
1
|
+
import { Component, Prop, Element, h, Listen, Event, Watch, Fragment } from '@stencil/core';
|
|
2
2
|
import { createGuid, isEventFromElement, loc, overrideFocus } from 'src/utils';
|
|
3
3
|
export class Q2RadioGroup {
|
|
4
4
|
constructor() {
|
|
@@ -7,13 +7,16 @@ export class Q2RadioGroup {
|
|
|
7
7
|
this.hasError = false;
|
|
8
8
|
this.id = `radio-group-${createGuid()}`;
|
|
9
9
|
this.onMutationObserved = () => {
|
|
10
|
-
this.valueUpdated();
|
|
10
|
+
this.valueUpdated(this.value);
|
|
11
11
|
this.nameUpdated();
|
|
12
12
|
this.disabledUpdated();
|
|
13
|
+
this.readonlyUpdated();
|
|
13
14
|
this.tileLayoutUpdated();
|
|
14
15
|
};
|
|
15
16
|
this.onInnerRadioChange = (event) => {
|
|
16
17
|
event.stopImmediatePropagation();
|
|
18
|
+
if (this.readonly)
|
|
19
|
+
return;
|
|
17
20
|
this.change.emit({ value: event.detail.value });
|
|
18
21
|
};
|
|
19
22
|
}
|
|
@@ -21,17 +24,19 @@ export class Q2RadioGroup {
|
|
|
21
24
|
return Array.from(this.hostElement.querySelectorAll('q2-radio'));
|
|
22
25
|
}
|
|
23
26
|
/////// LIFECYCLE HOOK ///////
|
|
27
|
+
componentWillLoad() {
|
|
28
|
+
this.onMutationObserved();
|
|
29
|
+
}
|
|
24
30
|
componentDidLoad() {
|
|
25
31
|
const observer = new MutationObserver(this.onMutationObserved);
|
|
26
32
|
observer.observe(this.hostElement, { childList: true });
|
|
27
33
|
this.mutationObserver = observer;
|
|
28
|
-
this.onMutationObserved();
|
|
29
34
|
overrideFocus(this.hostElement);
|
|
30
35
|
}
|
|
31
36
|
/////// OBSERVERS ///////
|
|
32
|
-
valueUpdated() {
|
|
37
|
+
valueUpdated(newVal) {
|
|
33
38
|
this.radioElements.forEach(radio => {
|
|
34
|
-
radio.checked =
|
|
39
|
+
radio.checked = newVal === radio.value;
|
|
35
40
|
});
|
|
36
41
|
}
|
|
37
42
|
nameUpdated() {
|
|
@@ -44,6 +49,10 @@ export class Q2RadioGroup {
|
|
|
44
49
|
radio.groupDisabled = this.disabled;
|
|
45
50
|
});
|
|
46
51
|
}
|
|
52
|
+
readonlyUpdated() {
|
|
53
|
+
const readonly = this.readonly;
|
|
54
|
+
this.radioElements.forEach(radio => (radio.groupReadonly = readonly));
|
|
55
|
+
}
|
|
47
56
|
tileLayoutUpdated() {
|
|
48
57
|
this.radioElements.forEach(radio => {
|
|
49
58
|
radio.groupTileLayout = this.tilelayout;
|
|
@@ -67,11 +76,15 @@ export class Q2RadioGroup {
|
|
|
67
76
|
const currentValue = event.target.getAttribute('value') || this.value;
|
|
68
77
|
let index = this.radioElements.findIndex(el => el === event.target || el.getAttribute('value') === currentValue);
|
|
69
78
|
let sign = 0;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
79
|
+
switch (event.key) {
|
|
80
|
+
case 'ArrowLeft':
|
|
81
|
+
case 'ArrowUp':
|
|
82
|
+
sign = -1;
|
|
83
|
+
break;
|
|
84
|
+
case 'ArrowRight':
|
|
85
|
+
case 'ArrowDown':
|
|
86
|
+
sign = 1;
|
|
87
|
+
break;
|
|
75
88
|
}
|
|
76
89
|
if (index === -1 || sign === 0) {
|
|
77
90
|
return;
|
|
@@ -79,19 +92,31 @@ export class Q2RadioGroup {
|
|
|
79
92
|
index += sign;
|
|
80
93
|
index = sign < 0 ? Math.max(0, index) : Math.min(this.radioElements.length - 1, index);
|
|
81
94
|
event.preventDefault();
|
|
82
|
-
this.
|
|
95
|
+
if (!this.readonly) {
|
|
96
|
+
this.value = this.radioElements[index].value;
|
|
97
|
+
}
|
|
83
98
|
this.radioElements[index].dispatchEvent(new FocusEvent('focus'));
|
|
84
99
|
}
|
|
100
|
+
labelDOM() {
|
|
101
|
+
const { label, optional, readonly } = this;
|
|
102
|
+
let helpText = '';
|
|
103
|
+
if (readonly) {
|
|
104
|
+
helpText = h("span", { class: "optional-tag" }, loc('tecton.element.input.readonly'));
|
|
105
|
+
}
|
|
106
|
+
else if (optional) {
|
|
107
|
+
helpText = h("span", { class: "optional-tag" }, loc('tecton.element.input.optional'));
|
|
108
|
+
}
|
|
109
|
+
return (h(Fragment, null,
|
|
110
|
+
label && loc(label),
|
|
111
|
+
!!helpText && h("span", { class: "optional-tag" }, helpText)));
|
|
112
|
+
}
|
|
85
113
|
render() {
|
|
114
|
+
const showLabel = this.label || this.optional || this.readonly;
|
|
86
115
|
return (h("div", null,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
this.label || this.optional ? (h("legend", { class: "sr-only" },
|
|
92
|
-
this.label && loc(this.label),
|
|
93
|
-
this.optional ? (h("span", { class: "optional-tag" }, loc('tecton.element.input.optional'))) : (''))) : (''),
|
|
94
|
-
this.hasError ? (h("div", { class: `error-icon-container ${this.label || this.optional ? '' : 'no-label'}` },
|
|
116
|
+
showLabel && h("div", { class: "group-legend" }, this.labelDOM()),
|
|
117
|
+
h("fieldset", { class: `q2-radio-fieldset ${this.hasError ? 'has-error' : ''}`, onChange: this.onInnerRadioChange, "aria-required": `${!this.optional}`, "aria-readonly": `${this.readonly}` },
|
|
118
|
+
showLabel && h("legend", { class: "sr-only" }, this.labelDOM()),
|
|
119
|
+
this.hasError ? (h("div", { class: `error-icon-container ${!showLabel && 'no-label'}` },
|
|
95
120
|
h("q2-icon", { class: "h(4) w(4) mrg-b(2)", type: "error" }))) : (''),
|
|
96
121
|
this.inputDom())));
|
|
97
122
|
}
|
|
@@ -203,6 +228,23 @@ export class Q2RadioGroup {
|
|
|
203
228
|
"attribute": "optional",
|
|
204
229
|
"reflect": true
|
|
205
230
|
},
|
|
231
|
+
"readonly": {
|
|
232
|
+
"type": "boolean",
|
|
233
|
+
"mutable": false,
|
|
234
|
+
"complexType": {
|
|
235
|
+
"original": "boolean",
|
|
236
|
+
"resolved": "boolean",
|
|
237
|
+
"references": {}
|
|
238
|
+
},
|
|
239
|
+
"required": false,
|
|
240
|
+
"optional": false,
|
|
241
|
+
"docs": {
|
|
242
|
+
"tags": [],
|
|
243
|
+
"text": ""
|
|
244
|
+
},
|
|
245
|
+
"attribute": "readonly",
|
|
246
|
+
"reflect": true
|
|
247
|
+
},
|
|
206
248
|
"tilelayout": {
|
|
207
249
|
"type": "boolean",
|
|
208
250
|
"mutable": false,
|
|
@@ -283,6 +325,9 @@ export class Q2RadioGroup {
|
|
|
283
325
|
}, {
|
|
284
326
|
"propName": "disabled",
|
|
285
327
|
"methodName": "disabledUpdated"
|
|
328
|
+
}, {
|
|
329
|
+
"propName": "readonly",
|
|
330
|
+
"methodName": "readonlyUpdated"
|
|
286
331
|
}, {
|
|
287
332
|
"propName": "tilelayout",
|
|
288
333
|
"methodName": "tileLayoutUpdated"
|
|
@@ -4,6 +4,7 @@ export class Q2Select {
|
|
|
4
4
|
constructor() {
|
|
5
5
|
this.selectedOptions = [];
|
|
6
6
|
this.disabled = false;
|
|
7
|
+
this.readonly = false;
|
|
7
8
|
this.multiple = false;
|
|
8
9
|
this.minRows = 3;
|
|
9
10
|
this.searchable = false;
|
|
@@ -97,9 +98,10 @@ export class Q2Select {
|
|
|
97
98
|
event.stopPropagation();
|
|
98
99
|
const { activeIndex, searchable, optionElements, multiSelectHeader } = this;
|
|
99
100
|
const { key, shiftKey } = event;
|
|
100
|
-
if (
|
|
101
|
-
multiSelectHeader
|
|
102
|
-
|
|
101
|
+
if (this.readonly ||
|
|
102
|
+
(multiSelectHeader &&
|
|
103
|
+
multiSelectHeader.contains(event.target) &&
|
|
104
|
+
[' ', 'Enter'].includes(key)))
|
|
103
105
|
return;
|
|
104
106
|
switch (key) {
|
|
105
107
|
case ' ':
|
|
@@ -415,12 +417,16 @@ export class Q2Select {
|
|
|
415
417
|
activeOption === null || activeOption === void 0 ? void 0 : activeOption.scrollIntoView({ block: 'nearest' });
|
|
416
418
|
}
|
|
417
419
|
openDropdownWithoutActiveElement() {
|
|
420
|
+
if (this.readonly)
|
|
421
|
+
return;
|
|
418
422
|
this.activeIndex = undefined;
|
|
419
423
|
this.setActiveOption();
|
|
420
424
|
this.dropdownOpen = true;
|
|
421
425
|
this.scheduledAfterRender.push(this.resizeIframe);
|
|
422
426
|
}
|
|
423
427
|
openDropdownWithActiveElement(activeIndex) {
|
|
428
|
+
if (this.readonly)
|
|
429
|
+
return;
|
|
424
430
|
this.activeIndex = activeIndex;
|
|
425
431
|
this.dropdownOpen = true;
|
|
426
432
|
this.setActiveOption();
|
|
@@ -530,6 +536,8 @@ export class Q2Select {
|
|
|
530
536
|
});
|
|
531
537
|
}
|
|
532
538
|
onHostElementChange(event) {
|
|
539
|
+
if (this.readonly)
|
|
540
|
+
return;
|
|
533
541
|
if (event.target === this.hostElement && !this.hostElement.onchange) {
|
|
534
542
|
if (this.multiple) {
|
|
535
543
|
this.selectedOptions = event.detail.selectedOptions;
|
|
@@ -593,7 +601,7 @@ export class Q2Select {
|
|
|
593
601
|
this.errors.length > 0 &&
|
|
594
602
|
this.errors.map(error => loc(error))) ||
|
|
595
603
|
(this.invalid && ['tecton.element.select.invalid']) ||
|
|
596
|
-
[], disabled: this.disabled, optional: this.optional, hideLabel: this.hideLabel, ariaExpanded: this.dropdownOpen, ariaOwns: "dropdown", ariaHaspopup: "listbox", role: this.searchable ? 'combobox' : null, pseudo: !this.searchable, "test-id": "toggleDropdown", "hide-messages": true, iconRight: "chevron-down", onClick: this.inputClickHandler, onInput: this.inputInputHandler, onKeyDown: this.inputKeydownHandler, onFocus: this.inputFocusHandler, onBlur: this.inputBlurHandler, onChange: this.inputChangeHandler }),
|
|
604
|
+
[], disabled: this.disabled, optional: this.optional, readonly: this.readonly, hideLabel: this.hideLabel, ariaExpanded: this.dropdownOpen, ariaOwns: "dropdown", ariaHaspopup: "listbox", role: this.searchable ? 'combobox' : null, pseudo: !this.searchable, "test-id": "toggleDropdown", "hide-messages": true, iconRight: "chevron-down", onClick: this.inputClickHandler, onInput: this.inputInputHandler, onKeyDown: this.inputKeydownHandler, onFocus: this.inputFocusHandler, onBlur: this.inputBlurHandler, onChange: this.inputChangeHandler }),
|
|
597
605
|
h("div", { class: "custom-display-content", hidden: !this.hasCustomDisplay || !!this.searchText, onClick: this.onCustomDisplayClick },
|
|
598
606
|
h("slot", { name: "q2-select-display" })),
|
|
599
607
|
this.optionsDropdown()));
|
|
@@ -726,6 +734,24 @@ export class Q2Select {
|
|
|
726
734
|
"reflect": true,
|
|
727
735
|
"defaultValue": "false"
|
|
728
736
|
},
|
|
737
|
+
"readonly": {
|
|
738
|
+
"type": "boolean",
|
|
739
|
+
"mutable": false,
|
|
740
|
+
"complexType": {
|
|
741
|
+
"original": "boolean",
|
|
742
|
+
"resolved": "boolean",
|
|
743
|
+
"references": {}
|
|
744
|
+
},
|
|
745
|
+
"required": false,
|
|
746
|
+
"optional": false,
|
|
747
|
+
"docs": {
|
|
748
|
+
"tags": [],
|
|
749
|
+
"text": ""
|
|
750
|
+
},
|
|
751
|
+
"attribute": "readonly",
|
|
752
|
+
"reflect": true,
|
|
753
|
+
"defaultValue": "false"
|
|
754
|
+
},
|
|
729
755
|
"invalid": {
|
|
730
756
|
"type": "boolean",
|
|
731
757
|
"mutable": false,
|
|
@@ -136,9 +136,9 @@ button {
|
|
|
136
136
|
.custom-display-content {
|
|
137
137
|
position: absolute;
|
|
138
138
|
bottom: 0;
|
|
139
|
-
left: calc(var(--tct-scale-2,
|
|
139
|
+
left: calc(var-list(--tct-scale-2, --app-scale-2, 10px) + 1px);
|
|
140
140
|
height: 44px;
|
|
141
|
-
width: calc(100% - 34px - var(--tct-scale-3,
|
|
141
|
+
width: calc(100% - 34px - var-list(--tct-scale-3, --app-scale-3, 15px));
|
|
142
142
|
overflow: hidden;
|
|
143
143
|
cursor: pointer;
|
|
144
144
|
transition: left var(--tct-tween-2, var(--app-tween-1, 0.2s ease));
|
|
@@ -151,11 +151,11 @@ button {
|
|
|
151
151
|
|
|
152
152
|
.is-searchable.is-focused .custom-display-content,
|
|
153
153
|
.is-searchable .custom-display-content:active {
|
|
154
|
-
left: calc(var(--tct-scale-3,
|
|
154
|
+
left: calc(var-list(--tct-scale-3, --app-scale-3, 15px) + 1px);
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
.has-error .custom-display-content {
|
|
158
|
-
width: calc(100% - 68px - var(--tct-scale-3,
|
|
158
|
+
width: calc(100% - 68px - var-list(--tct-scale-3, --app-scale-3, 15px));
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
.dropdown-open .q2-select-dropdown {
|
|
@@ -141,7 +141,7 @@ li {
|
|
|
141
141
|
}
|
|
142
142
|
.step-btn[aria-disabled], .step-btn[aria-disabled] + hr {
|
|
143
143
|
--comp-bullet-font-color: var(--tct-stepper-bullet-inactive-font-color, var(--t-stepper-bullet-inactive-font-color, var(--t-text, #4d4d4d)));
|
|
144
|
-
--comp-bullet-bg: var(--tct-stepper-bullet-inactive-bg, var(--t-stepper-bullet-inactive-bg, var(--t-
|
|
144
|
+
--comp-bullet-bg: var(--tct-stepper-bullet-inactive-bg, var(--t-stepper-bullet-inactive-bg, var(--t-gray-12, #d9d9d9)));
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
.step-bubble {
|
|
@@ -171,9 +171,9 @@ li {
|
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
hr {
|
|
174
|
-
width: calc(var(--comp-step-width) - var(--comp-step-gap) - var(--comp-bullet-gap) - var(--comp-bullet-size));
|
|
175
|
-
top: calc(var(--comp-bullet-size) / 2 + var(--comp-bullet-gap));
|
|
176
|
-
left: calc(var(--comp-step-width) * -0.5 + var(--comp-step-gap) + var(--comp-bullet-gap));
|
|
174
|
+
width: calc( var(--comp-step-width) - var(--comp-step-gap) - var(--comp-bullet-gap) - var(--comp-bullet-size) );
|
|
175
|
+
top: calc(calc(var(--comp-bullet-size) / 2) + var(--comp-bullet-gap));
|
|
176
|
+
left: calc(calc(var(--comp-step-width) * -0.5) + var(--comp-step-gap) + var(--comp-bullet-gap));
|
|
177
177
|
border: 0;
|
|
178
178
|
border-top: 1px solid var(--comp-bullet-bg);
|
|
179
179
|
height: 0;
|
|
@@ -190,11 +190,11 @@ hr {
|
|
|
190
190
|
color: var(--tct-stepper-title-color, var(--t-stepper-title-color, var(--t-text, #4d4d4d)));
|
|
191
191
|
font-size: var(--tct-stepper-title-font-size, var(--t-stepper-title-font-size, var(--app-font-size-small, 12px)));
|
|
192
192
|
height: 1.5em;
|
|
193
|
+
text-overflow: ellipsis;
|
|
194
|
+
overflow: hidden;
|
|
193
195
|
display: -webkit-box;
|
|
194
196
|
-webkit-line-clamp: 2;
|
|
195
197
|
-webkit-box-orient: vertical;
|
|
196
|
-
overflow: hidden;
|
|
197
|
-
text-overflow: ellipsis;
|
|
198
198
|
}
|
|
199
199
|
[aria-selected] .step-label {
|
|
200
200
|
font-weight: var(--tct-stepper-active-font-weight, var(--t-stepper-active-font-weight, 600));
|
|
@@ -206,11 +206,11 @@ hr {
|
|
|
206
206
|
.step-description {
|
|
207
207
|
color: var(--tct-stepper-description-color, var(--t-stepper-description-color, var(--t-textA, rgba(77, 77, 77, 0.77))));
|
|
208
208
|
font-size: var(--tct-stepper-description-font-size, var(--t-stepper-description-font-size, var(--app-font-size-small, 12px)));
|
|
209
|
+
text-overflow: ellipsis;
|
|
210
|
+
overflow: hidden;
|
|
209
211
|
display: -webkit-box;
|
|
210
212
|
-webkit-line-clamp: 4;
|
|
211
213
|
-webkit-box-orient: vertical;
|
|
212
|
-
overflow: hidden;
|
|
213
|
-
text-overflow: ellipsis;
|
|
214
214
|
padding-bottom: 0.2em;
|
|
215
215
|
}
|
|
216
216
|
|
|
@@ -166,6 +166,9 @@ export class Q2TabContainer {
|
|
|
166
166
|
overrideFocus(this.hostElement);
|
|
167
167
|
const index = this.tabs.findIndex(el => el.value === this.value);
|
|
168
168
|
this.scheduledAfterRender.push(() => {
|
|
169
|
+
const hasTabs = this.tabs.length > 0;
|
|
170
|
+
if (!hasTabs)
|
|
171
|
+
return;
|
|
169
172
|
const tab = this.moveFocus(Math.max(index, 0));
|
|
170
173
|
this.value = tab.dataset.value;
|
|
171
174
|
tab.blur();
|
|
@@ -174,6 +177,7 @@ export class Q2TabContainer {
|
|
|
174
177
|
disconnectedCallback() {
|
|
175
178
|
this.resizeObserver.disconnect();
|
|
176
179
|
this.mutationObserver.disconnect();
|
|
180
|
+
this.resizeObserver = null;
|
|
177
181
|
this.mutationObserver = null;
|
|
178
182
|
}
|
|
179
183
|
///////// Observers /////////
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { Component, State, Prop, h, Listen, Element, Fragment, Event } from '@stencil/core';
|
|
2
|
+
import { isEventFromElement, loc, overrideFocus } from 'src/utils';
|
|
3
|
+
export class Q2Tag {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.role = 'listitem';
|
|
6
|
+
/// Getters ///
|
|
7
|
+
/// Helpers
|
|
8
|
+
this.determineHasOptions = () => {
|
|
9
|
+
const hasOptions = !!this.hostElement.querySelectorAll('q2-option').length;
|
|
10
|
+
this.hasOptions = hasOptions;
|
|
11
|
+
};
|
|
12
|
+
/// Event Handlers ///
|
|
13
|
+
this.handleChange = event => {
|
|
14
|
+
event.stopPropagation();
|
|
15
|
+
if (!this.hasOptions)
|
|
16
|
+
return;
|
|
17
|
+
const { value } = event.detail;
|
|
18
|
+
this.click.emit({ value: value });
|
|
19
|
+
};
|
|
20
|
+
this.handleClick = (event) => {
|
|
21
|
+
event.stopPropagation();
|
|
22
|
+
this.optionList.toggle();
|
|
23
|
+
};
|
|
24
|
+
this.handleKeydown = (event) => {
|
|
25
|
+
this.optionList.handleExternalKeydown(event);
|
|
26
|
+
};
|
|
27
|
+
this.handleButtonFocusout = (event) => {
|
|
28
|
+
var _a;
|
|
29
|
+
const relatedTarget = event.relatedTarget;
|
|
30
|
+
if ((_a = (relatedTarget === null || relatedTarget === void 0 ? void 0 : relatedTarget.tagName) === 'Q2-OPTION') !== null && _a !== void 0 ? _a : false)
|
|
31
|
+
return;
|
|
32
|
+
this.open = false;
|
|
33
|
+
};
|
|
34
|
+
this.handleOptionListFocusout = (event) => {
|
|
35
|
+
const relatedTarget = event.relatedTarget;
|
|
36
|
+
if (relatedTarget && !(event.relatedTarget instanceof HTMLElement))
|
|
37
|
+
return;
|
|
38
|
+
if (relatedTarget && relatedTarget.closest('.btn-wrapper'))
|
|
39
|
+
return;
|
|
40
|
+
this.open = false;
|
|
41
|
+
};
|
|
42
|
+
this.handleWrapperClick = () => {
|
|
43
|
+
this.dropdownBtn.focus();
|
|
44
|
+
this.dropdownBtn.click();
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
/// LifeCycle Hooks ///
|
|
48
|
+
componentWillLoad() {
|
|
49
|
+
const observer = new MutationObserver(this.determineHasOptions);
|
|
50
|
+
observer.observe(this.hostElement, { childList: true, attributes: true });
|
|
51
|
+
this.mutationObserver = observer;
|
|
52
|
+
}
|
|
53
|
+
componentDidLoad() {
|
|
54
|
+
overrideFocus(this.hostElement);
|
|
55
|
+
}
|
|
56
|
+
disconnectedCallback() {
|
|
57
|
+
this.mutationObserver.disconnect();
|
|
58
|
+
this.mutationObserver = null;
|
|
59
|
+
}
|
|
60
|
+
/// Listeners ///
|
|
61
|
+
delegateFocus(event) {
|
|
62
|
+
if (!isEventFromElement(event, this.hostElement))
|
|
63
|
+
return;
|
|
64
|
+
if (!this.hasOptions)
|
|
65
|
+
return;
|
|
66
|
+
this.dropdownBtn.focus();
|
|
67
|
+
}
|
|
68
|
+
optionListStateEvent({ detail: { open } }) {
|
|
69
|
+
this.open = open;
|
|
70
|
+
if (!open)
|
|
71
|
+
this.dropdownBtn.focus();
|
|
72
|
+
}
|
|
73
|
+
/// DOM ///
|
|
74
|
+
render() {
|
|
75
|
+
const { hasOptions, open } = this;
|
|
76
|
+
let wrapperClassNames = ['tag-wrapper'];
|
|
77
|
+
if (hasOptions)
|
|
78
|
+
wrapperClassNames.push('has-options');
|
|
79
|
+
return (h(Fragment, null,
|
|
80
|
+
h("div", { class: wrapperClassNames.join(' '), onClick: e => e.stopPropagation() },
|
|
81
|
+
h("div", { class: "tag" }, this.label),
|
|
82
|
+
this.hasOptions && (h("div", { class: "btn-wrapper", onClick: this.handleWrapperClick },
|
|
83
|
+
h("button", { ref: el => (this.dropdownBtn = el), "test-id": "btn-control", onClick: this.handleClick, onKeyDown: this.handleKeydown, onFocusout: this.handleButtonFocusout, "aria-controls": "option-list", "aria-haspopup": "true", "aria-expanded": open ? 'true' : 'false', "aria-label": loc('tecton.element.tag.viewOptions') },
|
|
84
|
+
h("q2-icon", { type: "options" }))))),
|
|
85
|
+
this.hasOptions && (h("q2-option-list", { id: "option-list", ref: el => (this.optionList = el), open: this.open, onChange: this.handleChange, onFocusout: this.handleOptionListFocusout, align: "right", type: "menu", "no-select": true },
|
|
86
|
+
h("slot", null)))));
|
|
87
|
+
}
|
|
88
|
+
static get is() { return "q2-tag"; }
|
|
89
|
+
static get encapsulation() { return "shadow"; }
|
|
90
|
+
static get originalStyleUrls() { return {
|
|
91
|
+
"$": ["styles.scss"]
|
|
92
|
+
}; }
|
|
93
|
+
static get styleUrls() { return {
|
|
94
|
+
"$": ["styles.css"]
|
|
95
|
+
}; }
|
|
96
|
+
static get properties() { return {
|
|
97
|
+
"open": {
|
|
98
|
+
"type": "boolean",
|
|
99
|
+
"mutable": true,
|
|
100
|
+
"complexType": {
|
|
101
|
+
"original": "boolean",
|
|
102
|
+
"resolved": "boolean",
|
|
103
|
+
"references": {}
|
|
104
|
+
},
|
|
105
|
+
"required": false,
|
|
106
|
+
"optional": false,
|
|
107
|
+
"docs": {
|
|
108
|
+
"tags": [],
|
|
109
|
+
"text": ""
|
|
110
|
+
},
|
|
111
|
+
"attribute": "open",
|
|
112
|
+
"reflect": true
|
|
113
|
+
},
|
|
114
|
+
"role": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"mutable": false,
|
|
117
|
+
"complexType": {
|
|
118
|
+
"original": "string",
|
|
119
|
+
"resolved": "string",
|
|
120
|
+
"references": {}
|
|
121
|
+
},
|
|
122
|
+
"required": false,
|
|
123
|
+
"optional": false,
|
|
124
|
+
"docs": {
|
|
125
|
+
"tags": [],
|
|
126
|
+
"text": ""
|
|
127
|
+
},
|
|
128
|
+
"attribute": "role",
|
|
129
|
+
"reflect": true,
|
|
130
|
+
"defaultValue": "'listitem'"
|
|
131
|
+
},
|
|
132
|
+
"label": {
|
|
133
|
+
"type": "string",
|
|
134
|
+
"mutable": false,
|
|
135
|
+
"complexType": {
|
|
136
|
+
"original": "string",
|
|
137
|
+
"resolved": "string",
|
|
138
|
+
"references": {}
|
|
139
|
+
},
|
|
140
|
+
"required": false,
|
|
141
|
+
"optional": false,
|
|
142
|
+
"docs": {
|
|
143
|
+
"tags": [],
|
|
144
|
+
"text": ""
|
|
145
|
+
},
|
|
146
|
+
"attribute": "label",
|
|
147
|
+
"reflect": true
|
|
148
|
+
},
|
|
149
|
+
"theme": {
|
|
150
|
+
"type": "string",
|
|
151
|
+
"mutable": false,
|
|
152
|
+
"complexType": {
|
|
153
|
+
"original": "'primary' | 'secondary' | 'tertiary'",
|
|
154
|
+
"resolved": "\"primary\" | \"secondary\" | \"tertiary\"",
|
|
155
|
+
"references": {}
|
|
156
|
+
},
|
|
157
|
+
"required": false,
|
|
158
|
+
"optional": false,
|
|
159
|
+
"docs": {
|
|
160
|
+
"tags": [],
|
|
161
|
+
"text": ""
|
|
162
|
+
},
|
|
163
|
+
"attribute": "theme",
|
|
164
|
+
"reflect": true
|
|
165
|
+
}
|
|
166
|
+
}; }
|
|
167
|
+
static get states() { return {
|
|
168
|
+
"hasOptions": {}
|
|
169
|
+
}; }
|
|
170
|
+
static get events() { return [{
|
|
171
|
+
"method": "click",
|
|
172
|
+
"name": "click",
|
|
173
|
+
"bubbles": true,
|
|
174
|
+
"cancelable": true,
|
|
175
|
+
"composed": true,
|
|
176
|
+
"docs": {
|
|
177
|
+
"tags": [],
|
|
178
|
+
"text": ""
|
|
179
|
+
},
|
|
180
|
+
"complexType": {
|
|
181
|
+
"original": "{ value: string }",
|
|
182
|
+
"resolved": "{ value: string; }",
|
|
183
|
+
"references": {}
|
|
184
|
+
}
|
|
185
|
+
}]; }
|
|
186
|
+
static get elementRef() { return "hostElement"; }
|
|
187
|
+
static get listeners() { return [{
|
|
188
|
+
"name": "focus",
|
|
189
|
+
"method": "delegateFocus",
|
|
190
|
+
"target": undefined,
|
|
191
|
+
"capture": false,
|
|
192
|
+
"passive": false
|
|
193
|
+
}, {
|
|
194
|
+
"name": "optionListState",
|
|
195
|
+
"method": "optionListStateEvent",
|
|
196
|
+
"target": undefined,
|
|
197
|
+
"capture": false,
|
|
198
|
+
"passive": false
|
|
199
|
+
}]; }
|
|
200
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
* {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
*:active {
|
|
6
|
+
outline: none;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
*:focus {
|
|
10
|
+
outline: none;
|
|
11
|
+
box-shadow: var(--const-global-focus);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host {
|
|
15
|
+
box-shadow: none !important;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
::-moz-focus-inner {
|
|
19
|
+
border: none;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
input,
|
|
23
|
+
textarea,
|
|
24
|
+
button {
|
|
25
|
+
font-family: inherit;
|
|
26
|
+
font-size: inherit;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host(.sr),
|
|
30
|
+
:host(.sr) button {
|
|
31
|
+
border: 0;
|
|
32
|
+
clip: rect(0 0 0 0);
|
|
33
|
+
height: 1px;
|
|
34
|
+
margin: -1px;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
padding: 0;
|
|
37
|
+
position: absolute;
|
|
38
|
+
width: 1px;
|
|
39
|
+
white-space: nowrap;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.sr,
|
|
43
|
+
.sr button {
|
|
44
|
+
border: 0;
|
|
45
|
+
clip: rect(0 0 0 0);
|
|
46
|
+
height: 1px;
|
|
47
|
+
margin: -1px;
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
padding: 0;
|
|
50
|
+
position: absolute;
|
|
51
|
+
width: 1px;
|
|
52
|
+
white-space: nowrap;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.hidden {
|
|
56
|
+
display: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:host([hidden]) {
|
|
60
|
+
display: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.invisible {
|
|
64
|
+
visibility: hidden;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:host {
|
|
68
|
+
display: inline-block;
|
|
69
|
+
position: relative;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:host(:not(:last-child)) {
|
|
73
|
+
margin-inline-end: var(--tct-tag-margin, var(--t-tag-margin, var(--app-scale-2x, 10px)));
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.tag-wrapper {
|
|
77
|
+
--comp-tag-btn-size: var(--tct-tag-btn-size, var(--t-tag-btn-size, var(--app-scale-6x, 30px)));
|
|
78
|
+
--comp-tag-background: var(--tct-tag-background, var(--t-tag-background, var(--t-gray-13, #e6e6e6)));
|
|
79
|
+
--comp-tag-color: var(--tct-tag-color, var(--t-tag-color, var(--t-gray-3, #262626)));
|
|
80
|
+
position: relative;
|
|
81
|
+
}
|
|
82
|
+
:host([theme=primary]) .tag-wrapper {
|
|
83
|
+
--comp-tag-background: var(--t-primary-l5, #61c4ff);
|
|
84
|
+
--comp-tag-color: var(--t-primary-text, #ffffff);
|
|
85
|
+
}
|
|
86
|
+
:host([theme=secondary]) .tag-wrapper {
|
|
87
|
+
--comp-tag-background: var(--t-secondary-l5, #61c4ff);
|
|
88
|
+
--comp-tag-color: var(--t-secondary-text, #000000);
|
|
89
|
+
}
|
|
90
|
+
:host([theme=tertiary]) .tag-wrapper {
|
|
91
|
+
--comp-tag-background: var(--t-tertiary-l5, #61c4ff);
|
|
92
|
+
--comp-tag-color: var(--t-tertiary-text, #000000);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.tag {
|
|
96
|
+
height: var(--tct-tag-height, var(--t-tag-height, var(--app-scale-6x, 30px)));
|
|
97
|
+
line-height: var(--tct-tag-height, var(--t-tag-height, var(--app-scale-6x, 30px)));
|
|
98
|
+
padding-inline: var(--tct-tag-padding-inline, var(--t-tag-padding-inline, var(--app-scale-3x, 15px)));
|
|
99
|
+
background: var(--comp-tag-background);
|
|
100
|
+
color: var(--comp-tag-color);
|
|
101
|
+
border-radius: var(--tct-tag-border-radius, var(--t-tag-border-radius, var(--app-border-radius-1, 3px)));
|
|
102
|
+
}
|
|
103
|
+
.has-options .tag {
|
|
104
|
+
padding-right: var(--comp-tag-btn-size);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.btn-wrapper {
|
|
108
|
+
--comp-tag-clickable-size: var(--tct-tag-clickable-size, var(--t-tag-clickable-size, 44px));
|
|
109
|
+
--comp-tag-btn-offset: calc(
|
|
110
|
+
calc(calc(var(--comp-tag-clickable-size) - var(--comp-tag-btn-size)) / 2) * -1
|
|
111
|
+
);
|
|
112
|
+
height: var(--comp-tag-clickable-size);
|
|
113
|
+
width: var(--comp-tag-clickable-size);
|
|
114
|
+
display: flex;
|
|
115
|
+
align-items: center;
|
|
116
|
+
justify-content: center;
|
|
117
|
+
position: absolute;
|
|
118
|
+
right: var(--comp-tag-btn-offset);
|
|
119
|
+
top: var(--comp-tag-btn-offset);
|
|
120
|
+
cursor: pointer;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
button {
|
|
124
|
+
width: var(--comp-tag-btn-size);
|
|
125
|
+
height: var(--comp-tag-btn-size);
|
|
126
|
+
stroke: var(--comp-tag-color);
|
|
127
|
+
--tct-icon-stroke-primary: var(--comp-tag-color);
|
|
128
|
+
cursor: pointer;
|
|
129
|
+
border: 0;
|
|
130
|
+
background: transparent;
|
|
131
|
+
display: flex;
|
|
132
|
+
align-items: center;
|
|
133
|
+
justify-content: center;
|
|
134
|
+
padding: 0;
|
|
135
|
+
--tct-icon-size: 18px;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
q2-option-list {
|
|
139
|
+
position: absolute;
|
|
140
|
+
right: 0;
|
|
141
|
+
}
|