q2-tecton-elements 1.14.1 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/q2-avatar.cjs.entry.js +7 -2
- package/dist/cjs/q2-badge.cjs.entry.js +1 -3
- package/dist/cjs/q2-calendar.cjs.entry.js +3 -4
- package/dist/cjs/q2-chart-donut.cjs.entry.js +8 -3
- package/dist/cjs/q2-checkbox.cjs.entry.js +11 -12
- package/dist/cjs/q2-editable-field.cjs.entry.js +2 -2
- package/dist/cjs/q2-option-list.cjs.entry.js +4 -4
- package/dist/cjs/q2-pill.cjs.entry.js +8 -1
- package/dist/cjs/q2-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/q2-radio.cjs.entry.js +1 -0
- package/dist/cjs/q2-select.cjs.entry.js +6 -0
- package/dist/cjs/q2-stepper.cjs.entry.js +20 -3
- package/dist/cjs/q2-tab-container.cjs.entry.js +15 -5
- package/dist/cjs/q2-tab-pane.cjs.entry.js +7 -0
- package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
- package/dist/cjs/tecton-tab-pane.cjs.entry.js +5 -0
- package/dist/collection/components/q2-avatar/index.js +8 -2
- package/dist/collection/components/q2-avatar/styles.css +8 -0
- package/dist/collection/components/q2-badge/index.js +0 -2
- package/dist/collection/components/q2-badge/styles.css +2 -2
- package/dist/collection/components/q2-calendar/helpers.js +1 -1
- package/dist/collection/components/q2-calendar/index.js +2 -3
- package/dist/collection/components/q2-chart-donut/index.js +13 -6
- package/dist/collection/components/q2-chart-donut/styles.css +17 -8
- package/dist/collection/components/q2-checkbox/index.js +10 -11
- package/dist/collection/components/q2-checkbox/styles.css +5 -3
- package/dist/collection/components/q2-editable-field/index.js +19 -2
- package/dist/collection/components/q2-option-list/index.js +22 -7
- package/dist/collection/components/q2-pill/index.js +26 -2
- package/dist/collection/components/q2-radio/index.js +1 -0
- package/dist/collection/components/q2-radio-group/styles.css +1 -0
- package/dist/collection/components/q2-select/index.js +6 -0
- package/dist/collection/components/q2-stepper/index.js +30 -6
- package/dist/collection/components/q2-stepper/styles.css +45 -13
- package/dist/collection/components/q2-tab-container/index.js +22 -4
- package/dist/collection/components/q2-tab-container/styles.css +16 -2
- package/dist/collection/components/q2-tab-pane/index.js +58 -1
- package/dist/collection/components/tecton-tab-pane/index.js +57 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/q2-avatar.entry.js +7 -2
- package/dist/esm/q2-badge.entry.js +1 -3
- package/dist/esm/q2-calendar.entry.js +3 -4
- package/dist/esm/q2-chart-donut.entry.js +8 -3
- package/dist/esm/q2-checkbox.entry.js +11 -12
- package/dist/esm/q2-editable-field.entry.js +2 -2
- package/dist/esm/q2-option-list.entry.js +4 -4
- package/dist/esm/q2-pill.entry.js +8 -1
- package/dist/esm/q2-radio-group.entry.js +1 -1
- package/dist/esm/q2-radio.entry.js +1 -0
- package/dist/esm/q2-select.entry.js +6 -0
- package/dist/esm/q2-stepper.entry.js +20 -3
- package/dist/esm/q2-tab-container.entry.js +15 -5
- package/dist/esm/q2-tab-pane.entry.js +8 -1
- package/dist/esm/q2-tecton-elements.js +1 -1
- package/dist/esm/tecton-tab-pane.entry.js +6 -1
- package/dist/q2-tecton-elements/p-1b3c4cb2.entry.js +1 -0
- package/dist/q2-tecton-elements/p-2f13d873.entry.js +1 -0
- package/dist/q2-tecton-elements/p-50615a56.entry.js +1 -0
- package/dist/q2-tecton-elements/p-60400f59.entry.js +1 -0
- package/dist/q2-tecton-elements/p-704d7f41.entry.js +1 -0
- package/dist/q2-tecton-elements/p-77263ed4.entry.js +1 -0
- package/dist/q2-tecton-elements/p-8a8c6374.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-92886dbe.entry.js → p-991d7d22.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-882eaf0f.entry.js → p-9b2bc894.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-eeb4a008.entry.js → p-b0dc920c.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-d5ecb3ba.entry.js +1 -0
- package/dist/q2-tecton-elements/p-dc1ef3fa.entry.js +1 -0
- package/dist/q2-tecton-elements/p-e0ddf788.entry.js +1 -0
- package/dist/q2-tecton-elements/p-e3406026.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-d5d2b3c9.entry.js → p-ead64414.entry.js} +1 -1
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
- package/dist/types/components/q2-avatar/index.d.ts +2 -0
- package/dist/types/components/q2-checkbox/index.d.ts +0 -1
- package/dist/types/components/q2-editable-field/index.d.ts +1 -0
- package/dist/types/components/q2-option-list/index.d.ts +4 -4
- package/dist/types/components/q2-pill/index.d.ts +2 -0
- package/dist/types/components/q2-stepper/index.d.ts +1 -0
- package/dist/types/components/q2-tab-container/index.d.ts +4 -0
- package/dist/types/components/q2-tab-pane/index.d.ts +5 -1
- package/dist/types/components/tecton-tab-pane/index.d.ts +5 -1
- package/dist/types/components.d.ts +14 -0
- package/dist/types/workspace/workspace/{tecton-production_release_1.14.x → Tecton_tecton-production_master}/packages/q2-tecton-elements/.stencil/test/elements/q2-tag-test.d.ts +0 -0
- package/dist/types/workspace/workspace/{tecton-production_release_1.14.x → Tecton_tecton-production_master}/packages/q2-tecton-elements/.stencil/test/helpers.d.ts +0 -0
- package/package.json +2 -2
- package/dist/q2-tecton-elements/p-0675f9c8.entry.js +0 -1
- package/dist/q2-tecton-elements/p-09464226.entry.js +0 -1
- package/dist/q2-tecton-elements/p-1eed57aa.entry.js +0 -1
- package/dist/q2-tecton-elements/p-3796397e.entry.js +0 -1
- package/dist/q2-tecton-elements/p-65e2df25.entry.js +0 -1
- package/dist/q2-tecton-elements/p-6727f6d0.entry.js +0 -1
- package/dist/q2-tecton-elements/p-706249e1.entry.js +0 -1
- package/dist/q2-tecton-elements/p-7ddb159c.entry.js +0 -1
- package/dist/q2-tecton-elements/p-87f448ab.entry.js +0 -1
- package/dist/q2-tecton-elements/p-b066cdd1.entry.js +0 -1
- package/dist/q2-tecton-elements/p-cc57b8b1.entry.js +0 -1
|
@@ -93,6 +93,13 @@ export class Q2Pill {
|
|
|
93
93
|
return selectedOptions[0].display;
|
|
94
94
|
return loc('tecton.element.pill.activeCount', { count: selectedOptions.length });
|
|
95
95
|
}
|
|
96
|
+
get truncatedButtonContent() {
|
|
97
|
+
const { maxLength, buttonContent } = this;
|
|
98
|
+
if (maxLength)
|
|
99
|
+
return buttonContent.length > maxLength ? `${buttonContent.substring(0, maxLength)}…` : buttonContent;
|
|
100
|
+
else
|
|
101
|
+
return buttonContent;
|
|
102
|
+
}
|
|
96
103
|
/// Listeners ///
|
|
97
104
|
delegateFocus(event) {
|
|
98
105
|
if (!isEventFromElement(event, this.hostElement))
|
|
@@ -123,8 +130,8 @@ export class Q2Pill {
|
|
|
123
130
|
return (h(Fragment, null,
|
|
124
131
|
h("div", { class: wrapperClassNames.join(' ') },
|
|
125
132
|
h("div", { class: "btn-height-wrapper", onClick: this.handleWrapperClick, tabIndex: -1 },
|
|
126
|
-
h("button", { class: "btn-primary", type: "button", "test-id": "btn-control", ref: el => (this.primaryBtn = el), onClick: this.handleClick, onKeyDown: this.handleKeydown, disabled: this.disabled, onFocusout: this.handleFocusout, "aria-selected": !hasOptions && active ? 'true' : 'false', "aria-roledescription": !hasOptions && 'filter', "aria-controls": hasOptions && 'option-list', "aria-haspopup": hasOptions && 'true', "aria-expanded": hasOptions && open
|
|
127
|
-
this.
|
|
133
|
+
h("button", { class: "btn-primary", type: "button", "test-id": "btn-control", ref: el => (this.primaryBtn = el), onClick: this.handleClick, onKeyDown: this.handleKeydown, disabled: this.disabled, onFocusout: this.handleFocusout, "aria-selected": !hasOptions && active ? 'true' : 'false', "aria-roledescription": !hasOptions && 'filter', "aria-controls": hasOptions && 'option-list', "aria-haspopup": hasOptions && 'true', "aria-expanded": (hasOptions && `${!!open}`) || undefined, "aria-label": this.maxLength && this.buttonContent },
|
|
134
|
+
this.truncatedButtonContent,
|
|
128
135
|
!hasOptions && active && h("span", { class: "sr" },
|
|
129
136
|
"(",
|
|
130
137
|
loc('tecton.element.pill.active'),
|
|
@@ -210,6 +217,23 @@ export class Q2Pill {
|
|
|
210
217
|
"attribute": "multiple",
|
|
211
218
|
"reflect": true
|
|
212
219
|
},
|
|
220
|
+
"maxLength": {
|
|
221
|
+
"type": "number",
|
|
222
|
+
"mutable": false,
|
|
223
|
+
"complexType": {
|
|
224
|
+
"original": "number",
|
|
225
|
+
"resolved": "number",
|
|
226
|
+
"references": {}
|
|
227
|
+
},
|
|
228
|
+
"required": false,
|
|
229
|
+
"optional": false,
|
|
230
|
+
"docs": {
|
|
231
|
+
"tags": [],
|
|
232
|
+
"text": ""
|
|
233
|
+
},
|
|
234
|
+
"attribute": "max-length",
|
|
235
|
+
"reflect": true
|
|
236
|
+
},
|
|
213
237
|
"label": {
|
|
214
238
|
"type": "string",
|
|
215
239
|
"mutable": false,
|
|
@@ -211,6 +211,11 @@ export class Q2Select {
|
|
|
211
211
|
this.searchText = '';
|
|
212
212
|
}
|
|
213
213
|
break;
|
|
214
|
+
case 'Tab':
|
|
215
|
+
if (dropdownOpen) {
|
|
216
|
+
this.closeDropdown();
|
|
217
|
+
}
|
|
218
|
+
break;
|
|
214
219
|
default:
|
|
215
220
|
if (searchable) {
|
|
216
221
|
this.openDropdownWithoutActiveElement();
|
|
@@ -554,6 +559,7 @@ export class Q2Select {
|
|
|
554
559
|
options.forEach(option => {
|
|
555
560
|
if (query === '') {
|
|
556
561
|
option.style.display = '';
|
|
562
|
+
option.hidden = false;
|
|
557
563
|
}
|
|
558
564
|
else {
|
|
559
565
|
const { display = '', innerText = '' } = option;
|
|
@@ -109,6 +109,13 @@ export class Q2Stepper {
|
|
|
109
109
|
return;
|
|
110
110
|
this.focusStep(this.currentStep, true, true);
|
|
111
111
|
}
|
|
112
|
+
statusChangeHandler(event) {
|
|
113
|
+
const index = Array.from(this.allPanes).findIndex(el => event.detail.id === el.id);
|
|
114
|
+
if (index > -1) {
|
|
115
|
+
this.allPanes[index].status = event.detail.status;
|
|
116
|
+
this.renderStepBtn(index);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
112
119
|
////////// GETTER METHODS ////////
|
|
113
120
|
get allPanes() {
|
|
114
121
|
return this.hostElement.querySelectorAll('q2-stepper-pane');
|
|
@@ -159,18 +166,29 @@ export class Q2Stepper {
|
|
|
159
166
|
renderStepBtn(stepIndex) {
|
|
160
167
|
var _a;
|
|
161
168
|
const { allPanes, stepCount, currentStep, lastEnabledStep } = this;
|
|
162
|
-
const { id, label, description } = (_a = allPanes === null || allPanes === void 0 ? void 0 : allPanes[stepIndex]) !== null && _a !== void 0 ? _a : {};
|
|
169
|
+
const { id, label, description, status } = (_a = allPanes === null || allPanes === void 0 ? void 0 : allPanes[stepIndex]) !== null && _a !== void 0 ? _a : {};
|
|
163
170
|
const stepNumber = stepIndex + 1;
|
|
164
171
|
const isCurrentStep = stepNumber === currentStep;
|
|
165
172
|
const labelId = label && `label-${id}`;
|
|
166
173
|
const descriptionId = label && description && `description-${id}`;
|
|
167
174
|
const btnLabel = !label && loc('tecton.element.stepper.number', [`${stepNumber}`, `${stepCount}`]);
|
|
175
|
+
let statusIcon;
|
|
176
|
+
if (status === 'complete')
|
|
177
|
+
statusIcon = 'success';
|
|
178
|
+
else if (status === 'error')
|
|
179
|
+
statusIcon = 'warning';
|
|
180
|
+
const stepClasses = ['step-btn'];
|
|
181
|
+
if (status)
|
|
182
|
+
stepClasses.push(`status-${status}`);
|
|
183
|
+
const isLocked = status === 'locked';
|
|
184
|
+
const disabled = isLocked || stepNumber > lastEnabledStep;
|
|
168
185
|
return (h("li", { role: "presentation" },
|
|
169
|
-
h("button", { class:
|
|
170
|
-
h(
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
186
|
+
h("button", { class: stepClasses.join(' '), type: "button", "aria-labelledby": labelId, "aria-describedBy": descriptionId, "aria-label": btnLabel, "aria-selected": isCurrentStep, "aria-controls": id, "aria-disabled": disabled ? 'true' : null, role: "tab", tabIndex: isCurrentStep ? 0 : -1, onKeyDown: ev => this.onStepKeyDown(ev, stepNumber), onClick: ev => !isLocked && this.onStepClick(ev, stepNumber) },
|
|
187
|
+
h(Fragment, null,
|
|
188
|
+
statusIcon ? (h("div", { class: "step-icon" },
|
|
189
|
+
h("q2-icon", { type: statusIcon }))) : (h("div", { class: "step-bubble" }, stepNumber)),
|
|
190
|
+
label && (h("div", { class: "step-label", id: labelId }, loc(label))),
|
|
191
|
+
label && description && (h("div", { class: "step-description", id: descriptionId }, loc(description))))),
|
|
174
192
|
stepIndex ? h("hr", null) : ''));
|
|
175
193
|
}
|
|
176
194
|
render() {
|
|
@@ -291,5 +309,11 @@ export class Q2Stepper {
|
|
|
291
309
|
"target": undefined,
|
|
292
310
|
"capture": false,
|
|
293
311
|
"passive": false
|
|
312
|
+
}, {
|
|
313
|
+
"name": "statusChange",
|
|
314
|
+
"method": "statusChangeHandler",
|
|
315
|
+
"target": undefined,
|
|
316
|
+
"capture": false,
|
|
317
|
+
"passive": false
|
|
294
318
|
}]; }
|
|
295
319
|
}
|
|
@@ -72,13 +72,18 @@ button {
|
|
|
72
72
|
ul {
|
|
73
73
|
--comp-bullet-bg: var(--tct-stepper-bullet-active-bg, var(--t-stepper-bullet-active-bg, var(--t-primary, #0079c1)));
|
|
74
74
|
--comp-bullet-font-color: var(--tct-stepper-bullet-active-font-color, var(--t-stepper-bullet-active-font-color, var(--t-primary-font-color, #ffffff)));
|
|
75
|
-
--comp-bullet-size: var(--tct-stepper-
|
|
76
|
-
--comp-bullet-gap: var(--tct-stepper-
|
|
75
|
+
--comp-bullet-size: var(--tct-stepper-btn-icon-size, var(--t-stepper-btn-icon-size, 24px));
|
|
76
|
+
--comp-bullet-gap: var(--tct-stepper-btn-gap, var(--t-stepper-btn-gap, var(--app-scale-3x, 15px)));
|
|
77
77
|
--comp-bullet-border-offset: var(--tct-stepper-bullet-border-offset, var(--t-stepper-bullet-border-offset, 4px));
|
|
78
78
|
--comp-bullet-border: var(--tct-stepper-bullet-border, var(--t-stepper-bullet-border, 2px solid var(--t-primary-l3)));
|
|
79
|
-
--comp-bullet-font-size: var(
|
|
79
|
+
--comp-bullet-font-size: var-list(var-prefixer(stepper-btn-label-font-size), 16px);
|
|
80
80
|
--comp-step-width: var(--tct-stepper-step-width, var(--t-stepper-step-width, var(--t-stepper-step-width, 80px)));
|
|
81
81
|
--comp-step-gap: var(--tct-stepper-step-gap, var(--t-stepper-step-gap, 5px));
|
|
82
|
+
--comp-top-btn-icon-size: var(--tct-stepper-btn-icon-size, var(--t-stepper-btn-icon-size, 24px));
|
|
83
|
+
--comp-btn-icon-size: var(--comp-top-btn-icon-size);
|
|
84
|
+
--comp-btn-content-gap: var(--tct-stepper-btn-gap, var(--t-stepper-btn-gap, var(--app-scale-3x, 15px)));
|
|
85
|
+
--comp-btn-label-font-size: var-list(var-prefixer(stepper-btn-label-font-size), 16px);
|
|
86
|
+
--comp-btn-label-color: var(--tct-stepper-label-color, var(--t-stepper-label-color, var(--t-text, #4d4d4d)));
|
|
82
87
|
--comp-tween: var(--tct-stepper-tween, var(--t-stepper-tween, var(--app-tween-1, 0.2s ease)));
|
|
83
88
|
overflow-x: auto;
|
|
84
89
|
display: flex;
|
|
@@ -135,32 +140,50 @@ li {
|
|
|
135
140
|
padding: 0;
|
|
136
141
|
transition-property: box-shadow;
|
|
137
142
|
outline: none;
|
|
143
|
+
--comp-active-color: var(--t-primary);
|
|
144
|
+
}
|
|
145
|
+
.step-btn.status-complete {
|
|
146
|
+
--comp-active-color: var(--const-stoplight-success);
|
|
147
|
+
}
|
|
148
|
+
.step-btn.status-error {
|
|
149
|
+
--comp-active-color: var(--const-stoplight-alert);
|
|
138
150
|
}
|
|
139
151
|
.step-btn[aria-disabled] {
|
|
140
|
-
cursor:
|
|
152
|
+
cursor: not-allowed;
|
|
141
153
|
}
|
|
142
154
|
.step-btn[aria-disabled], .step-btn[aria-disabled] + hr {
|
|
143
155
|
--comp-bullet-font-color: var(--tct-stepper-bullet-inactive-font-color, var(--t-stepper-bullet-inactive-font-color, var(--t-text, #4d4d4d)));
|
|
144
156
|
--comp-bullet-bg: var(--tct-stepper-bullet-inactive-bg, var(--t-stepper-bullet-inactive-bg, var(--t-gray-12, #d9d9d9)));
|
|
145
157
|
}
|
|
146
158
|
|
|
147
|
-
.step-bubble {
|
|
159
|
+
.step-icon, .step-bubble {
|
|
160
|
+
display: flex;
|
|
161
|
+
justify-content: center;
|
|
162
|
+
align-items: center;
|
|
163
|
+
line-height: 0;
|
|
148
164
|
margin: var(--comp-bullet-gap) auto;
|
|
149
|
-
background: var(--comp-bullet-bg);
|
|
150
165
|
color: var(--comp-bullet-font-color);
|
|
151
|
-
width: var(--comp-
|
|
152
|
-
height: var(--comp-
|
|
153
|
-
min-height: var(--comp-
|
|
166
|
+
width: var(--comp-btn-icon-size);
|
|
167
|
+
height: var(--comp-btn-icon-size);
|
|
168
|
+
min-height: var(--comp-btn-icon-size);
|
|
154
169
|
font-size: var(--comp-bullet-font-size);
|
|
155
170
|
transition: var(--comp-tween);
|
|
156
171
|
transition-property: background, color;
|
|
157
172
|
border-radius: 50%;
|
|
158
173
|
position: relative;
|
|
159
174
|
}
|
|
160
|
-
|
|
175
|
+
.step-icon q2-icon, .step-bubble q2-icon {
|
|
176
|
+
fill: var(--comp-active-color);
|
|
177
|
+
--tct-icon-stroke-primary: var(--comp-active-color);
|
|
178
|
+
--tct-icon-stroke-secondary: var(--t-base);
|
|
179
|
+
}
|
|
180
|
+
.status-complete .step-icon, .status-error .step-icon, .status-complete .step-bubble, .status-error .step-bubble {
|
|
181
|
+
background: var(--comp-active-color);
|
|
182
|
+
}
|
|
183
|
+
[aria-selected] .step-icon, [aria-selected] .step-bubble {
|
|
161
184
|
font-weight: var(--tct-stepper-bullet-active-font-weight, var(--t-stepper-bullet-active-font-weight, 600));
|
|
162
185
|
}
|
|
163
|
-
[aria-selected] .step-bubble:before {
|
|
186
|
+
[aria-selected] .step-icon:before, [aria-selected] .step-bubble:before {
|
|
164
187
|
content: "";
|
|
165
188
|
position: absolute;
|
|
166
189
|
inset: calc(var(--comp-bullet-border-offset) * -1);
|
|
@@ -168,6 +191,11 @@ li {
|
|
|
168
191
|
height: calc(var(--comp-bullet-size) + var(--comp-bullet-border-offset));
|
|
169
192
|
border-radius: 50%;
|
|
170
193
|
border: var(--comp-bullet-border);
|
|
194
|
+
border-color: var(--comp-active-color);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.step-bubble {
|
|
198
|
+
background: var(--comp-bullet-bg);
|
|
171
199
|
}
|
|
172
200
|
|
|
173
201
|
hr {
|
|
@@ -224,12 +252,12 @@ hr {
|
|
|
224
252
|
}
|
|
225
253
|
|
|
226
254
|
.gradient-left {
|
|
227
|
-
background-image: linear-gradient(to
|
|
255
|
+
background-image: linear-gradient(to left, var(--t-base-a0), var(--t-base-a2) 10%, var(--t-base) 100%);
|
|
228
256
|
left: 0;
|
|
229
257
|
}
|
|
230
258
|
|
|
231
259
|
.gradient-right {
|
|
232
|
-
background-image: linear-gradient(to right, var(--t-base-a0), var(--t-base));
|
|
260
|
+
background-image: linear-gradient(to right, var(--t-base-a0), var(--t-base-a2) 10%, var(--t-base) 100%);
|
|
233
261
|
right: 0;
|
|
234
262
|
}
|
|
235
263
|
|
|
@@ -243,6 +271,10 @@ hr {
|
|
|
243
271
|
top: calc(50% - 22px);
|
|
244
272
|
z-index: 2;
|
|
245
273
|
}
|
|
274
|
+
.btn-left q2-icon,
|
|
275
|
+
.btn-right q2-icon {
|
|
276
|
+
--tct-icon-stroke-width: 3;
|
|
277
|
+
}
|
|
246
278
|
|
|
247
279
|
.btn-left {
|
|
248
280
|
left: 0;
|
|
@@ -25,17 +25,21 @@ export class Q2TabContainer {
|
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
27
|
this.setTabs = () => {
|
|
28
|
-
this.tabs = this.tabPanes.map(({ label, value }) => ({
|
|
28
|
+
this.tabs = this.tabPanes.map(({ label, value, badgeCount, badgeDescription }) => ({
|
|
29
29
|
label: (label && loc(label)) || '',
|
|
30
30
|
value,
|
|
31
|
+
badgeCount,
|
|
32
|
+
badgeDescription,
|
|
31
33
|
}));
|
|
32
34
|
};
|
|
33
35
|
this.onTabClick = (event) => {
|
|
34
|
-
const
|
|
36
|
+
const targetValue = event.target.closest('button[role="tab"]')
|
|
37
|
+
.dataset.value;
|
|
38
|
+
const isAlreadySelected = this.value === targetValue;
|
|
35
39
|
if (isAlreadySelected)
|
|
36
40
|
return;
|
|
37
41
|
this.change.emit({
|
|
38
|
-
value:
|
|
42
|
+
value: targetValue,
|
|
39
43
|
});
|
|
40
44
|
};
|
|
41
45
|
this.onTabKeyDown = (event) => {
|
|
@@ -147,6 +151,9 @@ export class Q2TabContainer {
|
|
|
147
151
|
const index = this.tabs.findIndex(el => el.value === this.selectedTabValue);
|
|
148
152
|
this.moveFocus(index);
|
|
149
153
|
}
|
|
154
|
+
onBadge() {
|
|
155
|
+
this.setTabs();
|
|
156
|
+
}
|
|
150
157
|
///////// Lifecycle Hooks /////////
|
|
151
158
|
componentWillLoad() {
|
|
152
159
|
const observer = new MutationObserver(this.updateTabData);
|
|
@@ -211,7 +218,12 @@ export class Q2TabContainer {
|
|
|
211
218
|
const { label, value } = tab;
|
|
212
219
|
const isSelected = this.selectedTabValue === value;
|
|
213
220
|
return (h("li", { role: "presentation" },
|
|
214
|
-
h("button", { id: `tab-${this.guid}-${index}`, "data-value": value, "test-id": "tabLink", tabIndex: isSelected ? 0 : -1, role: "tab", "aria-selected": isSelected ? 'true' : 'false', "aria-controls": `tab-pane-${this.guid}-${index}`, onClick: this.onTabClick, onKeyDown: this.onTabKeyDown }, label)));
|
|
221
|
+
h("button", { id: `tab-${this.guid}-${index}`, "data-value": value, "test-id": "tabLink", tabIndex: isSelected ? 0 : -1, role: "tab", "aria-selected": isSelected ? 'true' : 'false', "aria-controls": `tab-pane-${this.guid}-${index}`, onClick: this.onTabClick, onKeyDown: this.onTabKeyDown }, tab.badgeCount === undefined ? label : this.generateTabWithBadge(tab, isSelected))));
|
|
222
|
+
}
|
|
223
|
+
generateTabWithBadge(tab, isSelected) {
|
|
224
|
+
return (h("div", { class: "tab-pane-badge", "aria-label": `${tab.label}, ${tab.badgeCount} ${tab.badgeDescription || loc('tecton.element.tab.pane.new')}` },
|
|
225
|
+
tab.label,
|
|
226
|
+
h("q2-badge", { value: tab.badgeCount, theme: isSelected ? 'primary' : undefined })));
|
|
215
227
|
}
|
|
216
228
|
static get is() { return "q2-tab-container"; }
|
|
217
229
|
static get encapsulation() { return "shadow"; }
|
|
@@ -374,5 +386,11 @@ export class Q2TabContainer {
|
|
|
374
386
|
"target": undefined,
|
|
375
387
|
"capture": false,
|
|
376
388
|
"passive": false
|
|
389
|
+
}, {
|
|
390
|
+
"name": "badge",
|
|
391
|
+
"method": "onBadge",
|
|
392
|
+
"target": undefined,
|
|
393
|
+
"capture": false,
|
|
394
|
+
"passive": false
|
|
377
395
|
}]; }
|
|
378
396
|
}
|
|
@@ -174,12 +174,12 @@ li button[aria-selected=true] {
|
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
.gradient-left {
|
|
177
|
-
background-image: linear-gradient(to
|
|
177
|
+
background-image: linear-gradient(to left, var(--t-base-a0), var(--t-base-a2) 10%, var(--t-base) 100%);
|
|
178
178
|
left: 0;
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
.gradient-right {
|
|
182
|
-
background-image: linear-gradient(to right, var(--t-base-a0), var(--t-base));
|
|
182
|
+
background-image: linear-gradient(to right, var(--t-base-a0), var(--t-base-a2) 10%, var(--t-base) 100%);
|
|
183
183
|
right: 0;
|
|
184
184
|
}
|
|
185
185
|
|
|
@@ -193,6 +193,10 @@ li button[aria-selected=true] {
|
|
|
193
193
|
top: calc(50% - 22px);
|
|
194
194
|
z-index: 2;
|
|
195
195
|
}
|
|
196
|
+
.btn-left q2-icon,
|
|
197
|
+
.btn-right q2-icon {
|
|
198
|
+
--tct-icon-stroke-width: 3;
|
|
199
|
+
}
|
|
196
200
|
|
|
197
201
|
.btn-left {
|
|
198
202
|
left: 0;
|
|
@@ -200,4 +204,14 @@ li button[aria-selected=true] {
|
|
|
200
204
|
|
|
201
205
|
.btn-right {
|
|
202
206
|
right: 0;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.tab-pane-badge {
|
|
210
|
+
display: flex;
|
|
211
|
+
justify-content: space-between;
|
|
212
|
+
align-items: center;
|
|
213
|
+
}
|
|
214
|
+
.tab-pane-badge q2-badge {
|
|
215
|
+
margin-left: 5px;
|
|
216
|
+
margin-right: 5px;
|
|
203
217
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { Component, Prop, h } from '@stencil/core';
|
|
1
|
+
import { Component, Prop, Event, Watch, h } from '@stencil/core';
|
|
2
2
|
export class Q2TabPane {
|
|
3
|
+
badgeObserver() {
|
|
4
|
+
this.badge.emit();
|
|
5
|
+
}
|
|
3
6
|
render() {
|
|
4
7
|
return (h("div", { id: `tab-pane-${this.guid}-${this.index}`, class: `tab-pane${this.selected ? '' : ' hidden'}`, role: "tabpanel", tabindex: "-1", "aria-hidden": `${!this.selected}`, "aria-labelledby": `tab-${this.guid}-${this.index}` },
|
|
5
8
|
h("slot", null)));
|
|
@@ -81,6 +84,40 @@ export class Q2TabPane {
|
|
|
81
84
|
"attribute": "selected",
|
|
82
85
|
"reflect": true
|
|
83
86
|
},
|
|
87
|
+
"badgeCount": {
|
|
88
|
+
"type": "number",
|
|
89
|
+
"mutable": false,
|
|
90
|
+
"complexType": {
|
|
91
|
+
"original": "number",
|
|
92
|
+
"resolved": "number",
|
|
93
|
+
"references": {}
|
|
94
|
+
},
|
|
95
|
+
"required": false,
|
|
96
|
+
"optional": false,
|
|
97
|
+
"docs": {
|
|
98
|
+
"tags": [],
|
|
99
|
+
"text": ""
|
|
100
|
+
},
|
|
101
|
+
"attribute": "badge-count",
|
|
102
|
+
"reflect": true
|
|
103
|
+
},
|
|
104
|
+
"badgeDescription": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"mutable": false,
|
|
107
|
+
"complexType": {
|
|
108
|
+
"original": "string",
|
|
109
|
+
"resolved": "string",
|
|
110
|
+
"references": {}
|
|
111
|
+
},
|
|
112
|
+
"required": false,
|
|
113
|
+
"optional": false,
|
|
114
|
+
"docs": {
|
|
115
|
+
"tags": [],
|
|
116
|
+
"text": ""
|
|
117
|
+
},
|
|
118
|
+
"attribute": "badge-description",
|
|
119
|
+
"reflect": true
|
|
120
|
+
},
|
|
84
121
|
"index": {
|
|
85
122
|
"type": "number",
|
|
86
123
|
"mutable": false,
|
|
@@ -116,4 +153,24 @@ export class Q2TabPane {
|
|
|
116
153
|
"reflect": false
|
|
117
154
|
}
|
|
118
155
|
}; }
|
|
156
|
+
static get events() { return [{
|
|
157
|
+
"method": "badge",
|
|
158
|
+
"name": "badge",
|
|
159
|
+
"bubbles": true,
|
|
160
|
+
"cancelable": true,
|
|
161
|
+
"composed": true,
|
|
162
|
+
"docs": {
|
|
163
|
+
"tags": [],
|
|
164
|
+
"text": ""
|
|
165
|
+
},
|
|
166
|
+
"complexType": {
|
|
167
|
+
"original": "boolean",
|
|
168
|
+
"resolved": "boolean",
|
|
169
|
+
"references": {}
|
|
170
|
+
}
|
|
171
|
+
}]; }
|
|
172
|
+
static get watchers() { return [{
|
|
173
|
+
"propName": "badgeCount",
|
|
174
|
+
"methodName": "badgeObserver"
|
|
175
|
+
}]; }
|
|
119
176
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, Element, h, Prop, State, Watch } from '@stencil/core';
|
|
1
|
+
import { Component, Element, h, Prop, State, Event, Watch } from '@stencil/core';
|
|
2
2
|
export class TectonTabPane {
|
|
3
3
|
constructor() {
|
|
4
4
|
///////// Actions /////////
|
|
@@ -8,6 +8,9 @@ export class TectonTabPane {
|
|
|
8
8
|
iframe.contentWindow.postMessage(`[iFrameSizer]${this.moduleId}:0:false:false:32:true:true:null:documentElementOffset`, '*');
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
+
badgeObserver() {
|
|
12
|
+
this.badge.emit();
|
|
13
|
+
}
|
|
11
14
|
get iframeTitle() {
|
|
12
15
|
return this.moduleId.split('.').slice(-2).join('-');
|
|
13
16
|
}
|
|
@@ -227,6 +230,40 @@ export class TectonTabPane {
|
|
|
227
230
|
"attribute": "min-height",
|
|
228
231
|
"reflect": true
|
|
229
232
|
},
|
|
233
|
+
"badgeCount": {
|
|
234
|
+
"type": "number",
|
|
235
|
+
"mutable": false,
|
|
236
|
+
"complexType": {
|
|
237
|
+
"original": "number",
|
|
238
|
+
"resolved": "number",
|
|
239
|
+
"references": {}
|
|
240
|
+
},
|
|
241
|
+
"required": false,
|
|
242
|
+
"optional": false,
|
|
243
|
+
"docs": {
|
|
244
|
+
"tags": [],
|
|
245
|
+
"text": ""
|
|
246
|
+
},
|
|
247
|
+
"attribute": "badge-count",
|
|
248
|
+
"reflect": true
|
|
249
|
+
},
|
|
250
|
+
"badgeDescription": {
|
|
251
|
+
"type": "string",
|
|
252
|
+
"mutable": false,
|
|
253
|
+
"complexType": {
|
|
254
|
+
"original": "string",
|
|
255
|
+
"resolved": "string",
|
|
256
|
+
"references": {}
|
|
257
|
+
},
|
|
258
|
+
"required": false,
|
|
259
|
+
"optional": false,
|
|
260
|
+
"docs": {
|
|
261
|
+
"tags": [],
|
|
262
|
+
"text": ""
|
|
263
|
+
},
|
|
264
|
+
"attribute": "badge-description",
|
|
265
|
+
"reflect": true
|
|
266
|
+
},
|
|
230
267
|
"authPayload": {
|
|
231
268
|
"type": "unknown",
|
|
232
269
|
"mutable": false,
|
|
@@ -263,8 +300,27 @@ export class TectonTabPane {
|
|
|
263
300
|
static get states() { return {
|
|
264
301
|
"_showForm": {}
|
|
265
302
|
}; }
|
|
303
|
+
static get events() { return [{
|
|
304
|
+
"method": "badge",
|
|
305
|
+
"name": "badge",
|
|
306
|
+
"bubbles": true,
|
|
307
|
+
"cancelable": true,
|
|
308
|
+
"composed": true,
|
|
309
|
+
"docs": {
|
|
310
|
+
"tags": [],
|
|
311
|
+
"text": ""
|
|
312
|
+
},
|
|
313
|
+
"complexType": {
|
|
314
|
+
"original": "boolean",
|
|
315
|
+
"resolved": "boolean",
|
|
316
|
+
"references": {}
|
|
317
|
+
}
|
|
318
|
+
}]; }
|
|
266
319
|
static get elementRef() { return "hostElement"; }
|
|
267
320
|
static get watchers() { return [{
|
|
321
|
+
"propName": "badgeCount",
|
|
322
|
+
"methodName": "badgeObserver"
|
|
323
|
+
}, {
|
|
268
324
|
"propName": "selected",
|
|
269
325
|
"methodName": "selectedObserver"
|
|
270
326
|
}]; }
|
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-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-select\",[[1,\"q2-select\",{\"label\":[513],\"hideLabel\":[516,\"hide-label\"],\"value\":[1025],\"ariaLabel\":[513,\"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]},[[0,\"change\",\"onHostElementChange\"],[0,\"input\",\"onHostElementInput\"],[0,\"focus\",\"delegateFocus\"],[0,\"click\",\"clickHandler\"],[0,\"keydown\",\"keydownHandler\"]]]]],[\"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\"],\"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-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\"]]]]],[\"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\"]]]]],[\"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],\"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],\"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\":[513],\"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-badge\",[[1,\"q2-badge\",{\"value\":[514],\"maxLength\":[514,\"max-length\"],\"position\":[513],\"size\":[513],\"theme\":[513],\"status\":[513]}]]],[\"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],\"index\":[2],\"guid\":[2]}]]],[\"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\"],\"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]}]]],[\"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\"]]]]],[\"q2-btn_2\",[[1,\"q2-btn\",{\"ariaExpanded\":[1,\"aria-expanded\"],\"ariaHasPopup\":[1,\"aria-has-popup\"],\"ariaControls\":[1,\"aria-controls\"],\"ariaSelected\":[1,\"aria-selected\"],\"label\":[513],\"hideLabel\":[516,\"hide-label\"],\"ariaLabel\":[513,\"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-input\",[[1,\"q2-input\",{\"value\":[1025],\"label\":[513],\"hideLabel\":[516,\"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\"],\"ariaControls\":[1,\"aria-controls\"],\"role\":[1],\"ariaOwns\":[1,\"aria-owns\"],\"ariaLabel\":[513,\"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\"]]]]],[\"click-elsewhere\",[[0,\"click-elsewhere\"]]]]"), 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-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-select\",[[1,\"q2-select\",{\"label\":[513],\"hideLabel\":[516,\"hide-label\"],\"value\":[1025],\"ariaLabel\":[513,\"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]},[[0,\"change\",\"onHostElementChange\"],[0,\"input\",\"onHostElementInput\"],[0,\"focus\",\"delegateFocus\"],[0,\"click\",\"clickHandler\"],[0,\"keydown\",\"keydownHandler\"]]]]],[\"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],\"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\":[513],\"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]}]]],[\"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-badge\",[[1,\"q2-badge\",{\"value\":[514],\"maxLength\":[514,\"max-length\"],\"position\":[513],\"size\":[513],\"theme\":[513],\"status\":[513]}]]],[\"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\"]]]]],[\"q2-btn_2\",[[1,\"q2-btn\",{\"ariaExpanded\":[1,\"aria-expanded\"],\"ariaHasPopup\":[1,\"aria-has-popup\"],\"ariaControls\":[1,\"aria-controls\"],\"ariaSelected\":[1,\"aria-selected\"],\"label\":[513],\"hideLabel\":[516,\"hide-label\"],\"ariaLabel\":[513,\"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-input\",[[1,\"q2-input\",{\"value\":[1025],\"label\":[513],\"hideLabel\":[516,\"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\"],\"ariaControls\":[1,\"aria-controls\"],\"role\":[1],\"ariaOwns\":[1,\"aria-owns\"],\"ariaLabel\":[513,\"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\"]]]]],[\"click-elsewhere\",[[0,\"click-elsewhere\"]]]]"), options);
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
|