q2-tecton-elements 1.70.2 → 1.71.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 +556 -231
- package/dist/cjs/click-elsewhere_3.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/q2-action-group_2.cjs.entry.js +3 -3
- package/dist/cjs/q2-action-sheet.cjs.entry.js +4 -3
- package/dist/cjs/q2-avatar.cjs.entry.js +1 -1
- package/dist/cjs/q2-badge_2.cjs.entry.js +17 -8
- package/dist/cjs/q2-btn_2.cjs.entry.js +2 -2
- package/dist/cjs/q2-calendar.cjs.entry.js +8 -6
- package/dist/cjs/q2-card-image.cjs.entry.js +1 -1
- package/dist/cjs/q2-card.cjs.entry.js +1 -1
- package/dist/cjs/q2-carousel-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-carousel.cjs.entry.js +108 -74
- 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 +1 -1
- package/dist/cjs/q2-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/q2-checkbox_2.cjs.entry.js +3 -3
- package/dist/cjs/q2-currency.cjs.entry.js +1 -1
- package/dist/cjs/q2-data-table.cjs.entry.js +1 -1
- package/dist/cjs/q2-detail.cjs.entry.js +1 -1
- package/dist/cjs/q2-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/q2-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/q2-editable-field.cjs.entry.js +3 -3
- package/dist/cjs/q2-example.cjs.entry.js +1 -1
- package/dist/cjs/q2-file-picker.cjs.entry.js +1 -1
- package/dist/cjs/q2-form.cjs.entry.js +1 -1
- package/dist/cjs/q2-formatted-text.cjs.entry.js +1 -1
- package/dist/cjs/q2-icon.cjs.entry.js +1 -1
- package/dist/cjs/q2-item.cjs.entry.js +1 -1
- 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-message.cjs.entry.js +1 -1
- package/dist/cjs/q2-meter.cjs.entry.js +1 -1
- package/dist/cjs/q2-modal.cjs.entry.js +1 -1
- 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 +18 -2
- 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 +2 -2
- package/dist/cjs/q2-search.cjs.entry.js +2 -2
- package/dist/cjs/q2-section.cjs.entry.js +3 -3
- package/dist/cjs/q2-select.cjs.entry.js +1 -1
- package/dist/cjs/q2-stepper-pane.cjs.entry.js +2 -2
- package/dist/cjs/q2-stepper-vertical.cjs.entry.js +32 -9
- package/dist/cjs/q2-stepper.cjs.entry.js +18 -4
- package/dist/cjs/q2-surface.cjs.entry.js +3 -3
- package/dist/cjs/q2-tab-container.cjs.entry.js +89 -20
- package/dist/cjs/q2-tab-pane.cjs.entry.js +2 -2
- package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
- package/dist/cjs/q2-textarea.cjs.entry.js +3 -3
- package/dist/cjs/q2-toast.cjs.entry.js +1 -1
- package/dist/cjs/q2-tooltip.cjs.entry.js +26 -15
- package/dist/cjs/tecton-tab-pane.cjs.entry.js +3 -3
- package/dist/collection/components/q2-action-group/q2-action-group.css +22 -0
- package/dist/collection/components/q2-action-sheet/q2-action-sheet.css +24 -1
- package/dist/collection/components/q2-action-sheet/q2-action-sheet.js +3 -2
- package/dist/collection/components/q2-avatar/q2-avatar.css +23 -1
- package/dist/collection/components/q2-avatar/test/q2-avatar-test.vr.js +13 -1
- package/dist/collection/components/q2-badge/q2-badge.css +26 -4
- package/dist/collection/components/q2-badge/test/q2-badge-test.vr.js +13 -1
- package/dist/collection/components/q2-btn/q2-btn.css +53 -9
- package/dist/collection/components/q2-btn/test/q2-btn-test.vr.js +19 -1
- package/dist/collection/components/q2-calendar/q2-calendar.css +26 -4
- package/dist/collection/components/q2-calendar/q2-calendar.js +7 -5
- package/dist/collection/components/q2-calendar/q2-month-picker.css +22 -0
- package/dist/collection/components/q2-calendar/test/q2-calendar-test.vr.js +34 -1
- package/dist/collection/components/q2-card/q2-card.css +23 -1
- package/dist/collection/components/q2-card/test/q2-card-test.vr.js +10 -1
- package/dist/collection/components/q2-card-image/q2-card-image.css +23 -1
- package/dist/collection/components/q2-card-image/test/q2-card-image-test.vr.js +9 -1
- package/dist/collection/components/q2-carousel/q2-carousel.css +29 -39
- package/dist/collection/components/q2-carousel/q2-carousel.js +122 -69
- package/dist/collection/components/q2-carousel/test/q2-carousel-test.vr.js +5 -4
- package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.css +22 -0
- package/dist/collection/components/q2-chart-area/q2-chart-area.css +22 -0
- package/dist/collection/components/q2-chart-bar/q2-chart-bar.css +22 -0
- package/dist/collection/components/q2-chart-donut/q2-chart-donut.css +24 -2
- package/dist/collection/components/q2-chart-donut/test/q2-chart-donut-test.vr.js +13 -1
- package/dist/collection/components/q2-checkbox/q2-checkbox.css +23 -1
- package/dist/collection/components/q2-checkbox/test/q2-checkbox-test.vr.js +11 -1
- package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.css +23 -1
- package/dist/collection/components/q2-checkbox-group/test/q2-checkbox-group-test.vr.js +11 -1
- package/dist/collection/components/q2-currency/q2-currency.css +25 -3
- package/dist/collection/components/q2-currency/test/q2-currency-test.vr.js +13 -1
- package/dist/collection/components/q2-data-table/q2-data-table.css +24 -2
- package/dist/collection/components/q2-data-table/test/q2-data-table-test.vr.js +11 -1
- package/dist/collection/components/q2-detail/q2-detail.css +32 -10
- package/dist/collection/components/q2-dropdown/q2-dropdown.css +22 -0
- package/dist/collection/components/q2-dropdown-item/q2-dropdown-item.css +22 -0
- package/dist/collection/components/q2-editable-field/q2-editable-field.css +22 -0
- package/dist/collection/components/q2-editable-field/q2-editable-field.js +2 -2
- package/dist/collection/components/q2-example/q2-example.css +23 -0
- package/dist/collection/components/q2-file-picker/q2-file-picker.css +57 -10
- package/dist/collection/components/q2-file-picker/test/q2-file-picker-test.vr.js +14 -1
- package/dist/collection/components/q2-form/q2-form.css +22 -0
- package/dist/collection/components/q2-formatted-text/q2-formatted-text.css +25 -3
- package/dist/collection/components/q2-formatted-text/test/q2-formatted-text-test.vr.js +13 -1
- package/dist/collection/components/q2-icon/assets/standard.symbol.svg +1 -1
- package/dist/collection/components/q2-icon/q2-icon.css +22 -0
- package/dist/collection/components/q2-input/q2-input.css +26 -4
- package/dist/collection/components/q2-input/q2-input.js +39 -7
- package/dist/collection/components/q2-input/test/q2-input-test.vr.js +36 -1
- package/dist/collection/components/q2-item/q2-item.css +46 -2
- package/dist/collection/components/q2-item/test/q2-item-test.vr.js +12 -1
- package/dist/collection/components/q2-legend/q2-legend.css +24 -2
- package/dist/collection/components/q2-link/q2-link.css +22 -0
- package/dist/collection/components/q2-list/q2-list.css +46 -2
- package/dist/collection/components/q2-list/test/q2-list-test.vr.js +12 -1
- package/dist/collection/components/q2-loading/q2-loading.css +23 -0
- package/dist/collection/components/q2-message/q2-message.css +22 -0
- package/dist/collection/components/q2-meter/q2-meter.css +25 -3
- package/dist/collection/components/q2-meter/test/q2-meter-test.vr.js +12 -1
- package/dist/collection/components/q2-modal/q2-modal.css +23 -1
- package/dist/collection/components/q2-modal/test/q2-modal-test.vr.js +12 -1
- package/dist/collection/components/q2-optgroup/q2-optgroup.css +23 -1
- package/dist/collection/components/q2-option/q2-option.css +22 -0
- package/dist/collection/components/q2-option-list/q2-option-list.css +22 -0
- package/dist/collection/components/q2-otp/q2-otp.css +27 -4
- package/dist/collection/components/q2-otp/test/q2-otp-test.vr.js +12 -1
- package/dist/collection/components/q2-pagination/q2-pagination.css +22 -0
- package/dist/collection/components/q2-pill/q2-pill.css +42 -2
- package/dist/collection/components/q2-pill/q2-pill.js +18 -1
- package/dist/collection/components/q2-pill/test/q2-pill-test.vr.js +27 -1
- package/dist/collection/components/q2-popover/q2-popover.css +22 -7
- package/dist/collection/components/q2-radio/q2-radio.css +24 -2
- package/dist/collection/components/q2-radio/test/q2-radio-test.vr.js +12 -1
- package/dist/collection/components/q2-radio-group/q2-radio-group.css +23 -1
- package/dist/collection/components/q2-radio-group/test/q2-radio-group-test.vr.js +11 -1
- package/dist/collection/components/q2-relative-time/q2-relative-time.css +22 -0
- package/dist/collection/components/q2-relative-time/q2-relative-time.js +1 -1
- package/dist/collection/components/q2-resize-observer/q2-resize-observer.css +22 -0
- package/dist/collection/components/q2-resize-observer/q2-resize-observer.js +1 -1
- package/dist/collection/components/q2-search/q2-search.css +22 -0
- package/dist/collection/components/q2-search/q2-search.js +1 -1
- package/dist/collection/components/q2-section/q2-section.css +23 -1
- package/dist/collection/components/q2-section/q2-section.js +2 -2
- package/dist/collection/components/q2-section/test/q2-section-test.vr.js +11 -1
- package/dist/collection/components/q2-select/q2-select.css +22 -0
- package/dist/collection/components/q2-stepper/q2-stepper.css +38 -4
- package/dist/collection/components/q2-stepper/q2-stepper.js +17 -3
- package/dist/collection/components/q2-stepper/test/q2-stepper-test.vr.js +12 -1
- package/dist/collection/components/q2-stepper-pane/q2-stepper-pane.css +22 -0
- package/dist/collection/components/q2-stepper-pane/q2-stepper-pane.js +1 -1
- package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.css +39 -5
- package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js +31 -8
- package/dist/collection/components/q2-stepper-vertical/test/q2-stepper-vertical-test.vr.js +16 -1
- package/dist/collection/components/q2-surface/q2-surface.css +71 -32
- package/dist/collection/components/q2-surface/q2-surface.js +7 -7
- package/dist/collection/components/q2-surface/test/q2-surface-test.vr.js +54 -0
- package/dist/collection/components/q2-tab-container/q2-tab-container.css +112 -6
- package/dist/collection/components/q2-tab-container/q2-tab-container.js +114 -21
- package/dist/collection/components/q2-tab-container/test/q2-tab-container-test.vr.js +24 -1
- package/dist/collection/components/q2-tab-pane/q2-tab-pane.css +22 -0
- package/dist/collection/components/q2-tab-pane/q2-tab-pane.js +1 -1
- package/dist/collection/components/q2-tag/q2-tag.css +25 -2
- package/dist/collection/components/q2-tag/q2-tag.js +1 -1
- package/dist/collection/components/q2-tag/test/q2-tag-test.vr.js +21 -1
- package/dist/collection/components/q2-textarea/q2-textarea.css +24 -2
- package/dist/collection/components/q2-textarea/q2-textarea.js +2 -2
- package/dist/collection/components/q2-textarea/test/q2-textarea-test.vr.js +16 -1
- package/dist/collection/components/q2-toast/q2-toast.css +22 -0
- package/dist/collection/components/q2-tooltip/q2-tooltip.css +27 -19
- package/dist/collection/components/q2-tooltip/q2-tooltip.js +32 -21
- package/dist/collection/components/q2-tooltip/test/q2-tooltip-test.vr.js +13 -1
- package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.css +22 -0
- package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.js +2 -2
- package/dist/collection/utils/helpers.js +29 -6
- package/dist/collection/utils/test/vr-helpers.js +7 -0
- package/dist/components/q2-action-group2.js +1 -1
- package/dist/components/q2-action-sheet.js +21 -18
- package/dist/components/q2-avatar2.js +1 -1
- package/dist/components/q2-badge2.js +1 -1
- package/dist/components/q2-btn2.js +15 -15
- package/dist/components/q2-calendar.js +306 -301
- package/dist/components/q2-card-image.js +6 -6
- package/dist/components/q2-card.js +14 -14
- package/dist/components/q2-carousel-pane2.js +1 -1
- package/dist/components/q2-carousel.js +633 -585
- package/dist/components/q2-chart-area.js +1 -1
- package/dist/components/q2-chart-bar.js +70 -70
- package/dist/components/q2-chart-donut.js +1 -1
- package/dist/components/q2-checkbox-group.js +42 -42
- package/dist/components/q2-checkbox2.js +1 -1
- package/dist/components/q2-currency.js +32 -32
- package/dist/components/q2-data-table.js +34 -34
- package/dist/components/q2-detail.js +5 -5
- package/dist/components/q2-dropdown-item2.js +11 -11
- package/dist/components/q2-dropdown.js +17 -17
- package/dist/components/q2-editable-field.js +12 -11
- package/dist/components/q2-example.js +15 -15
- package/dist/components/q2-file-picker.js +25 -25
- package/dist/components/q2-form.js +11 -11
- package/dist/components/q2-formatted-text.js +5 -5
- package/dist/components/q2-icon2.js +1 -1
- package/dist/components/q2-input2.js +24 -13
- package/dist/components/q2-item2.js +1 -1
- package/dist/components/q2-legend2.js +56 -56
- package/dist/components/q2-link2.js +6 -6
- package/dist/components/q2-list2.js +22 -22
- package/dist/components/q2-loading2.js +1 -1
- package/dist/components/q2-message2.js +20 -20
- package/dist/components/q2-meter.js +1 -1
- package/dist/components/q2-modal.js +3 -3
- package/dist/components/q2-month-picker.js +10 -10
- package/dist/components/q2-optgroup2.js +7 -7
- package/dist/components/q2-option-list2.js +34 -34
- package/dist/components/q2-option2.js +13 -13
- package/dist/components/q2-otp.js +5 -5
- package/dist/components/q2-pagination.js +58 -58
- package/dist/components/q2-pill.js +66 -54
- package/dist/components/q2-popover2.js +1 -1
- package/dist/components/q2-radio-group.js +5 -5
- package/dist/components/q2-radio.js +14 -14
- package/dist/components/q2-relative-time.js +10 -10
- package/dist/components/q2-resize-observer2.js +9 -9
- package/dist/components/q2-search.js +5 -5
- package/dist/components/q2-section.js +22 -22
- package/dist/components/q2-select2.js +1 -1
- package/dist/components/q2-stepper-pane.js +33 -33
- package/dist/components/q2-stepper-vertical.js +84 -60
- package/dist/components/q2-stepper.js +79 -65
- package/dist/components/q2-surface.js +14 -14
- package/dist/components/q2-tab-container.js +110 -55
- package/dist/components/q2-tab-pane.js +7 -7
- package/dist/components/q2-tag2.js +39 -39
- package/dist/components/q2-textarea.js +16 -16
- package/dist/components/q2-toast.js +22 -22
- package/dist/components/q2-tooltip2.js +26 -25
- package/dist/components/tecton-tab-pane.js +11 -11
- package/dist/esm/click-elsewhere_3.entry.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/q2-action-group_2.entry.js +3 -3
- package/dist/esm/q2-action-sheet.entry.js +4 -3
- package/dist/esm/q2-avatar.entry.js +1 -1
- package/dist/esm/q2-badge_2.entry.js +17 -8
- package/dist/esm/q2-btn_2.entry.js +2 -2
- package/dist/esm/q2-calendar.entry.js +8 -6
- package/dist/esm/q2-card-image.entry.js +1 -1
- package/dist/esm/q2-card.entry.js +1 -1
- package/dist/esm/q2-carousel-pane.entry.js +1 -1
- package/dist/esm/q2-carousel.entry.js +104 -70
- 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 +1 -1
- package/dist/esm/q2-checkbox-group.entry.js +1 -1
- package/dist/esm/q2-checkbox_2.entry.js +3 -3
- package/dist/esm/q2-currency.entry.js +1 -1
- package/dist/esm/q2-data-table.entry.js +1 -1
- package/dist/esm/q2-detail.entry.js +1 -1
- package/dist/esm/q2-dropdown-item.entry.js +1 -1
- package/dist/esm/q2-dropdown.entry.js +1 -1
- package/dist/esm/q2-editable-field.entry.js +3 -3
- package/dist/esm/q2-example.entry.js +1 -1
- package/dist/esm/q2-file-picker.entry.js +1 -1
- package/dist/esm/q2-form.entry.js +1 -1
- package/dist/esm/q2-formatted-text.entry.js +1 -1
- package/dist/esm/q2-icon.entry.js +1 -1
- package/dist/esm/q2-item.entry.js +1 -1
- package/dist/esm/q2-legend.entry.js +1 -1
- package/dist/esm/q2-link_2.entry.js +2 -2
- package/dist/esm/q2-message.entry.js +1 -1
- package/dist/esm/q2-meter.entry.js +1 -1
- package/dist/esm/q2-modal.entry.js +1 -1
- 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 +18 -2
- 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 +2 -2
- package/dist/esm/q2-search.entry.js +2 -2
- package/dist/esm/q2-section.entry.js +3 -3
- package/dist/esm/q2-select.entry.js +1 -1
- package/dist/esm/q2-stepper-pane.entry.js +2 -2
- package/dist/esm/q2-stepper-vertical.entry.js +32 -9
- package/dist/esm/q2-stepper.entry.js +18 -4
- package/dist/esm/q2-surface.entry.js +3 -3
- package/dist/esm/q2-tab-container.entry.js +89 -20
- package/dist/esm/q2-tab-pane.entry.js +2 -2
- package/dist/esm/q2-tecton-elements.js +1 -1
- package/dist/esm/q2-textarea.entry.js +3 -3
- package/dist/esm/q2-toast.entry.js +1 -1
- package/dist/esm/q2-tooltip.entry.js +27 -16
- package/dist/esm/tecton-tab-pane.entry.js +3 -3
- package/dist/q2-tecton-elements/assets/standard.symbol.svg +1 -1
- package/dist/q2-tecton-elements/click-elsewhere_3.entry.js +23 -23
- package/dist/q2-tecton-elements/q2-action-group_2.entry.js +42 -42
- package/dist/q2-tecton-elements/q2-action-sheet.entry.js +21 -18
- package/dist/q2-tecton-elements/q2-avatar.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-badge_2.entry.js +25 -15
- package/dist/q2-tecton-elements/q2-btn_2.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-calendar.entry.js +120 -115
- package/dist/q2-tecton-elements/q2-card-image.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-card.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-carousel-pane.entry.js +11 -11
- package/dist/q2-tecton-elements/q2-carousel.entry.js +572 -540
- package/dist/q2-tecton-elements/q2-chart-area.entry.js +166 -166
- package/dist/q2-tecton-elements/q2-chart-bar.entry.js +190 -190
- package/dist/q2-tecton-elements/q2-chart-donut.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-checkbox_2.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-currency.entry.js +40 -40
- package/dist/q2-tecton-elements/q2-data-table.entry.js +64 -64
- package/dist/q2-tecton-elements/q2-detail.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-dropdown-item.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-dropdown.entry.js +21 -21
- package/dist/q2-tecton-elements/q2-editable-field.entry.js +18 -17
- package/dist/q2-tecton-elements/q2-example.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-file-picker.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-form.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-formatted-text.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-icon.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-item.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-legend.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-link_2.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-message.entry.js +23 -23
- package/dist/q2-tecton-elements/q2-meter.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-modal.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-month-picker.entry.js +39 -39
- package/dist/q2-tecton-elements/q2-optgroup.entry.js +13 -13
- package/dist/q2-tecton-elements/q2-option.entry.js +22 -22
- package/dist/q2-tecton-elements/q2-otp.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-pagination.entry.js +11 -11
- package/dist/q2-tecton-elements/q2-pill.entry.js +30 -18
- package/dist/q2-tecton-elements/q2-radio-group.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-radio.entry.js +24 -24
- package/dist/q2-tecton-elements/q2-relative-time.entry.js +21 -21
- package/dist/q2-tecton-elements/q2-search.entry.js +12 -12
- package/dist/q2-tecton-elements/q2-section.entry.js +25 -25
- package/dist/q2-tecton-elements/q2-select.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-stepper-pane.entry.js +16 -16
- package/dist/q2-tecton-elements/q2-stepper-vertical.entry.js +77 -53
- package/dist/q2-tecton-elements/q2-stepper.entry.js +44 -30
- package/dist/q2-tecton-elements/q2-surface.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-tab-container.entry.js +109 -56
- package/dist/q2-tecton-elements/q2-tab-pane.entry.js +13 -13
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
- package/dist/q2-tecton-elements/q2-textarea.entry.js +14 -14
- package/dist/q2-tecton-elements/q2-toast.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-tooltip.entry.js +25 -24
- package/dist/q2-tecton-elements/tecton-tab-pane.entry.js +11 -11
- package/dist/types/components/q2-carousel/q2-carousel.d.ts +14 -0
- package/dist/types/components/q2-input/q2-input.d.ts +7 -1
- package/dist/types/components/q2-pill/q2-pill.d.ts +2 -0
- package/dist/types/components/q2-stepper/q2-stepper.d.ts +1 -0
- package/dist/types/components/q2-stepper-vertical/q2-stepper-vertical.d.ts +3 -2
- package/dist/types/components/q2-surface/q2-surface.d.ts +3 -3
- package/dist/types/components/q2-tab-container/q2-tab-container.d.ts +17 -3
- package/dist/types/components/q2-tooltip/q2-tooltip.d.ts +2 -1
- package/dist/types/components.d.ts +50 -21
- package/dist/types/utils/helpers.d.ts +16 -1
- package/dist/types/utils/test/vr-helpers.d.ts +11 -0
- package/package.json +12 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { proxyCustomElement as r, HTMLElement as a, createEvent as e, h as
|
|
1
|
+
import { proxyCustomElement as r, HTMLElement as a, createEvent as e, h as t, Host as o, transformTag as c } from "@stencil/core/internal/client";
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const n = r(class extends a {
|
|
4
4
|
constructor(r) {
|
|
5
5
|
super(), !1 !== r && this.__registerHost(), this.__attachShadow(), this.tctClick = e(this, "tctClick", 7),
|
|
6
6
|
// #region Own Properties
|
|
@@ -51,7 +51,7 @@ const s = r(class extends a {
|
|
|
51
51
|
* @param animation The animation to play. Defaults to `'pulse'`.
|
|
52
52
|
* @returns A Promise that resolves when the animation finishes or is cancelled.
|
|
53
53
|
*/
|
|
54
|
-
async
|
|
54
|
+
async triggerAnimation(r = "pulse") {
|
|
55
55
|
var a;
|
|
56
56
|
return null === (a = this._cancelAnimation) || void 0 === a || a.call(this), new Promise((a => {
|
|
57
57
|
const e = "q2-surface-animate-" + r, onEnd = () => {
|
|
@@ -68,22 +68,22 @@ const s = r(class extends a {
|
|
|
68
68
|
// #endregion
|
|
69
69
|
// #region Render Methods
|
|
70
70
|
render() {
|
|
71
|
-
return o
|
|
72
|
-
key: "
|
|
73
|
-
},
|
|
74
|
-
key: "
|
|
71
|
+
return t(o, {
|
|
72
|
+
key: "992667ac1d625dff77a01d06d058865f99d8d190"
|
|
73
|
+
}, t("div", {
|
|
74
|
+
key: "d58162c346c58a2cc21a4334c08b6cc4a53ed2e0",
|
|
75
75
|
class: "container",
|
|
76
76
|
role: this.clickable ? "button" : void 0,
|
|
77
77
|
tabIndex: this.clickable ? 0 : void 0
|
|
78
|
-
},
|
|
79
|
-
key: "
|
|
78
|
+
}, t("slot", {
|
|
79
|
+
key: "b70930390799484c71da93d1f801ecc681d168c6"
|
|
80
80
|
})));
|
|
81
81
|
}
|
|
82
82
|
get hostElement() {
|
|
83
83
|
return this;
|
|
84
84
|
}
|
|
85
85
|
static get style() {
|
|
86
|
-
return ':host{--comp-surface-bg:transparent;--comp-surface-hover-background:var(--tct-surface-hover-background, var(--t-base-hover, #f2f2f2));--comp-surface-border-color:var(--tct-surface-border-color, var(--t-gray-12, #d9d9d9));--comp-surface-animation-duration:var(--tct-surface-animation-duration, 1s);--comp-surface-gradient-direction:var(--tct-surface-background-gradient-direction, to right bottom);--comp-surface-radius:0px}*{box-sizing:border-box}*:active{outline:none}*:focus-visible{outline:none}::-moz-focus-inner{border:none}:host{display:block;transition:box-shadow var(--tct-surface-tween, var(--app-tween-1, 0.2s ease)), border-radius var(--tct-surface-tween, var(--app-tween-1, 0.2s ease)), background var(--tct-surface-tween, var(--app-tween-1, 0.2s ease)), padding var(--tct-surface-tween, var(--app-tween-1, 0.2s ease))}.container{display:block;background:transparent;border-radius:var(--comp-surface-radius);transition:background var(--tct-surface-tween, var(--app-tween-1, 0.2s ease)), border-radius var(--tct-surface-tween, var(--app-tween-1, 0.2s ease)), box-shadow var(--tct-surface-tween, var(--app-tween-1, 0.2s ease))}:host([elevation="1"]){box-shadow:var(--tct-surface-elevation-1-box-shadow, var(--app-shadow-1, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14)))}:host([elevation="2"]){box-shadow:var(--tct-surface-elevation-2-box-shadow, var(--app-shadow-2, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 4px 8px rgba(0, 0, 0, 0.14)))}:host([elevation="3"]){box-shadow:var(--tct-surface-elevation-3-box-shadow, var(--app-shadow-3, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 8px 16px rgba(0, 0, 0, 0.14)))}:host([elevation="4"]){box-shadow:var(--tct-surface-elevation-4-box-shadow, var(--app-shadow-4, 0px 0px 8px rgba(0, 0, 0, 0.12), 0px 14px 28px rgba(0, 0, 0, 0.14)))}:host([elevation="5"]){box-shadow:var(--tct-surface-elevation-5-box-shadow, var(--app-shadow-5, 0px 0px 8px rgba(0, 0, 0, 0.12), 0px 32px 64px rgba(0, 0, 0, 0.14)))}:host([radius="1"]){--comp-surface-radius:var(--tct-surface-border-radius-1, var(--app-border-radius-1, 4px));border-radius:var(--comp-surface-radius)}:host([radius="2"]){--comp-surface-radius:var(--tct-surface-border-radius-2, var(--app-border-radius-2, 8px));border-radius:var(--comp-surface-radius)}:host([radius="3"]){--comp-surface-radius:var(--tct-surface-border-radius-3, var(--app-border-radius-3, 12px));border-radius:var(--comp-surface-radius)}:host([radius="4"]){--comp-surface-radius:var(--tct-surface-border-radius-4, var(--app-border-radius-4, 16px));border-radius:var(--comp-surface-radius)}:host([radius="5"]){--comp-surface-radius:var(--tct-surface-border-radius-5, var(--app-border-radius-5, 24px));border-radius:var(--comp-surface-radius)}:host([background=default]){--comp-surface-bg:var(--tct-surface-background-default, var(--t-base, #ffffff));--comp-surface-hover-background:var(--tct-surface-hover-background, var(--t-base-hover, #f2f2f2))}:host([background=primary]){--comp-surface-bg:var(--tct-surface-background-primary, var(--t-primary, #6a4a9e));--comp-surface-hover-background:var(--tct-surface-primary-hover-background, var(--t-primary-l2, #7d5ab8));color:var(--tct-surface-primary-font-color, var(--t-primary-text, #ffffff))}:host([background=secondary]){--comp-surface-bg:var(--tct-surface-background-secondary, var(--t-secondary, #b3c2cc));--comp-surface-hover-background:var(--tct-surface-secondary-hover-background, var(--t-secondary-l2, #c2cfd8));color:var(--tct-surface-secondary-font-color, var(--t-secondary-text, #1a1a1a))}:host([background=tertiary]){--comp-surface-bg:var(--tct-surface-background-tertiary, var(--t-tertiary, #e8f5fc));--comp-surface-hover-background:var(--tct-surface-tertiary-hover-background, var(--t-tertiary-l2, #edf7fd));color:var(--tct-surface-tertiary-font-color, var(--t-tertiary-text, #1a1a1a))}:host([background]) .container{background:var(--comp-surface-bg)}:host([background-gradient]) .container{background:linear-gradient(in oklch var(--comp-surface-gradient-direction), color-mix(in oklab, var(--comp-surface-bg), white 40%), var(--comp-surface-bg))}:host([border]) .container{border:1px solid var(--comp-surface-border-color)}:host([border=primary]) .container{border-color:var(--tct-surface-primary-border-color, var(--t-primary, #6a4a9e))}:host([border=secondary]) .container{border-color:var(--tct-surface-secondary-border-color, var(--t-secondary, #b3c2cc))}:host([border=tertiary]) .container{border-color:var(--tct-surface-tertiary-border-color, var(--t-tertiary, #e8f5fc))}:host([border-gradient]){padding:2px}:host([border-gradient]) .container{border-radius:calc(var(--comp-surface-radius) - 2px)}:host([border-gradient])[border] .container{border:none}:host([border-gradient]:not([background])){--comp-surface-bg:var(--tct-surface-background-default, var(--t-base, #ffffff))}:host([border-gradient]:not([background])) .container{background:var(--comp-surface-bg)}:host([border-gradient]:not([border])),:host([border-gradient][border=default]){background:linear-gradient(in oklch var(--tct-surface-border-gradient-direction, var(--tct-surface-background-gradient-direction, to right bottom)), color-mix(in oklab, var(--tct-surface-border-color, var(--t-gray-12, #d9d9d9)), white 40%), var(--tct-surface-border-color, var(--t-gray-12, #d9d9d9)))}:host([border-gradient][border=primary]){background:linear-gradient(in oklch var(--tct-surface-border-gradient-direction, var(--tct-surface-background-gradient-direction, to right bottom)), color-mix(in oklab, var(--tct-surface-primary-border-color, var(--t-primary, #6a4a9e)), white 40%), var(--tct-surface-primary-border-color, var(--t-primary, #6a4a9e)))}:host([border-gradient][border=secondary]){background:linear-gradient(in oklch var(--tct-surface-border-gradient-direction, var(--tct-surface-background-gradient-direction, to right bottom)), color-mix(in oklab, var(--tct-surface-secondary-border-color, var(--t-secondary, #b3c2cc)), white 40%), var(--tct-surface-secondary-border-color, var(--t-secondary, #b3c2cc)))}:host([border-gradient][border=tertiary]){background:linear-gradient(in oklch var(--tct-surface-border-gradient-direction, var(--tct-surface-background-gradient-direction, to right bottom)), color-mix(in oklab, var(--tct-surface-tertiary-border-color, var(--t-tertiary, #e8f5fc)), white 40%), var(--tct-surface-tertiary-border-color, var(--t-tertiary, #e8f5fc)))}:host([inset=compact]) .container{padding:var(--tct-surface-inset-compact, var(--app-scale-1x, 5px))}:host([inset=normal]) .container{padding:var(--tct-surface-inset-normal, var(--app-scale-3x, 15px))}:host([inset=comfortable]) .container{padding:var(--tct-surface-inset-comfortable, var(--app-scale-5x, 25px))}:host([inset-x=none]) .container{padding-inline:0}:host([inset-x=compact]) .container{padding-inline:var(--tct-surface-inset-compact, var(--app-scale-1x, 5px))}:host([inset-x=normal]) .container{padding-inline:var(--tct-surface-inset-normal, var(--app-scale-3x, 15px))}:host([inset-x=comfortable]) .container{padding-inline:var(--tct-surface-inset-comfortable, var(--app-scale-5x, 25px))}:host([inset-y=none]) .container{padding-block:0}:host([inset-y=compact]) .container{padding-block:var(--tct-surface-inset-compact, var(--app-scale-1x, 5px))}:host([inset-y=normal]) .container{padding-block:var(--tct-surface-inset-normal, var(--app-scale-3x, 15px))}:host([inset-y=comfortable]) .container{padding-block:var(--tct-surface-inset-comfortable, var(--app-scale-5x, 25px))}:host([clickable]){cursor:pointer}:host([clickable]):hover .container{background:var(--comp-surface-hover-background)}:host([clickable])[elevation="0"]:hover .container,:host([clickable]):not([elevation]):hover .container{box-shadow:var(--tct-surface-elevation-hover-0-box-shadow, var(--app-shadow-1, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14)))}:host([clickable])[elevation="1"]:hover .container{box-shadow:var(--tct-surface-elevation-hover-1-box-shadow, var(--app-shadow-2, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 4px 8px rgba(0, 0, 0, 0.14)))}:host([clickable])[elevation="2"]:hover .container{box-shadow:var(--tct-surface-elevation-hover-2-box-shadow, var(--app-shadow-3, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 8px 16px rgba(0, 0, 0, 0.14)))}:host([clickable])[elevation="3"]:hover .container{box-shadow:var(--tct-surface-elevation-hover-3-box-shadow, var(--app-shadow-4, 0px 0px 8px rgba(0, 0, 0, 0.12), 0px 14px 28px rgba(0, 0, 0, 0.14)))}:host([clickable])[elevation="4"]:hover .container{box-shadow:var(--tct-surface-elevation-hover-4-box-shadow, var(--app-shadow-5, 0px 0px 8px rgba(0, 0, 0, 0.12), 0px 32px 64px rgba(0, 0, 0, 0.14)))}:host([clickable])[elevation="5"]:hover .container{box-shadow:var(--tct-surface-elevation-hover-5-box-shadow, var(--app-shadow-5, 0px 0px 8px rgba(0, 0, 0, 0.12), 0px 32px 64px rgba(0, 0, 0, 0.14)))}:host([clickable]) .container:focus-visible{outline:none;box-shadow:var(--tct-surface-focus-visible-box-shadow, var(--const-double-focus-ring, 0 0 0 2px var(--t-base), 0 0 0 4px var(--const-focus-color), 0 0 0 6px var(--t-base)))}@keyframes q2-surface-bounce{from,20%,53%,to{animation-timing-function:cubic-bezier(0.215, 0.61, 0.355, 1);transform:translate3d(0, 0, 0)}40%,43%{animation-timing-function:cubic-bezier(0.755, 0.05, 0.855, 0.06);transform:translate3d(0, -30px, 0) scaleY(1.1)}70%{animation-timing-function:cubic-bezier(0.755, 0.05, 0.855, 0.06);transform:translate3d(0, -15px, 0) scaleY(1.05)}80%{transition-timing-function:cubic-bezier(0.215, 0.61, 0.355, 1);transform:translate3d(0, 0, 0) scaleY(0.95)}90%{transform:translate3d(0, -4px, 0) scaleY(1.02)}}@keyframes q2-surface-flash{from,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes q2-surface-pulse{from{transform:scale3d(1, 1, 1)}50%{transform:scale3d(1.05, 1.05, 1.05)}to{transform:scale3d(1, 1, 1)}}@keyframes q2-surface-tada{from{transform:scale3d(1, 1, 1)}10%,20%{transform:scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -1deg)}30%,50%,70%,90%{transform:scale3d(1.05, 1.05, 1.05) rotate3d(0, 0, 1, 1deg)}40%,60%,80%{transform:scale3d(1.05, 1.05, 1.05) rotate3d(0, 0, 1, -1deg)}to{transform:scale3d(1, 1, 1)}}:host(.q2-surface-animate-bounce){animation:q2-surface-bounce var(--comp-surface-animation-duration) both;transform-origin:center bottom}:host(.q2-surface-animate-flash){animation:q2-surface-flash var(--comp-surface-animation-duration) both}:host(.q2-surface-animate-pulse){animation:q2-surface-pulse var(--comp-surface-animation-duration) both}:host(.q2-surface-animate-tada){animation:q2-surface-tada var(--comp-surface-animation-duration) both}';
|
|
86
|
+
return ':host{--comp-surface-bg:transparent;--comp-surface-hover-background:var(--tct-surface-default-hover-background, var(--t-base-primary1, #f2f2f2));--comp-surface-border-color:var(--tct-surface-default-border-color, var(--t-gray-12, #d9d9d9));--comp-surface-animation-duration:var(--tct-surface-animation-duration, 1s);--comp-surface-gradient-direction:var(--tct-surface-background-gradient-direction, to right bottom);--comp-surface-radius:0px}*{box-sizing:border-box}*:active{outline:none}*:focus-visible{outline:none}::-moz-focus-inner{border:none}:host{display:block;transition:box-shadow var(--tct-surface-tween, var(--app-tween-1, 0.2s ease)), border-radius var(--tct-surface-tween, var(--app-tween-1, 0.2s ease)), background var(--tct-surface-tween, var(--app-tween-1, 0.2s ease)), padding var(--tct-surface-tween, var(--app-tween-1, 0.2s ease))}.container{display:block;background:transparent;border-radius:var(--comp-surface-radius);transition:background var(--tct-surface-tween, var(--app-tween-1, 0.2s ease)), border-radius var(--tct-surface-tween, var(--app-tween-1, 0.2s ease)), box-shadow var(--tct-surface-tween, var(--app-tween-1, 0.2s ease))}:host([elevation="1"]){box-shadow:var(--tct-surface-elevation-1-box-shadow, var(--app-shadow-1, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14)))}:host([elevation="2"]){box-shadow:var(--tct-surface-elevation-2-box-shadow, var(--app-shadow-2, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 4px 8px rgba(0, 0, 0, 0.14)))}:host([elevation="3"]){box-shadow:var(--tct-surface-elevation-3-box-shadow, var(--app-shadow-3, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 8px 16px rgba(0, 0, 0, 0.14)))}:host([elevation="4"]){box-shadow:var(--tct-surface-elevation-4-box-shadow, var(--app-shadow-4, 0px 0px 8px rgba(0, 0, 0, 0.12), 0px 14px 28px rgba(0, 0, 0, 0.14)))}:host([elevation="5"]){box-shadow:var(--tct-surface-elevation-5-box-shadow, var(--app-shadow-5, 0px 0px 8px rgba(0, 0, 0, 0.12), 0px 32px 64px rgba(0, 0, 0, 0.14)))}:host([radius="1"]){--comp-surface-radius:var(--tct-surface-border-radius-1, var(--app-border-radius-1, 4px));border-radius:var(--comp-surface-radius)}:host([radius="2"]){--comp-surface-radius:var(--tct-surface-border-radius-2, var(--app-border-radius-2, 8px));border-radius:var(--comp-surface-radius)}:host([radius="3"]){--comp-surface-radius:var(--tct-surface-border-radius-3, var(--app-border-radius-3, 12px));border-radius:var(--comp-surface-radius)}:host([radius="4"]){--comp-surface-radius:var(--tct-surface-border-radius-4, var(--app-border-radius-4, 16px));border-radius:var(--comp-surface-radius)}:host([radius="5"]){--comp-surface-radius:var(--tct-surface-border-radius-5, var(--app-border-radius-5, 24px));border-radius:var(--comp-surface-radius)}:host([background=default]),:host([clickable]:not([clickable=false]):not([background])){--comp-surface-bg:var(--tct-surface-default-background, var(--t-base, #ffffff));--comp-surface-hover-background:var(--tct-surface-default-hover-background, var(--t-base-primary1, #f2f2f2));--comp-surface-active-background:var(--tct-surface-default-active-background, var(--t-base-primary2, #e6e6e6))}:host([background=primary]){--comp-surface-bg:var(--tct-surface-primary-background, var(--t-primary, #6a4a9e));--comp-surface-hover-background:var(--tct-surface-primary-hover-background, var(--t-primary-d2, #533978));--comp-surface-active-background:var(--tct-surface-primary-active-background, var(--t-primary-d3, #3d2a58));color:var(--tct-surface-primary-font-color, var(--t-primary-text, #ffffff))}:host([background=secondary]){--comp-surface-bg:var(--tct-surface-secondary-background, var(--t-secondary, #b3c2cc));--comp-surface-hover-background:var(--tct-surface-secondary-hover-background, var(--t-secondary-d2, #8fa1ac));--comp-surface-active-background:var(--tct-surface-secondary-active-background, var(--t-secondary-d3, #6b7d88));color:var(--tct-surface-secondary-font-color, var(--t-secondary-text, #1a1a1a))}:host([background=tertiary]){--comp-surface-bg:var(--tct-surface-tertiary-background, var(--t-tertiary, #e8f5fc));--comp-surface-hover-background:var(--tct-surface-tertiary-hover-background, var(--t-tertiary-d2, #b8dcef));--comp-surface-active-background:var(--tct-surface-tertiary-active-background, var(--t-tertiary-d3, #88c4e2));color:var(--tct-surface-tertiary-font-color, var(--t-tertiary-text, #1a1a1a))}:host([background=gray]){--comp-surface-bg:var(--tct-surface-gray-background, var(--t-base-gray1, #f4f4f4));--comp-surface-hover-background:var(--tct-surface-gray-hover-background, var(--t-base-primary1, #f2f2f2));--comp-surface-active-background:var(--tct-surface-gray-active-background, var(--t-base-primary2, #e6e6e6))}:host([background]) .container,:host([clickable]:not([clickable=false]):not([background])) .container{background:var(--comp-surface-bg)}:host([background-gradient]) .container{background:linear-gradient(in oklch var(--comp-surface-gradient-direction), color-mix(in oklab, var(--comp-surface-bg), white 40%), var(--comp-surface-bg))}:host([border]) .container{border:1px solid var(--comp-surface-border-color)}:host([border=primary]) .container{border-color:var(--tct-surface-primary-border-color, var(--t-primary, #6a4a9e))}:host([border=secondary]) .container{border-color:var(--tct-surface-secondary-border-color, var(--t-secondary, #b3c2cc))}:host([border=tertiary]) .container{border-color:var(--tct-surface-tertiary-border-color, var(--t-tertiary, #e8f5fc))}:host([border=gray]) .container{border-color:var(--tct-surface-gray-border-color, var(--t-gray-8, #808080))}:host([border-gradient]){padding:2px}:host([border-gradient]) .container{border-radius:calc(var(--comp-surface-radius) - 2px)}:host([border-gradient])[border] .container{border:none}:host([border-gradient]:not([background])){--comp-surface-bg:var(--tct-surface-default-background, var(--t-base, #ffffff))}:host([border-gradient]:not([background])) .container{background:var(--comp-surface-bg)}:host([border-gradient]:not([border])),:host([border-gradient][border=default]){background:linear-gradient(in oklch var(--tct-surface-border-gradient-direction, var(--tct-surface-background-gradient-direction, to right bottom)), color-mix(in oklab, var(--tct-surface-default-border-color, var(--t-gray-12, #d9d9d9)), white 40%), var(--tct-surface-default-border-color, var(--t-gray-12, #d9d9d9)))}:host([border-gradient][border=primary]){background:linear-gradient(in oklch var(--tct-surface-border-gradient-direction, var(--tct-surface-background-gradient-direction, to right bottom)), color-mix(in oklab, var(--tct-surface-primary-border-color, var(--t-primary, #6a4a9e)), white 40%), var(--tct-surface-primary-border-color, var(--t-primary, #6a4a9e)))}:host([border-gradient][border=secondary]){background:linear-gradient(in oklch var(--tct-surface-border-gradient-direction, var(--tct-surface-background-gradient-direction, to right bottom)), color-mix(in oklab, var(--tct-surface-secondary-border-color, var(--t-secondary, #b3c2cc)), white 40%), var(--tct-surface-secondary-border-color, var(--t-secondary, #b3c2cc)))}:host([border-gradient][border=tertiary]){background:linear-gradient(in oklch var(--tct-surface-border-gradient-direction, var(--tct-surface-background-gradient-direction, to right bottom)), color-mix(in oklab, var(--tct-surface-tertiary-border-color, var(--t-tertiary, #e8f5fc)), white 40%), var(--tct-surface-tertiary-border-color, var(--t-tertiary, #e8f5fc)))}:host([border-gradient][border=gray]){background:linear-gradient(in oklch var(--tct-surface-border-gradient-direction, var(--tct-surface-background-gradient-direction, to right bottom)), color-mix(in oklab, var(--tct-surface-gray-border-color, var(--t-gray-8, #808080)), white 40%), var(--tct-surface-gray-border-color, var(--t-gray-8, #808080)))}:host([inset=compact]) .container{padding:var(--tct-surface-inset-compact, var(--app-scale-1x, 5px))}:host([inset=normal]) .container{padding:var(--tct-surface-inset-normal, var(--app-scale-3x, 15px))}:host([inset=comfortable]) .container{padding:var(--tct-surface-inset-comfortable, var(--app-scale-5x, 25px))}:host([inset-x=none]) .container{padding-inline:0}:host([inset-x=compact]) .container{padding-inline:var(--tct-surface-inset-compact, var(--app-scale-1x, 5px))}:host([inset-x=normal]) .container{padding-inline:var(--tct-surface-inset-normal, var(--app-scale-3x, 15px))}:host([inset-x=comfortable]) .container{padding-inline:var(--tct-surface-inset-comfortable, var(--app-scale-5x, 25px))}:host([inset-y=none]) .container{padding-block:0}:host([inset-y=compact]) .container{padding-block:var(--tct-surface-inset-compact, var(--app-scale-1x, 5px))}:host([inset-y=normal]) .container{padding-block:var(--tct-surface-inset-normal, var(--app-scale-3x, 15px))}:host([inset-y=comfortable]) .container{padding-block:var(--tct-surface-inset-comfortable, var(--app-scale-5x, 25px))}:host([clickable]:not([clickable=false])){cursor:pointer}:host([clickable]:not([clickable=false])) .container:hover{background:var(--comp-surface-hover-background)}:host([clickable]:not([clickable=false])) .container:active{background:var(--comp-surface-active-background, var(--comp-surface-hover-background))}:host([clickable]:not([clickable=false]))[elevation="0"]:hover .container,:host([clickable]:not([clickable=false])):not([elevation]):hover .container{box-shadow:var(--tct-surface-elevation-hover-0-box-shadow, var(--app-shadow-1, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14)))}:host([clickable]:not([clickable=false]))[elevation="1"]:hover .container{box-shadow:var(--tct-surface-elevation-hover-1-box-shadow, var(--app-shadow-2, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 4px 8px rgba(0, 0, 0, 0.14)))}:host([clickable]:not([clickable=false]))[elevation="2"]:hover .container{box-shadow:var(--tct-surface-elevation-hover-2-box-shadow, var(--app-shadow-3, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 8px 16px rgba(0, 0, 0, 0.14)))}:host([clickable]:not([clickable=false]))[elevation="3"]:hover .container{box-shadow:var(--tct-surface-elevation-hover-3-box-shadow, var(--app-shadow-4, 0px 0px 8px rgba(0, 0, 0, 0.12), 0px 14px 28px rgba(0, 0, 0, 0.14)))}:host([clickable]:not([clickable=false]))[elevation="4"]:hover .container{box-shadow:var(--tct-surface-elevation-hover-4-box-shadow, var(--app-shadow-5, 0px 0px 8px rgba(0, 0, 0, 0.12), 0px 32px 64px rgba(0, 0, 0, 0.14)))}:host([clickable]:not([clickable=false]))[elevation="5"]:hover .container{box-shadow:var(--tct-surface-elevation-hover-5-box-shadow, var(--app-shadow-5, 0px 0px 8px rgba(0, 0, 0, 0.12), 0px 32px 64px rgba(0, 0, 0, 0.14)))}:host([clickable]:not([clickable=false])) .container:focus-visible{outline:none;box-shadow:var(--tct-surface-focus-visible-box-shadow, var(--const-double-focus-ring, 0 0 0 2px var(--t-base), 0 0 0 4px var(--const-focus-color), 0 0 0 6px var(--t-base)))}@keyframes q2-surface-bounce{from,20%,53%,to{animation-timing-function:cubic-bezier(0.215, 0.61, 0.355, 1);transform:translate3d(0, 0, 0)}40%,43%{animation-timing-function:cubic-bezier(0.755, 0.05, 0.855, 0.06);transform:translate3d(0, -30px, 0) scaleY(1.1)}70%{animation-timing-function:cubic-bezier(0.755, 0.05, 0.855, 0.06);transform:translate3d(0, -15px, 0) scaleY(1.05)}80%{transition-timing-function:cubic-bezier(0.215, 0.61, 0.355, 1);transform:translate3d(0, 0, 0) scaleY(0.95)}90%{transform:translate3d(0, -4px, 0) scaleY(1.02)}}@keyframes q2-surface-flash{from,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes q2-surface-pulse{from{transform:scale3d(1, 1, 1)}50%{transform:scale3d(1.05, 1.05, 1.05)}to{transform:scale3d(1, 1, 1)}}@keyframes q2-surface-tada{from{transform:scale3d(1, 1, 1)}10%,20%{transform:scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -1deg)}30%,50%,70%,90%{transform:scale3d(1.05, 1.05, 1.05) rotate3d(0, 0, 1, 1deg)}40%,60%,80%{transform:scale3d(1.05, 1.05, 1.05) rotate3d(0, 0, 1, -1deg)}to{transform:scale3d(1, 1, 1)}}:host(.q2-surface-animate-bounce){animation:q2-surface-bounce var(--comp-surface-animation-duration) both;transform-origin:center bottom}:host(.q2-surface-animate-flash){animation:q2-surface-flash var(--comp-surface-animation-duration) both}:host(.q2-surface-animate-pulse){animation:q2-surface-pulse var(--comp-surface-animation-duration) both}:host(.q2-surface-animate-tada){animation:q2-surface-tada var(--comp-surface-animation-duration) both}::slotted(:is(h1,h2,h3,h4):first-child){margin-top:0 !important}::slotted(:is(q2-action-group):last-child){margin-bottom:0 !important}';
|
|
87
87
|
}
|
|
88
88
|
}, [ 257, "q2-surface", {
|
|
89
89
|
background: [ 513 ],
|
|
@@ -96,14 +96,14 @@ const s = r(class extends a {
|
|
|
96
96
|
insetX: [ 513, "inset-x" ],
|
|
97
97
|
insetY: [ 513, "inset-y" ],
|
|
98
98
|
radius: [ 514 ],
|
|
99
|
-
|
|
99
|
+
triggerAnimation: [ 64 ]
|
|
100
100
|
}, [ [ 0, "click", "onClick" ], [ 0, "keydown", "onKeydown" ] ] ]);
|
|
101
101
|
|
|
102
|
-
const
|
|
102
|
+
const s = n, defineCustomElement = function() {
|
|
103
103
|
if ("undefined" == typeof customElements) return;
|
|
104
104
|
[ "q2-surface" ].forEach((r => {
|
|
105
|
-
if ("q2-surface" === r) customElements.get(c(r)) || customElements.define(c(r),
|
|
105
|
+
if ("q2-surface" === r) customElements.get(c(r)) || customElements.define(c(r), n);
|
|
106
106
|
}));
|
|
107
107
|
};
|
|
108
108
|
|
|
109
|
-
export {
|
|
109
|
+
export { s as Q2Surface, defineCustomElement }
|
|
@@ -4,7 +4,7 @@ import { c as n, l as s, o as c, i as l } from "./index2.js";
|
|
|
4
4
|
|
|
5
5
|
import { m as b } from "./mirror-emit.js";
|
|
6
6
|
|
|
7
|
-
import { h
|
|
7
|
+
import { h, f as d } from "./component.js";
|
|
8
8
|
|
|
9
9
|
import { d as v } from "./q2-badge2.js";
|
|
10
10
|
|
|
@@ -14,7 +14,7 @@ import { d as g } from "./q2-icon2.js";
|
|
|
14
14
|
|
|
15
15
|
import { d as u } from "./q2-loading2.js";
|
|
16
16
|
|
|
17
|
-
const
|
|
17
|
+
const m = t(class extends a {
|
|
18
18
|
constructor(t) {
|
|
19
19
|
super(), !1 !== t && this.__registerHost(), this.__attachShadow(), this.change = e(this, "change", 7),
|
|
20
20
|
this.settled = e(this, "settled", 7), this.tctChange = e(this, "tctChange", 7),
|
|
@@ -23,13 +23,27 @@ const f = t(class extends a {
|
|
|
23
23
|
this.scheduledAfterRender = [],
|
|
24
24
|
// #endregion
|
|
25
25
|
// #region State Properties
|
|
26
|
-
this.hasLeft = !1, this.hasRight = !1, this.
|
|
27
|
-
this.
|
|
26
|
+
this.hasLeft = !1, this.hasRight = !1, this.isNarrowViewport = !1, this.scrollEnabled = !1,
|
|
27
|
+
this.showScrollBack = !1, this.showScrollForward = !1,
|
|
28
28
|
/** Controls visibility of tab list in a print view. Tab content will still be visible even if `noPrint` is true. */
|
|
29
|
-
this.noPrint = !1,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
this.noPrint = !1,
|
|
30
|
+
/**
|
|
31
|
+
* The orientation of the tab strip.
|
|
32
|
+
* - `horizontal` (default) — tabs run left-to-right above the panel content.
|
|
33
|
+
* - `vertical` — tabs stack top-to-bottom beside the panel content.
|
|
34
|
+
*
|
|
35
|
+
* @info
|
|
36
|
+
* Vertical orientation is intended for wider layouts (e.g. admin consoles).
|
|
37
|
+
* At viewports narrower than 768px, the component falls back to horizontal.
|
|
38
|
+
*/
|
|
39
|
+
this.orientation = "horizontal", this.checkScrollState = () => {
|
|
40
|
+
if (this.listElement) if ("vertical" === this.computedOrientation) {
|
|
41
|
+
const {scrollTop: t, scrollHeight: a, clientHeight: e} = this.listElement;
|
|
42
|
+
this.scrollEnabled = a > e, this.showScrollBack = t > 0, this.showScrollForward = a > Math.ceil(t) + e;
|
|
43
|
+
} else {
|
|
44
|
+
const {scrollLeft: t, scrollWidth: a, clientWidth: e} = this.listElement;
|
|
45
|
+
this.scrollEnabled = a > e, this.showScrollBack = t > 0, this.showScrollForward = a > Math.ceil(t) + e;
|
|
46
|
+
}
|
|
33
47
|
}, this.moveToAdjacentTab = (t, a) => {
|
|
34
48
|
const e = this.tabs.map((({value: t}) => t)).indexOf(t);
|
|
35
49
|
let i;
|
|
@@ -52,22 +66,39 @@ const f = t(class extends a {
|
|
|
52
66
|
e !== i && this.moveToTab(i, !0);
|
|
53
67
|
}, this.moveToTab = (t, a = !0) => {
|
|
54
68
|
const e = this.tabs[t].value, i = this.listElement.querySelector(`[data-value="${e}"]`);
|
|
55
|
-
a && i.focus({
|
|
69
|
+
if (a && i.focus({
|
|
56
70
|
preventScroll: !0
|
|
57
|
-
})
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
71
|
+
}), "vertical" === this.computedOrientation) {
|
|
72
|
+
const t = i.offsetTop - this.listElement.clientHeight / 2;
|
|
73
|
+
this.listElement.scrollTo({
|
|
74
|
+
top: t,
|
|
75
|
+
behavior: "smooth"
|
|
76
|
+
});
|
|
77
|
+
} else {
|
|
78
|
+
const t = i.offsetLeft - this.listElement.clientWidth / 2;
|
|
79
|
+
this.listElement.scrollTo({
|
|
80
|
+
left: t,
|
|
81
|
+
behavior: "smooth"
|
|
82
|
+
});
|
|
83
|
+
}
|
|
63
84
|
}, this.onScrollBtnClick = t => {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
85
|
+
if ("vertical" === this.computedOrientation) {
|
|
86
|
+
const {scrollTop: a, scrollHeight: e, clientHeight: i} = this.listElement, r = Math.floor(i / 2);
|
|
87
|
+
let o = 0;
|
|
88
|
+
o = "back" === t ? -Math.min(r, Math.abs(a)) : Math.min(r, Math.abs(e - a - i)),
|
|
89
|
+
this.listElement.scrollBy({
|
|
90
|
+
top: o,
|
|
91
|
+
behavior: "smooth"
|
|
92
|
+
});
|
|
93
|
+
} else {
|
|
94
|
+
const {scrollLeft: a, scrollWidth: e, clientWidth: i} = this.listElement, r = Math.floor(i / 2);
|
|
95
|
+
let o = 0;
|
|
96
|
+
o = "back" === t ? -Math.min(r, Math.abs(a)) : Math.min(r, Math.abs(e - a - i)),
|
|
97
|
+
this.listElement.scrollBy({
|
|
98
|
+
left: o,
|
|
99
|
+
behavior: "smooth"
|
|
100
|
+
});
|
|
101
|
+
}
|
|
71
102
|
}, this.onSlotChange = () => {
|
|
72
103
|
this.checkScrollState();
|
|
73
104
|
}, this.onTabClick = t => {
|
|
@@ -78,11 +109,23 @@ const f = t(class extends a {
|
|
|
78
109
|
}, this.onTabKeyDown = t => {
|
|
79
110
|
const a = t.target.dataset.value;
|
|
80
111
|
switch (t.key) {
|
|
112
|
+
case "ArrowDown":
|
|
113
|
+
if ("vertical" !== this.computedOrientation) break;
|
|
114
|
+
t.preventDefault(), this.moveToAdjacentTab(a, "next");
|
|
115
|
+
break;
|
|
116
|
+
|
|
81
117
|
case "ArrowRight":
|
|
118
|
+
if ("horizontal" !== this.computedOrientation) break;
|
|
82
119
|
t.preventDefault(), this.moveToAdjacentTab(a, "next");
|
|
83
120
|
break;
|
|
84
121
|
|
|
122
|
+
case "ArrowUp":
|
|
123
|
+
if ("vertical" !== this.computedOrientation) break;
|
|
124
|
+
t.preventDefault(), this.moveToAdjacentTab(a, "prev");
|
|
125
|
+
break;
|
|
126
|
+
|
|
85
127
|
case "ArrowLeft":
|
|
128
|
+
if ("horizontal" !== this.computedOrientation) break;
|
|
86
129
|
t.preventDefault(), this.moveToAdjacentTab(a, "prev");
|
|
87
130
|
break;
|
|
88
131
|
|
|
@@ -127,21 +170,26 @@ const f = t(class extends a {
|
|
|
127
170
|
disconnectedCallback() {
|
|
128
171
|
var t, a;
|
|
129
172
|
null === (t = this.resizeObserver) || void 0 === t || t.disconnect(), this.resizeObserver = null,
|
|
130
|
-
null === (a = this.mutationObserver) || void 0 === a || a.disconnect(), this.mutationObserver = null
|
|
173
|
+
null === (a = this.mutationObserver) || void 0 === a || a.disconnect(), this.mutationObserver = null,
|
|
174
|
+
this.narrowViewportMedia && this.narrowViewportListener && this.narrowViewportMedia.removeEventListener("change", this.narrowViewportListener);
|
|
131
175
|
}
|
|
132
176
|
componentWillLoad() {
|
|
133
|
-
|
|
177
|
+
h(this.hostElement, [ "q2-tab-pane", "tecton-tab-pane" ]) || d(this.hostElement, [ "q2-tab-pane", "tecton-tab-pane" ]);
|
|
134
178
|
const t = new MutationObserver((() => this.updateTabs()));
|
|
135
179
|
t.observe(this.hostElement, {
|
|
136
180
|
childList: !0,
|
|
137
181
|
attributes: !0
|
|
138
182
|
}), this.mutationObserver = t, this.resizeObserver = new ResizeObserver((() => this.checkScrollState())),
|
|
139
|
-
this.
|
|
183
|
+
"undefined" != typeof window && (this.narrowViewportMedia = window.matchMedia("(max-width: 767px)"),
|
|
184
|
+
this.isNarrowViewport = this.narrowViewportMedia.matches), this.updateTabs();
|
|
140
185
|
}
|
|
141
186
|
componentDidLoad() {
|
|
142
187
|
var t;
|
|
143
188
|
null === (t = this.resizeObserver) || void 0 === t || t.observe(this.listElement),
|
|
144
|
-
this.checkScrollState(), c(this.hostElement), this.scheduledAfterRender.push((() => this.determineTabMove()))
|
|
189
|
+
this.checkScrollState(), c(this.hostElement), this.scheduledAfterRender.push((() => this.determineTabMove())),
|
|
190
|
+
this.narrowViewportMedia && (this.narrowViewportListener = t => {
|
|
191
|
+
this.isNarrowViewport = t.matches;
|
|
192
|
+
}, this.narrowViewportMedia.addEventListener("change", this.narrowViewportListener));
|
|
145
193
|
}
|
|
146
194
|
componentDidRender() {
|
|
147
195
|
this.scheduledAfterRender.forEach((t => t())), this.scheduledAfterRender = [], this.settled.emit();
|
|
@@ -185,6 +233,9 @@ const f = t(class extends a {
|
|
|
185
233
|
}
|
|
186
234
|
// #endregion
|
|
187
235
|
// #region Local Methods
|
|
236
|
+
get computedOrientation() {
|
|
237
|
+
return this.isNarrowViewport ? "horizontal" : this.orientation;
|
|
238
|
+
}
|
|
188
239
|
get selectedTabValue() {
|
|
189
240
|
return this.value || "";
|
|
190
241
|
}
|
|
@@ -234,50 +285,52 @@ const f = t(class extends a {
|
|
|
234
285
|
}));
|
|
235
286
|
}
|
|
236
287
|
render() {
|
|
288
|
+
const t = "vertical" === this.computedOrientation;
|
|
237
289
|
return i(r, {
|
|
238
|
-
key: "
|
|
290
|
+
key: "710b889bd81a28f6ba7c0deb43abe49a269baec4"
|
|
239
291
|
}, i("div", {
|
|
240
|
-
key: "
|
|
292
|
+
key: "444efee6412d2440c99bd1e9b123fe385f2453a5",
|
|
241
293
|
class: "tab-container"
|
|
242
294
|
}, this.scrollEnabled && i(r, {
|
|
243
|
-
key: "
|
|
295
|
+
key: "56c9916fb99dd3434a8305721d03e85c0f5fb370"
|
|
244
296
|
}, i("div", {
|
|
245
|
-
key: "
|
|
297
|
+
key: "c506eb6690b60194b50171ad5139cc65b4fabedd",
|
|
246
298
|
class: "gradient-left",
|
|
247
|
-
hidden: !this.
|
|
299
|
+
hidden: !this.showScrollBack
|
|
248
300
|
}), i("div", {
|
|
249
|
-
key: "
|
|
301
|
+
key: "7af01eb18190e0af6fb80364fb73dcf6145d979d",
|
|
250
302
|
class: "gradient-right",
|
|
251
|
-
hidden: !this.
|
|
303
|
+
hidden: !this.showScrollForward
|
|
252
304
|
}), i("q2-btn", {
|
|
253
|
-
key: "
|
|
305
|
+
key: "8cb5f49e48c119d32b196e3ecc7e8a018acc7aa0",
|
|
254
306
|
class: "btn-left",
|
|
255
|
-
hidden: !this.
|
|
256
|
-
onTctClick: () => this.onScrollBtnClick("
|
|
307
|
+
hidden: !this.showScrollBack,
|
|
308
|
+
onTctClick: () => this.onScrollBtnClick("back")
|
|
257
309
|
}, i("q2-icon", {
|
|
258
|
-
key: "
|
|
259
|
-
type: "chevron-left",
|
|
260
|
-
label: "scroll left"
|
|
310
|
+
key: "65f3caea2251c7ce96861718df064f230ec6e02e",
|
|
311
|
+
type: t ? "chevron-up" : "chevron-left",
|
|
312
|
+
label: t ? "scroll up" : "scroll left"
|
|
261
313
|
})), i("q2-btn", {
|
|
262
|
-
key: "
|
|
314
|
+
key: "07b833fe0e6b3030255374e4dd323fc99379a293",
|
|
263
315
|
class: "btn-right",
|
|
264
|
-
hidden: !this.
|
|
265
|
-
onTctClick: () => this.onScrollBtnClick("
|
|
316
|
+
hidden: !this.showScrollForward,
|
|
317
|
+
onTctClick: () => this.onScrollBtnClick("forward")
|
|
266
318
|
}, i("q2-icon", {
|
|
267
|
-
key: "
|
|
268
|
-
type: "chevron-right",
|
|
269
|
-
label: "scroll right"
|
|
319
|
+
key: "e446b55822239e657ab10c50694a9756ec8b030b",
|
|
320
|
+
type: t ? "chevron-down" : "chevron-right",
|
|
321
|
+
label: t ? "scroll down" : "scroll right"
|
|
270
322
|
}))), i("ul", {
|
|
271
|
-
key: "
|
|
323
|
+
key: "20d4f371b80b2515b762e80b88574938783e9252",
|
|
272
324
|
onScroll: this.checkScrollState,
|
|
273
325
|
ref: t => this.listElement = t,
|
|
274
326
|
class: this.noPrint ? "no-print" : null,
|
|
275
|
-
role: "tablist"
|
|
327
|
+
role: "tablist",
|
|
328
|
+
"aria-orientation": this.computedOrientation
|
|
276
329
|
}, this.tabs.map(((t, a) => this.renderTab(t, a))))), i("div", {
|
|
277
|
-
key: "
|
|
330
|
+
key: "9eaba5d408629dc548a9c57428b801293f642172",
|
|
278
331
|
class: "tab-content"
|
|
279
332
|
}, i("slot", {
|
|
280
|
-
key: "
|
|
333
|
+
key: "811737fa0e22c994299c9164a6401209e6ecf418",
|
|
281
334
|
onSlotchange: () => this.onSlotChange()
|
|
282
335
|
})));
|
|
283
336
|
}
|
|
@@ -295,19 +348,21 @@ const f = t(class extends a {
|
|
|
295
348
|
};
|
|
296
349
|
}
|
|
297
350
|
static get style() {
|
|
298
|
-
return
|
|
351
|
+
return '*{box-sizing:border-box}*:active{outline:none}*:focus-visible{outline:none;box-shadow:var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit;font-stretch:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}@container style(--t-prefers-motion: "reduced"){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")){@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}}:host{display:block;position:relative}button{cursor:pointer;margin:0}.tab-container{position:relative}ul{--comp-container-padding:var(--tct-scale-1, var(--app-scale-1x, 5px)) var(--tct-scale-1, var(--app-scale-1x, 5px)) 0;padding:var(--tct-tab-container-padding, var(--t-tab-container-padding, var(--comp-container-padding)));margin:var(--tct-tab-container-margin, var(--t-tab-container-margin, 0));display:flex;gap:var(--tct-tab-gap, var(--t-tab-gap, var(--tct-scale-1, var(--app-scale-1x, 5px))));list-style:none;border-bottom-width:var(--tct-tab-container-border-width, 1px);border-bottom-style:var(--tct-tab-container-border-style, solid);border-bottom-color:var(--tct-tab-container-border-color, var(--t-tab-container-border-color, var(--tct-gray-11, var(--t-gray-11, var(--tct-gray-l1, var(--app-gray-l1, #cccccc))))));overflow-x:auto;align-items:center;scrollbar-width:none;scrollbar-color:transparent}ul::-webkit-scrollbar{width:0;height:0}ul::-webkit-scrollbar-thumb{background:transparent}ul::-webkit-scrollbar-track{background:transparent}@media print{ul.no-print{display:none}}li{flex:0 0 auto}li button{background:var(--tct-tab-inactive-background, var(--tct-tab-inactive-bg-color, var(--t-tab-inactive-bg-color, transparent)));border-width:var(--tct-tab-inactive-border-width, var(--t-tab-inactive-border-width, 0 0 3px 0));border-color:var(--tct-tab-inactive-border-color, var(--t-tab-inactive-border-color, transparent));border-style:var(--tct-tab-inactive-border-style, var(--t-tab-inactive-border-style, solid));border-radius:var(--tct-tab-border-radius, var(--t-tab-border-radius, 0));width:var(--tct-tab-width, var(--t-tab-width, 100%));text-align:var(--tct-tab-text-align, var(--t-tab-text-align, center));text-decoration:var(--tct-tab-text-decoration, var(--t-tab-text-decoration, none));padding:var(--tct-tab-padding, var(--t-tab-padding, var(--tct-scale-2, var(--app-scale-2x, 10px))));color:var(--tct-tab-inactive-color, var(--t-tab-inactive-color, inherit));font-size:var(--tct-tab-font-size, var(--t-tab-font-size, var(--const-px-17, 17px)));line-height:var(--tct-tab-line-height, var(--const-px-20, 20px));display:block;transition:background var(--t-tween-ease-inout) var(--t-tween-time-in-xxs), color var(--t-tween-ease-inout) var(--t-tween-time-in-xxs), border-color var(--t-tween-ease-inout) var(--t-tween-time-in-xxs)}:host([type=section]) li button{--comp-tab-section-padding:var(--tct-scale-2, var(--app-scale-2x, 10px)) var(--tct-scale-1, var(--app-scale-1x, 5px));font-size:var(--tct-tab-section-font-size, var(--const-px-14, 14px));line-height:var(--tct-tab-section-line-height, var(--const-px-18, 18px));padding:var(--tct-tab-section-padding, var(--t-tab-section-padding, var(--comp-tab-section-padding)))}li button:focus-visible{box-shadow:var(--tct-tab-focus-visible-box-shadow, var(--const-double-focus-ring))}li button:hover{color:var(--tct-tab-hover-color, var(--t-tab-hover-color, var(--tct-tab-active-color, var(--t-tab-active-color, #2e2e2e))));background:var(--tct-tab-hover-background, var(--tct-tab-hover-bg-color, var(--t-tab-hover-bg-color, inherit)));width:var(--tct-tab-hover-width, var(--t-tab-hover-width, 100%))}li button[aria-selected=true]{color:var(--tct-tab-active-color, var(--t-tab-active-color, #2e2e2e));border-color:var(--tct-tab-active-border-color, var(--t-tab-active-border-color, currentcolor));border-style:var(--tct-tab-active-border-style, var(--t-tab-active-border-style, solid));width:var(--tct-tab-active-width, var(--t-tab-active-width, 100%));background:var(--tct-tab-active-background, var(--tct-tab-active-bg-color, var(--t-tab-active-bg-color, inherit)));text-decoration:var(--tct-tab-active-text-decoration, none)}:host([color=alt]) li button{color:var(--tct-tab-alt-inactive-color, var(--t-tab-alt-inactive-color, inherit))}:host([color=alt]) li button:hover,:host([color=alt]) li button[aria-selected=true]{color:var(--tct-tab-alt-active-color, var(--t-tab-alt-active-color, inherit))}@media screen and (max-width: 767px){li button{--comp-tab-padding:var(--tct-scale-2, var(--app-scale-2x, 10px)) var(--tct-scale-1, var(--app-scale-1x, 5px));font-size:inherit;padding:var(--tct-tab-padding, var(--t-tab-padding, var(--comp-tab-padding)))}}.tab-content{--comp-tab-content-padding:var(--tct-scale-2, var(--app-scale-2x, 10px)) 0;padding:var(--tct-tab-container-content-padding, var(--tct-tab-content-padding, var(--t-tab-content-padding, var(--comp-tab-content-padding))));background:var(--tct-tab-container-content-background, none)}.tab-content:focus{outline:none;box-shadow:none}.gradient-left,.gradient-right{z-index:1;position:absolute;top:0;height:100%;width:44px}.gradient-left{background-image:linear-gradient(to left, var(--t-base-a0), var(--t-base-a2) 10%, var(--t-base) 100%);left:0}.gradient-right{background-image:linear-gradient(to right, var(--t-base-a0), var(--t-base-a2) 10%, var(--t-base) 100%);right:0}.btn-left,.btn-right{--tct-icon-size:18px;--tct-btn-icon-hover-background:transparent;--tct-btn-icon-width:22px;--tct-icon-stroke-primary:var(--tct-stepper-scroll-arrow-color, var(--t-stepper-scroll-arrow-color, var(--t-text, #4d4d4d)));position:absolute;top:calc(50% - 22px);z-index:2}.btn-left q2-icon,.btn-right q2-icon{--tct-icon-stroke-width:3}.btn-left{left:0}.btn-right{right:0}.tab-pane-badge{display:flex;justify-content:space-between;align-items:center}.tab-pane-badge q2-badge{margin-left:5px;margin-right:5px}@media screen and (min-width: 768px){:host([orientation=vertical]){display:flex;flex-direction:row;align-items:stretch}:host([orientation=vertical]) .tab-container{width:var(--tct-tab-container-width, 200px);flex-shrink:0}:host([orientation=vertical]) .tab-content{--comp-vertical-tab-content-padding:0 var(--tct-scale-2, var(--app-scale-2x, 10px));flex:1 1 auto;min-width:0;padding:var(--tct-vertical-tab-container-content-padding, var(--tct-vertical-tab-content-padding, var(--t-vertical-tab-content-padding, var(--comp-vertical-tab-content-padding))))}:host([orientation=vertical]) ul{padding:var(--tct-vertical-tab-container-padding, 0);flex-direction:column;align-items:stretch;overflow-y:auto;overflow-x:visible;border-bottom-width:0;border-right-width:var(--tct-tab-container-border-width, 1px);border-right-style:var(--tct-tab-container-border-style, solid);border-right-color:var(--tct-tab-container-border-color, var(--t-tab-container-border-color, var(--tct-gray-11, var(--t-gray-11, var(--tct-gray-l1, var(--app-gray-l1, #cccccc))))));height:100%}:host([orientation=vertical]) li{border-left-width:var(--tct-tab-active-indicator-width, 3px);border-left-style:solid;border-left-color:transparent;transition:border-color var(--t-tween-ease-inout) var(--t-tween-time-in-xxs)}:host([orientation=vertical]) li:has(button[aria-selected=true]){color:var(--tct-tab-active-color, var(--t-tab-active-color, #2e2e2e));border-left-color:var(--tct-tab-active-border-color, var(--t-tab-active-border-color, currentcolor))}:host([orientation=vertical]) li button{border-width:0;text-align:start;border-radius:var(--tct-vertical-tab-border-radius, 0)}:host([orientation=vertical]) .tab-pane-badge{justify-content:flex-start;gap:var(--tct-tab-badge-gap, var(--tct-scale-1, var(--app-scale-1x, 5px)))}:host([orientation=vertical]) .gradient-left{right:0;width:100%;height:44px;background-image:linear-gradient(to top, var(--t-base-a0), var(--t-base-a2) 10%, var(--t-base) 100%)}:host([orientation=vertical]) .gradient-right{bottom:0;top:auto;left:0;width:100%;height:44px;background-image:linear-gradient(to bottom, var(--t-base-a0), var(--t-base-a2) 10%, var(--t-base) 100%)}:host([orientation=vertical]) .btn-left{top:0;left:50%;transform:translateX(-50%)}:host([orientation=vertical]) .btn-right{bottom:0;top:auto;left:50%;right:auto;transform:translateX(-50%)}:host([orientation=vertical][color=alt]) li:has(button[aria-selected=true]){color:var(--tct-tab-alt-active-color, var(--t-tab-alt-active-color, inherit))}}';
|
|
299
352
|
}
|
|
300
353
|
}, [ 257, "q2-tab-container", {
|
|
301
354
|
color: [ 513 ],
|
|
302
355
|
name: [ 513 ],
|
|
303
356
|
noPrint: [ 516, "no-print" ],
|
|
357
|
+
orientation: [ 513 ],
|
|
304
358
|
type: [ 513 ],
|
|
305
359
|
value: [ 1537 ],
|
|
306
360
|
hasLeft: [ 32 ],
|
|
307
361
|
hasRight: [ 32 ],
|
|
362
|
+
isNarrowViewport: [ 32 ],
|
|
308
363
|
scrollEnabled: [ 32 ],
|
|
309
|
-
|
|
310
|
-
|
|
364
|
+
showScrollBack: [ 32 ],
|
|
365
|
+
showScrollForward: [ 32 ],
|
|
311
366
|
tabs: [ 32 ],
|
|
312
367
|
selectTab: [ 64 ]
|
|
313
368
|
}, [ [ 0, "badge", "onBadge" ], [ 0, "change", "defaultChangeHandler" ], [ 0, "focus", "onFocus" ], [ 9, "resize", "onResize" ] ], {
|
|
@@ -319,12 +374,12 @@ const f = t(class extends a {
|
|
|
319
374
|
} ]
|
|
320
375
|
} ]);
|
|
321
376
|
|
|
322
|
-
const
|
|
377
|
+
const f = m, defineCustomElement = function() {
|
|
323
378
|
if ("undefined" == typeof customElements) return;
|
|
324
379
|
[ "q2-tab-container", "q2-badge", "q2-btn", "q2-icon", "q2-loading" ].forEach((t => {
|
|
325
380
|
switch (t) {
|
|
326
381
|
case "q2-tab-container":
|
|
327
|
-
customElements.get(o(t)) || customElements.define(o(t),
|
|
382
|
+
customElements.get(o(t)) || customElements.define(o(t), m);
|
|
328
383
|
break;
|
|
329
384
|
|
|
330
385
|
case "q2-badge":
|
|
@@ -345,4 +400,4 @@ const m = f, defineCustomElement = function() {
|
|
|
345
400
|
}));
|
|
346
401
|
};
|
|
347
402
|
|
|
348
|
-
export {
|
|
403
|
+
export { f as Q2TabContainer, defineCustomElement }
|
|
@@ -2,7 +2,7 @@ import { proxyCustomElement as e, HTMLElement as t, createEvent as n, h as i, tr
|
|
|
2
2
|
|
|
3
3
|
import { b as o } from "./component.js";
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const r = e(class extends t {
|
|
6
6
|
constructor(e) {
|
|
7
7
|
super(), !1 !== e && this.__registerHost(), this.__attachShadow(), this.badge = n(this, "badge", 7);
|
|
8
8
|
}
|
|
@@ -20,7 +20,7 @@ const s = e(class extends t {
|
|
|
20
20
|
// #region Render Methods
|
|
21
21
|
render() {
|
|
22
22
|
return i("div", {
|
|
23
|
-
key: "
|
|
23
|
+
key: "1957cbeca0ca1f0b5f840701286ebeb6b69565ce",
|
|
24
24
|
id: `tab-pane-${this.guid}-${this.index}`,
|
|
25
25
|
class: "tab-pane" + (this.selected ? "" : " hidden"),
|
|
26
26
|
role: "tabpanel",
|
|
@@ -28,7 +28,7 @@ const s = e(class extends t {
|
|
|
28
28
|
"aria-hidden": "" + !this.selected,
|
|
29
29
|
"aria-labelledby": `tab-${this.guid}-${this.index}`
|
|
30
30
|
}, i("slot", {
|
|
31
|
-
key: "
|
|
31
|
+
key: "6772ac75d219ebc30209907468a9fb801cd5db0d"
|
|
32
32
|
}));
|
|
33
33
|
}
|
|
34
34
|
get hostElement() {
|
|
@@ -51,7 +51,7 @@ const s = e(class extends t {
|
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
53
|
static get style() {
|
|
54
|
-
return
|
|
54
|
+
return '*{box-sizing:border-box}*:active{outline:none}*:focus-visible{outline:none;box-shadow:var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit;font-stretch:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}@container style(--t-prefers-motion: "reduced"){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")){@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}}.tab-pane[aria-hidden=true]{display:none}.tab-pane:focus{outline:none;box-shadow:none}';
|
|
55
55
|
}
|
|
56
56
|
}, [ 257, "q2-tab-pane", {
|
|
57
57
|
badgeCount: [ 514, "badge-count" ],
|
|
@@ -79,11 +79,11 @@ const s = e(class extends t {
|
|
|
79
79
|
} ]
|
|
80
80
|
} ]);
|
|
81
81
|
|
|
82
|
-
const
|
|
82
|
+
const s = r, defineCustomElement = function() {
|
|
83
83
|
if ("undefined" == typeof customElements) return;
|
|
84
84
|
[ "q2-tab-pane" ].forEach((e => {
|
|
85
|
-
if ("q2-tab-pane" === e) customElements.get(a(e)) || customElements.define(a(e),
|
|
85
|
+
if ("q2-tab-pane" === e) customElements.get(a(e)) || customElements.define(a(e), r);
|
|
86
86
|
}));
|
|
87
87
|
};
|
|
88
88
|
|
|
89
|
-
export {
|
|
89
|
+
export { s as Q2TabPane, defineCustomElement }
|