q2-tecton-elements 1.53.0 → 1.53.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/click-elsewhere_2.cjs.entry.js +64 -61
- package/dist/cjs/click-elsewhere_2.cjs.entry.js.map +1 -1
- package/dist/cjs/{index-07285783.js → index-76f63767.js} +1 -21
- package/dist/cjs/index-76f63767.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/q2-action-group.cjs.entry.js +2 -2
- package/dist/cjs/q2-action-sheet.cjs.entry.js +2 -2
- package/dist/cjs/q2-avatar.cjs.entry.js +1 -1
- package/dist/cjs/q2-badge_7.cjs.entry.js +12 -4
- package/dist/cjs/q2-badge_7.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-calendar.cjs.entry.js +1 -1
- package/dist/cjs/q2-card.cjs.entry.js +1 -1
- package/dist/cjs/q2-carousel-pane.cjs.entry.js +3 -3
- package/dist/cjs/q2-carousel.cjs.entry.js +1 -1
- package/dist/cjs/q2-chart-area.cjs.entry.js +2 -2
- package/dist/cjs/q2-chart-bar.cjs.entry.js +2 -2
- package/dist/cjs/q2-chart-donut.cjs.entry.js +2 -2
- package/dist/cjs/q2-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/q2-checkbox.cjs.entry.js +1 -1
- 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 +2 -2
- package/dist/cjs/q2-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/q2-dropdown.cjs.entry.js +10 -12
- package/dist/cjs/q2-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-editable-field.cjs.entry.js +7 -8
- package/dist/cjs/q2-editable-field.cjs.entry.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-formatted-text.cjs.entry.js +1 -1
- package/dist/cjs/q2-item_3.cjs.entry.js +3 -3
- package/dist/cjs/q2-legend.cjs.entry.js +1 -1
- package/dist/cjs/q2-loc.cjs.entry.js +2 -2
- package/dist/cjs/q2-message.cjs.entry.js +2 -2
- package/dist/cjs/q2-month-picker.cjs.entry.js +3 -3
- package/dist/cjs/q2-optgroup.cjs.entry.js +2 -2
- package/dist/cjs/q2-option-list.cjs.entry.js +1 -1
- package/dist/cjs/q2-option.cjs.entry.js +2 -2
- package/dist/cjs/q2-pagination.cjs.entry.js +4 -4
- package/dist/cjs/q2-pill.cjs.entry.js +2 -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-resize-observer.cjs.entry.js +1 -1
- package/dist/cjs/q2-section.cjs.entry.js +3 -3
- package/dist/cjs/q2-select.cjs.entry.js +89 -13
- package/dist/cjs/q2-select.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-stepper-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-stepper-vertical.cjs.entry.js +2 -2
- package/dist/cjs/q2-stepper.cjs.entry.js +2 -2
- package/dist/cjs/q2-tag.cjs.entry.js +2 -2
- package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
- package/dist/cjs/q2-textarea.cjs.entry.js +3 -2
- package/dist/cjs/q2-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/tecton-tab-pane.cjs.entry.js +2 -2
- package/dist/collection/components/click-elsewhere/click-elsewhere.js.map +1 -1
- package/dist/collection/components/click-elsewhere/test/click-elsewhere-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-action-group/q2-action-group.js +1 -1
- package/dist/collection/components/q2-action-group/q2-action-group.js.map +1 -1
- package/dist/collection/components/q2-action-group/test/q2-action-group.e2e.js.map +1 -1
- package/dist/collection/components/q2-action-group/test/q2-action-group.spec.js.map +1 -1
- package/dist/collection/components/q2-action-sheet/q2-action-sheet.js +1 -1
- package/dist/collection/components/q2-action-sheet/q2-action-sheet.js.map +1 -1
- package/dist/collection/components/q2-action-sheet/test/q2-action-sheet-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-avatar/q2-avatar.js +1 -1
- package/dist/collection/components/q2-avatar/q2-avatar.js.map +1 -1
- package/dist/collection/components/q2-avatar/test/q2-avatar-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-badge/q2-badge.js.map +1 -1
- package/dist/collection/components/q2-badge/test/q2-badge-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-btn/q2-btn.js +4 -0
- package/dist/collection/components/q2-btn/q2-btn.js.map +1 -1
- package/dist/collection/components/q2-btn/test/q2-btn-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-calendar/q2-calendar-helpers.js.map +1 -1
- package/dist/collection/components/q2-calendar/q2-calendar-types.js.map +1 -1
- package/dist/collection/components/q2-calendar/q2-calendar-validation.js.map +1 -1
- package/dist/collection/components/q2-calendar/q2-calendar.js.map +1 -1
- package/dist/collection/components/q2-calendar/q2-month-picker.js +2 -2
- package/dist/collection/components/q2-calendar/q2-month-picker.js.map +1 -1
- package/dist/collection/components/q2-calendar/test/helpers-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-calendar/test/q2-calendar-month-picker-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-calendar/test/q2-calendar-test.e2e.js +2 -2
- package/dist/collection/components/q2-calendar/test/q2-calendar-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-calendar/test/validation-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-card/q2-card.js.map +1 -1
- package/dist/collection/components/q2-card/test/q2-card-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-carousel/q2-carousel.js.map +1 -1
- package/dist/collection/components/q2-carousel/test/q2-carousel-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.js +2 -2
- package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.js.map +1 -1
- package/dist/collection/components/q2-carousel-pane/test/q2-carousel-pane-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-carousel-pane/test/q2-carousel-pane-test.spec.js.map +1 -1
- package/dist/collection/components/q2-chart-area/q2-chart-area.js +1 -1
- package/dist/collection/components/q2-chart-area/q2-chart-area.js.map +1 -1
- package/dist/collection/components/q2-chart-area/test/q2-chart-area-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-chart-bar/q2-chart-bar.js +1 -1
- package/dist/collection/components/q2-chart-bar/q2-chart-bar.js.map +1 -1
- package/dist/collection/components/q2-chart-bar/test/q2-chart-bar-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-chart-donut/q2-chart-donut.js +1 -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.e2e.js.map +1 -1
- package/dist/collection/components/q2-checkbox/q2-checkbox.js.map +1 -1
- package/dist/collection/components/q2-checkbox/test/q2-checkbox-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.js.map +1 -1
- package/dist/collection/components/q2-checkbox-group/test/q2-checkbox-group-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-currency/q2-currency.js +1 -1
- package/dist/collection/components/q2-currency/q2-currency.js.map +1 -1
- package/dist/collection/components/q2-currency/test/q2-currency-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-data-table/q2-data-table.js.map +1 -1
- package/dist/collection/components/q2-data-table/test/q2-data-table-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-detail/q2-detail.js +1 -1
- package/dist/collection/components/q2-detail/q2-detail.js.map +1 -1
- package/dist/collection/components/q2-detail/test/q2-detail-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-dropdown/q2-dropdown.js +9 -11
- package/dist/collection/components/q2-dropdown/q2-dropdown.js.map +1 -1
- package/dist/collection/components/q2-dropdown/test/q2-dropdown-test.e2e.js +5 -17
- package/dist/collection/components/q2-dropdown/test/q2-dropdown-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-dropdown-item/q2-dropdown-item.js.map +1 -1
- package/dist/collection/components/q2-dropdown-item/test/q2-dropdown-item-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-editable-field/q2-editable-field.js +12 -7
- package/dist/collection/components/q2-editable-field/q2-editable-field.js.map +1 -1
- package/dist/collection/components/q2-editable-field/test/q2-editable-field-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-example/q2-example.js +1 -1
- package/dist/collection/components/q2-example/q2-example.js.map +1 -1
- package/dist/collection/components/q2-example/test/q2-example.e2e.js.map +1 -1
- package/dist/collection/components/q2-example/test/q2-example.spec.js.map +1 -1
- package/dist/collection/components/q2-file-picker/q2-file-picker.js.map +1 -1
- package/dist/collection/components/q2-file-picker/test/q2-file-picker-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-file-picker/test/q2-file-picker-test.spec.js.map +1 -1
- package/dist/collection/components/q2-formatted-text/q2-formatted-text.js +1 -1
- package/dist/collection/components/q2-formatted-text/q2-formatted-text.js.map +1 -1
- package/dist/collection/components/q2-formatted-text/test/q2-formatted-text-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-icon/q2-icon-types.js.map +1 -1
- package/dist/collection/components/q2-icon/q2-icon.js +4 -0
- package/dist/collection/components/q2-icon/q2-icon.js.map +1 -1
- package/dist/collection/components/q2-icon/test/q2-icon-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/alpha.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/alpha.spec.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/alphanumeric.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/alphanumeric.spec.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/credit-card.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/credit-card.spec.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/currency.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/currency.spec.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/date.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/date.spec.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/generic.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/number.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/numeric.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/numeric.spec.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/phone.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/phone.spec.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/postal.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/postal.spec.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/ssn.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/ssn.spec.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/tin.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/tin.spec.js.map +1 -1
- package/dist/collection/components/q2-input/q2-input-types.js.map +1 -1
- package/dist/collection/components/q2-input/q2-input.js +1 -1
- package/dist/collection/components/q2-input/q2-input.js.map +1 -1
- package/dist/collection/components/q2-input/test/q2-input-credit-card-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-input/test/q2-input-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-input/test/q2-input-test.spec.js.map +1 -1
- package/dist/collection/components/q2-item/q2-item.js +1 -1
- package/dist/collection/components/q2-item/q2-item.js.map +1 -1
- package/dist/collection/components/q2-item/test/q2-item-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-item/test/q2-item-test.spec.js.map +1 -1
- package/dist/collection/components/q2-legend/q2-legend.js +1 -1
- package/dist/collection/components/q2-legend/q2-legend.js.map +1 -1
- package/dist/collection/components/q2-legend/test/q2-legend-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-legend/test/q2-legend-test.spec.js.map +1 -1
- package/dist/collection/components/q2-link/q2-link.js.map +1 -1
- package/dist/collection/components/q2-link/test/q2-link-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-list/q2-list.js +1 -1
- package/dist/collection/components/q2-list/q2-list.js.map +1 -1
- package/dist/collection/components/q2-list/test/q2-list-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-loading/q2-loading.js.map +1 -1
- package/dist/collection/components/q2-loading/skeleton/q2-loading-element/index.js.map +1 -1
- package/dist/collection/components/q2-loading/skeleton/shapes.js.map +1 -1
- package/dist/collection/components/q2-loading/test/q2-loading-element-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-loading/test/q2-loading-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-loc/q2-loc.js +1 -1
- package/dist/collection/components/q2-loc/q2-loc.js.map +1 -1
- package/dist/collection/components/q2-loc/test/q2-loc-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-loc/test/q2-loc-test.spec.js.map +1 -1
- package/dist/collection/components/q2-message/q2-message.js +1 -1
- package/dist/collection/components/q2-message/q2-message.js.map +1 -1
- package/dist/collection/components/q2-message/test/q2-message-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-optgroup/q2-optgroup.js +1 -1
- package/dist/collection/components/q2-optgroup/q2-optgroup.js.map +1 -1
- package/dist/collection/components/q2-optgroup/test/q2-optgroup-test.e2e.js.map +1 -1
- 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/test/q2-option-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-option/test/q2-option-test.spec.js.map +1 -1
- package/dist/collection/components/q2-option-list/q2-option-list.js.map +1 -1
- package/dist/collection/components/q2-option-list/test/q2-option-list-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-pagination/q2-pagination.js +3 -3
- package/dist/collection/components/q2-pagination/q2-pagination.js.map +1 -1
- package/dist/collection/components/q2-pagination/test/q2-pagination-test.e2e.js +1 -0
- package/dist/collection/components/q2-pagination/test/q2-pagination-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-pill/q2-pill.js +1 -1
- package/dist/collection/components/q2-pill/q2-pill.js.map +1 -1
- package/dist/collection/components/q2-pill/test/q2-pill-test.e2e.js +1 -1
- package/dist/collection/components/q2-pill/test/q2-pill-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-popover/q2-popover.css +18 -10
- package/dist/collection/components/q2-popover/q2-popover.js +64 -60
- package/dist/collection/components/q2-popover/q2-popover.js.map +1 -1
- package/dist/collection/components/q2-popover/test/q2-popover-test.e2e.js +1 -34
- package/dist/collection/components/q2-popover/test/q2-popover-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-popover/test/q2-popover-test.spec.js +743 -435
- package/dist/collection/components/q2-popover/test/q2-popover-test.spec.js.map +1 -1
- package/dist/collection/components/q2-radio/q2-radio.js.map +1 -1
- package/dist/collection/components/q2-radio/test/q2-radio-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-radio-group/q2-radio-group.js.map +1 -1
- package/dist/collection/components/q2-radio-group/test/q2-radio-group-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-relative-time/q2-relative-time.js +1 -1
- package/dist/collection/components/q2-relative-time/q2-relative-time.js.map +1 -1
- package/dist/collection/components/q2-relative-time/test/q2-relative-time-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-resize-observer/q2-resize-observer.js +1 -1
- package/dist/collection/components/q2-resize-observer/q2-resize-observer.js.map +1 -1
- package/dist/collection/components/q2-resize-observer/test/q2-resize-observer.e2e.js.map +1 -1
- package/dist/collection/components/q2-resize-observer/test/q2-resize-observer.spec.js.map +1 -1
- package/dist/collection/components/q2-section/q2-section.js +2 -2
- package/dist/collection/components/q2-section/q2-section.js.map +1 -1
- package/dist/collection/components/q2-section/test/q2-section-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-select/q2-select.js +110 -15
- package/dist/collection/components/q2-select/q2-select.js.map +1 -1
- package/dist/collection/components/q2-select/test/q2-select-test.e2e.js +1 -1
- package/dist/collection/components/q2-select/test/q2-select-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-select/test/q2-select-test.spec.js +412 -0
- package/dist/collection/components/q2-select/test/q2-select-test.spec.js.map +1 -0
- package/dist/collection/components/q2-stepper/q2-stepper.js +1 -1
- package/dist/collection/components/q2-stepper/q2-stepper.js.map +1 -1
- package/dist/collection/components/q2-stepper/test/q2-stepper-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-stepper-pane/q2-stepper-pane.js.map +1 -1
- package/dist/collection/components/q2-stepper-pane/test/q2-stepper-pane-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js +1 -1
- package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js.map +1 -1
- package/dist/collection/components/q2-stepper-vertical/test/q2-stepper-vertical-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-tab-container/q2-tab-container.js +1 -1
- package/dist/collection/components/q2-tab-container/q2-tab-container.js.map +1 -1
- package/dist/collection/components/q2-tab-container/test/q2-tab-container-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-tab-container/test/q2-tab-container-test.spec.js.map +1 -1
- package/dist/collection/components/q2-tab-pane/q2-tab-pane.js +1 -1
- package/dist/collection/components/q2-tab-pane/q2-tab-pane.js.map +1 -1
- package/dist/collection/components/q2-tab-pane/test/q2-tab-pane-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-tag/q2-tag.js +1 -1
- package/dist/collection/components/q2-tag/q2-tag.js.map +1 -1
- package/dist/collection/components/q2-tag/test/q2-tag-test.e2e.js +6 -1
- package/dist/collection/components/q2-tag/test/q2-tag-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-textarea/q2-textarea.js +2 -1
- package/dist/collection/components/q2-textarea/q2-textarea.js.map +1 -1
- package/dist/collection/components/q2-textarea/test/q2-textarea-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-tooltip/q2-tooltip.js.map +1 -1
- package/dist/collection/components/q2-tooltip/test/q2-tooltip-test.e2e.js.map +1 -1
- package/dist/collection/components/tecton-tab-pane/tecton-tab-pane-types.js.map +1 -1
- package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.js +2 -2
- package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.js.map +1 -1
- package/dist/collection/components/tecton-tab-pane/test/tecton-tab-pane-test.e2e.js.map +1 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/utils/action-sheet.js.map +1 -1
- package/dist/collection/utils/charting.js.map +1 -1
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/collection/utils/index.js.map +1 -1
- package/dist/collection/utils/sanitize-html-string.js.map +1 -1
- package/dist/collection/utils/sanitize-regex-string.js.map +1 -1
- package/dist/collection/utils/test/action-sheet-test.e2e.js.map +1 -1
- package/dist/collection/utils/test/index.spec.js.map +1 -1
- package/dist/components/index2.js +1 -20
- package/dist/components/index2.js.map +1 -1
- package/dist/components/q2-action-group.js +1 -1
- package/dist/components/q2-action-sheet.js +1 -1
- package/dist/components/q2-avatar2.js +1 -1
- package/dist/components/q2-btn2.js +4 -0
- package/dist/components/q2-btn2.js.map +1 -1
- package/dist/components/q2-carousel-pane.js +2 -2
- package/dist/components/q2-chart-area.js +1 -1
- package/dist/components/q2-chart-bar.js +1 -1
- package/dist/components/q2-chart-donut.js +1 -1
- package/dist/components/q2-currency.js +1 -1
- package/dist/components/q2-detail.js +1 -1
- package/dist/components/q2-dropdown.js +9 -11
- package/dist/components/q2-dropdown.js.map +1 -1
- package/dist/components/q2-editable-field.js +7 -8
- package/dist/components/q2-editable-field.js.map +1 -1
- package/dist/components/q2-example.js +1 -1
- package/dist/components/q2-formatted-text.js +1 -1
- package/dist/components/q2-icon2.js +4 -0
- package/dist/components/q2-icon2.js.map +1 -1
- package/dist/components/q2-input2.js +1 -1
- package/dist/components/q2-item2.js +1 -1
- package/dist/components/q2-legend2.js +1 -1
- package/dist/components/q2-list2.js +1 -1
- package/dist/components/q2-loc.js +1 -1
- package/dist/components/q2-message2.js +1 -1
- package/dist/components/q2-month-picker.js +2 -2
- package/dist/components/q2-optgroup2.js +1 -1
- package/dist/components/q2-option2.js +1 -1
- package/dist/components/q2-pagination.js +3 -3
- package/dist/components/q2-pill.js +1 -1
- package/dist/components/q2-popover2.js +63 -60
- package/dist/components/q2-popover2.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-select2.js +92 -16
- package/dist/components/q2-select2.js.map +1 -1
- package/dist/components/q2-stepper-vertical.js +1 -1
- package/dist/components/q2-stepper.js +1 -1
- package/dist/components/q2-tab-container.js +1 -1
- package/dist/components/q2-tab-pane.js +1 -1
- package/dist/components/q2-tag.js +1 -1
- package/dist/components/q2-textarea.js +2 -1
- package/dist/components/q2-textarea.js.map +1 -1
- package/dist/components/tecton-tab-pane.js +2 -2
- package/dist/esm/click-elsewhere_2.entry.js +64 -61
- package/dist/esm/click-elsewhere_2.entry.js.map +1 -1
- package/dist/esm/{index-d18e2a20.js → index-504f1a9e.js} +2 -21
- package/dist/esm/index-504f1a9e.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/q2-action-group.entry.js +2 -2
- package/dist/esm/q2-action-sheet.entry.js +2 -2
- package/dist/esm/q2-avatar.entry.js +1 -1
- package/dist/esm/q2-badge_7.entry.js +12 -4
- package/dist/esm/q2-badge_7.entry.js.map +1 -1
- package/dist/esm/q2-calendar.entry.js +1 -1
- package/dist/esm/q2-card.entry.js +1 -1
- package/dist/esm/q2-carousel-pane.entry.js +3 -3
- package/dist/esm/q2-carousel.entry.js +1 -1
- package/dist/esm/q2-chart-area.entry.js +2 -2
- package/dist/esm/q2-chart-bar.entry.js +2 -2
- package/dist/esm/q2-chart-donut.entry.js +2 -2
- package/dist/esm/q2-checkbox-group.entry.js +1 -1
- package/dist/esm/q2-checkbox.entry.js +1 -1
- 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 +2 -2
- package/dist/esm/q2-dropdown-item.entry.js +1 -1
- package/dist/esm/q2-dropdown.entry.js +10 -12
- package/dist/esm/q2-dropdown.entry.js.map +1 -1
- package/dist/esm/q2-editable-field.entry.js +7 -8
- 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-formatted-text.entry.js +1 -1
- package/dist/esm/q2-item_3.entry.js +3 -3
- package/dist/esm/q2-legend.entry.js +1 -1
- package/dist/esm/q2-loc.entry.js +2 -2
- package/dist/esm/q2-message.entry.js +2 -2
- package/dist/esm/q2-month-picker.entry.js +3 -3
- package/dist/esm/q2-optgroup.entry.js +2 -2
- package/dist/esm/q2-option-list.entry.js +1 -1
- package/dist/esm/q2-option.entry.js +2 -2
- package/dist/esm/q2-pagination.entry.js +4 -4
- package/dist/esm/q2-pill.entry.js +2 -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-resize-observer.entry.js +1 -1
- package/dist/esm/q2-section.entry.js +3 -3
- package/dist/esm/q2-select.entry.js +90 -14
- package/dist/esm/q2-select.entry.js.map +1 -1
- package/dist/esm/q2-stepper-pane.entry.js +1 -1
- package/dist/esm/q2-stepper-vertical.entry.js +2 -2
- package/dist/esm/q2-stepper.entry.js +2 -2
- package/dist/esm/q2-tag.entry.js +2 -2
- package/dist/esm/q2-tecton-elements.js +1 -1
- package/dist/esm/q2-textarea.entry.js +3 -2
- package/dist/esm/q2-textarea.entry.js.map +1 -1
- package/dist/esm/q2-tooltip.entry.js +1 -1
- package/dist/esm/tecton-tab-pane.entry.js +2 -2
- package/dist/jest.setup.js +22 -0
- package/dist/jest.setup.js.map +1 -0
- package/dist/q2-tecton-elements/click-elsewhere_2.entry.js +175 -163
- package/dist/q2-tecton-elements/click-elsewhere_2.entry.js.map +1 -1
- package/dist/q2-tecton-elements/{index-d18e2a20.js → index-504f1a9e.js} +51 -69
- package/dist/q2-tecton-elements/index-504f1a9e.js.map +1 -0
- package/dist/q2-tecton-elements/q2-action-group.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-action-sheet.entry.js +34 -34
- package/dist/q2-tecton-elements/q2-avatar.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-badge_7.entry.js +25 -17
- package/dist/q2-tecton-elements/q2-badge_7.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-calendar.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 +21 -21
- package/dist/q2-tecton-elements/q2-carousel.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-chart-area.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-chart-bar.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-chart-donut.entry.js +101 -101
- package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-checkbox.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-currency.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-data-table.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-detail.entry.js +39 -39
- package/dist/q2-tecton-elements/q2-dropdown-item.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-dropdown.entry.js +14 -16
- package/dist/q2-tecton-elements/q2-dropdown.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-editable-field.entry.js +27 -18
- 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.js +1 -1
- package/dist/q2-tecton-elements/q2-formatted-text.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-item_3.entry.js +19 -19
- package/dist/q2-tecton-elements/q2-legend.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-loc.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-message.entry.js +21 -21
- package/dist/q2-tecton-elements/q2-month-picker.entry.js +14 -14
- package/dist/q2-tecton-elements/q2-optgroup.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-option-list.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-option.entry.js +14 -14
- package/dist/q2-tecton-elements/q2-pagination.entry.js +34 -34
- package/dist/q2-tecton-elements/q2-pill.entry.js +14 -14
- package/dist/q2-tecton-elements/q2-radio-group.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-radio.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-relative-time.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-resize-observer.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-section.entry.js +19 -19
- package/dist/q2-tecton-elements/q2-select.entry.js +156 -92
- package/dist/q2-tecton-elements/q2-select.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-stepper-pane.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-stepper-vertical.entry.js +37 -37
- package/dist/q2-tecton-elements/q2-stepper.entry.js +29 -29
- package/dist/q2-tecton-elements/q2-tag.entry.js +25 -25
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-textarea.entry.js +4 -3
- package/dist/q2-tecton-elements/q2-textarea.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-tooltip.entry.js +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/jest.setup.d.ts +1 -0
- package/dist/types/components/q2-btn/q2-btn.d.ts +1 -0
- package/dist/types/components/q2-dropdown/q2-dropdown.d.ts +1 -4
- package/dist/types/components/q2-editable-field/q2-editable-field.d.ts +2 -1
- package/dist/types/components/q2-icon/q2-icon.d.ts +1 -0
- package/dist/types/components/q2-popover/q2-popover.d.ts +4 -4
- package/dist/types/components/q2-select/q2-select.d.ts +19 -0
- package/package.json +3 -3
- package/dist/cjs/index-07285783.js.map +0 -1
- package/dist/esm/index-d18e2a20.js.map +0 -1
- package/dist/q2-tecton-elements/index-d18e2a20.js.map +0 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { MockHTMLElement } from "@stencil/core/mock-doc";
|
|
2
|
+
/**
|
|
3
|
+
* mocks for specPage tests
|
|
4
|
+
*/
|
|
5
|
+
global.MutationObserver = class {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.observe = jest.fn();
|
|
8
|
+
this.disconnect = jest.fn();
|
|
9
|
+
this.takeRecords = jest.fn(() => []);
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(MockHTMLElement.prototype, 'assignedElements', {
|
|
13
|
+
value: () => [],
|
|
14
|
+
configurable: true,
|
|
15
|
+
writable: true,
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(MockHTMLElement.prototype, 'assignedNodes', {
|
|
18
|
+
value: () => [],
|
|
19
|
+
configurable: true,
|
|
20
|
+
writable: true,
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=jest.setup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jest.setup.js","sourceRoot":"","sources":["../jest.setup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD;;GAEG;AAEH,MAAM,CAAC,gBAAgB,GAAG;IAAA;QACtB,YAAO,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;QACpB,eAAU,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;QACvB,gBAAW,GAAG,IAAI,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;IACpC,CAAC;CAAsC,CAAC;AAExC,MAAM,CAAC,cAAc,CAAC,eAAe,CAAC,SAAS,EAAE,kBAAkB,EAAE;IACjE,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE;IACf,YAAY,EAAE,IAAI;IAClB,QAAQ,EAAE,IAAI;CACjB,CAAC,CAAC;AAEH,MAAM,CAAC,cAAc,CAAC,eAAe,CAAC,SAAS,EAAE,eAAe,EAAE;IAC9D,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE;IACf,YAAY,EAAE,IAAI;IAClB,QAAQ,EAAE,IAAI;CACjB,CAAC,CAAC","sourcesContent":["import { MockHTMLElement } from '@stencil/core/mock-doc';\n\n/**\n * mocks for specPage tests\n */\n\nglobal.MutationObserver = class {\n observe = jest.fn();\n disconnect = jest.fn();\n takeRecords = jest.fn(() => []);\n} as unknown as typeof MutationObserver;\n\nObject.defineProperty(MockHTMLElement.prototype, 'assignedElements', {\n value: () => [],\n configurable: true,\n writable: true,\n});\n\nObject.defineProperty(MockHTMLElement.prototype, 'assignedNodes', {\n value: () => [],\n configurable: true,\n writable: true,\n});\n"]}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as o, c as t, g as i, h as e } from "./index-7a5365e2.js";
|
|
2
2
|
|
|
3
|
-
import { h as s, w as r } from "./index-
|
|
3
|
+
import { h as s, w as r } from "./index-504f1a9e.js";
|
|
4
4
|
|
|
5
5
|
const n = class {
|
|
6
6
|
constructor(i) {
|
|
7
|
-
|
|
8
|
-
this.change =
|
|
7
|
+
o(this, i);
|
|
8
|
+
this.change = t(this, "change", 7);
|
|
9
9
|
// #region Own Properties
|
|
10
10
|
this.isCurrentlyFocused = false;
|
|
11
11
|
/**
|
|
12
12
|
* Listens for mouse and window events that happen outside this click-elsewhere element so we can close popovers when users click outside them
|
|
13
13
|
*/ this.mouseEventList = [ "mousedown", "dragstart", "touchstart" ];
|
|
14
|
-
this.mouseHandler =
|
|
15
|
-
const
|
|
16
|
-
const i = this.shadowContains(this.shadowEventTarget(
|
|
17
|
-
if (!i && (this.isCurrentlyFocused ||
|
|
14
|
+
this.mouseHandler = o => {
|
|
15
|
+
const t = this.shadowContains(this.findActiveElement());
|
|
16
|
+
const i = this.shadowContains(this.shadowEventTarget(o)) || this.originatesInSlots(o.target);
|
|
17
|
+
if (!i && (this.isCurrentlyFocused || t)) {
|
|
18
18
|
this.isCurrentlyFocused = false;
|
|
19
19
|
this.change.emit();
|
|
20
20
|
return;
|
|
21
21
|
}
|
|
22
|
-
this.isCurrentlyFocused = i ||
|
|
22
|
+
this.isCurrentlyFocused = i || t;
|
|
23
23
|
};
|
|
24
24
|
this.windowBlurHandler = () => {
|
|
25
25
|
this.isCurrentlyFocused = false;
|
|
@@ -30,14 +30,14 @@ const n = class {
|
|
|
30
30
|
// #region Component Lifecycle Events
|
|
31
31
|
/* tslint:enable:no-empty */
|
|
32
32
|
connectedCallback() {
|
|
33
|
-
this.mouseEventList.forEach((
|
|
34
|
-
document.addEventListener(
|
|
33
|
+
this.mouseEventList.forEach((o => {
|
|
34
|
+
document.addEventListener(o, this.mouseHandler);
|
|
35
35
|
}));
|
|
36
36
|
window.addEventListener("blur", this.windowBlurHandler);
|
|
37
37
|
}
|
|
38
38
|
disconnectedCallback() {
|
|
39
|
-
this.mouseEventList.forEach((
|
|
40
|
-
document.removeEventListener(
|
|
39
|
+
this.mouseEventList.forEach((o => {
|
|
40
|
+
document.removeEventListener(o, this.mouseHandler);
|
|
41
41
|
}));
|
|
42
42
|
window.removeEventListener("blur", this.windowBlurHandler);
|
|
43
43
|
}
|
|
@@ -46,108 +46,127 @@ const n = class {
|
|
|
46
46
|
// #endregion
|
|
47
47
|
// #region Local Methods
|
|
48
48
|
findActiveElement() {
|
|
49
|
-
let
|
|
49
|
+
let o = document.activeElement;
|
|
50
50
|
while (true) {
|
|
51
|
-
if (!
|
|
52
|
-
return
|
|
51
|
+
if (!o || !o.shadowRoot) {
|
|
52
|
+
return o;
|
|
53
53
|
}
|
|
54
|
-
|
|
54
|
+
o = o.shadowRoot.activeElement;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
originatesInSlots(
|
|
58
|
-
const
|
|
59
|
-
for (const i of Array.from(
|
|
60
|
-
const
|
|
61
|
-
for (const i of Array.from(
|
|
62
|
-
if (i.contains(
|
|
57
|
+
originatesInSlots(o) {
|
|
58
|
+
const t = this.hostElement.querySelectorAll("slot");
|
|
59
|
+
for (const i of Array.from(t)) {
|
|
60
|
+
const t = i && i.assignedNodes && i.assignedNodes() || this.hostElement.childNodes;
|
|
61
|
+
for (const i of Array.from(t)) {
|
|
62
|
+
if (i.contains(o)) {
|
|
63
63
|
return true;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
return false;
|
|
68
68
|
}
|
|
69
|
-
shadowContains(
|
|
69
|
+
shadowContains(o) {
|
|
70
70
|
/**
|
|
71
71
|
* shadow-dom enabled version of Node.contains()
|
|
72
72
|
*/
|
|
73
73
|
while (true) {
|
|
74
|
-
if (
|
|
74
|
+
if (o === this.hostElement) {
|
|
75
75
|
return true;
|
|
76
76
|
}
|
|
77
|
-
if (!
|
|
77
|
+
if (!o) {
|
|
78
78
|
return false;
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
o = o.parentNode || o.host;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
shadowEventTarget(
|
|
84
|
-
return
|
|
83
|
+
shadowEventTarget(o) {
|
|
84
|
+
return o.composedPath()[0] || o.target;
|
|
85
85
|
}
|
|
86
86
|
get hostElement() {
|
|
87
87
|
return i(this);
|
|
88
88
|
}
|
|
89
89
|
};
|
|
90
90
|
|
|
91
|
-
const
|
|
91
|
+
const p = "*{box-sizing:border-box}*:active{outline:none}*:focus{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}.legacy.container{display:none}.legacy.show{display:block;z-index:var(--tct-popover-z-index, 50)}:popover-open,.show{position:absolute;margin:0;padding:0;overflow:auto;background:var(--tct-popover-background, var(--app-white, #ffffff));color:var(--tct-popover-font-color, var(--t-text, #4d4d4d));min-width:var(--tct-popover-min-width, 135px);margin-block:var(--tct-popover-margin-block, 0);box-shadow:var(--tct-popover-box-shadow, var(--app-shadow-1, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14)));border-width:var(--tct-popover-border-width, 0);border-style:solid;border-color:var(--tct-popover-border-color, transparent);border-radius:var(--tct-popover-border-radius, 0);max-height:var(--comp-pop-max-height);left:var(--comp-pop-left);opacity:var(--comp-pop-opacity, 0);--comp-scrollbar-size:var(--tct-scrollbar-size, var(--t-scrollbar-size, var(--app-scale-1x, 5px)));--comp-scrollbar-border-radius:var(--tct-scrollbar-border-radius, var(--t-scrollbar-border-radius, var(--app-border-radius-1, 4px)));--comp-scrollbar-color:var(--tct-scrollbar-color, var(--t-scrollbar-color, var(--t-a11y-gray-color, #747474)));scrollbar-width:thin;scrollbar-color:var(--comp-scrollbar-color) transparent}:popover-open.block,.show.block{right:unset;width:var(--comp-pop-width);min-width:var(--tct-popover-min-width, unset)}:popover-open.left,.show.left{left:var(--comp-pop-left);right:unset}:popover-open.right,.show.right{right:var(--comp-pop-right);left:unset}:popover-open.down,.show.down{top:var(--tct-popover-top, var(--comp-pop-top));bottom:unset}:popover-open.up,.show.up{top:unset;bottom:var(--comp-pop-bottom)}:popover-open::-webkit-scrollbar,.show::-webkit-scrollbar{width:var(--comp-scrollbar-size);height:var(--comp-scrollbar-size);margin:5px}:popover-open::-webkit-scrollbar-thumb,.show::-webkit-scrollbar-thumb{background:var(--comp-scrollbar-color);border-radius:var(--comp-scrollbar-border-radius)}:popover-open::-webkit-scrollbar-track,.show::-webkit-scrollbar-track{background:transparent;border-radius:var(--comp-scrollbar-border-radius)}click-elsewhere{position:relative;display:block}";
|
|
92
92
|
|
|
93
|
-
const
|
|
93
|
+
const a = p;
|
|
94
94
|
|
|
95
|
-
const
|
|
95
|
+
const c = class {
|
|
96
96
|
constructor(i) {
|
|
97
|
-
|
|
98
|
-
this.popoverStateChanged =
|
|
97
|
+
o(this, i);
|
|
98
|
+
this.popoverStateChanged = t(this, "popoverStateChanged", 7);
|
|
99
99
|
/**
|
|
100
100
|
* The number of pixels to leave between the popover and the edge of the viewport
|
|
101
101
|
*/ this.displayBuffer = 10;
|
|
102
|
-
|
|
102
|
+
this.orientationChanged = false;
|
|
103
103
|
this.handleMinHeight = () => {
|
|
104
104
|
if (this.minHeight) {
|
|
105
105
|
s(this, "minHeight", "prop");
|
|
106
106
|
}
|
|
107
107
|
};
|
|
108
|
+
this.handlePopoverToggleEvent = o => {
|
|
109
|
+
this.popoverStateChanged.emit({
|
|
110
|
+
open: o.newState === "open"
|
|
111
|
+
});
|
|
112
|
+
};
|
|
108
113
|
this.setAbsoluteCSSProperties = async () => {
|
|
109
|
-
const {controlElement:
|
|
114
|
+
const {controlElement: o, containerElement: t, currentDirection: i, align: e} = this;
|
|
110
115
|
if (e === "right") {
|
|
111
|
-
|
|
112
|
-
|
|
116
|
+
t.style.setProperty("--comp-pop-right", "0");
|
|
117
|
+
t.style.setProperty("--comp-pop-left", "unset");
|
|
113
118
|
} else {
|
|
114
|
-
|
|
115
|
-
|
|
119
|
+
t.style.setProperty("--comp-pop-left", "0");
|
|
120
|
+
t.style.setProperty("--comp-pop-right", "unset");
|
|
116
121
|
}
|
|
117
122
|
if (this.block) {
|
|
118
|
-
|
|
123
|
+
t.style.setProperty("--comp-pop-width", "100%");
|
|
119
124
|
}
|
|
120
125
|
if (i === "up") {
|
|
121
|
-
const i = getComputedStyle(
|
|
126
|
+
const i = getComputedStyle(o);
|
|
122
127
|
const e = parseInt(i.height || "0") + parseInt(i.borderTopWidth || "0") + parseInt(i.borderBottomWidth || "0");
|
|
123
|
-
|
|
128
|
+
t.style.setProperty("--comp-pop-bottom", `${e}px`);
|
|
124
129
|
}
|
|
125
130
|
// Wait for one paint to prevent layout thrashing
|
|
126
131
|
await r();
|
|
127
|
-
|
|
132
|
+
t.style.setProperty("--comp-pop-opacity", "1");
|
|
128
133
|
};
|
|
129
|
-
this.
|
|
130
|
-
var t,
|
|
131
|
-
const {controlElement:
|
|
132
|
-
const {top:
|
|
134
|
+
this.setPopoverAPICSSProperties = async () => {
|
|
135
|
+
var o, t, i, e, s, n;
|
|
136
|
+
const {controlElement: p, containerElement: a, currentDirection: c, isModule: l, align: h} = this;
|
|
137
|
+
const {top: d, bottom: u, left: w, right: v} = (t = (o = p === null || p === void 0 ? void 0 : p.getBoundingClientRect) === null || o === void 0 ? void 0 : o.call(p)) !== null && t !== void 0 ? t : {
|
|
133
138
|
top: 0,
|
|
134
139
|
bottom: 0,
|
|
135
140
|
left: 0,
|
|
136
141
|
right: 0
|
|
137
142
|
};
|
|
138
|
-
const
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
143
|
+
const b = w;
|
|
144
|
+
const f = ((i = window === null || window === void 0 ? void 0 : window.visualViewport) === null || i === void 0 ? void 0 : i.width) - v;
|
|
145
|
+
if (h === "right") {
|
|
146
|
+
a.style.setProperty("--comp-pop-right", `${f - window.scrollX}px`);
|
|
147
|
+
a.style.setProperty("--comp-pop-left", "unset");
|
|
148
|
+
} else {
|
|
149
|
+
a.style.setProperty("--comp-pop-left", `${b + window.scrollX}px`);
|
|
150
|
+
a.style.setProperty("--comp-pop-right", "unset");
|
|
151
|
+
}
|
|
152
|
+
if (this.block) a.style.setProperty("--comp-pop-width", `${(p === null || p === void 0 ? void 0 : p.offsetWidth) || 0}px`);
|
|
153
|
+
if (c === "up") {
|
|
154
|
+
if (l) {
|
|
155
|
+
a.style.setProperty("--comp-pop-bottom", `${window.innerHeight - d}px`);
|
|
156
|
+
} else {
|
|
157
|
+
a.style.setProperty("--comp-pop-bottom", `${window.innerHeight - d - ((e = window === null || window === void 0 ? void 0 : window.visualViewport) === null || e === void 0 ? void 0 : e.offsetTop) - window.scrollY}px`);
|
|
158
|
+
}
|
|
144
159
|
}
|
|
145
|
-
if (
|
|
146
|
-
|
|
160
|
+
if (c === "down") {
|
|
161
|
+
if (l) {
|
|
162
|
+
a.style.setProperty("--comp-pop-top", `${u}px`);
|
|
163
|
+
} else {
|
|
164
|
+
a.style.setProperty("--comp-pop-top", `${u + ((n = (s = window === null || window === void 0 ? void 0 : window.visualViewport) === null || s === void 0 ? void 0 : s.offsetTop) !== null && n !== void 0 ? n : 0) + window.scrollY}px`);
|
|
165
|
+
}
|
|
147
166
|
}
|
|
148
167
|
// Wait for one paint to prevent layout thrashing
|
|
149
168
|
await r();
|
|
150
|
-
|
|
169
|
+
a.style.setProperty("--comp-pop-opacity", "1");
|
|
151
170
|
};
|
|
152
171
|
this.viewPortChanged = () => {
|
|
153
172
|
if (!this.open) return;
|
|
@@ -159,7 +178,7 @@ const p = class {
|
|
|
159
178
|
};
|
|
160
179
|
this.currentDirection = undefined;
|
|
161
180
|
this.show = false;
|
|
162
|
-
this.align =
|
|
181
|
+
this.align = "left";
|
|
163
182
|
this.block = undefined;
|
|
164
183
|
this.controlElement = undefined;
|
|
165
184
|
this.direction = undefined;
|
|
@@ -172,23 +191,34 @@ const p = class {
|
|
|
172
191
|
// #region Component Lifecycle Events
|
|
173
192
|
disconnectedCallback() {
|
|
174
193
|
this.removeViewportListeners();
|
|
194
|
+
this.containerElement.removeEventListener("toggle", this.handlePopoverToggleEvent);
|
|
195
|
+
this.containerElement = null;
|
|
196
|
+
this.contentElement = null;
|
|
197
|
+
this.controlElement = null;
|
|
198
|
+
}
|
|
199
|
+
componentWillLoad() {
|
|
200
|
+
if (!this.supportsPopoverAPI) {
|
|
201
|
+
console.warn("The Popover API is not supported in this browser. Please update your browser to the latest version. The component will use legacy mode.");
|
|
202
|
+
this.mode = "legacy";
|
|
203
|
+
}
|
|
175
204
|
}
|
|
176
205
|
componentDidLoad() {
|
|
177
206
|
this.handleMinHeight();
|
|
207
|
+
if (this.supportsPopoverAPI) this.containerElement.addEventListener("toggle", this.handlePopoverToggleEvent);
|
|
178
208
|
if (this.open) this.determinePopDirection();
|
|
179
209
|
}
|
|
180
210
|
// #endregion
|
|
181
211
|
// #region Listeners
|
|
182
|
-
popoverStateHandler(
|
|
183
|
-
const {detail: {open:
|
|
184
|
-
if (
|
|
185
|
-
this.open =
|
|
186
|
-
|
|
212
|
+
popoverStateHandler(o) {
|
|
213
|
+
const {detail: {open: t}} = o;
|
|
214
|
+
if (t === this.open) return;
|
|
215
|
+
this.open = t;
|
|
216
|
+
o.stopPropagation();
|
|
187
217
|
}
|
|
188
218
|
// #endregion
|
|
189
219
|
// #region Public Methods API
|
|
190
|
-
async scrollContainerTo(
|
|
191
|
-
this.containerElement.scrollTo(
|
|
220
|
+
async scrollContainerTo(o) {
|
|
221
|
+
this.containerElement.scrollTo(o);
|
|
192
222
|
}
|
|
193
223
|
async toggle() {
|
|
194
224
|
this.open = !this.open;
|
|
@@ -198,18 +228,21 @@ const p = class {
|
|
|
198
228
|
minHeightProvided() {
|
|
199
229
|
this.handleMinHeight();
|
|
200
230
|
}
|
|
201
|
-
async openChanged(
|
|
202
|
-
this.setRootElement();
|
|
231
|
+
async openChanged(o) {
|
|
203
232
|
this.popoverStateChanged.emit({
|
|
204
|
-
open:
|
|
233
|
+
open: o
|
|
205
234
|
});
|
|
206
|
-
if (
|
|
235
|
+
if (o) {
|
|
207
236
|
this.addViewportListeners();
|
|
208
237
|
this.determinePopDirection();
|
|
209
238
|
} else {
|
|
210
239
|
this.removeViewportListeners();
|
|
211
240
|
this.currentDirection = undefined;
|
|
212
|
-
this.
|
|
241
|
+
if (this.mode === "legacy" || !this.supportsPopoverAPI) {
|
|
242
|
+
this.show = false;
|
|
243
|
+
} else {
|
|
244
|
+
this.containerElement.hidePopover();
|
|
245
|
+
}
|
|
213
246
|
await r();
|
|
214
247
|
this.clearCSSProperties();
|
|
215
248
|
}
|
|
@@ -217,38 +250,40 @@ const p = class {
|
|
|
217
250
|
// #endregion
|
|
218
251
|
// #region Local Methods
|
|
219
252
|
get isModule() {
|
|
220
|
-
var
|
|
253
|
+
var o, t;
|
|
221
254
|
const i = window !== window.top;
|
|
222
|
-
const e = Object.keys((
|
|
255
|
+
const e = Object.keys((t = (o = window.Tecton) === null || o === void 0 ? void 0 : o.platformDimensions) !== null && t !== void 0 ? t : {}).length > 0;
|
|
223
256
|
return i && e;
|
|
224
257
|
}
|
|
225
258
|
get providedDirection() {
|
|
226
|
-
const {direction:
|
|
227
|
-
switch (
|
|
259
|
+
const {direction: o} = this;
|
|
260
|
+
switch (o) {
|
|
228
261
|
case "up":
|
|
229
262
|
case "down":
|
|
230
|
-
return
|
|
263
|
+
return o;
|
|
231
264
|
|
|
232
265
|
default:
|
|
233
266
|
return undefined;
|
|
234
267
|
}
|
|
235
268
|
}
|
|
269
|
+
get supportsPopoverAPI() {
|
|
270
|
+
return Object.hasOwn(HTMLElement.prototype, "popover");
|
|
271
|
+
}
|
|
236
272
|
get validatedMaxHeight() {
|
|
237
|
-
const {maxHeight:
|
|
238
|
-
return isNaN(
|
|
273
|
+
const {maxHeight: o} = this;
|
|
274
|
+
return isNaN(o) ? undefined : o;
|
|
239
275
|
}
|
|
240
276
|
addViewportListeners() {
|
|
241
|
-
var
|
|
277
|
+
var o;
|
|
242
278
|
window.addEventListener("resize", this.viewPortOrientationChanged);
|
|
243
|
-
|
|
244
|
-
|
|
279
|
+
visualViewport === null || visualViewport === void 0 ? void 0 : visualViewport.addEventListener("resize", this.viewPortChanged);
|
|
280
|
+
window.addEventListener("scroll", this.viewPortChanged, {
|
|
245
281
|
passive: true,
|
|
246
282
|
capture: true
|
|
247
283
|
});
|
|
248
|
-
(
|
|
284
|
+
(o = screen === null || screen === void 0 ? void 0 : screen.orientation) === null || o === void 0 ? void 0 : o.addEventListener("orientationchange", this.viewPortOrientationChanged);
|
|
249
285
|
window.addEventListener("orientationchange", this.viewPortOrientationChanged);
|
|
250
|
-
|
|
251
|
-
}
|
|
286
|
+
}
|
|
252
287
|
clearCSSProperties() {
|
|
253
288
|
this.containerElement.style.removeProperty("--comp-pop-max-height");
|
|
254
289
|
this.containerElement.style.removeProperty("--comp-pop-top");
|
|
@@ -259,126 +294,103 @@ const p = class {
|
|
|
259
294
|
this.containerElement.style.removeProperty("--comp-pop-opacity");
|
|
260
295
|
}
|
|
261
296
|
async determinePopDirection() {
|
|
262
|
-
var
|
|
263
|
-
const {containerElement: e, controlElement: s, providedDirection: n, displayBuffer:
|
|
297
|
+
var o, t, i;
|
|
298
|
+
const {containerElement: e, controlElement: s, providedDirection: n, displayBuffer: p} = this;
|
|
264
299
|
if (e) e.style.maxHeight = null;
|
|
265
300
|
await r();
|
|
266
|
-
const {isModule:
|
|
267
|
-
const {top:
|
|
301
|
+
const {isModule: a} = this;
|
|
302
|
+
const {top: c, bottom: l} = (t = (o = s === null || s === void 0 ? void 0 : s.getBoundingClientRect) === null || o === void 0 ? void 0 : o.call(s)) !== null && t !== void 0 ? t : {
|
|
268
303
|
top: 0,
|
|
269
304
|
bottom: 0
|
|
270
305
|
};
|
|
306
|
+
let h;
|
|
271
307
|
let d;
|
|
272
|
-
let l;
|
|
273
308
|
let u;
|
|
274
|
-
if (
|
|
275
|
-
const {outletOffset:
|
|
276
|
-
const e = window.visualViewport.height -
|
|
277
|
-
const s =
|
|
309
|
+
if (a) {
|
|
310
|
+
const {outletOffset: o = 0, innerHeight: t = window.innerHeight} = ((i = window.Tecton) === null || i === void 0 ? void 0 : i.platformDimensions) || {};
|
|
311
|
+
const e = window.visualViewport.height - l;
|
|
312
|
+
const s = t - (o + l);
|
|
278
313
|
const r = e < s;
|
|
279
|
-
|
|
314
|
+
h = t;
|
|
280
315
|
// If the top of the module is below the top of the window we just use the controlTop
|
|
281
316
|
// Otherwise we need to add the outletOffset to the controlTop
|
|
282
|
-
|
|
283
|
-
u = r ? e -
|
|
317
|
+
d = (o > 0 ? c : c + o) - p;
|
|
318
|
+
u = r ? e - p : s - p;
|
|
284
319
|
} else {
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
u =
|
|
320
|
+
h = window.visualViewport.height;
|
|
321
|
+
d = c - p;
|
|
322
|
+
u = h - l - p;
|
|
288
323
|
}
|
|
289
|
-
const
|
|
324
|
+
const w = d > u ? "up" : "down";
|
|
290
325
|
// We do not want to update the max height once the popover is open unless the page orientation shifts (resize or mobile use cases)
|
|
291
|
-
const
|
|
326
|
+
const v = !e.style.getPropertyValue("--comp-pop-max-height") || this.orientationChanged;
|
|
292
327
|
// we do not want to constantly update the max-height after an orientation change, so we switch this back to false
|
|
293
328
|
this.orientationChanged = false;
|
|
294
|
-
const
|
|
295
|
-
switch (
|
|
329
|
+
const b = this.currentDirection || n || w;
|
|
330
|
+
switch (b) {
|
|
296
331
|
case "up":
|
|
297
|
-
if (
|
|
298
|
-
const
|
|
299
|
-
const
|
|
300
|
-
e.style.setProperty("--comp-pop-max-height", `${
|
|
332
|
+
if (v) {
|
|
333
|
+
const o = this.validatedMaxHeight || d;
|
|
334
|
+
const t = Math.min(d, o);
|
|
335
|
+
e.style.setProperty("--comp-pop-max-height", `${t}px`);
|
|
301
336
|
}
|
|
302
337
|
this.setDirectionAndShow("up");
|
|
303
338
|
break;
|
|
304
339
|
|
|
305
340
|
case "down":
|
|
306
|
-
if (
|
|
307
|
-
const
|
|
308
|
-
const
|
|
309
|
-
e.style.setProperty("--comp-pop-max-height", `${
|
|
341
|
+
if (v) {
|
|
342
|
+
const o = this.validatedMaxHeight || u;
|
|
343
|
+
const t = Math.min(u, o);
|
|
344
|
+
e.style.setProperty("--comp-pop-max-height", `${t}px`);
|
|
310
345
|
}
|
|
311
346
|
this.setDirectionAndShow("down");
|
|
312
347
|
break;
|
|
313
348
|
}
|
|
314
349
|
}
|
|
315
350
|
removeViewportListeners() {
|
|
316
|
-
var
|
|
351
|
+
var o;
|
|
317
352
|
window.removeEventListener("resize", this.viewPortOrientationChanged);
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
353
|
+
visualViewport === null || visualViewport === void 0 ? void 0 : visualViewport.removeEventListener("resize", this.viewPortChanged);
|
|
354
|
+
window.removeEventListener("scroll", this.viewPortChanged, {
|
|
355
|
+
capture: true
|
|
356
|
+
});
|
|
357
|
+
(o = screen === null || screen === void 0 ? void 0 : screen.orientation) === null || o === void 0 ? void 0 : o.removeEventListener("orientationchange", this.viewPortOrientationChanged);
|
|
321
358
|
window.removeEventListener("orientationchange", this.viewPortOrientationChanged);
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
setDirectionAndShow(t) {
|
|
325
|
-
this.setRootElement();
|
|
359
|
+
}
|
|
360
|
+
setDirectionAndShow(o) {
|
|
326
361
|
// Due to some runtime inconsistency across devices/browsers we need to add one more check here because the
|
|
327
362
|
// popover can be closed between the time the popover is opened and the time the direction is determined
|
|
328
|
-
|
|
329
|
-
if (!
|
|
330
|
-
this.currentDirection =
|
|
331
|
-
this.
|
|
332
|
-
|
|
363
|
+
const t = this.open;
|
|
364
|
+
if (!t) return;
|
|
365
|
+
this.currentDirection = o;
|
|
366
|
+
if (this.mode === "legacy" || !this.supportsPopoverAPI) {
|
|
367
|
+
this.show = true;
|
|
333
368
|
this.setAbsoluteCSSProperties();
|
|
334
369
|
} else {
|
|
335
|
-
this.
|
|
336
|
-
|
|
337
|
-
}
|
|
338
|
-
setRootElement() {
|
|
339
|
-
let t = this.hostElement;
|
|
340
|
-
while (t && t !== document.documentElement) {
|
|
341
|
-
const o = window.getComputedStyle(t);
|
|
342
|
-
// Check if the element has any styles applied that create a new containg block
|
|
343
|
-
if (o.transform !== "none" || o.filter !== "none" || o.perspective !== "none" || o.containerType !== "normal" || [ "transform", "perspective", "filter" ].includes(o.willChange) || [ "layout", "paint", "strict", "content" ].includes(o.contain)) {
|
|
344
|
-
this.rootElementRect = t.getBoundingClientRect();
|
|
345
|
-
return;
|
|
346
|
-
}
|
|
347
|
-
const i = t.getRootNode();
|
|
348
|
-
const e = typeof ShadowRoot !== "undefined" && i instanceof ShadowRoot && i.host instanceof HTMLElement;
|
|
349
|
-
if (e) {
|
|
350
|
-
t = i.host;
|
|
351
|
-
} else {
|
|
352
|
-
t = t.parentElement;
|
|
353
|
-
}
|
|
370
|
+
this.setPopoverAPICSSProperties();
|
|
371
|
+
this.containerElement.showPopover();
|
|
354
372
|
}
|
|
355
|
-
// Return the document's bounding rect if no element is found
|
|
356
|
-
this.rootElementRect = {
|
|
357
|
-
top: 0,
|
|
358
|
-
bottom: 0,
|
|
359
|
-
left: 0,
|
|
360
|
-
right: 0,
|
|
361
|
-
height: window.visualViewport.height,
|
|
362
|
-
width: window.visualViewport.width
|
|
363
|
-
};
|
|
364
373
|
}
|
|
365
374
|
// #endregion
|
|
366
375
|
// #region Render Methods
|
|
367
376
|
render() {
|
|
368
|
-
const
|
|
369
|
-
if (this.show)
|
|
370
|
-
if (this.
|
|
377
|
+
const o = [ "container", this.currentDirection, this.align ];
|
|
378
|
+
if (this.show) o.push("show");
|
|
379
|
+
if (this.block) o.push("block");
|
|
380
|
+
if (this.mode === "legacy") o.push("legacy");
|
|
371
381
|
return e("div", {
|
|
372
|
-
key: "
|
|
373
|
-
ref:
|
|
374
|
-
class:
|
|
375
|
-
"test-id": "outerContainer"
|
|
382
|
+
key: "acaaed8fe34bb4ee949c4032be9a08b61a28b238",
|
|
383
|
+
ref: o => this.containerElement = o,
|
|
384
|
+
class: o.join(" "),
|
|
385
|
+
"test-id": "outerContainer",
|
|
386
|
+
tabIndex: -1,
|
|
387
|
+
popover: "auto"
|
|
376
388
|
}, e("div", {
|
|
377
|
-
key: "
|
|
378
|
-
ref:
|
|
389
|
+
key: "b8e93864b158caa9e9e2cde64a84d9ea9288b761",
|
|
390
|
+
ref: o => this.contentElement = o,
|
|
379
391
|
class: "content"
|
|
380
392
|
}, e("slot", {
|
|
381
|
-
key: "
|
|
393
|
+
key: "e43fee80ed07626f26aba98271c8408f9d69a37e"
|
|
382
394
|
})));
|
|
383
395
|
}
|
|
384
396
|
get hostElement() {
|
|
@@ -392,7 +404,7 @@ const p = class {
|
|
|
392
404
|
}
|
|
393
405
|
};
|
|
394
406
|
|
|
395
|
-
|
|
407
|
+
c.style = a;
|
|
396
408
|
|
|
397
|
-
export { n as click_elsewhere,
|
|
409
|
+
export { n as click_elsewhere, c as q2_popover };
|
|
398
410
|
//# sourceMappingURL=click-elsewhere_2.entry.js.map
|