q2-tecton-elements 1.67.2 → 1.68.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 +22598 -10670
- package/dist/cjs/click-elsewhere.q2-option-list.q2-popover.entry.cjs.js.map +1 -1
- package/dist/cjs/click-elsewhere_3.cjs.entry.js +46 -32
- package/dist/cjs/click-elsewhere_3.cjs.entry.js.map +1 -1
- package/dist/cjs/{component-DRAntnCA.js → component-iASoq6gx.js} +9 -3
- package/dist/cjs/component-iASoq6gx.js.map +1 -0
- package/dist/cjs/{index-YvKoRT-t.js → index-DmGkqdX2.js} +3 -3
- package/dist/cjs/index-DmGkqdX2.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/q2-action-group.q2-resize-observer.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-action-group_2.cjs.entry.js +2 -2
- package/dist/cjs/q2-action-group_2.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-action-sheet.cjs.entry.js +109 -4
- package/dist/cjs/q2-action-sheet.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-action-sheet.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-avatar.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-avatar.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-badge.cjs.entry.js +1 -1
- package/dist/cjs/q2-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-badge.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-btn.q2-loading.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-btn_2.cjs.entry.js +1 -1
- package/dist/cjs/q2-btn_2.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-calendar.cjs.entry.js +6 -3
- package/dist/cjs/q2-calendar.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-calendar.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-card-image.cjs.entry.js +2 -2
- package/dist/cjs/q2-card-image.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-card-image.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-card.cjs.entry.js +1 -1
- package/dist/cjs/q2-card.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-card.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-carousel-pane.cjs.entry.js +3 -3
- package/dist/cjs/q2-carousel-pane.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-carousel-pane.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-carousel.cjs.entry.js +162 -29
- package/dist/cjs/q2-carousel.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-carousel.entry.cjs.js.map +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 +3 -2
- package/dist/cjs/q2-chart-donut.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-chart-donut.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/q2-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-checkbox-group.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-checkbox.q2-tag.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-checkbox_2.cjs.entry.js +3 -3
- package/dist/cjs/q2-checkbox_2.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-context.cjs.entry.js +2 -2
- package/dist/cjs/q2-context.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-context.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-currency.cjs.entry.js +2 -3
- package/dist/cjs/q2-currency.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-currency.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-data-table.cjs.entry.js +2 -2
- package/dist/cjs/q2-data-table.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-data-table.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-detail.cjs.entry.js +2 -2
- package/dist/cjs/q2-detail.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-detail.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-dropdown-item.cjs.entry.js +2 -2
- package/dist/cjs/q2-dropdown-item.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-dropdown-item.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-dropdown.cjs.entry.js +3 -5
- package/dist/cjs/q2-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-dropdown.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-editable-field.cjs.entry.js +1 -1
- package/dist/cjs/q2-editable-field.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-editable-field.entry.cjs.js.map +1 -1
- 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-file-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-file-picker.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-form.cjs.entry.js +2 -2
- package/dist/cjs/q2-form.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-form.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-formatted-text.cjs.entry.js +1 -1
- package/dist/cjs/q2-formatted-text.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-formatted-text.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-grid-area.cjs.entry.js +1 -1
- package/dist/cjs/q2-grid.cjs.entry.js +32 -8
- package/dist/cjs/q2-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-grid.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-icon.cjs.entry.js +1 -1
- package/dist/cjs/q2-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-icon.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-input.cjs.entry.js +8 -5
- package/dist/cjs/q2-input.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-input.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-item.cjs.entry.js +2 -2
- package/dist/cjs/q2-item.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-item.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-legend.cjs.entry.js +2 -3
- package/dist/cjs/q2-legend.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-legend.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-link.q2-list.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-link_2.cjs.entry.js +2 -2
- package/dist/cjs/q2-link_2.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-loc.cjs.entry.js +1 -1
- package/dist/cjs/q2-message.cjs.entry.js +3 -3
- package/dist/cjs/q2-message.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-message.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-meter.cjs.entry.js +2 -2
- package/dist/cjs/q2-meter.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-meter.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-modal.cjs.entry.js +3 -3
- package/dist/cjs/q2-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-modal.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-month-picker.cjs.entry.js +1 -1
- package/dist/cjs/q2-mutation-observer.cjs.entry.js +1 -1
- package/dist/cjs/q2-optgroup.cjs.entry.js +3 -3
- package/dist/cjs/q2-optgroup.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-optgroup.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-option.cjs.entry.js +3 -3
- package/dist/cjs/q2-option.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-option.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-otp.cjs.entry.js +373 -0
- package/dist/cjs/q2-otp.cjs.entry.js.map +1 -0
- package/dist/cjs/q2-otp.entry.cjs.js.map +1 -0
- package/dist/cjs/q2-pagination.cjs.entry.js +4 -4
- package/dist/cjs/q2-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-pagination.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-pill.cjs.entry.js +24 -15
- package/dist/cjs/q2-pill.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-pill.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/q2-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-radio-group.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-radio.cjs.entry.js +3 -3
- package/dist/cjs/q2-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-radio.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-relative-time.cjs.entry.js +2 -2
- package/dist/cjs/q2-section-container.cjs.entry.js +1 -1
- package/dist/cjs/q2-section.cjs.entry.js +3 -3
- package/dist/cjs/q2-section.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-section.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-select.cjs.entry.js +1 -1
- package/dist/cjs/q2-select.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-select.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-stepper-pane.cjs.entry.js +3 -3
- package/dist/cjs/q2-stepper-vertical.cjs.entry.js +2 -2
- package/dist/cjs/q2-stepper-vertical.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-stepper-vertical.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-stepper.cjs.entry.js +2 -2
- package/dist/cjs/q2-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-stepper.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-tab-container.cjs.entry.js +3 -3
- package/dist/cjs/q2-tab-container.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-tab-container.entry.cjs.js.map +1 -1
- 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 +1 -1
- package/dist/cjs/q2-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-textarea.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-toast.cjs.entry.js +1 -1
- package/dist/cjs/q2-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-toast.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-tooltip.cjs.entry.js +124 -5
- package/dist/cjs/q2-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-tooltip.entry.cjs.js.map +1 -1
- package/dist/cjs/{sanitize-html-string-CW6y5624.js → sanitize-html-string-D17Pr7-c.js} +21 -4
- package/dist/cjs/{sanitize-html-string-CW6y5624.js.map → sanitize-html-string-D17Pr7-c.js.map} +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/click-elsewhere/click-elsewhere.js +2 -0
- package/dist/collection/components/click-elsewhere/click-elsewhere.js.map +1 -1
- package/dist/collection/components/q2-action-group/q2-action-group.css +14 -0
- package/dist/collection/components/q2-action-sheet/q2-action-sheet.css +16 -0
- package/dist/collection/components/q2-action-sheet/q2-action-sheet.js +107 -2
- package/dist/collection/components/q2-action-sheet/q2-action-sheet.js.map +1 -1
- package/dist/collection/components/q2-avatar/q2-avatar.css +24 -0
- package/dist/collection/components/q2-avatar/test/q2-avatar-test.vr.js +61 -0
- package/dist/collection/components/q2-avatar/test/q2-avatar-test.vr.js.map +1 -0
- package/dist/collection/components/q2-badge/q2-badge.css +30 -0
- package/dist/collection/components/q2-badge/test/q2-badge-test.vr.js +34 -0
- package/dist/collection/components/q2-badge/test/q2-badge-test.vr.js.map +1 -0
- package/dist/collection/components/q2-btn/q2-btn.css +279 -0
- package/dist/collection/components/q2-btn/test/q2-btn-test.vr.js +80 -0
- package/dist/collection/components/q2-btn/test/q2-btn-test.vr.js.map +1 -0
- package/dist/collection/components/q2-calendar/q2-calendar.css +36 -0
- package/dist/collection/components/q2-calendar/q2-calendar.js +5 -2
- package/dist/collection/components/q2-calendar/q2-calendar.js.map +1 -1
- package/dist/collection/components/q2-calendar/test/q2-calendar-test.vr.js +170 -0
- package/dist/collection/components/q2-calendar/test/q2-calendar-test.vr.js.map +1 -0
- package/dist/collection/components/q2-card/q2-card.css +62 -0
- package/dist/collection/components/q2-card/test/q2-card-test.vr.js +72 -0
- package/dist/collection/components/q2-card/test/q2-card-test.vr.js.map +1 -0
- package/dist/collection/components/q2-card-image/q2-card-image.css +74 -13
- package/dist/collection/components/q2-card-image/test/q2-card-image-test.vr.js +152 -0
- package/dist/collection/components/q2-card-image/test/q2-card-image-test.vr.js.map +1 -0
- package/dist/collection/components/q2-carousel/q2-carousel.css +78 -13
- package/dist/collection/components/q2-carousel/q2-carousel.js +241 -27
- package/dist/collection/components/q2-carousel/q2-carousel.js.map +1 -1
- package/dist/collection/components/q2-carousel/test/q2-carousel-test.vr.js +104 -0
- package/dist/collection/components/q2-carousel/test/q2-carousel-test.vr.js.map +1 -0
- package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.css +26 -1
- package/dist/collection/components/q2-chart-area/test/q2-chart-area-test.vr.js +126 -0
- package/dist/collection/components/q2-chart-area/test/q2-chart-area-test.vr.js.map +1 -0
- package/dist/collection/components/q2-chart-bar/test/q2-chart-bar-test.vr.js +105 -0
- package/dist/collection/components/q2-chart-bar/test/q2-chart-bar-test.vr.js.map +1 -0
- package/dist/collection/components/q2-chart-donut/q2-chart-donut.css +29 -0
- package/dist/collection/components/q2-chart-donut/q2-chart-donut.js +21 -1
- package/dist/collection/components/q2-chart-donut/q2-chart-donut.js.map +1 -1
- package/dist/collection/components/q2-chart-donut/test/q2-chart-donut-test.vr.js +151 -0
- package/dist/collection/components/q2-chart-donut/test/q2-chart-donut-test.vr.js.map +1 -0
- package/dist/collection/components/q2-checkbox/q2-checkbox.css +128 -0
- package/dist/collection/components/q2-checkbox/test/q2-checkbox-test.vr.js +69 -0
- package/dist/collection/components/q2-checkbox/test/q2-checkbox-test.vr.js.map +1 -0
- package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.css +21 -0
- package/dist/collection/components/q2-checkbox-group/test/q2-checkbox-group-test.vr.js +61 -0
- package/dist/collection/components/q2-checkbox-group/test/q2-checkbox-group-test.vr.js.map +1 -0
- package/dist/collection/components/q2-context/q2-context.css +16 -0
- package/dist/collection/components/q2-context/test/q2-context-test.vr.js +95 -0
- package/dist/collection/components/q2-context/test/q2-context-test.vr.js.map +1 -0
- package/dist/collection/components/q2-currency/q2-currency.css +31 -0
- package/dist/collection/components/q2-currency/q2-currency.js +3 -4
- package/dist/collection/components/q2-currency/q2-currency.js.map +1 -1
- package/dist/collection/components/q2-currency/test/q2-currency-test.vr.js +79 -0
- package/dist/collection/components/q2-currency/test/q2-currency-test.vr.js.map +1 -0
- package/dist/collection/components/q2-data-table/q2-data-table.css +51 -0
- package/dist/collection/components/q2-data-table/q2-data-table.js +1 -1
- package/dist/collection/components/q2-data-table/test/q2-data-table-test.vr.js +79 -0
- package/dist/collection/components/q2-data-table/test/q2-data-table-test.vr.js.map +1 -0
- package/dist/collection/components/q2-detail/q2-detail.css +42 -0
- package/dist/collection/components/q2-detail/q2-detail.js +1 -1
- package/dist/collection/components/q2-dropdown/q2-dropdown.css +8 -0
- package/dist/collection/components/q2-dropdown/q2-dropdown.js +2 -4
- package/dist/collection/components/q2-dropdown/q2-dropdown.js.map +1 -1
- package/dist/collection/components/q2-dropdown-item/q2-dropdown-item.css +11 -0
- package/dist/collection/components/q2-editable-field/q2-editable-field.css +5 -0
- package/dist/collection/components/q2-editable-field/test/q2-editable-field-test.vr.js +89 -0
- package/dist/collection/components/q2-editable-field/test/q2-editable-field-test.vr.js.map +1 -0
- package/dist/collection/components/q2-example/q2-example.js +1 -1
- package/dist/collection/components/q2-file-picker/q2-file-picker.css +64 -0
- package/dist/collection/components/q2-file-picker/test/q2-file-picker-test.vr.js +92 -0
- package/dist/collection/components/q2-file-picker/test/q2-file-picker-test.vr.js.map +1 -0
- package/dist/collection/components/q2-form/q2-form.css +34 -20
- package/dist/collection/components/q2-form/q2-form.js +1 -1
- package/dist/collection/components/q2-formatted-text/q2-formatted-text.css +14 -0
- package/dist/collection/components/q2-formatted-text/q2-formatted-text.js +1 -1
- package/dist/collection/components/q2-formatted-text/test/q2-formatted-text-test.vr.js +55 -0
- package/dist/collection/components/q2-formatted-text/test/q2-formatted-text-test.vr.js.map +1 -0
- package/dist/collection/components/q2-grid/q2-grid.css +13 -0
- package/dist/collection/components/q2-grid/q2-grid.js +31 -7
- package/dist/collection/components/q2-grid/q2-grid.js.map +1 -1
- package/dist/collection/components/q2-icon/assets/standard.symbol.svg +1 -1
- package/dist/collection/components/q2-icon/q2-icon.css +15 -0
- package/dist/collection/components/q2-icon/test/q2-icon-test.vr.js +55 -0
- package/dist/collection/components/q2-icon/test/q2-icon-test.vr.js.map +1 -0
- package/dist/collection/components/q2-input/q2-input.css +104 -0
- package/dist/collection/components/q2-input/q2-input.js +6 -3
- package/dist/collection/components/q2-input/q2-input.js.map +1 -1
- package/dist/collection/components/q2-input/test/q2-input-test.vr.js +97 -0
- package/dist/collection/components/q2-input/test/q2-input-test.vr.js.map +1 -0
- package/dist/collection/components/q2-item/q2-item.css +28 -0
- package/dist/collection/components/q2-item/q2-item.js +1 -1
- package/dist/collection/components/q2-legend/q2-legend.css +16 -0
- package/dist/collection/components/q2-legend/q2-legend.js +21 -3
- package/dist/collection/components/q2-legend/q2-legend.js.map +1 -1
- package/dist/collection/components/q2-link/q2-link.css +20 -0
- package/dist/collection/components/q2-link/test/q2-link-test.vr.js +70 -0
- package/dist/collection/components/q2-link/test/q2-link-test.vr.js.map +1 -0
- package/dist/collection/components/q2-list/q2-list.css +14 -0
- package/dist/collection/components/q2-list/q2-list.js +1 -1
- package/dist/collection/components/q2-list/test/q2-list-test.vr.js +58 -0
- package/dist/collection/components/q2-list/test/q2-list-test.vr.js.map +1 -0
- package/dist/collection/components/q2-loading/q2-loading.css +9 -0
- package/dist/collection/components/q2-message/q2-message.css +29 -1
- package/dist/collection/components/q2-message/q2-message.js +1 -1
- package/dist/collection/components/q2-message/test/q2-message-test.vr.js +57 -0
- package/dist/collection/components/q2-message/test/q2-message-test.vr.js.map +1 -0
- package/dist/collection/components/q2-meter/q2-meter.css +40 -0
- package/dist/collection/components/q2-meter/q2-meter.js +1 -1
- package/dist/collection/components/q2-meter/test/q2-meter-test.vr.js +78 -0
- package/dist/collection/components/q2-meter/test/q2-meter-test.vr.js.map +1 -0
- package/dist/collection/components/q2-modal/q2-modal.css +21 -0
- package/dist/collection/components/q2-modal/q2-modal.js +1 -1
- package/dist/collection/components/q2-modal/test/q2-modal-test.vr.js +107 -0
- package/dist/collection/components/q2-modal/test/q2-modal-test.vr.js.map +1 -0
- package/dist/collection/components/q2-mutation-observer/q2-mutation-observer.js +1 -1
- package/dist/collection/components/q2-optgroup/q2-optgroup.css +11 -0
- package/dist/collection/components/q2-optgroup/q2-optgroup.js +1 -1
- package/dist/collection/components/q2-option/q2-option.css +9 -0
- package/dist/collection/components/q2-option/q2-option.js +1 -1
- package/dist/collection/components/q2-option/q2-option.js.map +1 -1
- package/dist/collection/components/q2-option-list/q2-option-list.css +3 -0
- package/dist/collection/components/q2-option-list/q2-option-list.js +37 -28
- package/dist/collection/components/q2-option-list/q2-option-list.js.map +1 -1
- package/dist/collection/components/q2-otp/q2-otp.css +312 -0
- package/dist/collection/components/q2-otp/q2-otp.js +873 -0
- package/dist/collection/components/q2-otp/q2-otp.js.map +1 -0
- package/dist/collection/components/q2-pagination/q2-pagination.css +22 -0
- package/dist/collection/components/q2-pagination/q2-pagination.js +3 -3
- package/dist/collection/components/q2-pagination/test/q2-pagination-test.vr.js +145 -0
- package/dist/collection/components/q2-pagination/test/q2-pagination-test.vr.js.map +1 -0
- package/dist/collection/components/q2-pill/q2-pill.css +53 -0
- package/dist/collection/components/q2-pill/q2-pill.js +23 -14
- package/dist/collection/components/q2-pill/q2-pill.js.map +1 -1
- package/dist/collection/components/q2-pill/test/q2-pill-test.vr.js +110 -0
- package/dist/collection/components/q2-pill/test/q2-pill-test.vr.js.map +1 -0
- package/dist/collection/components/q2-popover/q2-popover.css +20 -0
- package/dist/collection/components/q2-popover/q2-popover.js +5 -2
- package/dist/collection/components/q2-popover/q2-popover.js.map +1 -1
- package/dist/collection/components/q2-radio/q2-radio.css +52 -1
- package/dist/collection/components/q2-radio/q2-radio.js +2 -2
- package/dist/collection/components/q2-radio/q2-radio.js.map +1 -1
- package/dist/collection/components/q2-radio/test/q2-radio-test.vr.js +73 -0
- package/dist/collection/components/q2-radio/test/q2-radio-test.vr.js.map +1 -0
- package/dist/collection/components/q2-radio-group/q2-radio-group.css +22 -0
- package/dist/collection/components/q2-radio-group/test/q2-radio-group-test.vr.js +99 -0
- package/dist/collection/components/q2-radio-group/test/q2-radio-group-test.vr.js.map +1 -0
- package/dist/collection/components/q2-relative-time/q2-relative-time.js +1 -1
- package/dist/collection/components/q2-resize-observer/q2-resize-observer.js +1 -1
- package/dist/collection/components/q2-section/q2-section.css +26 -0
- package/dist/collection/components/q2-section/q2-section.js +2 -2
- package/dist/collection/components/q2-section/test/q2-section-test.vr.js +68 -0
- package/dist/collection/components/q2-section/test/q2-section-test.vr.js.map +1 -0
- package/dist/collection/components/q2-select/q2-select.css +17 -0
- package/dist/collection/components/q2-select/test/q2-select-test.vr.js +107 -0
- package/dist/collection/components/q2-select/test/q2-select-test.vr.js.map +1 -0
- package/dist/collection/components/q2-stepper/q2-stepper.css +36 -0
- package/dist/collection/components/q2-stepper/q2-stepper.js +1 -1
- package/dist/collection/components/q2-stepper/test/q2-stepper-test.vr.js +86 -0
- package/dist/collection/components/q2-stepper/test/q2-stepper-test.vr.js.map +1 -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 +31 -0
- package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js +1 -1
- package/dist/collection/components/q2-stepper-vertical/test/q2-stepper-vertical-test.vr.js +97 -0
- package/dist/collection/components/q2-stepper-vertical/test/q2-stepper-vertical-test.vr.js.map +1 -0
- package/dist/collection/components/q2-tab-container/q2-tab-container.css +38 -0
- package/dist/collection/components/q2-tab-container/q2-tab-container.js +1 -1
- package/dist/collection/components/q2-tab-container/test/q2-tab-container-test.vr.js +78 -0
- package/dist/collection/components/q2-tab-container/test/q2-tab-container-test.vr.js.map +1 -0
- package/dist/collection/components/q2-tab-pane/q2-tab-pane.js +1 -1
- package/dist/collection/components/q2-tag/q2-tag.css +30 -1
- package/dist/collection/components/q2-tag/q2-tag.js +1 -1
- package/dist/collection/components/q2-tag/test/q2-tag-test.vr.js +83 -0
- package/dist/collection/components/q2-tag/test/q2-tag-test.vr.js.map +1 -0
- package/dist/collection/components/q2-textarea/q2-textarea.css +80 -0
- package/dist/collection/components/q2-textarea/test/q2-textarea-test.vr.js +102 -0
- package/dist/collection/components/q2-textarea/test/q2-textarea-test.vr.js.map +1 -0
- package/dist/collection/components/q2-toast/q2-toast.css +15 -0
- package/dist/collection/components/q2-tooltip/q2-tooltip.css +31 -0
- package/dist/collection/components/q2-tooltip/q2-tooltip.js +135 -4
- package/dist/collection/components/q2-tooltip/q2-tooltip.js.map +1 -1
- package/dist/collection/components/q2-tooltip/test/q2-tooltip-test.vr.js +76 -0
- package/dist/collection/components/q2-tooltip/test/q2-tooltip-test.vr.js.map +1 -0
- package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.js +2 -2
- package/dist/collection/utils/component.js +7 -1
- package/dist/collection/utils/component.js.map +1 -1
- package/dist/collection/utils/index.js +1 -1
- package/dist/collection/utils/index.js.map +1 -1
- package/dist/collection/utils/sanitize-html-string.js +19 -2
- package/dist/collection/utils/sanitize-html-string.js.map +1 -1
- package/dist/collection/utils/test/vr-helpers.js +98 -0
- package/dist/collection/utils/test/vr-helpers.js.map +1 -0
- package/dist/components/click-elsewhere2.js +2 -0
- package/dist/components/click-elsewhere2.js.map +1 -1
- package/dist/components/component.js +7 -1
- package/dist/components/component.js.map +1 -1
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/index2.js.map +1 -1
- package/dist/components/q2-action-group2.js.map +1 -1
- package/dist/components/q2-action-sheet.js +107 -2
- package/dist/components/q2-action-sheet.js.map +1 -1
- package/dist/components/q2-avatar2.js.map +1 -1
- package/dist/components/q2-badge2.js.map +1 -1
- package/dist/components/q2-btn2.js.map +1 -1
- package/dist/components/q2-calendar.js +5 -2
- package/dist/components/q2-calendar.js.map +1 -1
- package/dist/components/q2-card-image.js +1 -1
- package/dist/components/q2-card-image.js.map +1 -1
- package/dist/components/q2-card.js.map +1 -1
- package/dist/components/q2-carousel-pane.js +1 -135
- package/dist/components/q2-carousel-pane.js.map +1 -1
- package/dist/components/q2-carousel-pane2.js +140 -0
- package/dist/components/q2-carousel-pane2.js.map +1 -0
- package/dist/components/q2-carousel.js +173 -29
- package/dist/components/q2-carousel.js.map +1 -1
- package/dist/components/q2-chart-donut.js +3 -1
- package/dist/components/q2-chart-donut.js.map +1 -1
- package/dist/components/q2-checkbox-group.js.map +1 -1
- package/dist/components/q2-checkbox2.js.map +1 -1
- package/dist/components/q2-context.js +1 -1
- package/dist/components/q2-context.js.map +1 -1
- package/dist/components/q2-currency.js +3 -4
- package/dist/components/q2-currency.js.map +1 -1
- package/dist/components/q2-data-table.js +1 -1
- package/dist/components/q2-data-table.js.map +1 -1
- package/dist/components/q2-detail.js +1 -1
- package/dist/components/q2-detail.js.map +1 -1
- package/dist/components/q2-dropdown-item2.js.map +1 -1
- package/dist/components/q2-dropdown.js +2 -4
- package/dist/components/q2-dropdown.js.map +1 -1
- package/dist/components/q2-editable-field.js.map +1 -1
- package/dist/components/q2-example.js +1 -1
- package/dist/components/q2-file-picker.js.map +1 -1
- package/dist/components/q2-form.js +2 -2
- package/dist/components/q2-form.js.map +1 -1
- package/dist/components/q2-formatted-text.js +1 -1
- package/dist/components/q2-formatted-text.js.map +1 -1
- package/dist/components/q2-grid.js +32 -8
- package/dist/components/q2-grid.js.map +1 -1
- package/dist/components/q2-icon2.js.map +1 -1
- package/dist/components/q2-input2.js +7 -4
- package/dist/components/q2-input2.js.map +1 -1
- package/dist/components/q2-item2.js +1 -1
- package/dist/components/q2-item2.js.map +1 -1
- package/dist/components/q2-legend2.js +3 -3
- package/dist/components/q2-legend2.js.map +1 -1
- package/dist/components/q2-link2.js.map +1 -1
- package/dist/components/q2-list2.js +1 -1
- package/dist/components/q2-list2.js.map +1 -1
- package/dist/components/q2-loading2.js.map +1 -1
- package/dist/components/q2-message2.js +2 -2
- package/dist/components/q2-message2.js.map +1 -1
- package/dist/components/q2-meter.js +1 -1
- package/dist/components/q2-meter.js.map +1 -1
- package/dist/components/q2-modal.js +1 -1
- package/dist/components/q2-modal.js.map +1 -1
- package/dist/components/q2-mutation-observer.js +1 -1
- package/dist/components/q2-optgroup2.js +1 -1
- package/dist/components/q2-optgroup2.js.map +1 -1
- package/dist/components/q2-option-list2.js +37 -28
- package/dist/components/q2-option-list2.js.map +1 -1
- package/dist/components/q2-option2.js +1 -1
- package/dist/components/q2-option2.js.map +1 -1
- package/dist/components/q2-otp.d.ts +11 -0
- package/dist/components/q2-otp.js +439 -0
- package/dist/components/q2-otp.js.map +1 -0
- package/dist/components/q2-pagination.js +3 -3
- package/dist/components/q2-pagination.js.map +1 -1
- package/dist/components/q2-pill.js +23 -14
- package/dist/components/q2-pill.js.map +1 -1
- package/dist/components/q2-popover2.js +5 -2
- package/dist/components/q2-popover2.js.map +1 -1
- package/dist/components/q2-radio-group.js.map +1 -1
- package/dist/components/q2-radio.js +2 -2
- package/dist/components/q2-radio.js.map +1 -1
- package/dist/components/q2-relative-time.js +1 -1
- package/dist/components/q2-resize-observer2.js +1 -1
- package/dist/components/q2-section.js +2 -2
- package/dist/components/q2-section.js.map +1 -1
- package/dist/components/q2-select2.js.map +1 -1
- package/dist/components/q2-stepper-pane.js +1 -1
- package/dist/components/q2-stepper-vertical.js +1 -1
- package/dist/components/q2-stepper-vertical.js.map +1 -1
- package/dist/components/q2-stepper.js +1 -1
- package/dist/components/q2-stepper.js.map +1 -1
- package/dist/components/q2-tab-container.js +1 -1
- package/dist/components/q2-tab-container.js.map +1 -1
- package/dist/components/q2-tab-pane.js +1 -1
- package/dist/components/q2-tag2.js +2 -2
- package/dist/components/q2-tag2.js.map +1 -1
- package/dist/components/q2-textarea.js.map +1 -1
- package/dist/components/q2-toast.js.map +1 -1
- package/dist/components/q2-tooltip2.js +124 -5
- package/dist/components/q2-tooltip2.js.map +1 -1
- package/dist/components/sanitize-html-string.js +19 -2
- package/dist/components/sanitize-html-string.js.map +1 -1
- package/dist/components/tecton-tab-pane.js +2 -2
- package/dist/esm/click-elsewhere.q2-option-list.q2-popover.entry.js.map +1 -1
- package/dist/esm/click-elsewhere_3.entry.js +46 -32
- package/dist/esm/click-elsewhere_3.entry.js.map +1 -1
- package/dist/esm/{component-DVxzK3WH.js → component-DaQM9u3s.js} +9 -3
- package/dist/esm/component-DaQM9u3s.js.map +1 -0
- package/dist/esm/{index-C4PILj1_.js → index-C5gj0T_3.js} +4 -4
- package/dist/esm/index-C5gj0T_3.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/q2-action-group.q2-resize-observer.entry.js.map +1 -1
- package/dist/esm/q2-action-group_2.entry.js +2 -2
- package/dist/esm/q2-action-group_2.entry.js.map +1 -1
- package/dist/esm/q2-action-sheet.entry.js +109 -4
- package/dist/esm/q2-action-sheet.entry.js.map +1 -1
- package/dist/esm/q2-avatar.entry.js.map +1 -1
- package/dist/esm/q2-badge.entry.js +1 -1
- package/dist/esm/q2-badge.entry.js.map +1 -1
- package/dist/esm/q2-btn.q2-loading.entry.js.map +1 -1
- package/dist/esm/q2-btn_2.entry.js +1 -1
- package/dist/esm/q2-btn_2.entry.js.map +1 -1
- package/dist/esm/q2-calendar.entry.js +6 -3
- package/dist/esm/q2-calendar.entry.js.map +1 -1
- package/dist/esm/q2-card-image.entry.js +2 -2
- package/dist/esm/q2-card-image.entry.js.map +1 -1
- package/dist/esm/q2-card.entry.js +1 -1
- package/dist/esm/q2-card.entry.js.map +1 -1
- package/dist/esm/q2-carousel-pane.entry.js +3 -3
- package/dist/esm/q2-carousel-pane.entry.js.map +1 -1
- package/dist/esm/q2-carousel.entry.js +162 -29
- package/dist/esm/q2-carousel.entry.js.map +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 +3 -2
- package/dist/esm/q2-chart-donut.entry.js.map +1 -1
- package/dist/esm/q2-checkbox-group.entry.js +2 -2
- package/dist/esm/q2-checkbox-group.entry.js.map +1 -1
- package/dist/esm/q2-checkbox.q2-tag.entry.js.map +1 -1
- package/dist/esm/q2-checkbox_2.entry.js +3 -3
- package/dist/esm/q2-checkbox_2.entry.js.map +1 -1
- package/dist/esm/q2-context.entry.js +2 -2
- package/dist/esm/q2-context.entry.js.map +1 -1
- package/dist/esm/q2-currency.entry.js +3 -4
- package/dist/esm/q2-currency.entry.js.map +1 -1
- package/dist/esm/q2-data-table.entry.js +2 -2
- package/dist/esm/q2-data-table.entry.js.map +1 -1
- package/dist/esm/q2-detail.entry.js +2 -2
- package/dist/esm/q2-detail.entry.js.map +1 -1
- package/dist/esm/q2-dropdown-item.entry.js +2 -2
- package/dist/esm/q2-dropdown-item.entry.js.map +1 -1
- package/dist/esm/q2-dropdown.entry.js +3 -5
- package/dist/esm/q2-dropdown.entry.js.map +1 -1
- package/dist/esm/q2-editable-field.entry.js +1 -1
- package/dist/esm/q2-editable-field.entry.js.map +1 -1
- package/dist/esm/q2-example.entry.js +1 -1
- package/dist/esm/q2-file-picker.entry.js +1 -1
- package/dist/esm/q2-file-picker.entry.js.map +1 -1
- package/dist/esm/q2-form.entry.js +2 -2
- package/dist/esm/q2-form.entry.js.map +1 -1
- package/dist/esm/q2-formatted-text.entry.js +1 -1
- package/dist/esm/q2-formatted-text.entry.js.map +1 -1
- package/dist/esm/q2-grid-area.entry.js +1 -1
- package/dist/esm/q2-grid.entry.js +33 -9
- package/dist/esm/q2-grid.entry.js.map +1 -1
- package/dist/esm/q2-icon.entry.js +1 -1
- package/dist/esm/q2-icon.entry.js.map +1 -1
- package/dist/esm/q2-input.entry.js +8 -5
- package/dist/esm/q2-input.entry.js.map +1 -1
- package/dist/esm/q2-item.entry.js +2 -2
- package/dist/esm/q2-item.entry.js.map +1 -1
- package/dist/esm/q2-legend.entry.js +2 -3
- package/dist/esm/q2-legend.entry.js.map +1 -1
- package/dist/esm/q2-link.q2-list.entry.js.map +1 -1
- package/dist/esm/q2-link_2.entry.js +2 -2
- package/dist/esm/q2-link_2.entry.js.map +1 -1
- package/dist/esm/q2-loc.entry.js +1 -1
- package/dist/esm/q2-message.entry.js +3 -3
- package/dist/esm/q2-message.entry.js.map +1 -1
- package/dist/esm/q2-meter.entry.js +2 -2
- package/dist/esm/q2-meter.entry.js.map +1 -1
- package/dist/esm/q2-modal.entry.js +3 -3
- package/dist/esm/q2-modal.entry.js.map +1 -1
- package/dist/esm/q2-month-picker.entry.js +1 -1
- package/dist/esm/q2-mutation-observer.entry.js +1 -1
- package/dist/esm/q2-optgroup.entry.js +3 -3
- package/dist/esm/q2-optgroup.entry.js.map +1 -1
- package/dist/esm/q2-option.entry.js +3 -3
- package/dist/esm/q2-option.entry.js.map +1 -1
- package/dist/esm/q2-otp.entry.js +371 -0
- package/dist/esm/q2-otp.entry.js.map +1 -0
- package/dist/esm/q2-pagination.entry.js +4 -4
- package/dist/esm/q2-pagination.entry.js.map +1 -1
- package/dist/esm/q2-pill.entry.js +24 -15
- package/dist/esm/q2-pill.entry.js.map +1 -1
- package/dist/esm/q2-radio-group.entry.js +1 -1
- package/dist/esm/q2-radio-group.entry.js.map +1 -1
- package/dist/esm/q2-radio.entry.js +3 -3
- package/dist/esm/q2-radio.entry.js.map +1 -1
- package/dist/esm/q2-relative-time.entry.js +2 -2
- package/dist/esm/q2-section-container.entry.js +1 -1
- package/dist/esm/q2-section.entry.js +3 -3
- package/dist/esm/q2-section.entry.js.map +1 -1
- package/dist/esm/q2-select.entry.js +1 -1
- package/dist/esm/q2-select.entry.js.map +1 -1
- package/dist/esm/q2-stepper-pane.entry.js +3 -3
- package/dist/esm/q2-stepper-vertical.entry.js +2 -2
- package/dist/esm/q2-stepper-vertical.entry.js.map +1 -1
- package/dist/esm/q2-stepper.entry.js +2 -2
- package/dist/esm/q2-stepper.entry.js.map +1 -1
- package/dist/esm/q2-tab-container.entry.js +3 -3
- package/dist/esm/q2-tab-container.entry.js.map +1 -1
- 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 +1 -1
- package/dist/esm/q2-textarea.entry.js.map +1 -1
- package/dist/esm/q2-toast.entry.js +1 -1
- package/dist/esm/q2-toast.entry.js.map +1 -1
- package/dist/esm/q2-tooltip.entry.js +124 -5
- package/dist/esm/q2-tooltip.entry.js.map +1 -1
- package/dist/esm/{sanitize-html-string-B35VmRc9.js → sanitize-html-string-DPHNpMWE.js} +21 -4
- package/dist/{q2-tecton-elements/sanitize-html-string-B35VmRc9.js.map → esm/sanitize-html-string-DPHNpMWE.js.map} +1 -1
- package/dist/esm/tecton-tab-pane.entry.js +2 -2
- package/dist/playwright.config.js +12 -0
- package/dist/playwright.config.js.map +1 -0
- package/dist/q2-tecton-elements/assets/standard.symbol.svg +1 -1
- package/dist/q2-tecton-elements/click-elsewhere.q2-option-list.q2-popover.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/click-elsewhere_3.entry.js +44 -35
- package/dist/q2-tecton-elements/click-elsewhere_3.entry.js.map +1 -1
- package/dist/q2-tecton-elements/component-DaQM9u3s.js +46 -0
- package/dist/q2-tecton-elements/component-DaQM9u3s.js.map +1 -0
- package/dist/q2-tecton-elements/{index-C4PILj1_.js → index-C5gj0T_3.js} +4 -4
- package/dist/q2-tecton-elements/index-C5gj0T_3.js.map +1 -0
- package/dist/q2-tecton-elements/q2-action-group.q2-resize-observer.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-action-group_2.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-action-group_2.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-action-sheet.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-action-sheet.entry.js +166 -70
- package/dist/q2-tecton-elements/q2-action-sheet.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-avatar.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-avatar.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-badge.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-badge.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-badge.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-btn.q2-loading.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-btn_2.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-btn_2.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-calendar.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-calendar.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-calendar.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-card-image.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-card-image.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-card-image.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-card.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-card.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-card.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-carousel-pane.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-carousel-pane.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-carousel-pane.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-carousel.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-carousel.entry.js +402 -271
- package/dist/q2-tecton-elements/q2-carousel.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-chart-area.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-chart-bar.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-chart-donut.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-chart-donut.entry.js +18 -16
- package/dist/q2-tecton-elements/q2-chart-donut.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-checkbox-group.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-checkbox-group.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-checkbox.q2-tag.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-checkbox_2.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-checkbox_2.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-context.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-context.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-context.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-currency.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-currency.entry.js +34 -33
- package/dist/q2-tecton-elements/q2-currency.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-data-table.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-data-table.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-data-table.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-detail.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-detail.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-detail.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-dropdown-item.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-dropdown-item.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-dropdown-item.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-dropdown.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-dropdown.entry.js +18 -19
- package/dist/q2-tecton-elements/q2-dropdown.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-editable-field.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-editable-field.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-editable-field.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-example.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-file-picker.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-file-picker.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-file-picker.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-form.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-form.entry.js +9 -9
- package/dist/q2-tecton-elements/q2-form.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-formatted-text.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-formatted-text.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-formatted-text.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-grid-area.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-grid.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-grid.entry.js +39 -14
- package/dist/q2-tecton-elements/q2-grid.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-icon.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-icon.entry.js +52 -52
- package/dist/q2-tecton-elements/q2-icon.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-input.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-input.entry.js +10 -6
- package/dist/q2-tecton-elements/q2-input.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-item.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-item.entry.js +14 -14
- package/dist/q2-tecton-elements/q2-item.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-legend.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-legend.entry.js +4 -5
- package/dist/q2-tecton-elements/q2-legend.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-link.q2-list.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-link_2.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-link_2.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-loc.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-message.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-message.entry.js +28 -28
- package/dist/q2-tecton-elements/q2-message.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-meter.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-meter.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-meter.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-modal.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-modal.entry.js +53 -53
- package/dist/q2-tecton-elements/q2-modal.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-month-picker.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-mutation-observer.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-optgroup.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-optgroup.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-optgroup.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-option.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-option.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-option.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-otp.entry.esm.js.map +1 -0
- package/dist/q2-tecton-elements/q2-otp.entry.js +453 -0
- package/dist/q2-tecton-elements/q2-otp.entry.js.map +1 -0
- package/dist/q2-tecton-elements/q2-pagination.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-pagination.entry.js +29 -29
- package/dist/q2-tecton-elements/q2-pagination.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-pill.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-pill.entry.js +43 -28
- package/dist/q2-tecton-elements/q2-pill.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-radio-group.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-radio-group.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-radio-group.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-radio.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-radio.entry.js +10 -10
- package/dist/q2-tecton-elements/q2-radio.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-relative-time.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-section-container.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-section.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-section.entry.js +21 -21
- package/dist/q2-tecton-elements/q2-section.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-select.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-select.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-select.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-stepper-pane.entry.js +10 -10
- package/dist/q2-tecton-elements/q2-stepper-vertical.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-stepper-vertical.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-stepper-vertical.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-stepper.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-stepper.entry.js +33 -33
- package/dist/q2-tecton-elements/q2-stepper.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-tab-container.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-tab-container.entry.js +14 -14
- package/dist/q2-tecton-elements/q2-tab-container.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-tab-pane.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
- package/dist/q2-tecton-elements/q2-textarea.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-textarea.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-textarea.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-toast.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-toast.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-toast.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-tooltip.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-tooltip.entry.js +136 -20
- package/dist/q2-tecton-elements/q2-tooltip.entry.js.map +1 -1
- package/dist/q2-tecton-elements/{sanitize-html-string-B35VmRc9.js → sanitize-html-string-DPHNpMWE.js} +147 -142
- package/dist/{esm/sanitize-html-string-B35VmRc9.js.map → q2-tecton-elements/sanitize-html-string-DPHNpMWE.js.map} +1 -1
- package/dist/q2-tecton-elements/tecton-tab-pane.entry.js +6 -6
- package/dist/types/builds/q2e/development/tecton/tecton/packages/q2-tecton-elements/.stencil/playwright.config.d.ts +2 -0
- package/dist/types/components/q2-action-sheet/q2-action-sheet.d.ts +22 -0
- package/dist/types/components/q2-avatar/test/q2-avatar-test.vr.d.ts +1 -0
- package/dist/types/components/q2-badge/test/q2-badge-test.vr.d.ts +1 -0
- package/dist/types/components/q2-btn/test/q2-btn-test.vr.d.ts +1 -0
- package/dist/types/components/q2-calendar/test/q2-calendar-test.vr.d.ts +1 -0
- package/dist/types/components/q2-card/test/q2-card-test.vr.d.ts +1 -0
- package/dist/types/components/q2-card-image/test/q2-card-image-test.vr.d.ts +1 -0
- package/dist/types/components/q2-carousel/q2-carousel.d.ts +29 -0
- package/dist/types/components/q2-carousel/test/q2-carousel-test.vr.d.ts +1 -0
- package/dist/types/components/q2-chart-area/test/q2-chart-area-test.vr.d.ts +1 -0
- package/dist/types/components/q2-chart-bar/test/q2-chart-bar-test.vr.d.ts +1 -0
- package/dist/types/components/q2-chart-donut/q2-chart-donut.d.ts +2 -0
- package/dist/types/components/q2-chart-donut/test/q2-chart-donut-test.vr.d.ts +1 -0
- package/dist/types/components/q2-checkbox/test/q2-checkbox-test.vr.d.ts +1 -0
- package/dist/types/components/q2-checkbox-group/test/q2-checkbox-group-test.vr.d.ts +1 -0
- package/dist/types/components/q2-context/test/q2-context-test.vr.d.ts +1 -0
- package/dist/types/components/q2-currency/test/q2-currency-test.vr.d.ts +1 -0
- package/dist/types/components/q2-data-table/test/q2-data-table-test.vr.d.ts +1 -0
- package/dist/types/components/q2-editable-field/test/q2-editable-field-test.vr.d.ts +1 -0
- package/dist/types/components/q2-file-picker/test/q2-file-picker-test.vr.d.ts +1 -0
- package/dist/types/components/q2-formatted-text/test/q2-formatted-text-test.vr.d.ts +1 -0
- package/dist/types/components/q2-grid/q2-grid.d.ts +10 -0
- package/dist/types/components/q2-icon/test/q2-icon-test.vr.d.ts +1 -0
- package/dist/types/components/q2-input/test/q2-input-test.vr.d.ts +1 -0
- package/dist/types/components/q2-legend/q2-legend.d.ts +2 -0
- package/dist/types/components/q2-link/test/q2-link-test.vr.d.ts +1 -0
- package/dist/types/components/q2-list/test/q2-list-test.vr.d.ts +1 -0
- package/dist/types/components/q2-message/test/q2-message-test.vr.d.ts +1 -0
- package/dist/types/components/q2-meter/test/q2-meter-test.vr.d.ts +1 -0
- package/dist/types/components/q2-modal/test/q2-modal-test.vr.d.ts +1 -0
- package/dist/types/components/q2-otp/q2-otp.d.ts +159 -0
- package/dist/types/components/q2-pagination/test/q2-pagination-test.vr.d.ts +1 -0
- package/dist/types/components/q2-pill/q2-pill.d.ts +5 -2
- package/dist/types/components/q2-pill/test/q2-pill-test.vr.d.ts +1 -0
- package/dist/types/components/q2-radio/q2-radio.d.ts +1 -1
- package/dist/types/components/q2-radio/test/q2-radio-test.vr.d.ts +1 -0
- package/dist/types/components/q2-radio-group/test/q2-radio-group-test.vr.d.ts +1 -0
- package/dist/types/components/q2-section/test/q2-section-test.vr.d.ts +1 -0
- package/dist/types/components/q2-select/test/q2-select-test.vr.d.ts +1 -0
- package/dist/types/components/q2-stepper/test/q2-stepper-test.vr.d.ts +1 -0
- package/dist/types/components/q2-stepper-vertical/test/q2-stepper-vertical-test.vr.d.ts +1 -0
- package/dist/types/components/q2-tab-container/test/q2-tab-container-test.vr.d.ts +1 -0
- package/dist/types/components/q2-tag/test/q2-tag-test.vr.d.ts +1 -0
- package/dist/types/components/q2-textarea/test/q2-textarea-test.vr.d.ts +1 -0
- package/dist/types/components/q2-tooltip/q2-tooltip.d.ts +4 -0
- package/dist/types/components/q2-tooltip/test/q2-tooltip-test.vr.d.ts +1 -0
- package/dist/types/components.d.ts +306 -2
- package/dist/types/utils/component.d.ts +1 -1
- package/dist/types/utils/test/vr-helpers.d.ts +14 -0
- package/package.json +12 -3
- package/dist/cjs/component-DRAntnCA.js.map +0 -1
- package/dist/cjs/index-YvKoRT-t.js.map +0 -1
- package/dist/esm/component-DVxzK3WH.js.map +0 -1
- package/dist/esm/index-C4PILj1_.js.map +0 -1
- package/dist/q2-tecton-elements/component-DVxzK3WH.js +0 -40
- package/dist/q2-tecton-elements/component-DVxzK3WH.js.map +0 -1
- package/dist/q2-tecton-elements/index-C4PILj1_.js.map +0 -1
|
@@ -71,7 +71,7 @@ export class Q2FormattedText {
|
|
|
71
71
|
// #region Render Methods
|
|
72
72
|
render() {
|
|
73
73
|
const { formattedTextClasses } = this;
|
|
74
|
-
return (h("div", { key: '
|
|
74
|
+
return (h("div", { key: '9345b2829e7ac6dd1e5e308e1b840dcb298dbc0d', class: formattedTextClasses, "aria-label": this.formattedValue }, h("span", { key: '4687a60218658aeced2507ffd9f5eef6c5c9b40e' }, this.formattedValue)));
|
|
75
75
|
}
|
|
76
76
|
static get is() { return "q2-formatted-text"; }
|
|
77
77
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { expect } from "@playwright/test";
|
|
2
|
+
import { test } from "@stencil/playwright";
|
|
3
|
+
import { setupPage, THEMES } from "../../../utils/test/vr-helpers";
|
|
4
|
+
const VARIANTS = [
|
|
5
|
+
{
|
|
6
|
+
name: 'inline',
|
|
7
|
+
html: `<q2-formatted-text value="1234.5"></q2-formatted-text>`,
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
name: 'size-small',
|
|
11
|
+
html: `<q2-formatted-text value="1234.5" size="small"></q2-formatted-text>`,
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
name: 'size-medium',
|
|
15
|
+
html: `<q2-formatted-text value="1234.5" size="medium"></q2-formatted-text>`,
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: 'size-large',
|
|
19
|
+
html: `<q2-formatted-text value="1234.5" size="large"></q2-formatted-text>`,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'percent',
|
|
23
|
+
html: `<q2-formatted-text value="0.4567" format="percent" size="medium"></q2-formatted-text>`,
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'locale-de-DE',
|
|
27
|
+
html: `<q2-formatted-text value="1234.5" locale="de-DE" size="medium"></q2-formatted-text>`,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'sign-always-positive',
|
|
31
|
+
html: `<q2-formatted-text value="1234.5" sign-display="always" size="medium"></q2-formatted-text>`,
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'sign-always-negative',
|
|
35
|
+
html: `<q2-formatted-text value="-1234.5" sign-display="always" size="medium"></q2-formatted-text>`,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'fraction-digits-zero',
|
|
39
|
+
html: `<q2-formatted-text value="1234" minimum-fraction-digits="0" maximum-fraction-digits="0" size="medium"></q2-formatted-text>`,
|
|
40
|
+
},
|
|
41
|
+
];
|
|
42
|
+
const restingCase = (variant, theme) => {
|
|
43
|
+
test(`q2-formatted-text--${variant.name}--resting — ${theme}`, async ({ page }) => {
|
|
44
|
+
await setupPage(page, variant.html, { theme });
|
|
45
|
+
await expect(page).toHaveScreenshot(`q2-formatted-text--${variant.name}--resting--${theme}.png`);
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
test.describe('q2-formatted-text — variants × themes', () => {
|
|
49
|
+
for (const variant of VARIANTS) {
|
|
50
|
+
for (const theme of THEMES) {
|
|
51
|
+
restingCase(variant, theme);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
//# sourceMappingURL=q2-formatted-text-test.vr.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"q2-formatted-text-test.vr.js","sourceRoot":"","sources":["../../../../../src/components/q2-formatted-text/test/q2-formatted-text-test.vr.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,EAAS,MAAM,gCAAgC,CAAC;AAI1E,MAAM,QAAQ,GAAc;IACxB;QACI,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,wDAAwD;KACjE;IACD;QACI,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,qEAAqE;KAC9E;IACD;QACI,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,sEAAsE;KAC/E;IACD;QACI,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,qEAAqE;KAC9E;IACD;QACI,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,uFAAuF;KAChG;IACD;QACI,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,qFAAqF;KAC9F;IACD;QACI,IAAI,EAAE,sBAAsB;QAC5B,IAAI,EAAE,4FAA4F;KACrG;IACD;QACI,IAAI,EAAE,sBAAsB;QAC5B,IAAI,EAAE,6FAA6F;KACtG;IACD;QACI,IAAI,EAAE,sBAAsB;QAC5B,IAAI,EAAE,4HAA4H;KACrI;CACJ,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,OAAgB,EAAE,KAAY,EAAE,EAAE;IACnD,IAAI,CAAC,sBAAsB,OAAO,CAAC,IAAI,eAAe,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;QAC9E,MAAM,SAAS,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAC/C,MAAM,MAAM,CAAC,IAAI,CAAC,CAAC,gBAAgB,CAAC,sBAAsB,OAAO,CAAC,IAAI,cAAc,KAAK,MAAM,CAAC,CAAC;IACrG,CAAC,CAAC,CAAC;AACP,CAAC,CAAC;AAEF,IAAI,CAAC,QAAQ,CAAC,uCAAuC,EAAE,GAAG,EAAE;IACxD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC7B,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;YACzB,WAAW,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QAChC,CAAC;IACL,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { expect } from '@playwright/test';\nimport { test } from '@stencil/playwright';\nimport { setupPage, THEMES, Theme } from '../../../utils/test/vr-helpers';\n\ntype Variant = { name: string; html: string };\n\nconst VARIANTS: Variant[] = [\n {\n name: 'inline',\n html: `<q2-formatted-text value=\"1234.5\"></q2-formatted-text>`,\n },\n {\n name: 'size-small',\n html: `<q2-formatted-text value=\"1234.5\" size=\"small\"></q2-formatted-text>`,\n },\n {\n name: 'size-medium',\n html: `<q2-formatted-text value=\"1234.5\" size=\"medium\"></q2-formatted-text>`,\n },\n {\n name: 'size-large',\n html: `<q2-formatted-text value=\"1234.5\" size=\"large\"></q2-formatted-text>`,\n },\n {\n name: 'percent',\n html: `<q2-formatted-text value=\"0.4567\" format=\"percent\" size=\"medium\"></q2-formatted-text>`,\n },\n {\n name: 'locale-de-DE',\n html: `<q2-formatted-text value=\"1234.5\" locale=\"de-DE\" size=\"medium\"></q2-formatted-text>`,\n },\n {\n name: 'sign-always-positive',\n html: `<q2-formatted-text value=\"1234.5\" sign-display=\"always\" size=\"medium\"></q2-formatted-text>`,\n },\n {\n name: 'sign-always-negative',\n html: `<q2-formatted-text value=\"-1234.5\" sign-display=\"always\" size=\"medium\"></q2-formatted-text>`,\n },\n {\n name: 'fraction-digits-zero',\n html: `<q2-formatted-text value=\"1234\" minimum-fraction-digits=\"0\" maximum-fraction-digits=\"0\" size=\"medium\"></q2-formatted-text>`,\n },\n];\n\nconst restingCase = (variant: Variant, theme: Theme) => {\n test(`q2-formatted-text--${variant.name}--resting — ${theme}`, async ({ page }) => {\n await setupPage(page, variant.html, { theme });\n await expect(page).toHaveScreenshot(`q2-formatted-text--${variant.name}--resting--${theme}.png`);\n });\n};\n\ntest.describe('q2-formatted-text — variants × themes', () => {\n for (const variant of VARIANTS) {\n for (const theme of THEMES) {\n restingCase(variant, theme);\n }\n }\n});\n"]}
|
|
@@ -1,8 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @prop --tct-grid-gap-none: (<length-percentage>+) Controls the gap between grid rows and columns when gap is none.
|
|
3
|
+
* @prop --tct-grid-gap-compact: (<length-percentage>+) Controls the gap between grid rows and columns when gap is compact.
|
|
4
|
+
* @prop --tct-grid-gap-normal: (<length-percentage>+) Controls the gap between grid rows and columns when gap is normal.
|
|
5
|
+
* @prop --tct-grid-gap-comfortable: (<length-percentage>+) Controls the gap between grid rows and columns when gap is comfortable.
|
|
6
|
+
*/
|
|
1
7
|
.q2-grid {
|
|
2
8
|
--comp-grid-gap-none: var(--tct-grid-gap-none, var(--app-scale-0x, 0px));
|
|
3
9
|
--comp-grid-gap-compact: var(--tct-grid-gap-compact, var(--app-scale-1x, 5px));
|
|
4
10
|
--comp-grid-gap-normal: var(--tct-grid-gap-normal, var(--app-scale-3x, 15px));
|
|
5
11
|
--comp-grid-gap-comfortable: var(--tct-grid-gap-comfortable, var(--app-scale-5x, 25px));
|
|
12
|
+
--tct-input-margin: 0;
|
|
13
|
+
--tct-select-margin: 0;
|
|
14
|
+
--tct-calendar-margin: 0;
|
|
15
|
+
--tct-file-picker-margin: 0;
|
|
16
|
+
--tct-textarea-margin: 0;
|
|
17
|
+
--tct-checkbox-group-margin: 0;
|
|
18
|
+
--tct-radio-group-margin: 0;
|
|
6
19
|
--grid-template-columns: "";
|
|
7
20
|
--grid-template-rows: "";
|
|
8
21
|
--grid-gap: "";
|
|
@@ -6,6 +6,15 @@ import { h, Fragment } from "@stencil/core";
|
|
|
6
6
|
*/
|
|
7
7
|
export class Q2Grid {
|
|
8
8
|
constructor() {
|
|
9
|
+
// #region Own Properties
|
|
10
|
+
/**
|
|
11
|
+
* Tracks whether the `gap` attribute was explicitly set on this element at mount.
|
|
12
|
+
* When false (and the grid is inside a q2-form), the grid's gap defers to the
|
|
13
|
+
* form's --comp-spacing so form+grid matches form-only spacing without the
|
|
14
|
+
* consumer having to mirror tokens.
|
|
15
|
+
*/
|
|
16
|
+
this.hasExplicitGap = false;
|
|
17
|
+
// #endregion
|
|
9
18
|
// #region Public Property API
|
|
10
19
|
/**
|
|
11
20
|
* Sets the vertical alignment behavior of q2-grid-area components within a grid track at
|
|
@@ -33,6 +42,11 @@ export class Q2Grid {
|
|
|
33
42
|
this.rows = 'auto';
|
|
34
43
|
}
|
|
35
44
|
// #endregion
|
|
45
|
+
// #region Component Lifecycle Events
|
|
46
|
+
componentWillLoad() {
|
|
47
|
+
this.hasExplicitGap = this.element.hasAttribute('gap');
|
|
48
|
+
}
|
|
49
|
+
// #endregion
|
|
36
50
|
// #region Local Methods
|
|
37
51
|
get computedLgRows() {
|
|
38
52
|
return this.lgRows || this.computedMdRows;
|
|
@@ -49,6 +63,15 @@ export class Q2Grid {
|
|
|
49
63
|
get computedXsRows() {
|
|
50
64
|
return this.xsRows || this.rows;
|
|
51
65
|
}
|
|
66
|
+
gapValue(...keys) {
|
|
67
|
+
const resolved = keys.find(k => !!k);
|
|
68
|
+
if (resolved === this.gap && !this.hasExplicitGap) {
|
|
69
|
+
// No explicit gap at this breakpoint — inherit q2-form's spacing if present,
|
|
70
|
+
// otherwise fall back to the normal gap token.
|
|
71
|
+
return `var(--comp-spacing, var(--comp-grid-gap-${this.gap}))`;
|
|
72
|
+
}
|
|
73
|
+
return `var(--comp-grid-gap-${resolved})`;
|
|
74
|
+
}
|
|
52
75
|
// #endregion
|
|
53
76
|
// #region Render Methods
|
|
54
77
|
render() {
|
|
@@ -56,41 +79,41 @@ export class Q2Grid {
|
|
|
56
79
|
// base:
|
|
57
80
|
'--grid-template-columns': `repeat(${this.columns}, 1fr)`,
|
|
58
81
|
'--grid-template-rows': this.rows === 'auto' ? this.rows : `repeat(${this.rows}, 1fr)`,
|
|
59
|
-
'--grid-gap':
|
|
82
|
+
'--grid-gap': this.gapValue(this.gap),
|
|
60
83
|
'--justify-items': this.justify,
|
|
61
84
|
'--align-items': this.align,
|
|
62
85
|
// xs:
|
|
63
86
|
'--xs-grid-template-columns': `repeat(${this.xsColumns || this.columns}, 1fr)`,
|
|
64
87
|
'--xs-grid-template-rows': this.computedXsRows === 'auto' ? this.computedXsRows : `repeat(${this.computedXsRows}, 1fr)`,
|
|
65
|
-
'--xs-grid-gap':
|
|
88
|
+
'--xs-grid-gap': this.gapValue(this.xsGap, this.gap),
|
|
66
89
|
'--xs-justify-items': this.xsJustify || this.justify,
|
|
67
90
|
'--xs-align-items': this.xsAlign || this.align,
|
|
68
91
|
// sm:
|
|
69
92
|
'--sm-grid-template-columns': `repeat(${this.smColumns || this.xsColumns || this.columns}, 1fr)`,
|
|
70
93
|
'--sm-grid-template-rows': this.computedSmRows === 'auto' ? this.computedSmRows : `repeat(${this.computedSmRows}, 1fr)`,
|
|
71
|
-
'--sm-grid-gap':
|
|
94
|
+
'--sm-grid-gap': this.gapValue(this.smGap, this.xsGap, this.gap),
|
|
72
95
|
'--sm-justify-items': this.smJustify || this.xsJustify || this.justify,
|
|
73
96
|
'--sm-align-items': this.smAlign || this.xsAlign || this.align,
|
|
74
97
|
// md:
|
|
75
98
|
'--md-grid-template-columns': `repeat(${this.mdColumns || this.smColumns || this.xsColumns || this.columns}, 1fr)`,
|
|
76
99
|
'--md-grid-template-rows': this.computedMdRows === 'auto' ? this.computedMdRows : `repeat(${this.computedMdRows}, 1fr)`,
|
|
77
|
-
'--md-grid-gap':
|
|
100
|
+
'--md-grid-gap': this.gapValue(this.mdGap, this.smGap, this.xsGap, this.gap),
|
|
78
101
|
'--md-justify-items': this.mdJustify || this.smJustify || this.xsJustify || this.justify,
|
|
79
102
|
'--md-align-items': this.mdAlign || this.smAlign || this.xsAlign || this.align,
|
|
80
103
|
// lg:
|
|
81
104
|
'--lg-grid-template-columns': `repeat(${this.lgColumns || this.mdColumns || this.smColumns || this.xsColumns || this.columns}, 1fr)`,
|
|
82
105
|
'--lg-grid-template-rows': this.computedLgRows === 'auto' ? this.computedLgRows : `repeat(${this.computedLgRows}, 1fr)`,
|
|
83
|
-
'--lg-grid-gap':
|
|
106
|
+
'--lg-grid-gap': this.gapValue(this.lgGap, this.mdGap, this.smGap, this.xsGap, this.gap),
|
|
84
107
|
'--lg-justify-items': this.lgJustify || this.mdJustify || this.smJustify || this.xsJustify || this.justify,
|
|
85
108
|
'--lg-align-items': this.lgAlign || this.mdAlign || this.smAlign || this.xsAlign || this.align,
|
|
86
109
|
// xl:
|
|
87
110
|
'--xl-grid-template-columns': `repeat(${this.xlColumns || this.lgColumns || this.mdColumns || this.smColumns || this.xsColumns || this.columns}, 1fr)`,
|
|
88
111
|
'--xl-grid-template-rows': this.computedXlRows === 'auto' ? this.computedXlRows : `repeat(${this.computedXlRows}, 1fr)`,
|
|
89
|
-
'--xl-grid-gap':
|
|
112
|
+
'--xl-grid-gap': this.gapValue(this.xlGap, this.lgGap, this.mdGap, this.smGap, this.xsGap, this.gap),
|
|
90
113
|
'--xl-justify-items': this.xlJustify || this.lgJustify || this.mdJustify || this.smJustify || this.xsJustify || this.justify,
|
|
91
114
|
'--xl-align-items': this.xlAlign || this.lgAlign || this.mdAlign || this.smAlign || this.xsAlign || this.align,
|
|
92
115
|
};
|
|
93
|
-
return (h(Fragment, { key: '
|
|
116
|
+
return (h(Fragment, { key: '03e2c1cd82120cba9c38c2a1f5a34fe1dabf52bd' }, h("div", { key: 'b9bb38073a2edb5cd0fedf667d8c552328b4f4c6', style: q2GridStyles, class: "q2-grid" }, h("slot", { key: '1a3668ba1ed13df94aa9355a8a24bfef39e5087b' }))));
|
|
94
117
|
}
|
|
95
118
|
static get is() { return "q2-grid"; }
|
|
96
119
|
static get encapsulation() { return "shadow"; }
|
|
@@ -863,5 +886,6 @@ export class Q2Grid {
|
|
|
863
886
|
}
|
|
864
887
|
};
|
|
865
888
|
}
|
|
889
|
+
static get elementRef() { return "element"; }
|
|
866
890
|
}
|
|
867
891
|
//# sourceMappingURL=q2-grid.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"q2-grid.js","sourceRoot":"","sources":["../../../../src/components/q2-grid/q2-grid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAQ7D;;;;GAIG;AAEH,MAAM,OAAO,MAAM;IADnB;QAEI,8BAA8B;QAE9B;;;WAGG;QAEH,UAAK,GAAwB,SAAS,CAAC;QAEvC,yFAAyF;QAEzF,YAAO,GAA0B,EAAE,CAAC;QAEpC;;;;WAIG;QAEH,QAAG,GAAsB,QAAQ,CAAC;QAElC;;;WAGG;QAEH,YAAO,GAA0B,SAAS,CAAC;QAsE3C;;;;WAIG;QAEH,SAAI,GAAuB,MAAM,CAAC;KA6LrC;IArFG,aAAa;IACb,wBAAwB;IAExB,IAAI,cAAc;QACd,OAAO,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,cAAc,CAAC;IAC9C,CAAC;IAED,IAAI,cAAc;QACd,OAAO,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,cAAc,CAAC;IAC9C,CAAC;IAED,IAAI,cAAc;QACd,OAAO,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,cAAc,CAAC;IAC9C,CAAC;IAED,IAAI,cAAc;QACd,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AAY,EACnB,KAAK,EAAC,SAAS;gBAEf,8DAAQ,CACN,CACC,CACd,CAAC;IACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGJ","sourcesContent":["import { Component, h, Fragment, Prop } from '@stencil/core';\n\nexport type TQ2GridColumnsOptions = number;\nexport type TQ2GridRowsOptions = 'auto' | number;\nexport type TQ2GridGapOptions = 'none' | 'compact' | 'normal' | 'comfortable';\nexport type TQ2GridJustifyOptions = 'stretch' | 'start' | 'center' | 'end';\nexport type TQ2GridAlignOptions = 'stretch' | 'start' | 'center' | 'end';\n\n/**\n * @name Grid\n * @category Display\n * @summary Use for responsive grid layouts with flexible rows and columns.\n */\n@Component({ tag: 'q2-grid', shadow: true, styleUrl: 'q2-grid.scss' })\nexport class Q2Grid {\n // #region Public Property API\n\n /**\n * Sets the vertical alignment behavior of q2-grid-area components within a grid track at\n * the baseline viewport size.\n */\n @Prop({ reflect: true })\n align: TQ2GridAlignOptions = 'stretch';\n\n /** Sets the amount of columns to render within the grid at the baseline viewport size.*/\n @Prop({ reflect: true })\n columns: TQ2GridColumnsOptions = 12;\n\n /**\n * Sets the gap size between rows and columns within the grid at the baseline viewport size.\n * Gap values utilize CSS variables to allow for easy theming and customization.\n * Visit the Style section to learn more.\n */\n @Prop({ reflect: true })\n gap: TQ2GridGapOptions = 'normal';\n\n /**\n * Sets the horizontal alignment behavior of q2-grid-area components within a grid track\n * at the baseline viewport size.\n */\n @Prop({ reflect: true })\n justify: TQ2GridJustifyOptions = 'stretch';\n\n /**\n * Sets the vertical alignment behavior of q2-grid-area components within a grid track at the\n * 'LG' viewport size.\n */\n @Prop({ reflect: true })\n lgAlign: TQ2GridAlignOptions;\n\n /** Sets the amount of columns to render within the grid at the 'LG' viewport size.*/\n @Prop({ reflect: true })\n lgColumns: TQ2GridColumnsOptions;\n\n /**\n * Sets the gap size between rows and columns within the grid at the 'LG' viewport size.\n * Gap values utilize CSS variables to allow for easy theming and customization.\n * Visit the Style section to learn more.\n */\n @Prop({ reflect: true })\n lgGap: TQ2GridGapOptions;\n\n /**\n * Sets the horizontal alignment behavior of q2-grid-area components within a grid track at\n * the 'LG' viewport size.\n */\n @Prop({ reflect: true })\n lgJustify: TQ2GridJustifyOptions;\n\n /**\n * Sets the amount of rows to render within the grid at the 'LG' viewport size.\n * When set to `auto`, q2-grid will auto render rows based on the number of q2-grid-area\n * components placed within the grid and the number of columns allowed per row.\n */\n @Prop({ reflect: true })\n lgRows: TQ2GridRowsOptions;\n\n /**\n * Sets the vertical alignment behavior of q2-grid-area components within a grid track at\n * the 'MD' viewport size.\n */\n @Prop({ reflect: true })\n mdAlign: TQ2GridAlignOptions;\n\n /** Sets the amount of columns to render within the grid at the 'MD' viewport size.*/\n @Prop({ reflect: true })\n mdColumns: TQ2GridColumnsOptions;\n\n /**\n * Sets the gap size between rows and columns within the grid at the 'MD' viewport size.\n * Gap values utilize CSS variables to allow for easy theming and customization.\n * Visit the Style section to learn more.\n */\n @Prop({ reflect: true })\n mdGap: TQ2GridGapOptions;\n\n /**\n * Sets the horizontal alignment behavior of q2-grid-area components within a grid track at\n * the 'MD' viewport size.\n */\n @Prop({ reflect: true })\n mdJustify: TQ2GridJustifyOptions;\n\n /**\n * Sets the amount of rows to render within the grid at the 'MD' viewport size.\n * When set to `auto`, q2-grid will auto render rows based on the number of q2-grid-area\n * components placed within the grid and the number of columns allowed per row.\n */\n @Prop({ reflect: true })\n mdRows: TQ2GridRowsOptions;\n\n /**\n * Sets the amount of rows to render within the grid at the baseline viewport size.\n * When set to `auto`, q2-grid will auto render rows based on the number of q2-grid-area\n * components placed within the grid and the number of columns allowed per row.\n */\n @Prop({ reflect: true })\n rows: TQ2GridRowsOptions = 'auto';\n\n /**\n * Sets the vertical alignment behavior of q2-grid-area components within a grid track at\n * the 'SM' viewport size.\n */\n @Prop({ reflect: true })\n smAlign: TQ2GridAlignOptions;\n\n /** Sets the amount of columns to render within the grid at the 'SM' viewport size.*/\n @Prop({ reflect: true })\n smColumns: TQ2GridColumnsOptions;\n\n /**\n * Sets the gap size between rows and columns within the grid at the 'SM' viewport size.\n * Gap values utilize CSS variables to allow for easy theming and customization.\n * Visit the Style section to learn more.\n */\n @Prop({ reflect: true })\n smGap: TQ2GridGapOptions;\n\n /**\n * Sets the horizontal alignment behavior of q2-grid-area components within a grid track at\n * the 'SM' viewport size.\n */\n @Prop({ reflect: true })\n smJustify: TQ2GridJustifyOptions;\n\n /**\n * Sets the amount of rows to render within the grid at the 'SM' viewport size.\n * When set to `auto`, q2-grid will auto render rows based on the number of q2-grid-area\n * components placed within the grid and the number of columns allowed per row.\n */\n @Prop({ reflect: true })\n smRows: TQ2GridRowsOptions;\n\n /**\n * Sets the vertical alignment behavior of q2-grid-area components within a grid track at the\n * 'XL' viewport size.\n */\n @Prop({ reflect: true })\n xlAlign: TQ2GridAlignOptions;\n\n /** Sets the amount of columns to render within the grid at the 'XL' viewport size.*/\n @Prop({ reflect: true })\n xlColumns: TQ2GridColumnsOptions;\n\n /**\n * Sets the gap size between rows and columns within the grid at the 'XL' viewport size.\n * Gap values utilize CSS variables to allow for easy theming and customization.\n * Visit the Style section to learn more.\n */\n @Prop({ reflect: true })\n xlGap: TQ2GridGapOptions;\n\n /**\n * Sets the horizontal alignment behavior of q2-grid-area components within a grid track at\n * the 'XL' viewport size.\n */\n @Prop({ reflect: true })\n xlJustify: TQ2GridJustifyOptions;\n\n /**\n * Sets the amount of rows to render within the grid at the 'XL' viewport size.\n * When set to `auto`, q2-grid will auto render rows based on the number of q2-grid-area\n * components placed within the grid and the number of columns allowed per row.\n */\n @Prop({ reflect: true })\n xlRows: TQ2GridRowsOptions;\n\n /**\n * Sets the vertical alignment behavior of q2-grid-area components within a grid track at\n * the 'XS' viewport size.\n */\n @Prop({ reflect: true })\n xsAlign: TQ2GridAlignOptions;\n\n /** Sets the amount of columns to render within the grid at the 'XS' viewport size.*/\n @Prop({ reflect: true })\n xsColumns: TQ2GridColumnsOptions;\n\n /**\n * Sets the gap size between rows and columns within the grid at the 'XS' viewport size.\n * Gap values utilize CSS variables to allow for easy theming and customization.\n * Visit the Style section to learn more.\n */\n @Prop({ reflect: true })\n xsGap: TQ2GridGapOptions;\n\n /**\n * Sets the horizontal alignment behavior of q2-grid-area components within a grid track\n * at the 'XS' viewport size.\n */\n @Prop({ reflect: true })\n xsJustify: TQ2GridJustifyOptions;\n\n /**\n * Sets the amount of rows to render within the grid at the 'XS' viewport size.\n * When set to `auto`, q2-grid will auto render rows based on the number of q2-grid-area\n * components placed within the grid and the number of columns allowed per row.\n */\n @Prop({ reflect: true })\n xsRows: TQ2GridRowsOptions;\n\n // #endregion\n // #region Local Methods\n\n get computedLgRows() {\n return this.lgRows || this.computedMdRows;\n }\n\n get computedMdRows() {\n return this.mdRows || this.computedSmRows;\n }\n\n get computedSmRows() {\n return this.smRows || this.computedXsRows;\n }\n\n get computedXlRows() {\n return this.xlRows || this.computedLgRows;\n }\n\n get computedXsRows() {\n return this.xsRows || this.rows;\n }\n\n // #endregion\n // #region Render Methods\n\n render() {\n const q2GridStyles: { [key: string]: string } = {\n // base:\n '--grid-template-columns': `repeat(${this.columns}, 1fr)`,\n '--grid-template-rows': this.rows === 'auto' ? this.rows : `repeat(${this.rows}, 1fr)`,\n '--grid-gap': `var(--comp-grid-gap-${this.gap})`,\n '--justify-items': this.justify,\n '--align-items': this.align,\n // xs:\n '--xs-grid-template-columns': `repeat(${this.xsColumns || this.columns}, 1fr)`,\n '--xs-grid-template-rows':\n this.computedXsRows === 'auto' ? this.computedXsRows : `repeat(${this.computedXsRows}, 1fr)`,\n '--xs-grid-gap': `var(--comp-grid-gap-${this.xsGap || this.gap})`,\n '--xs-justify-items': this.xsJustify || this.justify,\n '--xs-align-items': this.xsAlign || this.align,\n // sm:\n '--sm-grid-template-columns': `repeat(${this.smColumns || this.xsColumns || this.columns}, 1fr)`,\n '--sm-grid-template-rows':\n this.computedSmRows === 'auto' ? this.computedSmRows : `repeat(${this.computedSmRows}, 1fr)`,\n '--sm-grid-gap': `var(--comp-grid-gap-${this.smGap || this.xsGap || this.gap})`,\n '--sm-justify-items': this.smJustify || this.xsJustify || this.justify,\n '--sm-align-items': this.smAlign || this.xsAlign || this.align,\n // md:\n '--md-grid-template-columns': `repeat(${this.mdColumns || this.smColumns || this.xsColumns || this.columns}, 1fr)`,\n '--md-grid-template-rows':\n this.computedMdRows === 'auto' ? this.computedMdRows : `repeat(${this.computedMdRows}, 1fr)`,\n '--md-grid-gap': `var(--comp-grid-gap-${this.mdGap || this.smGap || this.xsGap || this.gap})`,\n '--md-justify-items': this.mdJustify || this.smJustify || this.xsJustify || this.justify,\n '--md-align-items': this.mdAlign || this.smAlign || this.xsAlign || this.align,\n // lg:\n '--lg-grid-template-columns': `repeat(${this.lgColumns || this.mdColumns || this.smColumns || this.xsColumns || this.columns}, 1fr)`,\n '--lg-grid-template-rows':\n this.computedLgRows === 'auto' ? this.computedLgRows : `repeat(${this.computedLgRows}, 1fr)`,\n '--lg-grid-gap': `var(--comp-grid-gap-${this.lgGap || this.mdGap || this.smGap || this.xsGap || this.gap})`,\n '--lg-justify-items': this.lgJustify || this.mdJustify || this.smJustify || this.xsJustify || this.justify,\n '--lg-align-items': this.lgAlign || this.mdAlign || this.smAlign || this.xsAlign || this.align,\n // xl:\n '--xl-grid-template-columns': `repeat(${this.xlColumns || this.lgColumns || this.mdColumns || this.smColumns || this.xsColumns || this.columns}, 1fr)`,\n '--xl-grid-template-rows':\n this.computedXlRows === 'auto' ? this.computedXlRows : `repeat(${this.computedXlRows}, 1fr)`,\n '--xl-grid-gap': `var(--comp-grid-gap-${this.xlGap || this.lgGap || this.mdGap || this.smGap || this.xsGap || this.gap})`,\n '--xl-justify-items':\n this.xlJustify || this.lgJustify || this.mdJustify || this.smJustify || this.xsJustify || this.justify,\n '--xl-align-items':\n this.xlAlign || this.lgAlign || this.mdAlign || this.smAlign || this.xsAlign || this.align,\n };\n return (\n <Fragment>\n <div\n style={q2GridStyles}\n class=\"q2-grid\"\n >\n <slot />\n </div>\n </Fragment>\n );\n }\n\n // #endregion\n}\n"]}
|
|
1
|
+
{"version":3,"file":"q2-grid.js","sourceRoot":"","sources":["../../../../src/components/q2-grid/q2-grid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAQtE;;;;GAIG;AAEH,MAAM,OAAO,MAAM;IADnB;QAEI,yBAAyB;QAEzB;;;;;WAKG;QACK,mBAAc,GAAG,KAAK,CAAC;QA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,CACN,CACC,CACd,CAAC;IACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGJ","sourcesContent":["import { Component, Element, h, Fragment, Prop } from '@stencil/core';\n\nexport type TQ2GridColumnsOptions = number;\nexport type TQ2GridRowsOptions = 'auto' | number;\nexport type TQ2GridGapOptions = 'none' | 'compact' | 'normal' | 'comfortable';\nexport type TQ2GridJustifyOptions = 'stretch' | 'start' | 'center' | 'end';\nexport type TQ2GridAlignOptions = 'stretch' | 'start' | 'center' | 'end';\n\n/**\n * @name Grid\n * @category Display\n * @summary Use for responsive grid layouts with flexible rows and columns.\n */\n@Component({ tag: 'q2-grid', shadow: true, styleUrl: 'q2-grid.scss' })\nexport class Q2Grid {\n // #region Own Properties\n\n /**\n * Tracks whether the `gap` attribute was explicitly set on this element at mount.\n * When false (and the grid is inside a q2-form), the grid's gap defers to the\n * form's --comp-spacing so form+grid matches form-only spacing without the\n * consumer having to mirror tokens.\n */\n private hasExplicitGap = false;\n\n // #endregion\n // #region Host HTML Element\n\n @Element()\n element: HTMLElement;\n\n // #endregion\n // #region Public Property API\n\n /**\n * Sets the vertical alignment behavior of q2-grid-area components within a grid track at\n * the baseline viewport size.\n */\n @Prop({ reflect: true })\n align: TQ2GridAlignOptions = 'stretch';\n\n /** Sets the amount of columns to render within the grid at the baseline viewport size.*/\n @Prop({ reflect: true })\n columns: TQ2GridColumnsOptions = 12;\n\n /**\n * Sets the gap size between rows and columns within the grid at the baseline viewport size.\n * Gap values utilize CSS variables to allow for easy theming and customization.\n * Visit the Style section to learn more.\n */\n @Prop({ reflect: true })\n gap: TQ2GridGapOptions = 'normal';\n\n /**\n * Sets the horizontal alignment behavior of q2-grid-area components within a grid track\n * at the baseline viewport size.\n */\n @Prop({ reflect: true })\n justify: TQ2GridJustifyOptions = 'stretch';\n\n /**\n * Sets the vertical alignment behavior of q2-grid-area components within a grid track at the\n * 'LG' viewport size.\n */\n @Prop({ reflect: true })\n lgAlign: TQ2GridAlignOptions;\n\n /** Sets the amount of columns to render within the grid at the 'LG' viewport size.*/\n @Prop({ reflect: true })\n lgColumns: TQ2GridColumnsOptions;\n\n /**\n * Sets the gap size between rows and columns within the grid at the 'LG' viewport size.\n * Gap values utilize CSS variables to allow for easy theming and customization.\n * Visit the Style section to learn more.\n */\n @Prop({ reflect: true })\n lgGap: TQ2GridGapOptions;\n\n /**\n * Sets the horizontal alignment behavior of q2-grid-area components within a grid track at\n * the 'LG' viewport size.\n */\n @Prop({ reflect: true })\n lgJustify: TQ2GridJustifyOptions;\n\n /**\n * Sets the amount of rows to render within the grid at the 'LG' viewport size.\n * When set to `auto`, q2-grid will auto render rows based on the number of q2-grid-area\n * components placed within the grid and the number of columns allowed per row.\n */\n @Prop({ reflect: true })\n lgRows: TQ2GridRowsOptions;\n\n /**\n * Sets the vertical alignment behavior of q2-grid-area components within a grid track at\n * the 'MD' viewport size.\n */\n @Prop({ reflect: true })\n mdAlign: TQ2GridAlignOptions;\n\n /** Sets the amount of columns to render within the grid at the 'MD' viewport size.*/\n @Prop({ reflect: true })\n mdColumns: TQ2GridColumnsOptions;\n\n /**\n * Sets the gap size between rows and columns within the grid at the 'MD' viewport size.\n * Gap values utilize CSS variables to allow for easy theming and customization.\n * Visit the Style section to learn more.\n */\n @Prop({ reflect: true })\n mdGap: TQ2GridGapOptions;\n\n /**\n * Sets the horizontal alignment behavior of q2-grid-area components within a grid track at\n * the 'MD' viewport size.\n */\n @Prop({ reflect: true })\n mdJustify: TQ2GridJustifyOptions;\n\n /**\n * Sets the amount of rows to render within the grid at the 'MD' viewport size.\n * When set to `auto`, q2-grid will auto render rows based on the number of q2-grid-area\n * components placed within the grid and the number of columns allowed per row.\n */\n @Prop({ reflect: true })\n mdRows: TQ2GridRowsOptions;\n\n /**\n * Sets the amount of rows to render within the grid at the baseline viewport size.\n * When set to `auto`, q2-grid will auto render rows based on the number of q2-grid-area\n * components placed within the grid and the number of columns allowed per row.\n */\n @Prop({ reflect: true })\n rows: TQ2GridRowsOptions = 'auto';\n\n /**\n * Sets the vertical alignment behavior of q2-grid-area components within a grid track at\n * the 'SM' viewport size.\n */\n @Prop({ reflect: true })\n smAlign: TQ2GridAlignOptions;\n\n /** Sets the amount of columns to render within the grid at the 'SM' viewport size.*/\n @Prop({ reflect: true })\n smColumns: TQ2GridColumnsOptions;\n\n /**\n * Sets the gap size between rows and columns within the grid at the 'SM' viewport size.\n * Gap values utilize CSS variables to allow for easy theming and customization.\n * Visit the Style section to learn more.\n */\n @Prop({ reflect: true })\n smGap: TQ2GridGapOptions;\n\n /**\n * Sets the horizontal alignment behavior of q2-grid-area components within a grid track at\n * the 'SM' viewport size.\n */\n @Prop({ reflect: true })\n smJustify: TQ2GridJustifyOptions;\n\n /**\n * Sets the amount of rows to render within the grid at the 'SM' viewport size.\n * When set to `auto`, q2-grid will auto render rows based on the number of q2-grid-area\n * components placed within the grid and the number of columns allowed per row.\n */\n @Prop({ reflect: true })\n smRows: TQ2GridRowsOptions;\n\n /**\n * Sets the vertical alignment behavior of q2-grid-area components within a grid track at the\n * 'XL' viewport size.\n */\n @Prop({ reflect: true })\n xlAlign: TQ2GridAlignOptions;\n\n /** Sets the amount of columns to render within the grid at the 'XL' viewport size.*/\n @Prop({ reflect: true })\n xlColumns: TQ2GridColumnsOptions;\n\n /**\n * Sets the gap size between rows and columns within the grid at the 'XL' viewport size.\n * Gap values utilize CSS variables to allow for easy theming and customization.\n * Visit the Style section to learn more.\n */\n @Prop({ reflect: true })\n xlGap: TQ2GridGapOptions;\n\n /**\n * Sets the horizontal alignment behavior of q2-grid-area components within a grid track at\n * the 'XL' viewport size.\n */\n @Prop({ reflect: true })\n xlJustify: TQ2GridJustifyOptions;\n\n /**\n * Sets the amount of rows to render within the grid at the 'XL' viewport size.\n * When set to `auto`, q2-grid will auto render rows based on the number of q2-grid-area\n * components placed within the grid and the number of columns allowed per row.\n */\n @Prop({ reflect: true })\n xlRows: TQ2GridRowsOptions;\n\n /**\n * Sets the vertical alignment behavior of q2-grid-area components within a grid track at\n * the 'XS' viewport size.\n */\n @Prop({ reflect: true })\n xsAlign: TQ2GridAlignOptions;\n\n /** Sets the amount of columns to render within the grid at the 'XS' viewport size.*/\n @Prop({ reflect: true })\n xsColumns: TQ2GridColumnsOptions;\n\n /**\n * Sets the gap size between rows and columns within the grid at the 'XS' viewport size.\n * Gap values utilize CSS variables to allow for easy theming and customization.\n * Visit the Style section to learn more.\n */\n @Prop({ reflect: true })\n xsGap: TQ2GridGapOptions;\n\n /**\n * Sets the horizontal alignment behavior of q2-grid-area components within a grid track\n * at the 'XS' viewport size.\n */\n @Prop({ reflect: true })\n xsJustify: TQ2GridJustifyOptions;\n\n /**\n * Sets the amount of rows to render within the grid at the 'XS' viewport size.\n * When set to `auto`, q2-grid will auto render rows based on the number of q2-grid-area\n * components placed within the grid and the number of columns allowed per row.\n */\n @Prop({ reflect: true })\n xsRows: TQ2GridRowsOptions;\n\n // #endregion\n // #region Component Lifecycle Events\n\n componentWillLoad() {\n this.hasExplicitGap = this.element.hasAttribute('gap');\n }\n\n // #endregion\n // #region Local Methods\n\n get computedLgRows() {\n return this.lgRows || this.computedMdRows;\n }\n\n get computedMdRows() {\n return this.mdRows || this.computedSmRows;\n }\n\n get computedSmRows() {\n return this.smRows || this.computedXsRows;\n }\n\n get computedXlRows() {\n return this.xlRows || this.computedLgRows;\n }\n\n get computedXsRows() {\n return this.xsRows || this.rows;\n }\n\n private gapValue(...keys: TQ2GridGapOptions[]) {\n const resolved = keys.find(k => !!k);\n if (resolved === this.gap && !this.hasExplicitGap) {\n // No explicit gap at this breakpoint — inherit q2-form's spacing if present,\n // otherwise fall back to the normal gap token.\n return `var(--comp-spacing, var(--comp-grid-gap-${this.gap}))`;\n }\n return `var(--comp-grid-gap-${resolved})`;\n }\n\n // #endregion\n // #region Render Methods\n\n render() {\n const q2GridStyles: { [key: string]: string } = {\n // base:\n '--grid-template-columns': `repeat(${this.columns}, 1fr)`,\n '--grid-template-rows': this.rows === 'auto' ? this.rows : `repeat(${this.rows}, 1fr)`,\n '--grid-gap': this.gapValue(this.gap),\n '--justify-items': this.justify,\n '--align-items': this.align,\n // xs:\n '--xs-grid-template-columns': `repeat(${this.xsColumns || this.columns}, 1fr)`,\n '--xs-grid-template-rows':\n this.computedXsRows === 'auto' ? this.computedXsRows : `repeat(${this.computedXsRows}, 1fr)`,\n '--xs-grid-gap': this.gapValue(this.xsGap, this.gap),\n '--xs-justify-items': this.xsJustify || this.justify,\n '--xs-align-items': this.xsAlign || this.align,\n // sm:\n '--sm-grid-template-columns': `repeat(${this.smColumns || this.xsColumns || this.columns}, 1fr)`,\n '--sm-grid-template-rows':\n this.computedSmRows === 'auto' ? this.computedSmRows : `repeat(${this.computedSmRows}, 1fr)`,\n '--sm-grid-gap': this.gapValue(this.smGap, this.xsGap, this.gap),\n '--sm-justify-items': this.smJustify || this.xsJustify || this.justify,\n '--sm-align-items': this.smAlign || this.xsAlign || this.align,\n // md:\n '--md-grid-template-columns': `repeat(${this.mdColumns || this.smColumns || this.xsColumns || this.columns}, 1fr)`,\n '--md-grid-template-rows':\n this.computedMdRows === 'auto' ? this.computedMdRows : `repeat(${this.computedMdRows}, 1fr)`,\n '--md-grid-gap': this.gapValue(this.mdGap, this.smGap, this.xsGap, this.gap),\n '--md-justify-items': this.mdJustify || this.smJustify || this.xsJustify || this.justify,\n '--md-align-items': this.mdAlign || this.smAlign || this.xsAlign || this.align,\n // lg:\n '--lg-grid-template-columns': `repeat(${this.lgColumns || this.mdColumns || this.smColumns || this.xsColumns || this.columns}, 1fr)`,\n '--lg-grid-template-rows':\n this.computedLgRows === 'auto' ? this.computedLgRows : `repeat(${this.computedLgRows}, 1fr)`,\n '--lg-grid-gap': this.gapValue(this.lgGap, this.mdGap, this.smGap, this.xsGap, this.gap),\n '--lg-justify-items': this.lgJustify || this.mdJustify || this.smJustify || this.xsJustify || this.justify,\n '--lg-align-items': this.lgAlign || this.mdAlign || this.smAlign || this.xsAlign || this.align,\n // xl:\n '--xl-grid-template-columns': `repeat(${this.xlColumns || this.lgColumns || this.mdColumns || this.smColumns || this.xsColumns || this.columns}, 1fr)`,\n '--xl-grid-template-rows':\n this.computedXlRows === 'auto' ? this.computedXlRows : `repeat(${this.computedXlRows}, 1fr)`,\n '--xl-grid-gap': this.gapValue(this.xlGap, this.lgGap, this.mdGap, this.smGap, this.xsGap, this.gap),\n '--xl-justify-items':\n this.xlJustify || this.lgJustify || this.mdJustify || this.smJustify || this.xsJustify || this.justify,\n '--xl-align-items':\n this.xlAlign || this.lgAlign || this.mdAlign || this.smAlign || this.xsAlign || this.align,\n };\n return (\n <Fragment>\n <div\n style={q2GridStyles}\n class=\"q2-grid\"\n >\n <slot />\n </div>\n </Fragment>\n );\n }\n\n // #endregion\n}\n"]}
|