q2-tecton-elements 1.69.1 → 1.70.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/bundle-report.json +2246 -355
- package/dist/cjs/click-elsewhere_3.cjs.entry.js +2 -2
- package/dist/cjs/{index-D2LFCsNP.js → index-SpDCZABA.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/q2-action-group_2.cjs.entry.js +1 -1
- package/dist/cjs/q2-action-sheet.cjs.entry.js +2 -2
- package/dist/cjs/q2-badge_2.cjs.entry.js +11 -4
- package/dist/cjs/q2-btn_2.cjs.entry.js +6 -2
- package/dist/cjs/q2-calendar.cjs.entry.js +5 -3
- package/dist/cjs/q2-card-image.cjs.entry.js +8 -6
- package/dist/cjs/q2-card.cjs.entry.js +2 -2
- 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-area.cjs.entry.js +1 -1
- package/dist/cjs/q2-chart-bar.cjs.entry.js +1 -1
- package/dist/cjs/q2-chart-donut.cjs.entry.js +2 -2
- package/dist/cjs/q2-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/q2-checkbox_2.cjs.entry.js +4 -3
- package/dist/cjs/q2-context.cjs.entry.js +1 -1
- package/dist/cjs/q2-currency.cjs.entry.js +1 -1
- package/dist/cjs/q2-data-table.cjs.entry.js +6 -3
- package/dist/cjs/q2-detail.cjs.entry.js +2 -2
- package/dist/cjs/q2-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/q2-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/q2-editable-field.cjs.entry.js +12 -4
- package/dist/cjs/q2-file-picker.cjs.entry.js +1 -1
- package/dist/cjs/q2-icon.cjs.entry.js +1 -1
- package/dist/cjs/q2-item.cjs.entry.js +2 -2
- package/dist/cjs/q2-legend.cjs.entry.js +1 -1
- package/dist/cjs/q2-link_2.cjs.entry.js +2 -2
- package/dist/cjs/q2-loc.cjs.entry.js +20 -2
- package/dist/cjs/q2-message.cjs.entry.js +1 -1
- package/dist/cjs/q2-meter.cjs.entry.js +2 -2
- package/dist/cjs/q2-modal.cjs.entry.js +3 -3
- package/dist/cjs/q2-month-picker.cjs.entry.js +1 -1
- package/dist/cjs/q2-optgroup.cjs.entry.js +1 -1
- package/dist/cjs/q2-option.cjs.entry.js +1 -1
- package/dist/cjs/q2-otp.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 +1 -1
- package/dist/cjs/q2-radio.cjs.entry.js +1 -1
- package/dist/cjs/q2-relative-time.cjs.entry.js +1 -1
- package/dist/cjs/q2-search.cjs.entry.js +101 -12
- package/dist/cjs/q2-section.cjs.entry.js +2 -2
- package/dist/cjs/q2-select.cjs.entry.js +36 -6
- package/dist/cjs/q2-stepper-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-stepper-vertical.cjs.entry.js +24 -18
- package/dist/cjs/q2-stepper.cjs.entry.js +5 -4
- package/dist/cjs/q2-surface.cjs.entry.js +95 -0
- package/dist/cjs/q2-tab-container.cjs.entry.js +2 -2
- package/dist/cjs/q2-tab-pane.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-toast.cjs.entry.js +1 -1
- package/dist/cjs/q2-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/tecton-tab-pane.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/q2-action-sheet/q2-action-sheet.css +1 -1
- package/dist/collection/components/q2-btn/q2-btn.css +32 -17
- package/dist/collection/components/q2-btn/q2-btn.js +6 -1
- package/dist/collection/components/q2-calendar/q2-calendar.js +24 -2
- package/dist/collection/components/q2-calendar/test/q2-calendar-test.vr.js +4 -0
- package/dist/collection/components/q2-card/q2-card.css +2 -2
- package/dist/collection/components/q2-card-image/q2-card-image.css +3 -0
- package/dist/collection/components/q2-card-image/q2-card-image.js +25 -23
- package/dist/collection/components/q2-chart-area/q2-chart-area.css +4 -0
- package/dist/collection/components/q2-chart-bar/q2-chart-bar.css +4 -0
- package/dist/collection/components/q2-chart-donut/q2-chart-donut.css +1 -1
- package/dist/collection/components/q2-checkbox/q2-checkbox.js +2 -1
- package/dist/collection/components/q2-currency/q2-currency.css +1 -1
- package/dist/collection/components/q2-data-table/q2-data-table.js +5 -2
- package/dist/collection/components/q2-detail/q2-detail.css +12 -12
- package/dist/collection/components/q2-dropdown/q2-dropdown.js +2 -2
- package/dist/collection/components/q2-editable-field/q2-editable-field.js +11 -3
- package/dist/collection/components/q2-input/q2-input.css +11 -1
- package/dist/collection/components/q2-input/q2-input.js +29 -2
- package/dist/collection/components/q2-input/test/q2-input-test.vr.js +8 -0
- package/dist/collection/components/q2-item/q2-item.css +10 -5
- package/dist/collection/components/q2-item/test/q2-item-test.vr.js +132 -0
- package/dist/collection/components/q2-legend/q2-legend.css +2 -2
- package/dist/collection/components/q2-list/q2-list.css +1 -1
- package/dist/collection/components/q2-loc/q2-loc.js +42 -1
- package/dist/collection/components/q2-message/q2-message.css +4 -0
- package/dist/collection/components/q2-meter/q2-meter.css +3 -3
- package/dist/collection/components/q2-modal/q2-modal.css +1 -1
- package/dist/collection/components/q2-modal/q2-modal.js +2 -2
- package/dist/collection/components/q2-otp/q2-otp.css +33 -0
- package/dist/collection/components/q2-otp/test/q2-otp-test.vr.js +83 -0
- package/dist/collection/components/q2-popover/q2-popover.css +2 -1
- package/dist/collection/components/q2-radio/q2-radio.css +2 -0
- package/dist/collection/components/q2-search/q2-search.css +30 -0
- package/dist/collection/components/q2-search/q2-search.js +99 -10
- package/dist/collection/components/q2-search/test/q2-search-test.vr.js +145 -0
- package/dist/collection/components/q2-section/q2-section.css +1 -1
- package/dist/collection/components/q2-select/q2-select.css +4 -2
- package/dist/collection/components/q2-select/q2-select.js +54 -4
- package/dist/collection/components/q2-select/test/q2-select-test.vr.js +5 -0
- package/dist/collection/components/q2-stepper/q2-stepper.css +2 -2
- package/dist/collection/components/q2-stepper/q2-stepper.js +3 -2
- package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.css +2 -2
- package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js +22 -16
- package/dist/collection/components/q2-surface/q2-surface.css +348 -0
- package/dist/collection/components/q2-surface/q2-surface.js +381 -0
- package/dist/collection/components/q2-surface/test/q2-surface-test.vr.js +108 -0
- package/dist/collection/components/q2-tab-container/q2-tab-container.js +1 -1
- package/dist/collection/components/q2-tab-pane/q2-tab-pane.js +1 -1
- package/dist/collection/components/q2-tag/q2-tag.js +1 -1
- package/dist/collection/components/q2-toast/q2-toast.js +3 -1
- package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.js +2 -2
- package/dist/collection/utils/index.js +2 -2
- package/dist/components/index.js +12 -10
- package/dist/components/index2.js +3 -3
- package/dist/components/q2-action-sheet.js +1 -1
- package/dist/components/q2-btn2.js +5 -1
- package/dist/components/q2-calendar.js +294 -290
- package/dist/components/q2-card-image.js +9 -6
- package/dist/components/q2-card.js +14 -14
- package/dist/components/q2-chart-donut.js +1 -1
- package/dist/components/q2-checkbox2.js +12 -12
- package/dist/components/q2-currency.js +1 -1
- package/dist/components/q2-data-table.js +4 -4
- package/dist/components/q2-detail.js +1 -1
- package/dist/components/q2-dropdown.js +8 -8
- package/dist/components/q2-editable-field.js +15 -5
- package/dist/components/q2-input2.js +46 -26
- package/dist/components/q2-item2.js +1 -1
- package/dist/components/q2-legend2.js +51 -51
- package/dist/components/q2-list2.js +1 -1
- package/dist/components/q2-loc.js +23 -8
- package/dist/components/q2-meter.js +10 -10
- package/dist/components/q2-modal.js +54 -54
- package/dist/components/q2-popover2.js +1 -1
- package/dist/components/q2-search.js +106 -51
- package/dist/components/q2-section.js +1 -1
- package/dist/components/q2-select2.js +25 -9
- package/dist/components/q2-stepper-vertical.js +72 -63
- package/dist/components/q2-stepper.js +73 -71
- package/dist/components/q2-surface.d.ts +11 -0
- package/dist/components/q2-surface.js +109 -0
- package/dist/components/q2-tab-container.js +12 -12
- package/dist/components/q2-tab-pane.js +6 -6
- package/dist/components/q2-tag2.js +5 -5
- package/dist/components/tecton-tab-pane.js +10 -10
- package/dist/esm/click-elsewhere_3.entry.js +2 -2
- package/dist/esm/{index-Bx4m6N0g.js → index-Cps4jSQM.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/q2-action-group_2.entry.js +1 -1
- package/dist/esm/q2-action-sheet.entry.js +2 -2
- package/dist/esm/q2-badge_2.entry.js +11 -4
- package/dist/esm/q2-btn_2.entry.js +6 -2
- package/dist/esm/q2-calendar.entry.js +5 -3
- package/dist/esm/q2-card-image.entry.js +8 -6
- package/dist/esm/q2-card.entry.js +2 -2
- package/dist/esm/q2-carousel-pane.entry.js +1 -1
- package/dist/esm/q2-carousel.entry.js +1 -1
- package/dist/esm/q2-chart-area.entry.js +1 -1
- package/dist/esm/q2-chart-bar.entry.js +1 -1
- package/dist/esm/q2-chart-donut.entry.js +2 -2
- package/dist/esm/q2-checkbox-group.entry.js +1 -1
- package/dist/esm/q2-checkbox_2.entry.js +4 -3
- package/dist/esm/q2-context.entry.js +1 -1
- package/dist/esm/q2-currency.entry.js +1 -1
- package/dist/esm/q2-data-table.entry.js +6 -3
- package/dist/esm/q2-detail.entry.js +2 -2
- package/dist/esm/q2-dropdown-item.entry.js +1 -1
- package/dist/esm/q2-dropdown.entry.js +3 -3
- package/dist/esm/q2-editable-field.entry.js +12 -4
- package/dist/esm/q2-file-picker.entry.js +1 -1
- package/dist/esm/q2-icon.entry.js +1 -1
- package/dist/esm/q2-item.entry.js +2 -2
- package/dist/esm/q2-legend.entry.js +1 -1
- package/dist/esm/q2-link_2.entry.js +2 -2
- package/dist/esm/q2-loc.entry.js +20 -2
- package/dist/esm/q2-message.entry.js +1 -1
- package/dist/esm/q2-meter.entry.js +2 -2
- package/dist/esm/q2-modal.entry.js +3 -3
- package/dist/esm/q2-month-picker.entry.js +1 -1
- package/dist/esm/q2-optgroup.entry.js +1 -1
- package/dist/esm/q2-option.entry.js +1 -1
- package/dist/esm/q2-otp.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 +1 -1
- package/dist/esm/q2-radio.entry.js +1 -1
- package/dist/esm/q2-relative-time.entry.js +1 -1
- package/dist/esm/q2-search.entry.js +101 -12
- package/dist/esm/q2-section.entry.js +2 -2
- package/dist/esm/q2-select.entry.js +36 -6
- package/dist/esm/q2-stepper-pane.entry.js +1 -1
- package/dist/esm/q2-stepper-vertical.entry.js +24 -18
- package/dist/esm/q2-stepper.entry.js +5 -4
- package/dist/esm/q2-surface.entry.js +93 -0
- package/dist/esm/q2-tab-container.entry.js +2 -2
- package/dist/esm/q2-tab-pane.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-toast.entry.js +1 -1
- package/dist/esm/q2-tooltip.entry.js +1 -1
- package/dist/esm/tecton-tab-pane.entry.js +2 -2
- package/dist/q2-tecton-elements/click-elsewhere_3.entry.js +2 -2
- package/dist/q2-tecton-elements/{index-Bx4m6N0g.js → index-Cps4jSQM.js} +3 -3
- package/dist/q2-tecton-elements/q2-action-group_2.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-action-sheet.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-badge_2.entry.js +51 -32
- package/dist/q2-tecton-elements/q2-btn_2.entry.js +6 -2
- package/dist/q2-tecton-elements/q2-calendar.entry.js +7 -4
- package/dist/q2-tecton-elements/q2-card-image.entry.js +65 -62
- package/dist/q2-tecton-elements/q2-card.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-carousel-pane.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-carousel.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-chart-area.entry.js +54 -54
- package/dist/q2-tecton-elements/q2-chart-bar.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-chart-donut.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-checkbox_2.entry.js +18 -18
- package/dist/q2-tecton-elements/q2-context.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-currency.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-data-table.entry.js +50 -50
- package/dist/q2-tecton-elements/q2-detail.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-dropdown-item.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-dropdown.entry.js +16 -16
- package/dist/q2-tecton-elements/q2-editable-field.entry.js +15 -8
- package/dist/q2-tecton-elements/q2-file-picker.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-icon.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-item.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-legend.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-link_2.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-loc.entry.js +20 -6
- package/dist/q2-tecton-elements/q2-message.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-meter.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-modal.entry.js +55 -55
- package/dist/q2-tecton-elements/q2-month-picker.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-optgroup.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-option.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-otp.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-pagination.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-pill.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-radio-group.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-radio.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-relative-time.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-search.entry.js +108 -53
- package/dist/q2-tecton-elements/q2-section.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-select.entry.js +25 -10
- package/dist/q2-tecton-elements/q2-stepper-pane.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-stepper-vertical.entry.js +75 -66
- package/dist/q2-tecton-elements/q2-stepper.entry.js +47 -45
- package/dist/q2-tecton-elements/q2-surface.entry.js +89 -0
- package/dist/q2-tecton-elements/q2-tab-container.entry.js +13 -13
- package/dist/q2-tecton-elements/q2-tab-pane.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
- package/dist/q2-tecton-elements/q2-textarea.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-toast.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-tooltip.entry.js +8 -8
- package/dist/q2-tecton-elements/tecton-tab-pane.entry.js +6 -6
- package/dist/types/components/q2-calendar/q2-calendar.d.ts +2 -0
- package/dist/types/components/q2-card-image/q2-card-image.d.ts +5 -5
- package/dist/types/components/q2-editable-field/q2-editable-field.d.ts +1 -0
- package/dist/types/components/q2-input/q2-input.d.ts +3 -0
- package/dist/types/components/q2-item/test/q2-item-test.vr.d.ts +1 -0
- package/dist/types/components/q2-loc/q2-loc.d.ts +6 -0
- package/dist/types/components/q2-modal/q2-modal.d.ts +1 -1
- package/dist/types/components/q2-otp/test/q2-otp-test.vr.d.ts +1 -0
- package/dist/types/components/q2-search/q2-search.d.ts +7 -0
- package/dist/types/components/q2-search/test/q2-search-test.vr.d.ts +1 -0
- package/dist/types/components/q2-select/q2-select.d.ts +4 -0
- package/dist/types/components/q2-stepper-vertical/q2-stepper-vertical.d.ts +2 -1
- package/dist/types/components/q2-surface/q2-surface.d.ts +54 -0
- package/dist/types/components/q2-surface/test/q2-surface-test.vr.d.ts +1 -0
- package/dist/types/components/q2-toast/q2-toast.d.ts +3 -1
- package/dist/types/components.d.ts +259 -13
- package/dist/types/utils/index.d.ts +3 -1
- package/package.json +4 -3
|
@@ -188,6 +188,7 @@ export declare class Q2Search implements ComponentInterface {
|
|
|
188
188
|
onSearchTextChange(): void;
|
|
189
189
|
buildStructuredSelectedOptions(): void;
|
|
190
190
|
get badgeValue(): string | null;
|
|
191
|
+
get firstSelectedOptionElement(): HTMLQ2OptionElement | null;
|
|
191
192
|
get innerInputContainer(): HTMLElement | null;
|
|
192
193
|
get innerInputField(): HTMLInputElement | null;
|
|
193
194
|
/**
|
|
@@ -199,13 +200,16 @@ export declare class Q2Search implements ComponentInterface {
|
|
|
199
200
|
get optionElements(): HTMLQ2OptionElement[];
|
|
200
201
|
get optionListId(): string;
|
|
201
202
|
get popoverMinHeight(): number;
|
|
203
|
+
get selectedDisplaySlot(): HTMLElement | null;
|
|
202
204
|
get visibleOptionElements(): HTMLQ2OptionElement[];
|
|
203
205
|
get wrapperClasses(): string;
|
|
204
206
|
announceResults(): void;
|
|
205
207
|
applyLocalFilter(): void;
|
|
206
208
|
applyMultilineOptions(): void;
|
|
209
|
+
checkSelectedDisplay(): HTMLElement | null;
|
|
207
210
|
checkSelectedOptions(): void;
|
|
208
211
|
clearAll: () => void;
|
|
212
|
+
clearSelectedDisplay(): null;
|
|
209
213
|
closeDropdown(): void;
|
|
210
214
|
getResolvedPopoverWidth(): number | null;
|
|
211
215
|
handleSelectionChanges: (detail: {
|
|
@@ -220,14 +224,17 @@ export declare class Q2Search implements ComponentInterface {
|
|
|
220
224
|
value: string;
|
|
221
225
|
values: OptionValue[];
|
|
222
226
|
}>) => void;
|
|
227
|
+
onSelectedDisplayMousedown: (event: MouseEvent) => void;
|
|
223
228
|
onViewportResize: () => void;
|
|
224
229
|
openDropdown(): void;
|
|
230
|
+
optionDisplayText(option: HTMLQ2OptionElement | undefined, fallback?: string): string;
|
|
225
231
|
revertToSelectedDisplay(): void;
|
|
226
232
|
setCustomLabel(): void;
|
|
227
233
|
setStatusMessage(message: string): void;
|
|
228
234
|
shouldUseBlockFallback(): boolean;
|
|
229
235
|
showAllOptions: () => void;
|
|
230
236
|
showSelectedOptions: () => void;
|
|
237
|
+
renderCustomDisplay(): any;
|
|
231
238
|
renderEmpty(): any;
|
|
232
239
|
renderMultiSelectHeader(): any;
|
|
233
240
|
renderOptionsDropdown(): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -121,6 +121,8 @@ export declare class Q2Select implements ComponentInterface {
|
|
|
121
121
|
* This property is only relevant for `multiple` (i.e., multi-select) implementations.
|
|
122
122
|
*/
|
|
123
123
|
selectedOptions: string[];
|
|
124
|
+
/** Determines whether to show a success state. The error state takes precedence when both are set. */
|
|
125
|
+
valid: boolean;
|
|
124
126
|
/**
|
|
125
127
|
* The current value for the select. This should correspond to the value of a nested q2-option element.
|
|
126
128
|
* This property is only relevant for single-select implementations.
|
|
@@ -283,6 +285,8 @@ export declare class Q2Select implements ComponentInterface {
|
|
|
283
285
|
open: boolean;
|
|
284
286
|
action: "close" | "select" | "open";
|
|
285
287
|
}>) => void;
|
|
288
|
+
onSelectedDisplayClick: (event: MouseEvent) => void;
|
|
289
|
+
onSelectedDisplayMousedown: (event: MouseEvent) => void;
|
|
286
290
|
openDropdownWithoutActiveElement(): void;
|
|
287
291
|
removeTouchEventListeners: () => void;
|
|
288
292
|
setCustomLabel(): void;
|
|
@@ -62,7 +62,7 @@ export declare class Q2StepperVertical implements ComponentInterface {
|
|
|
62
62
|
get allRootPanes(): HTMLQ2StepperPaneElement[];
|
|
63
63
|
buildPaneList: () => void;
|
|
64
64
|
determinePaneChanges: (mutations: MutationRecord[]) => void;
|
|
65
|
-
extractDetails(pane: HTMLQ2StepperPaneElement)
|
|
65
|
+
extractDetails: (pane: HTMLQ2StepperPaneElement) => {
|
|
66
66
|
id: string;
|
|
67
67
|
label: string;
|
|
68
68
|
description: string;
|
|
@@ -70,6 +70,7 @@ export declare class Q2StepperVertical implements ComponentInterface {
|
|
|
70
70
|
disabled: boolean;
|
|
71
71
|
};
|
|
72
72
|
focusStepBtn(stepId: string, forceFocus?: boolean): void;
|
|
73
|
+
getPaneSlotOrProperty(pane: HTMLQ2StepperPaneElement, slotName: 'description' | 'label'): string;
|
|
73
74
|
getStepId(currentStepId: string, goTo: string): string;
|
|
74
75
|
onStepClick: (event: any, stepId: string) => void;
|
|
75
76
|
onStepKeyDown: (event: KeyboardEvent, stepId: string) => void;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
/**
|
|
3
|
+
* @name Surface
|
|
4
|
+
* @category Display
|
|
5
|
+
* @summary An unopinionated visual primitive. A plain block by default that gains visual treatment via attributes.
|
|
6
|
+
*/
|
|
7
|
+
export declare class Q2Surface implements ComponentInterface {
|
|
8
|
+
private _cancelAnimation;
|
|
9
|
+
hostElement: HTMLElement;
|
|
10
|
+
/** Applies a background color from the design-system token palette. When unset, the surface is transparent. */
|
|
11
|
+
background?: 'default' | 'primary' | 'secondary' | 'tertiary';
|
|
12
|
+
/** Applies a gradient fade across the background.
|
|
13
|
+
*
|
|
14
|
+
* @info Direction and colors are customizable via CSS custom properties. */
|
|
15
|
+
backgroundGradient: boolean;
|
|
16
|
+
/** Renders a visible border around the surface, optionally in a themed color. */
|
|
17
|
+
border?: 'default' | 'primary' | 'secondary' | 'tertiary';
|
|
18
|
+
/**
|
|
19
|
+
* Renders the border as a gradient using the color set by the `border` prop. Takes precedence over a solid `border` when both are set.
|
|
20
|
+
*
|
|
21
|
+
* @info Requires `border` to be set to produce a colored gradient. Without `border`, falls back to the default border color.
|
|
22
|
+
*/
|
|
23
|
+
borderGradient: boolean;
|
|
24
|
+
/** Makes the surface interactive, responding to clicks.
|
|
25
|
+
*
|
|
26
|
+
* @info Emits `tctClick` when clicked. */
|
|
27
|
+
clickable: boolean;
|
|
28
|
+
/** Gives the component a drop shadow.
|
|
29
|
+
*
|
|
30
|
+
* @info 0 means no shadow; higher values appear more elevated. */
|
|
31
|
+
elevation: 0 | 1 | 2 | 3 | 4 | 5;
|
|
32
|
+
/** Adds internal padding applied uniformly on all sides.
|
|
33
|
+
*
|
|
34
|
+
* @info Individual axes can be overridden with `inset-x` and `inset-y`. */
|
|
35
|
+
inset: 'none' | 'compact' | 'normal' | 'comfortable';
|
|
36
|
+
/** Adds horizontal padding, overriding the horizontal component of `inset`. */
|
|
37
|
+
insetX?: 'none' | 'compact' | 'normal' | 'comfortable';
|
|
38
|
+
/** Adds vertical padding, overriding the vertical component of `inset`. */
|
|
39
|
+
insetY?: 'none' | 'compact' | 'normal' | 'comfortable';
|
|
40
|
+
/** Adds corner rounding on a scale from 0 (sharp) to 5 (most rounded). */
|
|
41
|
+
radius: 0 | 1 | 2 | 3 | 4 | 5;
|
|
42
|
+
/** Emitted when the surface is clicked and `clickable` is true. */
|
|
43
|
+
tctClick: EventEmitter<void>;
|
|
44
|
+
disconnectedCallback(): void;
|
|
45
|
+
onClick(): void;
|
|
46
|
+
onKeydown(event: KeyboardEvent): void;
|
|
47
|
+
/**
|
|
48
|
+
* Triggers a named animation on the surface. If an animation is already running, cancels it before starting the new one.
|
|
49
|
+
* @param animation The animation to play. Defaults to `'pulse'`.
|
|
50
|
+
* @returns A Promise that resolves when the animation finishes or is cancelled.
|
|
51
|
+
*/
|
|
52
|
+
animate(animation?: 'bounce' | 'flash' | 'pulse' | 'tada'): Promise<void>;
|
|
53
|
+
render(): any;
|
|
54
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
/**
|
|
3
|
+
* @name Toast
|
|
4
|
+
* @category Platform
|
|
5
|
+
* @summary Use for brief, non-intrusive notifications that appear temporarily and do not require user interaction.
|
|
3
6
|
* @slot icon - Optional slot for a custom icon.
|
|
4
7
|
* @slot title - Optional slot for the title content.
|
|
5
|
-
* @slot - Optional slot for the message content.
|
|
6
8
|
* @slot time - Optional slot for the time marker.
|
|
7
9
|
* @slot actions - Optional slot for action links in the footer.
|
|
8
10
|
*/
|
|
@@ -211,6 +211,7 @@ export namespace Components {
|
|
|
211
211
|
"loading": boolean;
|
|
212
212
|
/**
|
|
213
213
|
* Defines the size of q2-btn, it renders as default size if not provided.
|
|
214
|
+
* @default 'medium'
|
|
214
215
|
*/
|
|
215
216
|
"size": 'small' | 'medium' | 'large';
|
|
216
217
|
"tabIndex": number;
|
|
@@ -381,6 +382,11 @@ export namespace Components {
|
|
|
381
382
|
* The user can type in the field. Only available in desktop browsers.
|
|
382
383
|
*/
|
|
383
384
|
"typeable": boolean;
|
|
385
|
+
/**
|
|
386
|
+
* Show success styles when the calendar is in a valid state. The error state takes precedence when both are set.
|
|
387
|
+
* @default false
|
|
388
|
+
*/
|
|
389
|
+
"valid": boolean;
|
|
384
390
|
/**
|
|
385
391
|
* Defines an explicit date whitelist.
|
|
386
392
|
* @warning Must be a valid ISO date string.
|
|
@@ -472,10 +478,6 @@ export namespace Components {
|
|
|
472
478
|
* that adapts content visibility based on container width.
|
|
473
479
|
*/
|
|
474
480
|
interface Q2CardImage {
|
|
475
|
-
/**
|
|
476
|
-
* Accessible label for the card image. When provided, this value is applied as `aria-label` on either the card container (non-clickable) or the wrapping button (clickable).
|
|
477
|
-
*/
|
|
478
|
-
"accessibilityLabel"?: string;
|
|
479
481
|
/**
|
|
480
482
|
* Background style for the base layer. - `'primary'` | `'secondary'` | `'tertiary'`: Solid theme colors - `'gradient'`: Grayscale gradient (themable via CSS variables) - Custom string: URL/path to an image file (SVG, PNG, JPG)
|
|
481
483
|
* @default 'primary'
|
|
@@ -551,6 +553,10 @@ export namespace Components {
|
|
|
551
553
|
* Overrides the default status banner text (which is the cardStatus value in uppercase). Maximum 14 characters (including spaces) to ensure the text fits within the banner.
|
|
552
554
|
*/
|
|
553
555
|
"statusTextOverride"?: string;
|
|
556
|
+
/**
|
|
557
|
+
* Accessible label for the card image. When provided, this value is applied as `aria-label` on either the card container (non-clickable) or the wrapping button (clickable).
|
|
558
|
+
*/
|
|
559
|
+
"tctAriaLabel"?: string;
|
|
554
560
|
/**
|
|
555
561
|
* The card vendor. Renders the vendor logo in the bottom-right of the card. Not rendered at tiny size.
|
|
556
562
|
*/
|
|
@@ -2234,6 +2240,11 @@ export namespace Components {
|
|
|
2234
2240
|
* @default 'text'
|
|
2235
2241
|
*/
|
|
2236
2242
|
"type": InputType;
|
|
2243
|
+
/**
|
|
2244
|
+
* Displays a success state icon when the field does not have active errors.
|
|
2245
|
+
* @default false
|
|
2246
|
+
*/
|
|
2247
|
+
"valid": boolean;
|
|
2237
2248
|
/**
|
|
2238
2249
|
* Returns a read-only `ValidityState` object representing the validity states of the element. [See MDN for more information on ValidityState](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState).
|
|
2239
2250
|
*/
|
|
@@ -2420,6 +2431,12 @@ export namespace Components {
|
|
|
2420
2431
|
* @summary Use for displaying localized text from translation keys.
|
|
2421
2432
|
*/
|
|
2422
2433
|
interface Q2Loc {
|
|
2434
|
+
/**
|
|
2435
|
+
* When true, allows HTML tags in the localized string to be rendered as HTML.
|
|
2436
|
+
* @warning Only use this with trusted localization strings, as it uses innerHTML and may expose XSS vulnerabilities. See the FAQ "Can I add HTML to my localization strings?" for usage guidance.
|
|
2437
|
+
* @default false
|
|
2438
|
+
*/
|
|
2439
|
+
"ignoreTag": boolean;
|
|
2423
2440
|
/**
|
|
2424
2441
|
* Any substitutions you would like to pass into the localization string.
|
|
2425
2442
|
*/
|
|
@@ -2531,7 +2548,7 @@ export namespace Components {
|
|
|
2531
2548
|
}
|
|
2532
2549
|
/**
|
|
2533
2550
|
* @name Modal
|
|
2534
|
-
* @category
|
|
2551
|
+
* @category Platform
|
|
2535
2552
|
* @summary Use for focused interactions that require user attention before continuing.
|
|
2536
2553
|
*/
|
|
2537
2554
|
interface Q2Modal {
|
|
@@ -3581,6 +3598,11 @@ export namespace Components {
|
|
|
3581
3598
|
* @testOnly
|
|
3582
3599
|
*/
|
|
3583
3600
|
"setValue": (values: string | string[], options?: { closePopover?: boolean; }) => Promise<void>;
|
|
3601
|
+
/**
|
|
3602
|
+
* Determines whether to show a success state. The error state takes precedence when both are set.
|
|
3603
|
+
* @default false
|
|
3604
|
+
*/
|
|
3605
|
+
"valid": boolean;
|
|
3584
3606
|
/**
|
|
3585
3607
|
* The current value for the select. This should correspond to the value of a nested q2-option element. This property is only relevant for single-select implementations.
|
|
3586
3608
|
*/
|
|
@@ -3663,6 +3685,70 @@ export namespace Components {
|
|
|
3663
3685
|
*/
|
|
3664
3686
|
"selectStep": (stepId: string) => Promise<void>;
|
|
3665
3687
|
}
|
|
3688
|
+
/**
|
|
3689
|
+
* @name Surface
|
|
3690
|
+
* @category Display
|
|
3691
|
+
* @summary An unopinionated visual primitive. A plain block by default that gains visual treatment via attributes.
|
|
3692
|
+
*/
|
|
3693
|
+
interface Q2Surface {
|
|
3694
|
+
/**
|
|
3695
|
+
* Triggers a named animation on the surface. If an animation is already running, cancels it before starting the new one.
|
|
3696
|
+
* @param animation The animation to play. Defaults to `'pulse'`.
|
|
3697
|
+
* @returns A Promise that resolves when the animation finishes or is cancelled.
|
|
3698
|
+
*/
|
|
3699
|
+
"animate": (animation?: "bounce" | "flash" | "pulse" | "tada") => Promise<void>;
|
|
3700
|
+
/**
|
|
3701
|
+
* Applies a background color from the design-system token palette. When unset, the surface is transparent.
|
|
3702
|
+
*/
|
|
3703
|
+
"background"?: 'default' | 'primary' | 'secondary' | 'tertiary';
|
|
3704
|
+
/**
|
|
3705
|
+
* Applies a gradient fade across the background.
|
|
3706
|
+
* @info Direction and colors are customizable via CSS custom properties.
|
|
3707
|
+
* @default false
|
|
3708
|
+
*/
|
|
3709
|
+
"backgroundGradient": boolean;
|
|
3710
|
+
/**
|
|
3711
|
+
* Renders a visible border around the surface, optionally in a themed color.
|
|
3712
|
+
*/
|
|
3713
|
+
"border"?: 'default' | 'primary' | 'secondary' | 'tertiary';
|
|
3714
|
+
/**
|
|
3715
|
+
* Renders the border as a gradient using the color set by the `border` prop. Takes precedence over a solid `border` when both are set.
|
|
3716
|
+
* @info Requires `border` to be set to produce a colored gradient. Without `border`, falls back to the default border color.
|
|
3717
|
+
* @default false
|
|
3718
|
+
*/
|
|
3719
|
+
"borderGradient": boolean;
|
|
3720
|
+
/**
|
|
3721
|
+
* Makes the surface interactive, responding to clicks.
|
|
3722
|
+
* @info Emits `tctClick` when clicked.
|
|
3723
|
+
* @default false
|
|
3724
|
+
*/
|
|
3725
|
+
"clickable": boolean;
|
|
3726
|
+
/**
|
|
3727
|
+
* Gives the component a drop shadow.
|
|
3728
|
+
* @info 0 means no shadow; higher values appear more elevated.
|
|
3729
|
+
* @default 0
|
|
3730
|
+
*/
|
|
3731
|
+
"elevation": 0 | 1 | 2 | 3 | 4 | 5;
|
|
3732
|
+
/**
|
|
3733
|
+
* Adds internal padding applied uniformly on all sides.
|
|
3734
|
+
* @info Individual axes can be overridden with `inset-x` and `inset-y`.
|
|
3735
|
+
* @default 'none'
|
|
3736
|
+
*/
|
|
3737
|
+
"inset": 'none' | 'compact' | 'normal' | 'comfortable';
|
|
3738
|
+
/**
|
|
3739
|
+
* Adds horizontal padding, overriding the horizontal component of `inset`.
|
|
3740
|
+
*/
|
|
3741
|
+
"insetX"?: 'none' | 'compact' | 'normal' | 'comfortable';
|
|
3742
|
+
/**
|
|
3743
|
+
* Adds vertical padding, overriding the vertical component of `inset`.
|
|
3744
|
+
*/
|
|
3745
|
+
"insetY"?: 'none' | 'compact' | 'normal' | 'comfortable';
|
|
3746
|
+
/**
|
|
3747
|
+
* Adds corner rounding on a scale from 0 (sharp) to 5 (most rounded).
|
|
3748
|
+
* @default 0
|
|
3749
|
+
*/
|
|
3750
|
+
"radius": 0 | 1 | 2 | 3 | 4 | 5;
|
|
3751
|
+
}
|
|
3666
3752
|
/**
|
|
3667
3753
|
* @name Tab Container
|
|
3668
3754
|
* @category Display
|
|
@@ -3894,6 +3980,11 @@ export namespace Components {
|
|
|
3894
3980
|
*/
|
|
3895
3981
|
"value": string;
|
|
3896
3982
|
}
|
|
3983
|
+
/**
|
|
3984
|
+
* @name Toast
|
|
3985
|
+
* @category Platform
|
|
3986
|
+
* @summary Use for brief, non-intrusive notifications that appear temporarily and do not require user interaction.
|
|
3987
|
+
*/
|
|
3897
3988
|
interface Q2Toast {
|
|
3898
3989
|
/**
|
|
3899
3990
|
* Enables automatic dismissal after a duration.
|
|
@@ -4163,6 +4254,10 @@ export interface Q2StepperVerticalCustomEvent<T> extends CustomEvent<T> {
|
|
|
4163
4254
|
detail: T;
|
|
4164
4255
|
target: HTMLQ2StepperVerticalElement;
|
|
4165
4256
|
}
|
|
4257
|
+
export interface Q2SurfaceCustomEvent<T> extends CustomEvent<T> {
|
|
4258
|
+
detail: T;
|
|
4259
|
+
target: HTMLQ2SurfaceElement;
|
|
4260
|
+
}
|
|
4166
4261
|
export interface Q2TabContainerCustomEvent<T> extends CustomEvent<T> {
|
|
4167
4262
|
detail: T;
|
|
4168
4263
|
target: HTMLQ2TabContainerElement;
|
|
@@ -4932,7 +5027,7 @@ declare global {
|
|
|
4932
5027
|
}
|
|
4933
5028
|
/**
|
|
4934
5029
|
* @name Modal
|
|
4935
|
-
* @category
|
|
5030
|
+
* @category Platform
|
|
4936
5031
|
* @summary Use for focused interactions that require user attention before continuing.
|
|
4937
5032
|
*/
|
|
4938
5033
|
interface HTMLQ2ModalElement extends Components.Q2Modal, HTMLStencilElement {
|
|
@@ -5386,6 +5481,34 @@ declare global {
|
|
|
5386
5481
|
prototype: HTMLQ2StepperVerticalElement;
|
|
5387
5482
|
new (): HTMLQ2StepperVerticalElement;
|
|
5388
5483
|
};
|
|
5484
|
+
interface HTMLQ2SurfaceElementEventMap {
|
|
5485
|
+
"tctClick": void;
|
|
5486
|
+
}
|
|
5487
|
+
/**
|
|
5488
|
+
* @name Surface
|
|
5489
|
+
* @category Display
|
|
5490
|
+
* @summary An unopinionated visual primitive. A plain block by default that gains visual treatment via attributes.
|
|
5491
|
+
*/
|
|
5492
|
+
interface HTMLQ2SurfaceElement extends Omit<Components.Q2Surface, "animate">, HTMLStencilElement {
|
|
5493
|
+
/**
|
|
5494
|
+
* Triggers a named animation on the surface. If an animation is already running, cancels it before starting the new one.
|
|
5495
|
+
* @param animation The animation to play. Defaults to `'pulse'`.
|
|
5496
|
+
* @returns A Promise that resolves when the animation finishes or is cancelled.
|
|
5497
|
+
*/
|
|
5498
|
+
"animate": (animation?: "bounce" | "flash" | "pulse" | "tada") => Promise<void>;
|
|
5499
|
+
addEventListener<K extends keyof HTMLQ2SurfaceElementEventMap>(type: K, listener: (this: HTMLQ2SurfaceElement, ev: Q2SurfaceCustomEvent<HTMLQ2SurfaceElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
5500
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
5501
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
5502
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
5503
|
+
removeEventListener<K extends keyof HTMLQ2SurfaceElementEventMap>(type: K, listener: (this: HTMLQ2SurfaceElement, ev: Q2SurfaceCustomEvent<HTMLQ2SurfaceElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
5504
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
5505
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
5506
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
5507
|
+
}
|
|
5508
|
+
var HTMLQ2SurfaceElement: {
|
|
5509
|
+
prototype: HTMLQ2SurfaceElement;
|
|
5510
|
+
new (): HTMLQ2SurfaceElement;
|
|
5511
|
+
};
|
|
5389
5512
|
interface HTMLQ2TabContainerElementEventMap {
|
|
5390
5513
|
"change": { value: string };
|
|
5391
5514
|
"settled": undefined;
|
|
@@ -5483,6 +5606,11 @@ declare global {
|
|
|
5483
5606
|
interface HTMLQ2ToastElementEventMap {
|
|
5484
5607
|
"tctClose": { reason: 'close' | 'timeout' };
|
|
5485
5608
|
}
|
|
5609
|
+
/**
|
|
5610
|
+
* @name Toast
|
|
5611
|
+
* @category Platform
|
|
5612
|
+
* @summary Use for brief, non-intrusive notifications that appear temporarily and do not require user interaction.
|
|
5613
|
+
*/
|
|
5486
5614
|
interface HTMLQ2ToastElement extends Components.Q2Toast, HTMLStencilElement {
|
|
5487
5615
|
addEventListener<K extends keyof HTMLQ2ToastElementEventMap>(type: K, listener: (this: HTMLQ2ToastElement, ev: Q2ToastCustomEvent<HTMLQ2ToastElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
5488
5616
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -5587,6 +5715,7 @@ declare global {
|
|
|
5587
5715
|
"q2-stepper": HTMLQ2StepperElement;
|
|
5588
5716
|
"q2-stepper-pane": HTMLQ2StepperPaneElement;
|
|
5589
5717
|
"q2-stepper-vertical": HTMLQ2StepperVerticalElement;
|
|
5718
|
+
"q2-surface": HTMLQ2SurfaceElement;
|
|
5590
5719
|
"q2-tab-container": HTMLQ2TabContainerElement;
|
|
5591
5720
|
"q2-tab-pane": HTMLQ2TabPaneElement;
|
|
5592
5721
|
"q2-tag": HTMLQ2TagElement;
|
|
@@ -5800,6 +5929,7 @@ declare namespace LocalJSX {
|
|
|
5800
5929
|
"onTctClick"?: (event: Q2BtnCustomEvent<any>) => void;
|
|
5801
5930
|
/**
|
|
5802
5931
|
* Defines the size of q2-btn, it renders as default size if not provided.
|
|
5932
|
+
* @default 'medium'
|
|
5803
5933
|
*/
|
|
5804
5934
|
"size"?: 'small' | 'medium' | 'large';
|
|
5805
5935
|
"tabIndex"?: number;
|
|
@@ -5990,6 +6120,11 @@ declare namespace LocalJSX {
|
|
|
5990
6120
|
* The user can type in the field. Only available in desktop browsers.
|
|
5991
6121
|
*/
|
|
5992
6122
|
"typeable"?: boolean;
|
|
6123
|
+
/**
|
|
6124
|
+
* Show success styles when the calendar is in a valid state. The error state takes precedence when both are set.
|
|
6125
|
+
* @default false
|
|
6126
|
+
*/
|
|
6127
|
+
"valid"?: boolean;
|
|
5993
6128
|
/**
|
|
5994
6129
|
* Defines an explicit date whitelist.
|
|
5995
6130
|
* @warning Must be a valid ISO date string.
|
|
@@ -6090,10 +6225,6 @@ declare namespace LocalJSX {
|
|
|
6090
6225
|
* that adapts content visibility based on container width.
|
|
6091
6226
|
*/
|
|
6092
6227
|
interface Q2CardImage {
|
|
6093
|
-
/**
|
|
6094
|
-
* Accessible label for the card image. When provided, this value is applied as `aria-label` on either the card container (non-clickable) or the wrapping button (clickable).
|
|
6095
|
-
*/
|
|
6096
|
-
"accessibilityLabel"?: string;
|
|
6097
6228
|
/**
|
|
6098
6229
|
* Background style for the base layer. - `'primary'` | `'secondary'` | `'tertiary'`: Solid theme colors - `'gradient'`: Grayscale gradient (themable via CSS variables) - Custom string: URL/path to an image file (SVG, PNG, JPG)
|
|
6099
6230
|
* @default 'primary'
|
|
@@ -6181,6 +6312,10 @@ declare namespace LocalJSX {
|
|
|
6181
6312
|
* Overrides the default status banner text (which is the cardStatus value in uppercase). Maximum 14 characters (including spaces) to ensure the text fits within the banner.
|
|
6182
6313
|
*/
|
|
6183
6314
|
"statusTextOverride"?: string;
|
|
6315
|
+
/**
|
|
6316
|
+
* Accessible label for the card image. When provided, this value is applied as `aria-label` on either the card container (non-clickable) or the wrapping button (clickable).
|
|
6317
|
+
*/
|
|
6318
|
+
"tctAriaLabel"?: string;
|
|
6184
6319
|
/**
|
|
6185
6320
|
* The card vendor. Renders the vendor logo in the bottom-right of the card. Not rendered at tiny size.
|
|
6186
6321
|
*/
|
|
@@ -7947,6 +8082,11 @@ declare namespace LocalJSX {
|
|
|
7947
8082
|
* @default 'text'
|
|
7948
8083
|
*/
|
|
7949
8084
|
"type"?: InputType;
|
|
8085
|
+
/**
|
|
8086
|
+
* Displays a success state icon when the field does not have active errors.
|
|
8087
|
+
* @default false
|
|
8088
|
+
*/
|
|
8089
|
+
"valid"?: boolean;
|
|
7950
8090
|
/**
|
|
7951
8091
|
* Returns a read-only `ValidityState` object representing the validity states of the element. [See MDN for more information on ValidityState](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState).
|
|
7952
8092
|
*/
|
|
@@ -8160,6 +8300,12 @@ declare namespace LocalJSX {
|
|
|
8160
8300
|
* @summary Use for displaying localized text from translation keys.
|
|
8161
8301
|
*/
|
|
8162
8302
|
interface Q2Loc {
|
|
8303
|
+
/**
|
|
8304
|
+
* When true, allows HTML tags in the localized string to be rendered as HTML.
|
|
8305
|
+
* @warning Only use this with trusted localization strings, as it uses innerHTML and may expose XSS vulnerabilities. See the FAQ "Can I add HTML to my localization strings?" for usage guidance.
|
|
8306
|
+
* @default false
|
|
8307
|
+
*/
|
|
8308
|
+
"ignoreTag"?: boolean;
|
|
8163
8309
|
/**
|
|
8164
8310
|
* Any substitutions you would like to pass into the localization string.
|
|
8165
8311
|
*/
|
|
@@ -8267,7 +8413,7 @@ declare namespace LocalJSX {
|
|
|
8267
8413
|
}
|
|
8268
8414
|
/**
|
|
8269
8415
|
* @name Modal
|
|
8270
|
-
* @category
|
|
8416
|
+
* @category Platform
|
|
8271
8417
|
* @summary Use for focused interactions that require user attention before continuing.
|
|
8272
8418
|
*/
|
|
8273
8419
|
interface Q2Modal {
|
|
@@ -9348,6 +9494,11 @@ declare namespace LocalJSX {
|
|
|
9348
9494
|
* @default []
|
|
9349
9495
|
*/
|
|
9350
9496
|
"selectedOptions"?: string[];
|
|
9497
|
+
/**
|
|
9498
|
+
* Determines whether to show a success state. The error state takes precedence when both are set.
|
|
9499
|
+
* @default false
|
|
9500
|
+
*/
|
|
9501
|
+
"valid"?: boolean;
|
|
9351
9502
|
/**
|
|
9352
9503
|
* The current value for the select. This should correspond to the value of a nested q2-option element. This property is only relevant for single-select implementations.
|
|
9353
9504
|
*/
|
|
@@ -9473,6 +9624,68 @@ declare namespace LocalJSX {
|
|
|
9473
9624
|
currentStepId: string;
|
|
9474
9625
|
}>) => void;
|
|
9475
9626
|
}
|
|
9627
|
+
/**
|
|
9628
|
+
* @name Surface
|
|
9629
|
+
* @category Display
|
|
9630
|
+
* @summary An unopinionated visual primitive. A plain block by default that gains visual treatment via attributes.
|
|
9631
|
+
*/
|
|
9632
|
+
interface Q2Surface {
|
|
9633
|
+
/**
|
|
9634
|
+
* Applies a background color from the design-system token palette. When unset, the surface is transparent.
|
|
9635
|
+
*/
|
|
9636
|
+
"background"?: 'default' | 'primary' | 'secondary' | 'tertiary';
|
|
9637
|
+
/**
|
|
9638
|
+
* Applies a gradient fade across the background.
|
|
9639
|
+
* @info Direction and colors are customizable via CSS custom properties.
|
|
9640
|
+
* @default false
|
|
9641
|
+
*/
|
|
9642
|
+
"backgroundGradient"?: boolean;
|
|
9643
|
+
/**
|
|
9644
|
+
* Renders a visible border around the surface, optionally in a themed color.
|
|
9645
|
+
*/
|
|
9646
|
+
"border"?: 'default' | 'primary' | 'secondary' | 'tertiary';
|
|
9647
|
+
/**
|
|
9648
|
+
* Renders the border as a gradient using the color set by the `border` prop. Takes precedence over a solid `border` when both are set.
|
|
9649
|
+
* @info Requires `border` to be set to produce a colored gradient. Without `border`, falls back to the default border color.
|
|
9650
|
+
* @default false
|
|
9651
|
+
*/
|
|
9652
|
+
"borderGradient"?: boolean;
|
|
9653
|
+
/**
|
|
9654
|
+
* Makes the surface interactive, responding to clicks.
|
|
9655
|
+
* @info Emits `tctClick` when clicked.
|
|
9656
|
+
* @default false
|
|
9657
|
+
*/
|
|
9658
|
+
"clickable"?: boolean;
|
|
9659
|
+
/**
|
|
9660
|
+
* Gives the component a drop shadow.
|
|
9661
|
+
* @info 0 means no shadow; higher values appear more elevated.
|
|
9662
|
+
* @default 0
|
|
9663
|
+
*/
|
|
9664
|
+
"elevation"?: 0 | 1 | 2 | 3 | 4 | 5;
|
|
9665
|
+
/**
|
|
9666
|
+
* Adds internal padding applied uniformly on all sides.
|
|
9667
|
+
* @info Individual axes can be overridden with `inset-x` and `inset-y`.
|
|
9668
|
+
* @default 'none'
|
|
9669
|
+
*/
|
|
9670
|
+
"inset"?: 'none' | 'compact' | 'normal' | 'comfortable';
|
|
9671
|
+
/**
|
|
9672
|
+
* Adds horizontal padding, overriding the horizontal component of `inset`.
|
|
9673
|
+
*/
|
|
9674
|
+
"insetX"?: 'none' | 'compact' | 'normal' | 'comfortable';
|
|
9675
|
+
/**
|
|
9676
|
+
* Adds vertical padding, overriding the vertical component of `inset`.
|
|
9677
|
+
*/
|
|
9678
|
+
"insetY"?: 'none' | 'compact' | 'normal' | 'comfortable';
|
|
9679
|
+
/**
|
|
9680
|
+
* Emitted when the surface is clicked and `clickable` is true.
|
|
9681
|
+
*/
|
|
9682
|
+
"onTctClick"?: (event: Q2SurfaceCustomEvent<void>) => void;
|
|
9683
|
+
/**
|
|
9684
|
+
* Adds corner rounding on a scale from 0 (sharp) to 5 (most rounded).
|
|
9685
|
+
* @default 0
|
|
9686
|
+
*/
|
|
9687
|
+
"radius"?: 0 | 1 | 2 | 3 | 4 | 5;
|
|
9688
|
+
}
|
|
9476
9689
|
/**
|
|
9477
9690
|
* @name Tab Container
|
|
9478
9691
|
* @category Display
|
|
@@ -9729,6 +9942,11 @@ declare namespace LocalJSX {
|
|
|
9729
9942
|
*/
|
|
9730
9943
|
"value"?: string;
|
|
9731
9944
|
}
|
|
9945
|
+
/**
|
|
9946
|
+
* @name Toast
|
|
9947
|
+
* @category Platform
|
|
9948
|
+
* @summary Use for brief, non-intrusive notifications that appear temporarily and do not require user interaction.
|
|
9949
|
+
*/
|
|
9732
9950
|
interface Q2Toast {
|
|
9733
9951
|
/**
|
|
9734
9952
|
* Enables automatic dismissal after a duration.
|
|
@@ -9936,6 +10154,7 @@ declare namespace LocalJSX {
|
|
|
9936
10154
|
"readonly": boolean;
|
|
9937
10155
|
"startDate": string;
|
|
9938
10156
|
"typeable": boolean;
|
|
10157
|
+
"valid": boolean;
|
|
9939
10158
|
"value": string | { toDate(): Date };
|
|
9940
10159
|
}
|
|
9941
10160
|
interface Q2CardAttributes {
|
|
@@ -9954,7 +10173,6 @@ declare namespace LocalJSX {
|
|
|
9954
10173
|
"url": string;
|
|
9955
10174
|
}
|
|
9956
10175
|
interface Q2CardImageAttributes {
|
|
9957
|
-
"accessibilityLabel": string;
|
|
9958
10176
|
"background": 'primary' | 'secondary' | 'tertiary' | 'gradient' | string;
|
|
9959
10177
|
"cardHolder": string;
|
|
9960
10178
|
"cardHolderLabel": boolean;
|
|
@@ -9972,6 +10190,7 @@ declare namespace LocalJSX {
|
|
|
9972
10190
|
"orientation": 'horizontal' | 'vertical';
|
|
9973
10191
|
"overlay": 'dot' | string;
|
|
9974
10192
|
"statusTextOverride": string;
|
|
10193
|
+
"tctAriaLabel": string;
|
|
9975
10194
|
"vendor": 'mastercard' | 'visa';
|
|
9976
10195
|
"vendorColor": 'black' | 'brand' | 'white';
|
|
9977
10196
|
"vendorLogo": string;
|
|
@@ -10315,6 +10534,7 @@ declare namespace LocalJSX {
|
|
|
10315
10534
|
"step": number;
|
|
10316
10535
|
"textHidden": boolean;
|
|
10317
10536
|
"type": InputType;
|
|
10537
|
+
"valid": boolean;
|
|
10318
10538
|
"value": string;
|
|
10319
10539
|
}
|
|
10320
10540
|
interface Q2ItemAttributes {
|
|
@@ -10361,6 +10581,7 @@ declare namespace LocalJSX {
|
|
|
10361
10581
|
"width": string;
|
|
10362
10582
|
}
|
|
10363
10583
|
interface Q2LocAttributes {
|
|
10584
|
+
"ignoreTag": boolean;
|
|
10364
10585
|
"value": string;
|
|
10365
10586
|
}
|
|
10366
10587
|
interface Q2MessageAttributes {
|
|
@@ -10580,6 +10801,7 @@ declare namespace LocalJSX {
|
|
|
10580
10801
|
"popoverMode": 'legacy';
|
|
10581
10802
|
"readonly": boolean;
|
|
10582
10803
|
"searchable": boolean;
|
|
10804
|
+
"valid": boolean;
|
|
10583
10805
|
"value": string;
|
|
10584
10806
|
}
|
|
10585
10807
|
interface Q2StepperAttributes {
|
|
@@ -10598,6 +10820,18 @@ declare namespace LocalJSX {
|
|
|
10598
10820
|
interface Q2StepperVerticalAttributes {
|
|
10599
10821
|
"currentStepId": string;
|
|
10600
10822
|
}
|
|
10823
|
+
interface Q2SurfaceAttributes {
|
|
10824
|
+
"background": 'default' | 'primary' | 'secondary' | 'tertiary';
|
|
10825
|
+
"backgroundGradient": boolean;
|
|
10826
|
+
"border": 'default' | 'primary' | 'secondary' | 'tertiary';
|
|
10827
|
+
"borderGradient": boolean;
|
|
10828
|
+
"clickable": boolean;
|
|
10829
|
+
"elevation": 0 | 1 | 2 | 3 | 4 | 5;
|
|
10830
|
+
"inset": 'none' | 'compact' | 'normal' | 'comfortable';
|
|
10831
|
+
"insetX": 'none' | 'compact' | 'normal' | 'comfortable';
|
|
10832
|
+
"insetY": 'none' | 'compact' | 'normal' | 'comfortable';
|
|
10833
|
+
"radius": 0 | 1 | 2 | 3 | 4 | 5;
|
|
10834
|
+
}
|
|
10601
10835
|
interface Q2TabContainerAttributes {
|
|
10602
10836
|
"color": 'alt' | undefined;
|
|
10603
10837
|
"name": string;
|
|
@@ -10746,6 +10980,7 @@ declare namespace LocalJSX {
|
|
|
10746
10980
|
"q2-stepper": Omit<Q2Stepper, keyof Q2StepperAttributes> & { [K in keyof Q2Stepper & keyof Q2StepperAttributes]?: Q2Stepper[K] } & { [K in keyof Q2Stepper & keyof Q2StepperAttributes as `attr:${K}`]?: Q2StepperAttributes[K] } & { [K in keyof Q2Stepper & keyof Q2StepperAttributes as `prop:${K}`]?: Q2Stepper[K] };
|
|
10747
10981
|
"q2-stepper-pane": Omit<Q2StepperPane, keyof Q2StepperPaneAttributes> & { [K in keyof Q2StepperPane & keyof Q2StepperPaneAttributes]?: Q2StepperPane[K] } & { [K in keyof Q2StepperPane & keyof Q2StepperPaneAttributes as `attr:${K}`]?: Q2StepperPaneAttributes[K] } & { [K in keyof Q2StepperPane & keyof Q2StepperPaneAttributes as `prop:${K}`]?: Q2StepperPane[K] };
|
|
10748
10982
|
"q2-stepper-vertical": Omit<Q2StepperVertical, keyof Q2StepperVerticalAttributes> & { [K in keyof Q2StepperVertical & keyof Q2StepperVerticalAttributes]?: Q2StepperVertical[K] } & { [K in keyof Q2StepperVertical & keyof Q2StepperVerticalAttributes as `attr:${K}`]?: Q2StepperVerticalAttributes[K] } & { [K in keyof Q2StepperVertical & keyof Q2StepperVerticalAttributes as `prop:${K}`]?: Q2StepperVertical[K] };
|
|
10983
|
+
"q2-surface": Omit<Q2Surface, keyof Q2SurfaceAttributes> & { [K in keyof Q2Surface & keyof Q2SurfaceAttributes]?: Q2Surface[K] } & { [K in keyof Q2Surface & keyof Q2SurfaceAttributes as `attr:${K}`]?: Q2SurfaceAttributes[K] } & { [K in keyof Q2Surface & keyof Q2SurfaceAttributes as `prop:${K}`]?: Q2Surface[K] };
|
|
10749
10984
|
"q2-tab-container": Omit<Q2TabContainer, keyof Q2TabContainerAttributes> & { [K in keyof Q2TabContainer & keyof Q2TabContainerAttributes]?: Q2TabContainer[K] } & { [K in keyof Q2TabContainer & keyof Q2TabContainerAttributes as `attr:${K}`]?: Q2TabContainerAttributes[K] } & { [K in keyof Q2TabContainer & keyof Q2TabContainerAttributes as `prop:${K}`]?: Q2TabContainer[K] };
|
|
10750
10985
|
"q2-tab-pane": Omit<Q2TabPane, keyof Q2TabPaneAttributes> & { [K in keyof Q2TabPane & keyof Q2TabPaneAttributes]?: Q2TabPane[K] } & { [K in keyof Q2TabPane & keyof Q2TabPaneAttributes as `attr:${K}`]?: Q2TabPaneAttributes[K] } & { [K in keyof Q2TabPane & keyof Q2TabPaneAttributes as `prop:${K}`]?: Q2TabPane[K] };
|
|
10751
10986
|
"q2-tag": Omit<Q2Tag, keyof Q2TagAttributes> & { [K in keyof Q2Tag & keyof Q2TagAttributes]?: Q2Tag[K] } & { [K in keyof Q2Tag & keyof Q2TagAttributes as `attr:${K}`]?: Q2TagAttributes[K] } & { [K in keyof Q2Tag & keyof Q2TagAttributes as `prop:${K}`]?: Q2Tag[K] };
|
|
@@ -10987,7 +11222,7 @@ declare module "@stencil/core" {
|
|
|
10987
11222
|
"q2-meter": LocalJSX.IntrinsicElements["q2-meter"] & JSXBase.HTMLAttributes<HTMLQ2MeterElement>;
|
|
10988
11223
|
/**
|
|
10989
11224
|
* @name Modal
|
|
10990
|
-
* @category
|
|
11225
|
+
* @category Platform
|
|
10991
11226
|
* @summary Use for focused interactions that require user attention before continuing.
|
|
10992
11227
|
*/
|
|
10993
11228
|
"q2-modal": LocalJSX.IntrinsicElements["q2-modal"] & JSXBase.HTMLAttributes<HTMLQ2ModalElement>;
|
|
@@ -11106,6 +11341,12 @@ declare module "@stencil/core" {
|
|
|
11106
11341
|
* @summary Use for guiding users through a multi-step workflow with vertical progress.
|
|
11107
11342
|
*/
|
|
11108
11343
|
"q2-stepper-vertical": LocalJSX.IntrinsicElements["q2-stepper-vertical"] & JSXBase.HTMLAttributes<HTMLQ2StepperVerticalElement>;
|
|
11344
|
+
/**
|
|
11345
|
+
* @name Surface
|
|
11346
|
+
* @category Display
|
|
11347
|
+
* @summary An unopinionated visual primitive. A plain block by default that gains visual treatment via attributes.
|
|
11348
|
+
*/
|
|
11349
|
+
"q2-surface": LocalJSX.IntrinsicElements["q2-surface"] & JSXBase.HTMLAttributes<HTMLQ2SurfaceElement>;
|
|
11109
11350
|
/**
|
|
11110
11351
|
* @name Tab Container
|
|
11111
11352
|
* @category Display
|
|
@@ -11130,6 +11371,11 @@ declare module "@stencil/core" {
|
|
|
11130
11371
|
* @summary Use for multi-line text input like messages, comments, or lengthy descriptions.
|
|
11131
11372
|
*/
|
|
11132
11373
|
"q2-textarea": LocalJSX.IntrinsicElements["q2-textarea"] & JSXBase.HTMLAttributes<HTMLQ2TextareaElement>;
|
|
11374
|
+
/**
|
|
11375
|
+
* @name Toast
|
|
11376
|
+
* @category Platform
|
|
11377
|
+
* @summary Use for brief, non-intrusive notifications that appear temporarily and do not require user interaction.
|
|
11378
|
+
*/
|
|
11133
11379
|
"q2-toast": LocalJSX.IntrinsicElements["q2-toast"] & JSXBase.HTMLAttributes<HTMLQ2ToastElement>;
|
|
11134
11380
|
/**
|
|
11135
11381
|
* @name Tooltip
|