q2-tecton-elements 1.16.3 → 1.17.1
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-avatar.cjs.entry.js +1 -1
- package/dist/cjs/q2-badge_2.cjs.entry.js +9 -3
- package/dist/cjs/q2-btn_2.cjs.entry.js +2 -2
- package/dist/cjs/q2-calendar.cjs.entry.js +1041 -1131
- package/dist/cjs/q2-card.cjs.entry.js +1 -1
- 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-chart-donut.cjs.entry.js +21 -3
- package/dist/cjs/q2-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/q2-checkbox.cjs.entry.js +1 -1
- 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-icon.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/q2-option.cjs.entry.js +1 -1
- package/dist/cjs/q2-pagination.cjs.entry.js +1 -1
- package/dist/cjs/q2-pill.cjs.entry.js +1 -1
- package/dist/cjs/q2-radio-group.cjs.entry.js +2 -2
- package/dist/cjs/q2-radio.cjs.entry.js +1 -1
- package/dist/cjs/q2-section.cjs.entry.js +54 -80
- package/dist/cjs/q2-select.cjs.entry.js +1 -1
- package/dist/cjs/q2-stepper-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-stepper-vertical.cjs.entry.js +1 -1
- package/dist/cjs/q2-stepper.cjs.entry.js +1 -1
- package/dist/cjs/q2-tab-container.cjs.entry.js +1 -1
- package/dist/cjs/q2-tab-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-tag.cjs.entry.js +1 -1
- package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
- package/dist/cjs/q2-textarea.cjs.entry.js +1 -1
- package/dist/cjs/q2-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/tecton-tab-pane.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/q2-avatar/styles.css +1 -0
- package/dist/collection/components/q2-badge/styles.css +1 -0
- package/dist/collection/components/q2-btn/styles.css +1 -0
- package/dist/collection/components/q2-calendar/helpers.js +3 -3
- package/dist/collection/components/q2-calendar/index.js +11 -4
- package/dist/collection/components/q2-calendar/styles.css +1 -0
- package/dist/collection/components/q2-card/styles.css +1 -0
- package/dist/collection/components/q2-carousel/styles.css +1 -0
- package/dist/collection/components/q2-carousel-pane/styles.css +1 -0
- package/dist/collection/components/q2-chart-donut/index.js +47 -5
- package/dist/collection/components/q2-chart-donut/styles.css +1 -0
- package/dist/collection/components/q2-checkbox/styles.css +1 -0
- package/dist/collection/components/q2-checkbox-group/styles.css +1 -0
- package/dist/collection/components/q2-dropdown/styles.css +1 -0
- package/dist/collection/components/q2-dropdown-item/styles.css +1 -0
- package/dist/collection/components/q2-editable-field/styles.css +1 -0
- package/dist/collection/components/q2-icon/styles.css +1 -0
- package/dist/collection/components/q2-input/index.js +7 -1
- package/dist/collection/components/q2-input/styles.css +1 -0
- package/dist/collection/components/q2-loading/styles.css +1 -0
- package/dist/collection/components/q2-loc/styles.css +1 -0
- package/dist/collection/components/q2-message/styles.css +1 -0
- package/dist/collection/components/q2-optgroup/styles.css +1 -0
- package/dist/collection/components/q2-option/styles.css +1 -0
- package/dist/collection/components/q2-option-list/styles.css +1 -0
- package/dist/collection/components/q2-pagination/styles.css +1 -0
- package/dist/collection/components/q2-pill/styles.css +1 -0
- package/dist/collection/components/q2-radio/styles.css +1 -0
- package/dist/collection/components/q2-radio-group/index.js +1 -1
- package/dist/collection/components/q2-radio-group/styles.css +4 -0
- package/dist/collection/components/q2-section/index.js +63 -89
- package/dist/collection/components/q2-section/styles.css +39 -55
- package/dist/collection/components/q2-select/styles.css +1 -0
- package/dist/collection/components/q2-stepper/styles.css +1 -0
- package/dist/collection/components/q2-stepper-pane/styles.css +1 -0
- package/dist/collection/components/q2-stepper-vertical/styles.css +1 -0
- package/dist/collection/components/q2-tab-container/styles.css +1 -0
- package/dist/collection/components/q2-tab-pane/styles.css +1 -0
- package/dist/collection/components/q2-tag/styles.css +1 -0
- package/dist/collection/components/q2-textarea/styles.css +1 -0
- package/dist/collection/components/q2-tooltip/styles.css +1 -0
- package/dist/collection/components/tecton-tab-pane/styles.css +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/q2-avatar.entry.js +1 -1
- package/dist/esm/q2-badge_2.entry.js +9 -3
- package/dist/esm/q2-btn_2.entry.js +2 -2
- package/dist/esm/q2-calendar.entry.js +1041 -1131
- package/dist/esm/q2-card.entry.js +1 -1
- package/dist/esm/q2-carousel-pane.entry.js +1 -1
- package/dist/esm/q2-carousel.entry.js +1 -1
- package/dist/esm/q2-chart-donut.entry.js +21 -3
- package/dist/esm/q2-checkbox-group.entry.js +1 -1
- package/dist/esm/q2-checkbox.entry.js +1 -1
- 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-icon.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/q2-option.entry.js +1 -1
- package/dist/esm/q2-pagination.entry.js +1 -1
- package/dist/esm/q2-pill.entry.js +1 -1
- package/dist/esm/q2-radio-group.entry.js +2 -2
- package/dist/esm/q2-radio.entry.js +1 -1
- package/dist/esm/q2-section.entry.js +55 -81
- package/dist/esm/q2-select.entry.js +1 -1
- package/dist/esm/q2-stepper-pane.entry.js +1 -1
- package/dist/esm/q2-stepper-vertical.entry.js +1 -1
- package/dist/esm/q2-stepper.entry.js +1 -1
- package/dist/esm/q2-tab-container.entry.js +1 -1
- package/dist/esm/q2-tab-pane.entry.js +1 -1
- package/dist/esm/q2-tag.entry.js +1 -1
- package/dist/esm/q2-tecton-elements.js +1 -1
- package/dist/esm/q2-textarea.entry.js +1 -1
- package/dist/esm/q2-tooltip.entry.js +1 -1
- package/dist/esm/tecton-tab-pane.entry.js +1 -1
- package/dist/q2-tecton-elements/p-06865cf5.entry.js +1 -0
- package/dist/q2-tecton-elements/p-0d849ed4.entry.js +1 -0
- package/dist/q2-tecton-elements/p-2a217895.entry.js +1 -0
- package/dist/q2-tecton-elements/p-2b94ae62.entry.js +1 -0
- package/dist/q2-tecton-elements/p-2faed36b.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-f617c54a.entry.js → p-30a4fdfb.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-30f81b22.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-677faf2c.entry.js → p-31070ab8.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-318758d4.entry.js +1 -0
- package/dist/q2-tecton-elements/p-41c22a16.entry.js +1 -0
- package/dist/q2-tecton-elements/p-445e7c45.entry.js +1 -0
- package/dist/q2-tecton-elements/p-44bdaf52.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-60a7a11e.entry.js → p-4c53713d.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-b6c45ef6.entry.js → p-4da9b6b6.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-5acb7ec6.entry.js +1 -0
- package/dist/q2-tecton-elements/p-64605d17.entry.js +1 -0
- package/dist/q2-tecton-elements/p-64ca8c59.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-0e9c7220.entry.js → p-654fcd6b.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-b7dc4e93.entry.js → p-661c2092.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-732dafd0.entry.js +1 -0
- package/dist/q2-tecton-elements/p-815c8a7d.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-822d3d6c.entry.js → p-824a1d7c.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-4b48fde6.entry.js → p-8543a0e1.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-916fd90b.entry.js +1 -0
- package/dist/q2-tecton-elements/p-94b3c534.entry.js +1 -0
- package/dist/q2-tecton-elements/p-a45c6b65.entry.js +1 -0
- package/dist/q2-tecton-elements/p-a659d112.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-879aa7ac.entry.js → p-b4b8f85c.entry.js} +3 -3
- package/dist/q2-tecton-elements/{p-92e9f290.entry.js → p-b595b415.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-5270b0ff.entry.js → p-cde0cdff.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-dd3f64a7.entry.js → p-d3e4cc5d.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-d781e2d9.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-dd792081.entry.js → p-d8d9e8eb.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-fbf23146.entry.js +1 -0
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
- package/dist/test/helpers.js +2 -2
- package/dist/types/components/q2-chart-donut/index.d.ts +12 -21
- package/dist/types/components/q2-input/index.d.ts +1 -0
- package/dist/types/components/q2-section/index.d.ts +11 -18
- package/dist/types/components.d.ts +5 -2
- package/dist/types/workspace/workspace/{tecton-production_release_1.16.x → tecton-production_release_1.17.x}/packages/q2-tecton-elements/.stencil/test/elements/q2-tag-test.d.ts +0 -0
- package/dist/types/workspace/workspace/{tecton-production_release_1.16.x → tecton-production_release_1.17.x}/packages/q2-tecton-elements/.stencil/test/helpers.d.ts +0 -0
- package/package.json +2 -2
- package/dist/q2-tecton-elements/p-0a8b8d14.entry.js +0 -1
- package/dist/q2-tecton-elements/p-0b5fbbe8.entry.js +0 -1
- package/dist/q2-tecton-elements/p-0d00030f.entry.js +0 -1
- package/dist/q2-tecton-elements/p-1b0f826e.entry.js +0 -1
- package/dist/q2-tecton-elements/p-1c430c2a.entry.js +0 -1
- package/dist/q2-tecton-elements/p-2d2008fd.entry.js +0 -1
- package/dist/q2-tecton-elements/p-34f99830.entry.js +0 -1
- package/dist/q2-tecton-elements/p-35bde69c.entry.js +0 -1
- package/dist/q2-tecton-elements/p-376988ef.entry.js +0 -1
- package/dist/q2-tecton-elements/p-49612230.entry.js +0 -1
- package/dist/q2-tecton-elements/p-4ec2cb69.entry.js +0 -1
- package/dist/q2-tecton-elements/p-5e990654.entry.js +0 -1
- package/dist/q2-tecton-elements/p-6e10db80.entry.js +0 -1
- package/dist/q2-tecton-elements/p-6f884c60.entry.js +0 -1
- package/dist/q2-tecton-elements/p-8584c6bc.entry.js +0 -1
- package/dist/q2-tecton-elements/p-87766054.entry.js +0 -1
- package/dist/q2-tecton-elements/p-c59d601e.entry.js +0 -1
- package/dist/q2-tecton-elements/p-d040bf99.entry.js +0 -1
- package/dist/q2-tecton-elements/p-d79386c6.entry.js +0 -1
- package/dist/q2-tecton-elements/p-ef2f68b2.entry.js +0 -1
- package/dist/q2-tecton-elements/p-f66adef0.entry.js +0 -1
|
@@ -1,39 +1,36 @@
|
|
|
1
1
|
import { Component, Prop, Element, Listen, State, Watch, h, Event, } from '@stencil/core';
|
|
2
|
-
import {
|
|
2
|
+
import { isEventFromElement, loc, nextPaint, overrideFocus, resizeIframe } from 'src/utils';
|
|
3
3
|
export class Q2Section {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.hasYieldedHeader = false;
|
|
6
|
-
this.
|
|
7
|
-
this.
|
|
8
|
-
|
|
9
|
-
this.contentId = `q2-section-content-${this.guid}`;
|
|
10
|
-
///// Actions ////////
|
|
6
|
+
this.titleId = 'title';
|
|
7
|
+
this.contentId = 'content';
|
|
8
|
+
/// Event Handlers ///
|
|
11
9
|
this.onHeaderClick = () => {
|
|
12
|
-
this.
|
|
13
|
-
this.
|
|
14
|
-
|
|
15
|
-
});
|
|
10
|
+
this.change.emit({
|
|
11
|
+
expanded: !this.expanded,
|
|
12
|
+
});
|
|
16
13
|
};
|
|
17
|
-
this.
|
|
18
|
-
|
|
19
|
-
this.animating = false;
|
|
20
|
-
this.endAnimation();
|
|
21
|
-
this.animating = true;
|
|
22
|
-
this.resizerFn = setInterval(this.resizeIframe, 5);
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
this.onAnimationEnd = () => {
|
|
26
|
-
const targetHeight = this.expanded ? 'auto' : '0px';
|
|
27
|
-
this.setContentWrapperHeight(targetHeight);
|
|
28
|
-
this.animating = false;
|
|
14
|
+
this.onTransitionEnd = () => {
|
|
15
|
+
this.contentHeight = this.currentHeight;
|
|
29
16
|
setTimeout(() => {
|
|
30
17
|
// This gives enough time for all values to get passed over
|
|
31
18
|
// Previously, the interval was never cleared and the fn was called indefinitely then filtered
|
|
32
19
|
// Will revisit in TCT-599
|
|
33
|
-
this.
|
|
20
|
+
this.clearResizeInterval();
|
|
34
21
|
}, 1000);
|
|
35
22
|
};
|
|
36
|
-
this.
|
|
23
|
+
this.onHeaderSlotChange = () => {
|
|
24
|
+
var _a, _b;
|
|
25
|
+
const hasSlotContent = this.headerSlot
|
|
26
|
+
? this.headerSlot.assignedNodes().length > 0
|
|
27
|
+
: (_b = (_a = this.headerSlotWrapper) === null || _a === void 0 ? void 0 : _a.children.length) !== null && _b !== void 0 ? _b : 0 > 0;
|
|
28
|
+
if (this.hasYieldedHeader !== hasSlotContent) {
|
|
29
|
+
this.hasYieldedHeader = !!hasSlotContent;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
/// Helpers ///
|
|
33
|
+
this.clearResizeInterval = () => {
|
|
37
34
|
this.resizerFn && clearInterval(this.resizerFn);
|
|
38
35
|
};
|
|
39
36
|
this.addHeaderSlotListener = () => {
|
|
@@ -52,35 +49,23 @@ export class Q2Section {
|
|
|
52
49
|
}
|
|
53
50
|
this.headerSlotMutationObserver.disconnect();
|
|
54
51
|
};
|
|
55
|
-
this.onHeaderSlotChange = () => {
|
|
56
|
-
var _a, _b;
|
|
57
|
-
const hasSlotContent = this.headerSlot
|
|
58
|
-
? this.headerSlot.assignedNodes().length > 0
|
|
59
|
-
: (_b = (_a = this.headerSlotWrapper) === null || _a === void 0 ? void 0 : _a.children.length) !== null && _b !== void 0 ? _b : 0 > 0;
|
|
60
|
-
if (this.hasYieldedHeader !== hasSlotContent) {
|
|
61
|
-
this.hasYieldedHeader = !!hasSlotContent;
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
52
|
this.addContentSlotListener = () => {
|
|
65
53
|
if (this.contentSlot) {
|
|
66
|
-
this.contentSlot.addEventListener('slotchange',
|
|
54
|
+
this.contentSlot.addEventListener('slotchange', resizeIframe);
|
|
67
55
|
return;
|
|
68
56
|
}
|
|
69
|
-
const observer = new MutationObserver(
|
|
57
|
+
const observer = new MutationObserver(resizeIframe);
|
|
70
58
|
observer.observe(this.contentContainer, { childList: true, subtree: true });
|
|
71
59
|
this.contentSlotMutationObserver = observer;
|
|
72
60
|
};
|
|
73
61
|
this.removeContentSlotListener = () => {
|
|
74
62
|
if (this.contentSlot) {
|
|
75
|
-
this.contentSlot.removeEventListener('slotchange',
|
|
63
|
+
this.contentSlot.removeEventListener('slotchange', resizeIframe);
|
|
76
64
|
return;
|
|
77
65
|
}
|
|
78
66
|
this.contentSlotMutationObserver.disconnect();
|
|
79
67
|
};
|
|
80
68
|
}
|
|
81
|
-
resizeIframe() {
|
|
82
|
-
return window.TectonElements && window.TectonElements.resizeIframe && window.TectonElements.resizeIframe();
|
|
83
|
-
}
|
|
84
69
|
componentWillLoad() {
|
|
85
70
|
this.onHeaderSlotChange();
|
|
86
71
|
}
|
|
@@ -93,34 +78,7 @@ export class Q2Section {
|
|
|
93
78
|
this.removeHeaderSlotListener();
|
|
94
79
|
this.removeContentSlotListener();
|
|
95
80
|
}
|
|
96
|
-
|
|
97
|
-
const hasHeader = !!this.label || this.hasYieldedHeader;
|
|
98
|
-
const collapsibleClass = this.collapsible ? ' collapsible' : '';
|
|
99
|
-
const stateClass = this.expanded || !this.collapsible ? ' expanded' : ' collapsed';
|
|
100
|
-
const headerClass = hasHeader ? ' has-header' : '';
|
|
101
|
-
const animateClass = this.animating ? ' animate' : '';
|
|
102
|
-
return `q2-section-wrapper${collapsibleClass}${stateClass}${headerClass}${animateClass}`;
|
|
103
|
-
}
|
|
104
|
-
get slottedContentHeight() {
|
|
105
|
-
const content = this.contentContainer;
|
|
106
|
-
return `${content.offsetHeight || 0}px`;
|
|
107
|
-
}
|
|
108
|
-
get contentWrapper() {
|
|
109
|
-
return this.hostElement.shadowRoot.querySelector('.q2-section-content-wrapper');
|
|
110
|
-
}
|
|
111
|
-
get contentContainer() {
|
|
112
|
-
return this.hostElement.shadowRoot.querySelector('.q2-section-content');
|
|
113
|
-
}
|
|
114
|
-
get headerSlotWrapper() {
|
|
115
|
-
return this.hostElement.shadowRoot.querySelector('.q2-section-header-slot-wrapper');
|
|
116
|
-
}
|
|
117
|
-
get headerSlot() {
|
|
118
|
-
return this.hostElement.shadowRoot.querySelector('slot[name="q2-section-header"]');
|
|
119
|
-
}
|
|
120
|
-
get contentSlot() {
|
|
121
|
-
return this.hostElement.shadowRoot.querySelector('.q2-section-content slot');
|
|
122
|
-
}
|
|
123
|
-
//////// Host Element Events ////////
|
|
81
|
+
/// Listeners ///
|
|
124
82
|
defaultChangeHandler(event) {
|
|
125
83
|
if (event.target === this.hostElement && !this.hostElement.onchange && !!event.detail) {
|
|
126
84
|
this.expanded = event.detail.expanded;
|
|
@@ -131,36 +89,52 @@ export class Q2Section {
|
|
|
131
89
|
return;
|
|
132
90
|
this.contentContainer.focus();
|
|
133
91
|
}
|
|
134
|
-
|
|
135
|
-
expandedObserver() {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
this.
|
|
92
|
+
/// Watchers ///
|
|
93
|
+
async expandedObserver(expanded) {
|
|
94
|
+
this.clearResizeInterval();
|
|
95
|
+
this.resizerFn = setInterval(resizeIframe, 5);
|
|
96
|
+
if (expanded) {
|
|
97
|
+
this.contentHeight = this.currentHeight;
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
this.contentHeight = this.contentContainerHeight;
|
|
101
|
+
await nextPaint(() => {
|
|
102
|
+
this.contentHeight = this.currentHeight;
|
|
103
|
+
});
|
|
140
104
|
}
|
|
141
|
-
this.setContentWrapperHeight(this.slottedContentHeight);
|
|
142
105
|
}
|
|
143
106
|
collapsibleObserver() {
|
|
144
|
-
this.
|
|
107
|
+
this.contentHeight = this.currentHeight;
|
|
145
108
|
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
109
|
+
/// Getters ///
|
|
110
|
+
get currentHeight() {
|
|
111
|
+
const { collapsible, expanded } = this;
|
|
112
|
+
if (!collapsible) {
|
|
113
|
+
return null;
|
|
114
|
+
}
|
|
115
|
+
else if (expanded) {
|
|
116
|
+
return this.contentContainerHeight;
|
|
150
117
|
}
|
|
118
|
+
else {
|
|
119
|
+
return '0';
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
get contentContainerHeight() {
|
|
123
|
+
return `${this.contentContainer.offsetHeight || 0}px`;
|
|
151
124
|
}
|
|
152
125
|
render() {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
126
|
+
const hasHeader = this.label || this.hasYieldedHeader;
|
|
127
|
+
return (h("section", { class: "wrapper" },
|
|
128
|
+
h("header", { class: hasHeader ? 'has-header' : '' },
|
|
129
|
+
h("div", { class: "header-content", id: this.titleId, onClick: this.collapsible && this.onHeaderClick },
|
|
156
130
|
!this.hasYieldedHeader && !!this.label ? h("h2", { class: "title" }, loc(this.label)) : '',
|
|
157
|
-
h("div", { class: "
|
|
158
|
-
h("slot", { name: "q2-section-header" }))),
|
|
159
|
-
this.collapsible && !this.noCollapseIcon
|
|
160
|
-
h("q2-icon", { type: "chevron-up"
|
|
161
|
-
h("div", { class: "
|
|
162
|
-
h("div", { class: "
|
|
163
|
-
h("slot",
|
|
131
|
+
h("div", { ref: el => (this.headerSlotWrapper = el), class: "header-slot-wrapper" },
|
|
132
|
+
h("slot", { ref: (el) => (this.headerSlot = el), name: "q2-section-header" }))),
|
|
133
|
+
this.collapsible && !this.noCollapseIcon && (h("q2-btn", { label: this.label, ariaExpanded: `${!!this.expanded}`, ariaControls: this.contentId, "test-id": "toggleButton", "hide-label": true, onClick: this.onHeaderClick },
|
|
134
|
+
h("q2-icon", { type: "chevron-up" })))),
|
|
135
|
+
h("div", { class: "content-wrapper", id: this.contentId, "aria-labelledby": this.titleId, role: "region", onTransitionEnd: this.onTransitionEnd, style: this.collapsible && { height: this.contentHeight } },
|
|
136
|
+
h("div", { ref: el => (this.contentContainer = el), class: "content", tabindex: "-1" },
|
|
137
|
+
h("slot", { ref: (el) => (this.contentSlot = el) })))));
|
|
164
138
|
}
|
|
165
139
|
static get is() { return "q2-section"; }
|
|
166
140
|
static get encapsulation() { return "shadow"; }
|
|
@@ -24,6 +24,7 @@ textarea,
|
|
|
24
24
|
button {
|
|
25
25
|
font-family: inherit;
|
|
26
26
|
font-size: inherit;
|
|
27
|
+
font-stretch: inherit;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
:host(.sr),
|
|
@@ -64,54 +65,48 @@ button {
|
|
|
64
65
|
visibility: hidden;
|
|
65
66
|
}
|
|
66
67
|
|
|
67
|
-
@keyframes expandVertical {
|
|
68
|
-
0% {
|
|
69
|
-
height: 0;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
@keyframes collapseVertical {
|
|
73
|
-
100% {
|
|
74
|
-
height: 0;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
68
|
:host {
|
|
78
69
|
display: block;
|
|
79
|
-
background-color: var(--tct-section-
|
|
80
|
-
color: var(--tct-section-font-color, var(--t-section-font-color, #
|
|
81
|
-
border-radius: var(--tct-section-border-radius, var(--t-section-border-radius, 3px));
|
|
82
|
-
margin: var(--tct-
|
|
70
|
+
background-color: var(--tct-section-background-color, var(--t-section-background-color, var(--tct-section-bg, var(--t-section-bg, var(--app-white, #ffffff)))));
|
|
71
|
+
color: var(--tct-section-font-color, var(--t-section-font-color, var(--t-text, #4d4d4d)));
|
|
72
|
+
border-radius: var(--tct-section-border-radius, var(--t-section-border-radius, var(--app-border-radius-1, 3px)));
|
|
73
|
+
margin: var(--tct-section-margin, var(--t-section-margin, var(--app-scale-3x, 15px)));
|
|
83
74
|
}
|
|
84
75
|
|
|
85
76
|
@media screen and (max-width: 767px) {
|
|
86
77
|
:host {
|
|
87
|
-
|
|
78
|
+
--comp-default-margin: var(--app-scale-3x, 15px) 0;
|
|
79
|
+
margin: var(--tct-section-margin, var(--t-section-margin, var(--comp-default-margin)));
|
|
88
80
|
}
|
|
89
81
|
}
|
|
90
|
-
.
|
|
82
|
+
.wrapper {
|
|
83
|
+
--comp-tween: var(--tct-section-tween, var(--t-section-tween, var(--app-tween-1, 0.2s ease)));
|
|
84
|
+
--comp-default-wrapper-padding: var(--app-scale-1x, 5px) 0;
|
|
91
85
|
display: block;
|
|
92
|
-
padding: var(--tct-
|
|
86
|
+
padding: var(--tct-section-wrapper-padding, var(--t-section-wrapper-padding, var(--comp-default-wrapper-padding)));
|
|
93
87
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
88
|
+
.wrapper:hover {
|
|
89
|
+
box-shadow: var(--tct-section-wrapper-hover-box-shadow, var(--t-section-wrapper-hover-box-shadow, inherit));
|
|
90
|
+
}
|
|
91
|
+
:host([collapsible]) .wrapper {
|
|
92
|
+
--comp-tween: var(--tct-section-tween, var(--t-section-tween, var(--app-tween-2, 0.4s ease)));
|
|
97
93
|
}
|
|
98
94
|
|
|
99
|
-
|
|
100
|
-
padding: 0 var(--
|
|
95
|
+
header {
|
|
96
|
+
--comp-default-header-padding: 0 var(--app-scale-3x, 15px);
|
|
97
|
+
padding: var(--tct-section-header-padding, var(--t-section-header-padding, var(--comp-default-header-padding)));
|
|
101
98
|
display: flex;
|
|
102
99
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
min-height: 44px;
|
|
100
|
+
header.has-header {
|
|
101
|
+
min-height: var(--tct-section-header-min-height, var(--t-section-header-min-height, 44px));
|
|
106
102
|
}
|
|
107
103
|
|
|
108
|
-
.
|
|
104
|
+
.header-content {
|
|
109
105
|
flex: 1 1 100%;
|
|
110
106
|
min-width: 0;
|
|
111
107
|
align-self: center;
|
|
112
108
|
}
|
|
113
|
-
|
|
114
|
-
.collapsible .q2-section-header-content {
|
|
109
|
+
:host([collapsible]) .header-content {
|
|
115
110
|
cursor: pointer;
|
|
116
111
|
}
|
|
117
112
|
|
|
@@ -124,43 +119,32 @@ button {
|
|
|
124
119
|
letter-spacing: 0.5px;
|
|
125
120
|
}
|
|
126
121
|
|
|
127
|
-
|
|
128
|
-
transition: transform var(--
|
|
122
|
+
q2-icon {
|
|
123
|
+
transition: transform var(--comp-tween);
|
|
129
124
|
}
|
|
130
|
-
|
|
131
|
-
.collapsed .toggle-icon {
|
|
125
|
+
:host(:not([expanded])) q2-icon {
|
|
132
126
|
transform: rotate(180deg);
|
|
133
127
|
}
|
|
134
128
|
|
|
135
|
-
.
|
|
129
|
+
.content-wrapper {
|
|
136
130
|
height: auto;
|
|
137
131
|
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.q2-section-content:focus {
|
|
144
|
-
box-shadow: none;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.expanded.animate .q2-section-content-wrapper {
|
|
148
|
-
animation: expandVertical var(--tct-tween-2, var(--app-tween-2, 0.4s ease)) forwards;
|
|
132
|
+
:host([collapsible]) .content-wrapper {
|
|
133
|
+
transition: height var(--comp-tween);
|
|
134
|
+
overflow: hidden;
|
|
149
135
|
}
|
|
150
|
-
|
|
151
|
-
.collapsed .q2-section-content-wrapper {
|
|
136
|
+
:host([collapsible]) :host(:not([expanded])) .content-wrapper {
|
|
152
137
|
height: 0;
|
|
153
|
-
animation: collapseVertical 0s forwards;
|
|
154
|
-
animation-duration: 0;
|
|
155
138
|
padding-top: 0;
|
|
156
|
-
visibility: hidden;
|
|
157
|
-
overflow: hidden;
|
|
158
139
|
}
|
|
159
140
|
|
|
160
|
-
.
|
|
161
|
-
|
|
141
|
+
.content {
|
|
142
|
+
--comp-default-content-padding: var(--app-scale-2x, 10px) var(--app-scale-3x, 15px);
|
|
143
|
+
padding: var(--tct-section-content-padding, var(--t-section-content-padding, var(--comp-default-content-padding)));
|
|
162
144
|
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
145
|
+
.content:focus {
|
|
146
|
+
box-shadow: none;
|
|
147
|
+
}
|
|
148
|
+
:host([collapsible]) :host(:not([expanded])) .content {
|
|
149
|
+
visibility: hidden;
|
|
166
150
|
}
|
package/dist/esm/loader.js
CHANGED
|
@@ -10,7 +10,7 @@ const patchEsm = () => {
|
|
|
10
10
|
const defineCustomElements = (win, options) => {
|
|
11
11
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
12
12
|
return patchEsm().then(() => {
|
|
13
|
-
return bootstrapLazy(JSON.parse("[[\"q2-icon\",[[1,\"q2-icon\",{\"type\":[513],\"label\":[513]}]]],[\"q2-calendar\",[[1,\"q2-calendar\",{\"value\":[1537],\"label\":[513],\"hideLabel\":[516,\"hide-label\"],\"ariaLabel\":[513,\"aria-label\"],\"optional\":[516],\"disabled\":[516],\"readonly\":[516],\"invalid\":[1540],\"typeable\":[516],\"placeholder\":[513],\"buttonLabel\":[513,\"button-label\"],\"disabledMsg\":[513,\"disabled-msg\"],\"calendarLabel\":[513,\"calendar-label\"],\"disclaimer\":[513],\"displayFormat\":[513,\"display-format\"],\"startDate\":[513,\"start-date\"],\"endDate\":[513,\"end-date\"],\"cutoffTime\":[513,\"cutoff-time\"],\"daysOfWeekChecksum\":[514,\"days-of-week-checksum\"],\"popDirection\":[513,\"pop-direction\"],\"assume\":[513],\"errors\":[1040],\"invalidDates\":[16],\"validDates\":[16],\"onsuccess\":[16],\"dropdownOpen\":[32],\"keyboardSelection\":[32],\"typedValue\":[32],\"dateList\":[32],\"hintMessage\":[32],\"hintMessageType\":[32]},[[0,\"change\",\"defaultChangeHandler\"],[0,\"error\",\"defaultErrorHandler\"],[0,\"success\",\"defaultSuccessHandler\"],[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-select\",[[1,\"q2-select\",{\"label\":[1537],\"hideLabel\":[1540,\"hide-label\"],\"value\":[1025],\"ariaLabel\":[1537,\"aria-label\"],\"selectedOptions\":[1032,\"selected-options\"],\"disabled\":[516],\"readonly\":[516],\"invalid\":[516],\"errors\":[16],\"multiple\":[516],\"minRows\":[2,\"min-rows\"],\"popDirection\":[513,\"pop-direction\"],\"searchable\":[516],\"multilineOptions\":[516,\"multiline-options\"],\"optional\":[516],\"dropdownOpen\":[32],\"onlyShowingSelected\":[32],\"activeOptionId\":[32],\"searchText\":[32],\"hasCustomDisplay\":[32],\"inputFocused\":[32],\"statusMessage\":[32],\"prioritizeSearch\":[32]},[[0,\"keydown\",\"keydownHandler\"],[0,\"change\",\"onHostElementChange\"],[0,\"input\",\"onHostElementInput\"],[0,\"focus\",\"delegateFocus\"],[0,\"focusout\",\"handleFocusout\"],[0,\"click\",\"clickHandler\"]]]]],[\"q2-dropdown\",[[1,\"q2-dropdown\",{\"type\":[513],\"icon\":[513],\"label\":[513],\"hideLabel\":[516,\"hide-label\"],\"ariaLabel\":[513,\"aria-label\"],\"disabled\":[516],\"popDirection\":[513,\"pop-direction\"],\"name\":[513],\"context\":[513],\"contextValue\":[513,\"context-value\"],\"resolvedType\":[513,\"resolved-type\"],\"block\":[516],\"dropdownOpen\":[32]},[[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-editable-field\",[[1,\"q2-editable-field\",{\"value\":[1537],\"editing\":[1540],\"label\":[1537],\"hideLabel\":[1540,\"hide-label\"],\"ariaLabel\":[1537,\"aria-label\"],\"type\":[513],\"formatModifier\":[513,\"format-modifier\"],\"truncated\":[513],\"maxlength\":[514],\"persistentLabel\":[516,\"persistent-label\"],\"disabled\":[516],\"hints\":[16],\"errors\":[16]},[[0,\"change\",\"onHostElementChange\"],[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-pagination\",[[1,\"q2-pagination\",{\"recordType\":[1,\"record-type\"],\"perPage\":[2,\"per-page\"],\"total\":[514],\"page\":[1538],\"pages\":[1538],\"recordsOnly\":[1540,\"records-only\"],\"pagesOnly\":[1540,\"pages-only\"],\"isSmall\":[32]},[[0,\"focus\",\"onHostElementFocus\"]]]]],[\"q2-tab-container\",[[1,\"q2-tab-container\",{\"value\":[1537],\"type\":[513],\"name\":[513],\"color\":[513],\"noPrint\":[516,\"no-print\"],\"hasLeft\":[32],\"hasRight\":[32],\"scrollEnabled\":[32],\"showScrollLeft\":[32],\"showScrollRight\":[32],\"tabs\":[32]},[[0,\"change\",\"defaultChangeHandler\"],[9,\"resize\",\"onResize\"],[0,\"focus\",\"onFocus\"],[0,\"badge\",\"onBadge\"]]]]],[\"q2-carousel\",[[4,\"q2-carousel\",{\"autoPlay\":[516,\"auto-play\"],\"fullWidthPanes\":[516,\"full-width-panes\"],\"hidePagination\":[516,\"hide-pagination\"],\"showNavigationArrows\":[516,\"show-navigation-arrows\"],\"ariaLabel\":[513,\"aria-label\"],\"label\":[513],\"index\":[1538],\"universalCarouselOptions\":[32],\"fullWidthDisplayOptions\":[32],\"activePaneIndex\":[32],\"applyFocus\":[32],\"applyPaginationFocus\":[32],\"autoPlayInProgress\":[32],\"compactMode\":[32],\"carouselWrapperWidth\":[32]},[[0,\"change\",\"onHostElementChange\"],[0,\"clickCarouselPane\",\"carouselPaneClicked\"],[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-section\",[[1,\"q2-section\",{\"label\":[513],\"collapsible\":[516],\"noCollapseIcon\":[516,\"no-collapse-icon\"],\"expanded\":[1540],\"contentHeight\":[32],\"hasYieldedHeader\":[32]},[[0,\"change\",\"defaultChangeHandler\"],[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-stepper\",[[1,\"q2-stepper\",{\"currentStep\":[1538,\"current-step\"],\"stepCount\":[1026,\"step-count\"],\"lastEnabledStep\":[1026,\"last-enabled-step\"],\"scrollEnabled\":[32],\"showScrollLeft\":[32],\"showScrollRight\":[32]},[[0,\"change\",\"defaultChangeHandler\"],[0,\"focus\",\"delegateFocus\"],[0,\"statusChange\",\"statusChangeHandler\"]]]]],[\"q2-card\",[[1,\"q2-card\",{\"title\":[513],\"description\":[513],\"avatarName\":[513,\"avatar-name\"],\"avatarInitials\":[513,\"avatar-initials\"],\"avatarIcon\":[513,\"avatar-icon\"],\"avatarSrc\":[513,\"avatar-src\"],\"isSmall\":[516,\"is-small\"],\"bar\":[513],\"isStatic\":[516,\"is-static\"],\"isTouch\":[516,\"is-touch\"],\"url\":[513],\"target\":[513],\"isAutoTouch\":[32],\"isAutoSmall\":[32]},[[0,\"focus\",\"onHostElementFocus\"]]]]],[\"q2-chart-donut\",[[1,\"q2-chart-donut\",{\"chartName\":[513,\"chart-name\"],\"summaryIcon\":[513,\"summary-icon\"],\"summaryName\":[513,\"summary-name\"],\"innerRadius\":[1025,\"inner-radius\"],\"outerRadius\":[1025,\"outer-radius\"],\"selectedOffset\":[2,\"selected-offset\"],\"hoverScaleSize\":[2,\"hover-scale-size\"],\"format\":[513],\"isClickable\":[516,\"is-clickable\"],\"data\":[16],\"selectedId\":[32],\"hoveredId\":[32],\"selectById\":[64],\"selectByIndex\":[64],\"clearSelection\":[64]},[[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-pill\",[[1,\"q2-pill\",{\"disabled\":[516],\"active\":[1540],\"open\":[1540],\"multiple\":[516],\"maxLength\":[514,\"max-length\"],\"label\":[513],\"value\":[513],\"theme\":[513],\"selectedOptions\":[1040],\"hasOptions\":[32]},[[0,\"focus\",\"delegateFocus\"],[0,\"optionListState\",\"optionListStateEvent\"]]]]],[\"q2-tag\",[[1,\"q2-tag\",{\"open\":[1540],\"role\":[513],\"label\":[513],\"theme\":[513],\"hasOptions\":[32]},[[0,\"focus\",\"delegateFocus\"],[0,\"optionListState\",\"optionListStateEvent\"]]]]],[\"q2-checkbox\",[[1,\"q2-checkbox\",{\"checked\":[1540],\"type\":[513],\"label\":[1537],\"hideLabel\":[1540,\"hide-label\"],\"ariaLabel\":[1537,\"aria-label\"],\"indeterminate\":[516],\"disabled\":[516],\"readonly\":[516],\"value\":[513],\"name\":[513],\"hasError\":[516,\"has-error\"],\"groupDisabled\":[516,\"group-disabled\"],\"alignment\":[513],\"description\":[513]},[[0,\"change\",\"defaultChangeHandler\"],[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-checkbox-group\",[[1,\"q2-checkbox-group\",{\"label\":[513],\"value\":[1040],\"disabled\":[516],\"readonly\":[516],\"optional\":[516],\"hasError\":[516,\"has-error\"]},[[0,\"change\",\"onHostElementChange\"]]]]],[\"q2-option\",[[1,\"q2-option\",{\"role\":[513],\"tabindex\":[513],\"display\":[1025],\"value\":[513],\"disabled\":[516],\"optionId\":[513,\"option-id\"],\"disabledGroup\":[516,\"disabled-group\"],\"selected\":[516],\"hidden\":[516],\"multiline\":[516],\"active\":[516],\"noSelect\":[516,\"_no-select\"],\"_multiSelectHidden\":[516,\"_multiselecthidden\"]}]]],[\"q2-radio-group\",[[1,\"q2-radio-group\",{\"label\":[513],\"value\":[1025],\"disabled\":[516],\"name\":[513],\"optional\":[516],\"readonly\":[516],\"tileLayout\":[516,\"tile-layout\"],\"tileAlignment\":[513,\"tile-alignment\"],\"hasError\":[516,\"has-error\"],\"tilelayout\":[516]},[[0,\"change\",\"onHostElementChange\"],[0,\"focus\",\"delegateFocus\"],[0,\"keydown\",\"keydownHandler\"]]]]],[\"q2-stepper-vertical\",[[1,\"q2-stepper-vertical\",{\"currentStepId\":[1537,\"current-step-id\"],\"structuredPanes\":[32]},[[0,\"change\",\"defaultChangeHandler\"],[0,\"focus\",\"delegateFocus\"],[0,\"statusChange\",\"statusChangeHandler\"]]]]],[\"q2-textarea\",[[1,\"q2-textarea\",{\"value\":[1025],\"label\":[513],\"hideLabel\":[516,\"hide-label\"],\"hideMessages\":[516,\"hide-messages\"],\"optional\":[516],\"placeholder\":[513],\"disabled\":[516],\"readonly\":[516],\"spellcheck\":[516],\"maxlength\":[1538],\"rows\":[514],\"cols\":[514],\"resize\":[513],\"errors\":[16],\"hints\":[16],\"hasFocus\":[32],\"downParams\":[32]},[[0,\"focus\",\"onHostElementFocus\"],[0,\"change\",\"onHostElementChange\"]]]]],[\"q2-carousel-pane\",[[4,\"q2-carousel-pane\",{\"index\":[2],\"siblingCount\":[2,\"sibling-count\"],\"isActivePane\":[516,\"is-active-pane\"],\"label\":[513]}]]],[\"q2-loading-element\",[[0,\"q2-loading-element\",{\"shape\":[513],\"width\":[513],\"height\":[513],\"borderRadius\":[513,\"border-radius\"]}]]],[\"q2-loc\",[[1,\"q2-loc\",{\"value\":[513],\"substitutions\":[16]}]]],[\"q2-optgroup\",[[1,\"q2-optgroup\",{\"disabled\":[516],\"label\":[513],\"hidden\":[32]}]]],[\"q2-radio\",[[1,\"q2-radio\",{\"label\":[513],\"hideLabel\":[516,\"hide-label\"],\"value\":[513],\"disabled\":[516],\"checked\":[516],\"name\":[513],\"ariaLabel\":[513,\"aria-label\"],\"groupDisabled\":[4,\"group-disabled\"],\"groupReadonly\":[4,\"group-readonly\"],\"groupTileLayout\":[4,\"group-tile-layout\"]},[[0,\"click\",\"onHostClick\"],[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-stepper-pane\",[[1,\"q2-stepper-pane\",{\"label\":[513],\"description\":[513],\"isActive\":[516,\"is-active\"],\"showWithChildren\":[516,\"show-with-children\"],\"status\":[513],\"isChildActive\":[32]},[[0,\"activeChange\",\"checkForActiveChildren\"]]]]],[\"q2-tab-pane\",[[1,\"q2-tab-pane\",{\"value\":[513],\"label\":[513],\"name\":[513],\"selected\":[516],\"badgeCount\":[514,\"badge-count\"],\"badgeDescription\":[513,\"badge-description\"],\"index\":[2],\"guid\":[2]}]]],[\"q2-tooltip\",[[1,\"q2-tooltip\",{\"label\":[513],\"block\":[516],\"multiline\":[516],\"persistent\":[516],\"position\":[513]}]]],[\"tecton-tab-pane\",[[1,\"tecton-tab-pane\",{\"value\":[513],\"label\":[513],\"name\":[513],\"selected\":[516],\"index\":[2],\"guid\":[2],\"provided\":[516],\"url\":[513],\"moduleId\":[513,\"module-id\"],\"minHeight\":[513,\"min-height\"],\"badgeCount\":[514,\"badge-count\"],\"badgeDescription\":[513,\"badge-description\"],\"authPayload\":[16],\"showForm\":[4,\"show-form\"],\"_showForm\":[32]}]]],[\"q2-dropdown-item\",[[1,\"q2-dropdown-item\",{\"disabled\":[516],\"removable\":[516],\"separator\":[516],\"label\":[513],\"ariaLabel\":[513,\"aria-label\"],\"value\":[513]},[[0,\"focus\",\"onHostElementFocus\"]]]]],[\"q2-avatar\",[[1,\"q2-avatar\",{\"name\":[513],\"initials\":[513],\"src\":[513],\"icon\":[1],\"badSrc\":[32],\"isLoaded\":[32]}]]],[\"q2-message\",[[1,\"q2-message\",{\"type\":[513],\"appearance\":[513],\"description\":[516],\"presentToggle\":[32],\"present\":[64]},[[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-option-list\",[[1,\"q2-option-list\",{\"role\":[513],\"direction\":[513],\"open\":[1540],\"customSearch\":[516,\"custom-search\"],\"noSelect\":[516,\"no-select\"],\"align\":[513],\"selectedOptions\":[1040],\"multiple\":[516],\"disabled\":[516],\"type\":[1],\"hasOptions\":[32],\"toggle\":[64],\"setDefaultActiveElement\":[64],\"setActiveElement\":[64],\"handleExternalKeydown\":[64]},[[0,\"focus\",\"delegateFocus\"],[0,\"click\",\"handleClick\"]]]]],[\"click-elsewhere\",[[0,\"click-elsewhere\"]]],[\"q2-btn_2\",[[1,\"q2-btn\",{\"ariaExpanded\":[1,\"aria-expanded\"],\"ariaHasPopup\":[1,\"aria-has-popup\"],\"ariaControls\":[1,\"aria-controls\"],\"ariaSelected\":[1,\"aria-selected\"],\"label\":[1537],\"hideLabel\":[1540,\"hide-label\"],\"ariaLabel\":[1537,\"aria-label\"],\"tabIndex\":[2,\"tab-index\"],\"intent\":[513],\"disabled\":[516],\"type\":[513],\"loading\":[516],\"badge\":[516],\"active\":[516],\"fab\":[516],\"block\":[516],\"iconPosition\":[32]},[[2,\"click\",\"disable\"],[0,\"focus\",\"delegateFocus\"]]],[1,\"q2-loading\",{\"type\":[513],\"shape\":[513],\"modifiers\":[513],\"counts\":[513],\"label\":[513],\"ariaLabel\":[513,\"aria-label\"],\"inline\":[516]}]]],[\"q2-badge_2\",[[1,\"q2-input\",{\"value\":[1025],\"label\":[1537],\"hideLabel\":[1540,\"hide-label\"],\"type\":[513],\"placeholder\":[513],\"disabled\":[516],\"autocomplete\":[513],\"autocorrect\":[513],\"autocapitalize\":[513],\"hideMessages\":[516,\"hide-messages\"],\"iconLeft\":[513,\"icon-left\"],\"iconRight\":[513,\"icon-right\"],\"readonly\":[516],\"clearable\":[516],\"optional\":[516],\"min\":[514],\"max\":[514],\"step\":[514],\"formatModifier\":[513,\"format-modifier\"],\"maxlength\":[1538],\"pseudo\":[516],\"showVisibilityToggle\":[516,\"show-visibility-toggle\"],\"textHidden\":[1540,\"text-hidden\"],\"badgeValue\":[513,\"badge-value\"],\"badgeTheme\":[513,\"badge-theme\"],\"ariaControls\":[1,\"aria-controls\"],\"role\":[1],\"ariaOwns\":[1,\"aria-owns\"],\"ariaLabel\":[1537,\"aria-label\"],\"ariaHaspopup\":[1,\"aria-haspopup\"],\"ariaExpanded\":[1,\"aria-expanded\"],\"ariaActivedescendant\":[8,\"aria-activedescendant\"],\"current\":[1],\"errors\":[16],\"hints\":[16],\"formattedValueObject\":[32],\"hasFocus\":[32]},[[0,\"focus\",\"onHostElementFocus\"],[0,\"change\",\"onHostElementChange\"]]],[1,\"q2-badge\",{\"value\":[514],\"maxLength\":[514,\"max-length\"],\"position\":[513],\"size\":[513],\"theme\":[513],\"status\":[513]}]]]]"), options);
|
|
13
|
+
return bootstrapLazy(JSON.parse("[[\"q2-icon\",[[1,\"q2-icon\",{\"type\":[513],\"label\":[513]}]]],[\"q2-calendar\",[[1,\"q2-calendar\",{\"value\":[1537],\"label\":[513],\"hideLabel\":[516,\"hide-label\"],\"ariaLabel\":[513,\"aria-label\"],\"optional\":[516],\"disabled\":[516],\"readonly\":[516],\"invalid\":[1540],\"typeable\":[516],\"placeholder\":[513],\"buttonLabel\":[513,\"button-label\"],\"disabledMsg\":[513,\"disabled-msg\"],\"calendarLabel\":[513,\"calendar-label\"],\"disclaimer\":[513],\"displayFormat\":[513,\"display-format\"],\"startDate\":[513,\"start-date\"],\"endDate\":[513,\"end-date\"],\"cutoffTime\":[513,\"cutoff-time\"],\"daysOfWeekChecksum\":[514,\"days-of-week-checksum\"],\"popDirection\":[513,\"pop-direction\"],\"assume\":[513],\"errors\":[1040],\"invalidDates\":[16],\"validDates\":[16],\"onsuccess\":[16],\"dropdownOpen\":[32],\"keyboardSelection\":[32],\"typedValue\":[32],\"dateList\":[32],\"hintMessage\":[32],\"hintMessageType\":[32]},[[0,\"change\",\"defaultChangeHandler\"],[0,\"error\",\"defaultErrorHandler\"],[0,\"success\",\"defaultSuccessHandler\"],[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-select\",[[1,\"q2-select\",{\"label\":[1537],\"hideLabel\":[1540,\"hide-label\"],\"value\":[1025],\"ariaLabel\":[1537,\"aria-label\"],\"selectedOptions\":[1032,\"selected-options\"],\"disabled\":[516],\"readonly\":[516],\"invalid\":[516],\"errors\":[16],\"multiple\":[516],\"minRows\":[2,\"min-rows\"],\"popDirection\":[513,\"pop-direction\"],\"searchable\":[516],\"multilineOptions\":[516,\"multiline-options\"],\"optional\":[516],\"dropdownOpen\":[32],\"onlyShowingSelected\":[32],\"activeOptionId\":[32],\"searchText\":[32],\"hasCustomDisplay\":[32],\"inputFocused\":[32],\"statusMessage\":[32],\"prioritizeSearch\":[32]},[[0,\"keydown\",\"keydownHandler\"],[0,\"change\",\"onHostElementChange\"],[0,\"input\",\"onHostElementInput\"],[0,\"focus\",\"delegateFocus\"],[0,\"focusout\",\"handleFocusout\"],[0,\"click\",\"clickHandler\"]]]]],[\"q2-dropdown\",[[1,\"q2-dropdown\",{\"type\":[513],\"icon\":[513],\"label\":[513],\"hideLabel\":[516,\"hide-label\"],\"ariaLabel\":[513,\"aria-label\"],\"disabled\":[516],\"popDirection\":[513,\"pop-direction\"],\"name\":[513],\"context\":[513],\"contextValue\":[513,\"context-value\"],\"resolvedType\":[513,\"resolved-type\"],\"block\":[516],\"dropdownOpen\":[32]},[[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-editable-field\",[[1,\"q2-editable-field\",{\"value\":[1537],\"editing\":[1540],\"label\":[1537],\"hideLabel\":[1540,\"hide-label\"],\"ariaLabel\":[1537,\"aria-label\"],\"type\":[513],\"formatModifier\":[513,\"format-modifier\"],\"truncated\":[513],\"maxlength\":[514],\"persistentLabel\":[516,\"persistent-label\"],\"disabled\":[516],\"hints\":[16],\"errors\":[16]},[[0,\"change\",\"onHostElementChange\"],[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-pagination\",[[1,\"q2-pagination\",{\"recordType\":[1,\"record-type\"],\"perPage\":[2,\"per-page\"],\"total\":[514],\"page\":[1538],\"pages\":[1538],\"recordsOnly\":[1540,\"records-only\"],\"pagesOnly\":[1540,\"pages-only\"],\"isSmall\":[32]},[[0,\"focus\",\"onHostElementFocus\"]]]]],[\"q2-tab-container\",[[1,\"q2-tab-container\",{\"value\":[1537],\"type\":[513],\"name\":[513],\"color\":[513],\"noPrint\":[516,\"no-print\"],\"hasLeft\":[32],\"hasRight\":[32],\"scrollEnabled\":[32],\"showScrollLeft\":[32],\"showScrollRight\":[32],\"tabs\":[32]},[[0,\"change\",\"defaultChangeHandler\"],[9,\"resize\",\"onResize\"],[0,\"focus\",\"onFocus\"],[0,\"badge\",\"onBadge\"]]]]],[\"q2-carousel\",[[4,\"q2-carousel\",{\"autoPlay\":[516,\"auto-play\"],\"fullWidthPanes\":[516,\"full-width-panes\"],\"hidePagination\":[516,\"hide-pagination\"],\"showNavigationArrows\":[516,\"show-navigation-arrows\"],\"ariaLabel\":[513,\"aria-label\"],\"label\":[513],\"index\":[1538],\"universalCarouselOptions\":[32],\"fullWidthDisplayOptions\":[32],\"activePaneIndex\":[32],\"applyFocus\":[32],\"applyPaginationFocus\":[32],\"autoPlayInProgress\":[32],\"compactMode\":[32],\"carouselWrapperWidth\":[32]},[[0,\"change\",\"onHostElementChange\"],[0,\"clickCarouselPane\",\"carouselPaneClicked\"],[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-section\",[[1,\"q2-section\",{\"label\":[513],\"collapsible\":[516],\"noCollapseIcon\":[516,\"no-collapse-icon\"],\"expanded\":[1540],\"contentHeight\":[32],\"hasYieldedHeader\":[32]},[[0,\"change\",\"defaultChangeHandler\"],[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-stepper\",[[1,\"q2-stepper\",{\"currentStep\":[1538,\"current-step\"],\"stepCount\":[1026,\"step-count\"],\"lastEnabledStep\":[1026,\"last-enabled-step\"],\"scrollEnabled\":[32],\"showScrollLeft\":[32],\"showScrollRight\":[32]},[[0,\"change\",\"defaultChangeHandler\"],[0,\"focus\",\"delegateFocus\"],[0,\"statusChange\",\"statusChangeHandler\"]]]]],[\"q2-card\",[[1,\"q2-card\",{\"title\":[513],\"description\":[513],\"avatarName\":[513,\"avatar-name\"],\"avatarInitials\":[513,\"avatar-initials\"],\"avatarIcon\":[513,\"avatar-icon\"],\"avatarSrc\":[513,\"avatar-src\"],\"isSmall\":[516,\"is-small\"],\"bar\":[513],\"isStatic\":[516,\"is-static\"],\"isTouch\":[516,\"is-touch\"],\"url\":[513],\"target\":[513],\"isAutoTouch\":[32],\"isAutoSmall\":[32]},[[0,\"focus\",\"onHostElementFocus\"]]]]],[\"q2-chart-donut\",[[1,\"q2-chart-donut\",{\"chartName\":[513,\"chart-name\"],\"summaryIcon\":[513,\"summary-icon\"],\"summaryName\":[513,\"summary-name\"],\"innerRadius\":[1025,\"inner-radius\"],\"outerRadius\":[1025,\"outer-radius\"],\"minSliceSize\":[1,\"min-slice-size\"],\"selectedOffset\":[2,\"selected-offset\"],\"hoverScaleSize\":[2,\"hover-scale-size\"],\"format\":[513],\"isClickable\":[516,\"is-clickable\"],\"data\":[16],\"selectedId\":[32],\"hoveredId\":[32],\"selectById\":[64],\"selectByIndex\":[64],\"clearSelection\":[64]},[[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-pill\",[[1,\"q2-pill\",{\"disabled\":[516],\"active\":[1540],\"open\":[1540],\"multiple\":[516],\"maxLength\":[514,\"max-length\"],\"label\":[513],\"value\":[513],\"theme\":[513],\"selectedOptions\":[1040],\"hasOptions\":[32]},[[0,\"focus\",\"delegateFocus\"],[0,\"optionListState\",\"optionListStateEvent\"]]]]],[\"q2-tag\",[[1,\"q2-tag\",{\"open\":[1540],\"role\":[513],\"label\":[513],\"theme\":[513],\"hasOptions\":[32]},[[0,\"focus\",\"delegateFocus\"],[0,\"optionListState\",\"optionListStateEvent\"]]]]],[\"q2-checkbox\",[[1,\"q2-checkbox\",{\"checked\":[1540],\"type\":[513],\"label\":[1537],\"hideLabel\":[1540,\"hide-label\"],\"ariaLabel\":[1537,\"aria-label\"],\"indeterminate\":[516],\"disabled\":[516],\"readonly\":[516],\"value\":[513],\"name\":[513],\"hasError\":[516,\"has-error\"],\"groupDisabled\":[516,\"group-disabled\"],\"alignment\":[513],\"description\":[513]},[[0,\"change\",\"defaultChangeHandler\"],[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-checkbox-group\",[[1,\"q2-checkbox-group\",{\"label\":[513],\"value\":[1040],\"disabled\":[516],\"readonly\":[516],\"optional\":[516],\"hasError\":[516,\"has-error\"]},[[0,\"change\",\"onHostElementChange\"]]]]],[\"q2-option\",[[1,\"q2-option\",{\"role\":[513],\"tabindex\":[513],\"display\":[1025],\"value\":[513],\"disabled\":[516],\"optionId\":[513,\"option-id\"],\"disabledGroup\":[516,\"disabled-group\"],\"selected\":[516],\"hidden\":[516],\"multiline\":[516],\"active\":[516],\"noSelect\":[516,\"_no-select\"],\"_multiSelectHidden\":[516,\"_multiselecthidden\"]}]]],[\"q2-radio-group\",[[1,\"q2-radio-group\",{\"label\":[513],\"value\":[1025],\"disabled\":[516],\"name\":[513],\"optional\":[516],\"readonly\":[516],\"tileLayout\":[516,\"tile-layout\"],\"tileAlignment\":[513,\"tile-alignment\"],\"hasError\":[516,\"has-error\"],\"tilelayout\":[516]},[[0,\"change\",\"onHostElementChange\"],[0,\"focus\",\"delegateFocus\"],[0,\"keydown\",\"keydownHandler\"]]]]],[\"q2-stepper-vertical\",[[1,\"q2-stepper-vertical\",{\"currentStepId\":[1537,\"current-step-id\"],\"structuredPanes\":[32]},[[0,\"change\",\"defaultChangeHandler\"],[0,\"focus\",\"delegateFocus\"],[0,\"statusChange\",\"statusChangeHandler\"]]]]],[\"q2-textarea\",[[1,\"q2-textarea\",{\"value\":[1025],\"label\":[513],\"hideLabel\":[516,\"hide-label\"],\"hideMessages\":[516,\"hide-messages\"],\"optional\":[516],\"placeholder\":[513],\"disabled\":[516],\"readonly\":[516],\"spellcheck\":[516],\"maxlength\":[1538],\"rows\":[514],\"cols\":[514],\"resize\":[513],\"errors\":[16],\"hints\":[16],\"hasFocus\":[32],\"downParams\":[32]},[[0,\"focus\",\"onHostElementFocus\"],[0,\"change\",\"onHostElementChange\"]]]]],[\"q2-carousel-pane\",[[4,\"q2-carousel-pane\",{\"index\":[2],\"siblingCount\":[2,\"sibling-count\"],\"isActivePane\":[516,\"is-active-pane\"],\"label\":[513]}]]],[\"q2-loading-element\",[[0,\"q2-loading-element\",{\"shape\":[513],\"width\":[513],\"height\":[513],\"borderRadius\":[513,\"border-radius\"]}]]],[\"q2-loc\",[[1,\"q2-loc\",{\"value\":[513],\"substitutions\":[16]}]]],[\"q2-optgroup\",[[1,\"q2-optgroup\",{\"disabled\":[516],\"label\":[513],\"hidden\":[32]}]]],[\"q2-radio\",[[1,\"q2-radio\",{\"label\":[513],\"hideLabel\":[516,\"hide-label\"],\"value\":[513],\"disabled\":[516],\"checked\":[516],\"name\":[513],\"ariaLabel\":[513,\"aria-label\"],\"groupDisabled\":[4,\"group-disabled\"],\"groupReadonly\":[4,\"group-readonly\"],\"groupTileLayout\":[4,\"group-tile-layout\"]},[[0,\"click\",\"onHostClick\"],[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-stepper-pane\",[[1,\"q2-stepper-pane\",{\"label\":[513],\"description\":[513],\"isActive\":[516,\"is-active\"],\"showWithChildren\":[516,\"show-with-children\"],\"status\":[513],\"isChildActive\":[32]},[[0,\"activeChange\",\"checkForActiveChildren\"]]]]],[\"q2-tab-pane\",[[1,\"q2-tab-pane\",{\"value\":[513],\"label\":[513],\"name\":[513],\"selected\":[516],\"badgeCount\":[514,\"badge-count\"],\"badgeDescription\":[513,\"badge-description\"],\"index\":[2],\"guid\":[2]}]]],[\"q2-tooltip\",[[1,\"q2-tooltip\",{\"label\":[513],\"block\":[516],\"multiline\":[516],\"persistent\":[516],\"position\":[513]}]]],[\"tecton-tab-pane\",[[1,\"tecton-tab-pane\",{\"value\":[513],\"label\":[513],\"name\":[513],\"selected\":[516],\"index\":[2],\"guid\":[2],\"provided\":[516],\"url\":[513],\"moduleId\":[513,\"module-id\"],\"minHeight\":[513,\"min-height\"],\"badgeCount\":[514,\"badge-count\"],\"badgeDescription\":[513,\"badge-description\"],\"authPayload\":[16],\"showForm\":[4,\"show-form\"],\"_showForm\":[32]}]]],[\"q2-dropdown-item\",[[1,\"q2-dropdown-item\",{\"disabled\":[516],\"removable\":[516],\"separator\":[516],\"label\":[513],\"ariaLabel\":[513,\"aria-label\"],\"value\":[513]},[[0,\"focus\",\"onHostElementFocus\"]]]]],[\"q2-avatar\",[[1,\"q2-avatar\",{\"name\":[513],\"initials\":[513],\"src\":[513],\"icon\":[1],\"badSrc\":[32],\"isLoaded\":[32]}]]],[\"q2-message\",[[1,\"q2-message\",{\"type\":[513],\"appearance\":[513],\"description\":[516],\"presentToggle\":[32],\"present\":[64]},[[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-option-list\",[[1,\"q2-option-list\",{\"role\":[513],\"direction\":[513],\"open\":[1540],\"customSearch\":[516,\"custom-search\"],\"noSelect\":[516,\"no-select\"],\"align\":[513],\"selectedOptions\":[1040],\"multiple\":[516],\"disabled\":[516],\"type\":[1],\"hasOptions\":[32],\"toggle\":[64],\"setDefaultActiveElement\":[64],\"setActiveElement\":[64],\"handleExternalKeydown\":[64]},[[0,\"focus\",\"delegateFocus\"],[0,\"click\",\"handleClick\"]]]]],[\"click-elsewhere\",[[0,\"click-elsewhere\"]]],[\"q2-btn_2\",[[1,\"q2-btn\",{\"ariaExpanded\":[1,\"aria-expanded\"],\"ariaHasPopup\":[1,\"aria-has-popup\"],\"ariaControls\":[1,\"aria-controls\"],\"ariaSelected\":[1,\"aria-selected\"],\"label\":[1537],\"hideLabel\":[1540,\"hide-label\"],\"ariaLabel\":[1537,\"aria-label\"],\"tabIndex\":[2,\"tab-index\"],\"intent\":[513],\"disabled\":[516],\"type\":[513],\"loading\":[516],\"badge\":[516],\"active\":[516],\"fab\":[516],\"block\":[516],\"iconPosition\":[32]},[[2,\"click\",\"disable\"],[0,\"focus\",\"delegateFocus\"]]],[1,\"q2-loading\",{\"type\":[513],\"shape\":[513],\"modifiers\":[513],\"counts\":[513],\"label\":[513],\"ariaLabel\":[513,\"aria-label\"],\"inline\":[516]}]]],[\"q2-badge_2\",[[1,\"q2-input\",{\"value\":[1025],\"label\":[1537],\"hideLabel\":[1540,\"hide-label\"],\"type\":[513],\"placeholder\":[513],\"disabled\":[516],\"autocomplete\":[513],\"autocorrect\":[513],\"autocapitalize\":[513],\"hideMessages\":[516,\"hide-messages\"],\"iconLeft\":[513,\"icon-left\"],\"iconRight\":[513,\"icon-right\"],\"readonly\":[516],\"clearable\":[516],\"optional\":[516],\"min\":[514],\"max\":[514],\"step\":[514],\"formatModifier\":[513,\"format-modifier\"],\"maxlength\":[1538],\"pseudo\":[516],\"showVisibilityToggle\":[516,\"show-visibility-toggle\"],\"textHidden\":[1540,\"text-hidden\"],\"badgeValue\":[513,\"badge-value\"],\"badgeTheme\":[513,\"badge-theme\"],\"ariaControls\":[1,\"aria-controls\"],\"role\":[1],\"ariaOwns\":[1,\"aria-owns\"],\"ariaLabel\":[1537,\"aria-label\"],\"ariaHaspopup\":[1,\"aria-haspopup\"],\"ariaExpanded\":[1,\"aria-expanded\"],\"ariaActivedescendant\":[8,\"aria-activedescendant\"],\"current\":[1],\"errors\":[16],\"hints\":[16],\"formattedValueObject\":[32],\"hasFocus\":[32]},[[0,\"focus\",\"onHostElementFocus\"],[0,\"change\",\"onHostElementChange\"]]],[1,\"q2-badge\",{\"value\":[514],\"maxLength\":[514,\"max-length\"],\"position\":[513],\"size\":[513],\"theme\":[513],\"status\":[513]}]]]]"), options);
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-6d5ed7cc.js';
|
|
2
2
|
import { i as icons } from './icons-ed54e307.js';
|
|
3
3
|
|
|
4
|
-
const stylesCss = "*{box-sizing:border-box}*:active{outline:none}*:focus{outline:none;box-shadow:var(--const-global-focus, 0 0 0 2px #33b4ff)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}.avatar-img{object-fit:cover;height:var(--tct-avatar-img-height, var(--tct-avatar-height, 44px));width:var(--tct-avatar-img-width, var(--tct-avatar-width, 44px));border-radius:var(--tct-avatar-img-br, 50%);background-color:unset}.avatar-img-default{object-fit:cover;height:var(--tct-avatar-img-height, var(--tct-avatar-height, 44px));width:var(--tct-avatar-img-width, var(--tct-avatar-width, 44px));border-radius:var(--tct-avatar-img-br, 50%);background-color:var(--tct-avatar-bg, #9e9e9e)}.avatar-initials{height:var(--tct-avatar-height, 44px);width:var(--tct-avatar-width, 44px);background-color:var(--tct-avatar-bg, var(--t-gray-8, #9e9e9e));border-radius:var(--tct-avatar-br, 50%)}.size-1{--tct-avatar-font-size:var(--tct-avatar-size-1, 60px)}.size-2{--tct-avatar-font-size:var(--tct-avatar-size-2, 50px)}.size-3{--tct-avatar-font-size:var(--tct-avatar-size-3, 40px)}.size-4{--tct-avatar-font-size:var(--tct-avatar-size-4, 30px)}text{fill:var(--tct-avatar-color, #ffffff);font-weight:var(--tct-avatar-font-weight, 200);font-size:var(--tct-avatar-font-size, 40px)}.fallback{height:var(--tct-avatar-fallback-height, var(--tct-avatar-height, 44px));width:var(--tct-avatar-fallback-width, var(--tct-avatar-width, 44px));border-radius:var(--tct-avatar-fallback-br, var(--tct-avatar-img-br, 50%));background-color:var(--tct-avatar-fallback-bg, var(--tct-avatar-bg, #9e9e9e));display:flex;align-items:center;justify-content:center}q2-icon{--t-icon-size:var(--tct-avatar-fallback-icon-size, 65%);--t-icon-fill:var(--tct-avatar-fallback-fill, transparent);--t-icon-stroke-primary:var(--tct-avatar-fallback-stroke-primary, currentcolor);--t-icon-stroke-secondary:var(--tct-avatar-fallback-stroke-secondary, currentcolor);color:var(--tct-avatar-fallback-color, var(--tct-avatar-color, var(--t-base, #ffffff)));width:var(--t-icon-size);height:var(--t-icon-size)}";
|
|
4
|
+
const stylesCss = "*{box-sizing:border-box}*:active{outline:none}*:focus{outline:none;box-shadow:var(--const-global-focus, 0 0 0 2px #33b4ff)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit;font-stretch:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}.avatar-img{object-fit:cover;height:var(--tct-avatar-img-height, var(--tct-avatar-height, 44px));width:var(--tct-avatar-img-width, var(--tct-avatar-width, 44px));border-radius:var(--tct-avatar-img-br, 50%);background-color:unset}.avatar-img-default{object-fit:cover;height:var(--tct-avatar-img-height, var(--tct-avatar-height, 44px));width:var(--tct-avatar-img-width, var(--tct-avatar-width, 44px));border-radius:var(--tct-avatar-img-br, 50%);background-color:var(--tct-avatar-bg, #9e9e9e)}.avatar-initials{height:var(--tct-avatar-height, 44px);width:var(--tct-avatar-width, 44px);background-color:var(--tct-avatar-bg, var(--t-gray-8, #9e9e9e));border-radius:var(--tct-avatar-br, 50%)}.size-1{--tct-avatar-font-size:var(--tct-avatar-size-1, 60px)}.size-2{--tct-avatar-font-size:var(--tct-avatar-size-2, 50px)}.size-3{--tct-avatar-font-size:var(--tct-avatar-size-3, 40px)}.size-4{--tct-avatar-font-size:var(--tct-avatar-size-4, 30px)}text{fill:var(--tct-avatar-color, #ffffff);font-weight:var(--tct-avatar-font-weight, 200);font-size:var(--tct-avatar-font-size, 40px)}.fallback{height:var(--tct-avatar-fallback-height, var(--tct-avatar-height, 44px));width:var(--tct-avatar-fallback-width, var(--tct-avatar-width, 44px));border-radius:var(--tct-avatar-fallback-br, var(--tct-avatar-img-br, 50%));background-color:var(--tct-avatar-fallback-bg, var(--tct-avatar-bg, #9e9e9e));display:flex;align-items:center;justify-content:center}q2-icon{--t-icon-size:var(--tct-avatar-fallback-icon-size, 65%);--t-icon-fill:var(--tct-avatar-fallback-fill, transparent);--t-icon-stroke-primary:var(--tct-avatar-fallback-stroke-primary, currentcolor);--t-icon-stroke-secondary:var(--tct-avatar-fallback-stroke-secondary, currentcolor);color:var(--tct-avatar-fallback-color, var(--tct-avatar-color, var(--t-base, #ffffff)));width:var(--t-icon-size);height:var(--t-icon-size)}";
|
|
5
5
|
|
|
6
6
|
const Q2Avatar = class {
|
|
7
7
|
constructor(hostRef) {
|