q2-tecton-elements 1.49.2 → 1.49.3
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 +137 -139
- package/dist/cjs/click-elsewhere_2.cjs.entry.js.map +1 -1
- package/dist/cjs/{index-a93362ed.js → index-83b024c4.js} +1 -21
- package/dist/cjs/index-83b024c4.js.map +1 -0
- package/dist/cjs/{index-42fcd170.js → index-f69742cf.js} +1 -1
- package/dist/cjs/{index-42fcd170.js.map → index-f69742cf.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- 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-btn_2.cjs.entry.js +1 -1
- package/dist/cjs/q2-calendar.cjs.entry.js +3 -3
- 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 +2 -2
- 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 +2 -2
- package/dist/cjs/q2-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/q2-currency.cjs.entry.js +1 -1
- package/dist/cjs/q2-data-table.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/q2-editable-field.cjs.entry.js +2 -2
- package/dist/cjs/q2-icon.cjs.entry.js +1 -1
- package/dist/cjs/q2-input.cjs.entry.js +2 -2
- package/dist/cjs/q2-item.cjs.entry.js +2 -2
- package/dist/cjs/q2-legend.cjs.entry.js +1 -1
- package/dist/cjs/q2-list.cjs.entry.js +2 -2
- 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 +13 -11
- package/dist/cjs/q2-option-list.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-option.cjs.entry.js +1 -1
- package/dist/cjs/q2-pagination.cjs.entry.js +3 -3
- package/dist/cjs/q2-pill.cjs.entry.js +2 -2
- package/dist/cjs/q2-radio-group.cjs.entry.js +2 -2
- package/dist/cjs/q2-radio.cjs.entry.js +2 -2
- package/dist/cjs/q2-relative-time.cjs.entry.js +3 -3
- package/dist/cjs/q2-section.cjs.entry.js +3 -3
- package/dist/cjs/q2-select.cjs.entry.js +108 -29
- package/dist/cjs/q2-select.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-stepper-pane.cjs.entry.js +2 -2
- 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-tab-container.cjs.entry.js +2 -2
- package/dist/cjs/q2-tab-pane.cjs.entry.js +1 -1
- 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 +2 -2
- package/dist/cjs/q2-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/tecton-tab-pane.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +5 -5
- package/dist/collection/components/q2-action-sheet/q2-action-sheet.js +1 -1
- package/dist/collection/components/q2-avatar/q2-avatar.js +1 -1
- package/dist/collection/components/q2-calendar/q2-calendar.js +1 -1
- package/dist/collection/components/q2-calendar/q2-month-picker.js +2 -2
- package/dist/collection/components/q2-carousel/q2-carousel.js +1 -1
- package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.js +2 -2
- package/dist/collection/components/q2-chart-area/q2-chart-area.js +1 -1
- package/dist/collection/components/q2-chart-bar/q2-chart-bar.js +1 -1
- package/dist/collection/components/q2-chart-donut/q2-chart-donut.js +1 -1
- package/dist/collection/components/q2-checkbox/q2-checkbox.js +1 -1
- package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.js +1 -1
- package/dist/collection/components/q2-currency/q2-currency.js +1 -1
- package/dist/collection/components/q2-data-table/q2-data-table.js +7 -7
- package/dist/collection/components/q2-detail/q2-detail.js +1 -1
- package/dist/collection/components/q2-dropdown/q2-dropdown.js +1 -1
- package/dist/collection/components/q2-editable-field/q2-editable-field.js +1 -1
- package/dist/collection/components/q2-input/q2-input.js +2 -2
- package/dist/collection/components/q2-item/q2-item.js +1 -1
- package/dist/collection/components/q2-legend/q2-legend.js +1 -1
- package/dist/collection/components/q2-list/q2-list.js +1 -1
- package/dist/collection/components/q2-loc/q2-loc.js +1 -1
- package/dist/collection/components/q2-message/q2-message.js +1 -1
- package/dist/collection/components/q2-optgroup/q2-optgroup.js +1 -1
- package/dist/collection/components/q2-option/q2-option.js +1 -1
- package/dist/collection/components/q2-option-list/q2-option-list.js +15 -13
- package/dist/collection/components/q2-option-list/q2-option-list.js.map +1 -1
- package/dist/collection/components/q2-pagination/q2-pagination.js +2 -2
- package/dist/collection/components/q2-pill/q2-pill.js +1 -1
- package/dist/collection/components/q2-popover/q2-popover.css +18 -10
- package/dist/collection/components/q2-popover/q2-popover.js +192 -193
- package/dist/collection/components/q2-popover/q2-popover.js.map +1 -1
- package/dist/collection/components/q2-radio/q2-radio.js +1 -1
- package/dist/collection/components/q2-radio-group/q2-radio-group.js +1 -1
- package/dist/collection/components/q2-relative-time/q2-relative-time.js +1 -1
- package/dist/collection/components/q2-section/q2-section.js +2 -2
- package/dist/collection/components/q2-select/q2-select.js +146 -31
- package/dist/collection/components/q2-select/q2-select.js.map +1 -1
- package/dist/collection/components/q2-stepper/q2-stepper.js +1 -1
- package/dist/collection/components/q2-stepper-pane/q2-stepper-pane.js +3 -3
- package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js +1 -1
- package/dist/collection/components/q2-tab-container/q2-tab-container.js +1 -1
- package/dist/collection/components/q2-tab-pane/q2-tab-pane.js +1 -1
- package/dist/collection/components/q2-tag/q2-tag.js +1 -1
- package/dist/collection/components/q2-textarea/q2-textarea.js +1 -1
- package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.js +2 -2
- package/dist/components/index2.js +1 -20
- package/dist/components/index2.js.map +1 -1
- package/dist/components/q2-action-sheet.js +1 -1
- package/dist/components/q2-avatar2.js +1 -1
- package/dist/components/q2-calendar.js +1 -1
- package/dist/components/q2-carousel-pane.js +2 -2
- package/dist/components/q2-carousel.js +1 -1
- 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-checkbox-group.js +1 -1
- package/dist/components/q2-checkbox2.js +1 -1
- package/dist/components/q2-currency.js +1 -1
- package/dist/components/q2-data-table.js +1 -1
- package/dist/components/q2-detail.js +1 -1
- package/dist/components/q2-dropdown.js +1 -1
- package/dist/components/q2-editable-field.js +1 -1
- package/dist/components/q2-input2.js +1 -1
- package/dist/components/q2-item.js +1 -1
- package/dist/components/q2-legend2.js +1 -1
- package/dist/components/q2-list.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-option-list2.js +12 -10
- package/dist/components/q2-option-list2.js.map +1 -1
- package/dist/components/q2-option2.js +1 -1
- package/dist/components/q2-pagination.js +2 -2
- package/dist/components/q2-pill.js +1 -1
- package/dist/components/q2-popover2.js +143 -145
- package/dist/components/q2-popover2.js.map +1 -1
- package/dist/components/q2-radio-group.js +1 -1
- package/dist/components/q2-radio.js +1 -1
- package/dist/components/q2-relative-time.js +1 -1
- package/dist/components/q2-section.js +2 -2
- package/dist/components/q2-select2.js +112 -32
- 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.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 +1 -1
- package/dist/components/tecton-tab-pane.js +2 -2
- package/dist/esm/click-elsewhere_2.entry.js +137 -139
- package/dist/esm/click-elsewhere_2.entry.js.map +1 -1
- package/dist/esm/{index-1c019b24.js → index-3184c760.js} +1 -1
- package/dist/esm/{index-1c019b24.js.map → index-3184c760.js.map} +1 -1
- package/dist/esm/{index-3c5cd75e.js → index-e5ac05c3.js} +2 -21
- package/dist/esm/index-e5ac05c3.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/q2-action-sheet.entry.js +2 -2
- package/dist/esm/q2-avatar.entry.js +1 -1
- package/dist/esm/q2-btn_2.entry.js +1 -1
- package/dist/esm/q2-calendar.entry.js +3 -3
- 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 +2 -2
- 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 +2 -2
- package/dist/esm/q2-checkbox.entry.js +2 -2
- package/dist/esm/q2-currency.entry.js +1 -1
- package/dist/esm/q2-data-table.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/q2-editable-field.entry.js +2 -2
- package/dist/esm/q2-icon.entry.js +1 -1
- package/dist/esm/q2-input.entry.js +2 -2
- package/dist/esm/q2-item.entry.js +2 -2
- package/dist/esm/q2-legend.entry.js +1 -1
- package/dist/esm/q2-list.entry.js +2 -2
- 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 +13 -11
- package/dist/esm/q2-option-list.entry.js.map +1 -1
- package/dist/esm/q2-option.entry.js +1 -1
- package/dist/esm/q2-pagination.entry.js +3 -3
- package/dist/esm/q2-pill.entry.js +2 -2
- package/dist/esm/q2-radio-group.entry.js +2 -2
- package/dist/esm/q2-radio.entry.js +2 -2
- package/dist/esm/q2-relative-time.entry.js +3 -3
- package/dist/esm/q2-section.entry.js +3 -3
- package/dist/esm/q2-select.entry.js +109 -30
- package/dist/esm/q2-select.entry.js.map +1 -1
- package/dist/esm/q2-stepper-pane.entry.js +2 -2
- package/dist/esm/q2-stepper-vertical.entry.js +2 -2
- package/dist/esm/q2-stepper.entry.js +2 -2
- package/dist/esm/q2-tab-container.entry.js +2 -2
- package/dist/esm/q2-tab-pane.entry.js +1 -1
- 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 +2 -2
- 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/{p-40df4468.entry.js → p-04dd9b90.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-d78669df.entry.js → p-0c1e2b0d.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-0852e6fe.entry.js → p-11883a2d.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-5775b02b.entry.js → p-2154fd27.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-dbfab45b.entry.js → p-23638c08.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-f6358905.entry.js → p-24c2cc43.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-a8e7e591.entry.js → p-26a7f68d.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-da711c59.entry.js → p-2a21bb2a.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-25bfe0b2.entry.js → p-33a16719.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-db79c056.entry.js → p-36e541b9.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-7b9a6bb7.entry.js → p-38a2862e.entry.js} +2 -2
- package/dist/q2-tecton-elements/p-3fe148c2.entry.js +2 -0
- package/dist/q2-tecton-elements/{p-a657277b.entry.js.map → p-3fe148c2.entry.js.map} +1 -1
- package/dist/q2-tecton-elements/{p-ec8a0b64.entry.js → p-436b9b84.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-ea7876eb.entry.js → p-45cf9f0b.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-9ecabc7a.entry.js → p-48181bc2.entry.js} +2 -2
- package/dist/q2-tecton-elements/p-48a45547.entry.js +2 -0
- package/dist/q2-tecton-elements/p-48a45547.entry.js.map +1 -0
- package/dist/q2-tecton-elements/{p-333a41ca.entry.js → p-4f6eebbf.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-08176bd0.entry.js → p-60940069.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-93680d12.entry.js → p-631226a9.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-4388e521.entry.js → p-6c64c5e9.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-793a453e.entry.js → p-6e4b1bfe.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-a177d812.entry.js → p-70e8ddbe.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-d8d9ba1f.entry.js → p-73c6ecee.entry.js} +2 -2
- package/dist/q2-tecton-elements/p-76bd33da.entry.js +2 -0
- package/dist/q2-tecton-elements/p-76bd33da.entry.js.map +1 -0
- package/dist/q2-tecton-elements/{p-76b98623.entry.js → p-85ddbe4f.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-e3ad770b.entry.js → p-85eff820.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-e0a6baea.entry.js → p-88ae4e26.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-05b30f98.entry.js → p-8b032c77.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-6c933b14.entry.js → p-960ee73c.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-baa2eaa9.entry.js → p-99a8fdc4.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-bbf9d36d.entry.js → p-a4294b4d.entry.js} +2 -2
- package/dist/q2-tecton-elements/p-a6ca739a.entry.js +2 -0
- package/dist/q2-tecton-elements/{p-4da4cb5d.entry.js.map → p-a6ca739a.entry.js.map} +1 -1
- package/dist/q2-tecton-elements/p-ac6c467f.entry.js +2 -0
- package/dist/q2-tecton-elements/p-ac6c467f.entry.js.map +1 -0
- package/dist/q2-tecton-elements/{p-1e7fa870.entry.js → p-b45b6a3e.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-2810ba28.entry.js → p-ba7ffb2f.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-9c589ab3.entry.js → p-bd4c5570.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-c5aac064.entry.js → p-bf4a9be3.entry.js} +2 -2
- package/dist/q2-tecton-elements/p-cb4d177a.entry.js +2 -0
- package/dist/q2-tecton-elements/{p-9e90a38a.entry.js.map → p-cb4d177a.entry.js.map} +1 -1
- package/dist/q2-tecton-elements/{p-630613c7.entry.js → p-d1ba78ec.entry.js} +2 -2
- package/dist/q2-tecton-elements/p-d24bb23e.js +2 -0
- package/dist/q2-tecton-elements/p-d24bb23e.js.map +1 -0
- package/dist/q2-tecton-elements/{p-2bcb7e89.entry.js → p-d63cb875.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-e4b8f4b3.entry.js → p-d950ae4c.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-5037fa67.entry.js → p-dba6c931.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-e44560d9.entry.js → p-de4bce7e.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-c8b4f5f7.entry.js → p-e098f6c5.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-be518818.js → p-f1e887f5.js} +1 -1
- package/dist/q2-tecton-elements/{p-77a763eb.entry.js → p-f6901c57.entry.js} +2 -2
- package/dist/q2-tecton-elements/{p-da0cacef.entry.js → p-ff5f28fb.entry.js} +2 -2
- 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/test/elements/q2-calendar-test.e2e.js +2 -2
- package/dist/test/elements/q2-calendar-test.e2e.js.map +1 -1
- package/dist/test/elements/q2-dropdown-test.e2e.js +2 -14
- package/dist/test/elements/q2-dropdown-test.e2e.js.map +1 -1
- package/dist/test/elements/q2-pagination-test.e2e.js +1 -0
- package/dist/test/elements/q2-pagination-test.e2e.js.map +1 -1
- package/dist/test/elements/q2-pill-test.e2e.js +1 -1
- package/dist/test/elements/q2-pill-test.e2e.js.map +1 -1
- package/dist/test/elements/q2-popover-test.e2e.js +1 -34
- package/dist/test/elements/q2-popover-test.e2e.js.map +1 -1
- package/dist/test/elements/q2-popover-test.spec.js +743 -435
- package/dist/test/elements/q2-popover-test.spec.js.map +1 -1
- package/dist/test/elements/q2-select-test.e2e.js +1 -15
- package/dist/test/elements/q2-select-test.e2e.js.map +1 -1
- package/dist/test/elements/q2-select-test.spec.js +412 -0
- package/dist/test/elements/q2-select-test.spec.js.map +1 -0
- package/dist/test/elements/q2-tag-test.e2e.js +1 -1
- package/dist/test/elements/q2-tag-test.e2e.js.map +1 -1
- package/dist/types/builds/q2e/development/tecton/tecton/packages/q2-tecton-elements/.stencil/jest.setup.d.ts +1 -0
- package/dist/types/components/q2-action-sheet/q2-action-sheet.d.ts +60 -0
- package/dist/types/components/q2-calendar/q2-calendar.d.ts +324 -0
- package/dist/types/components/q2-carousel/q2-carousel.d.ts +2 -2
- package/dist/types/components/q2-data-table/q2-data-table.d.ts +223 -0
- package/dist/types/components/q2-dropdown/q2-dropdown.d.ts +130 -0
- package/dist/types/components/q2-dropdown-item/q2-dropdown-item.d.ts +50 -0
- package/dist/types/components/q2-editable-field/q2-editable-field.d.ts +140 -0
- package/dist/types/components/q2-loading/skeleton/shapes.d.ts +1 -0
- package/dist/types/components/q2-optgroup/q2-optgroup.d.ts +1 -1
- package/dist/types/components/q2-option-list/q2-option-list.d.ts +99 -0
- package/dist/types/components/q2-pagination/q2-pagination.d.ts +60 -0
- package/dist/types/components/q2-pill/q2-pill.d.ts +102 -0
- package/dist/types/components/q2-popover/q2-popover.d.ts +31 -31
- package/dist/types/components/q2-select/q2-select.d.ts +256 -0
- package/dist/types/components/q2-stepper/q2-stepper.d.ts +52 -0
- package/dist/types/components/q2-stepper-vertical/q2-stepper-vertical.d.ts +62 -0
- package/dist/types/components/q2-tab-container/q2-tab-container.d.ts +2 -2
- package/dist/types/components/q2-tag/q2-tag.d.ts +59 -0
- package/dist/types/components.d.ts +8 -0
- package/dist/types/utils/action-sheet.d.ts +12 -0
- package/package.json +3 -3
- package/dist/cjs/index-a93362ed.js.map +0 -1
- package/dist/esm/index-3c5cd75e.js.map +0 -1
- package/dist/q2-tecton-elements/p-089a7a1e.entry.js +0 -2
- package/dist/q2-tecton-elements/p-089a7a1e.entry.js.map +0 -1
- package/dist/q2-tecton-elements/p-2e6669a7.entry.js +0 -2
- package/dist/q2-tecton-elements/p-2e6669a7.entry.js.map +0 -1
- package/dist/q2-tecton-elements/p-4da4cb5d.entry.js +0 -2
- package/dist/q2-tecton-elements/p-84190698.js +0 -2
- package/dist/q2-tecton-elements/p-84190698.js.map +0 -1
- package/dist/q2-tecton-elements/p-9e90a38a.entry.js +0 -2
- package/dist/q2-tecton-elements/p-a657277b.entry.js +0 -2
- package/dist/q2-tecton-elements/p-d2d3d95b.entry.js +0 -2
- package/dist/q2-tecton-elements/p-d2d3d95b.entry.js.map +0 -1
- /package/dist/q2-tecton-elements/{p-40df4468.entry.js.map → p-04dd9b90.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-d78669df.entry.js.map → p-0c1e2b0d.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-0852e6fe.entry.js.map → p-11883a2d.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-5775b02b.entry.js.map → p-2154fd27.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-dbfab45b.entry.js.map → p-23638c08.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-f6358905.entry.js.map → p-24c2cc43.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-a8e7e591.entry.js.map → p-26a7f68d.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-da711c59.entry.js.map → p-2a21bb2a.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-25bfe0b2.entry.js.map → p-33a16719.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-db79c056.entry.js.map → p-36e541b9.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-7b9a6bb7.entry.js.map → p-38a2862e.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-ec8a0b64.entry.js.map → p-436b9b84.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-ea7876eb.entry.js.map → p-45cf9f0b.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-9ecabc7a.entry.js.map → p-48181bc2.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-333a41ca.entry.js.map → p-4f6eebbf.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-08176bd0.entry.js.map → p-60940069.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-93680d12.entry.js.map → p-631226a9.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-4388e521.entry.js.map → p-6c64c5e9.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-793a453e.entry.js.map → p-6e4b1bfe.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-a177d812.entry.js.map → p-70e8ddbe.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-d8d9ba1f.entry.js.map → p-73c6ecee.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-76b98623.entry.js.map → p-85ddbe4f.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-e3ad770b.entry.js.map → p-85eff820.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-e0a6baea.entry.js.map → p-88ae4e26.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-05b30f98.entry.js.map → p-8b032c77.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-6c933b14.entry.js.map → p-960ee73c.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-baa2eaa9.entry.js.map → p-99a8fdc4.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-bbf9d36d.entry.js.map → p-a4294b4d.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-1e7fa870.entry.js.map → p-b45b6a3e.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-2810ba28.entry.js.map → p-ba7ffb2f.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-9c589ab3.entry.js.map → p-bd4c5570.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-c5aac064.entry.js.map → p-bf4a9be3.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-630613c7.entry.js.map → p-d1ba78ec.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-2bcb7e89.entry.js.map → p-d63cb875.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-e4b8f4b3.entry.js.map → p-d950ae4c.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-5037fa67.entry.js.map → p-dba6c931.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-e44560d9.entry.js.map → p-de4bce7e.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-c8b4f5f7.entry.js.map → p-e098f6c5.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-be518818.js.map → p-f1e887f5.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-77a763eb.entry.js.map → p-f6901c57.entry.js.map} +0 -0
- /package/dist/q2-tecton-elements/{p-da0cacef.entry.js.map → p-ff5f28fb.entry.js.map} +0 -0
- /package/dist/types/{workspace/workspace/tecton-production_release_1.49.x → builds/q2e/development/tecton/tecton}/packages/q2-tecton-elements/.stencil/test/elements/q2-detail/slot-component.d.ts +0 -0
- /package/dist/types/{workspace/workspace/tecton-production_release_1.49.x → builds/q2e/development/tecton/tecton}/packages/q2-tecton-elements/.stencil/test/helpers.d.ts +0 -0
|
@@ -6,13 +6,66 @@ export class Q2Popover {
|
|
|
6
6
|
* The number of pixels to leave between the popover and the edge of the viewport
|
|
7
7
|
*/
|
|
8
8
|
this.displayBuffer = 10;
|
|
9
|
-
/** remove when Popover API is supported in iOS */
|
|
10
9
|
this.orientationChanged = false;
|
|
10
|
+
/// Helpers ///
|
|
11
11
|
this.handleMinHeight = () => {
|
|
12
12
|
if (this.minHeight) {
|
|
13
13
|
handleDeprecationWarning(this, 'minHeight', 'prop');
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
|
+
this.handlePopoverToggleEvent = (event) => {
|
|
17
|
+
this.popoverStateChanged.emit({ open: event.newState === 'open' });
|
|
18
|
+
};
|
|
19
|
+
this.viewPortChanged = () => {
|
|
20
|
+
if (!this.open)
|
|
21
|
+
return;
|
|
22
|
+
this.determinePopDirection();
|
|
23
|
+
};
|
|
24
|
+
this.viewPortOrientationChanged = () => {
|
|
25
|
+
this.orientationChanged = true;
|
|
26
|
+
this.viewPortChanged();
|
|
27
|
+
};
|
|
28
|
+
this.setPopoverAPICSSProperties = async () => {
|
|
29
|
+
var _a, _b, _c, _d, _e, _f;
|
|
30
|
+
const { controlElement, containerElement, currentDirection, isModule, align } = this;
|
|
31
|
+
const { top: controlTop, bottom: controlBottom, left: controlLeft, right: controlRight, } = (_b = (_a = controlElement === null || controlElement === void 0 ? void 0 : controlElement.getBoundingClientRect) === null || _a === void 0 ? void 0 : _a.call(controlElement)) !== null && _b !== void 0 ? _b : {
|
|
32
|
+
top: 0,
|
|
33
|
+
bottom: 0,
|
|
34
|
+
left: 0,
|
|
35
|
+
right: 0,
|
|
36
|
+
};
|
|
37
|
+
const popoverLeft = controlLeft;
|
|
38
|
+
const popoverRight = ((_c = window === null || window === void 0 ? void 0 : window.visualViewport) === null || _c === void 0 ? void 0 : _c.width) - controlRight;
|
|
39
|
+
if (align === 'right') {
|
|
40
|
+
containerElement.style.setProperty('--comp-pop-right', `${popoverRight - window.scrollX}px`);
|
|
41
|
+
containerElement.style.setProperty('--comp-pop-left', 'unset');
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
containerElement.style.setProperty('--comp-pop-left', `${popoverLeft + window.scrollX}px`);
|
|
45
|
+
containerElement.style.setProperty('--comp-pop-right', 'unset');
|
|
46
|
+
}
|
|
47
|
+
if (this.block)
|
|
48
|
+
containerElement.style.setProperty('--comp-pop-width', `${(controlElement === null || controlElement === void 0 ? void 0 : controlElement.offsetWidth) || 0}px`);
|
|
49
|
+
if (currentDirection === 'up') {
|
|
50
|
+
if (isModule) {
|
|
51
|
+
containerElement.style.setProperty('--comp-pop-bottom', `${window.innerHeight - controlTop}px`);
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
containerElement.style.setProperty('--comp-pop-bottom', `${window.innerHeight - controlTop - ((_d = window === null || window === void 0 ? void 0 : window.visualViewport) === null || _d === void 0 ? void 0 : _d.offsetTop) - window.scrollY}px`);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
if (currentDirection === 'down') {
|
|
58
|
+
if (isModule) {
|
|
59
|
+
containerElement.style.setProperty('--comp-pop-top', `${controlBottom}px`);
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
containerElement.style.setProperty('--comp-pop-top', `${controlBottom + ((_f = (_e = window === null || window === void 0 ? void 0 : window.visualViewport) === null || _e === void 0 ? void 0 : _e.offsetTop) !== null && _f !== void 0 ? _f : 0) + window.scrollY}px`);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
// Wait for one paint to prevent layout thrashing
|
|
66
|
+
await waitForNextPaint();
|
|
67
|
+
containerElement.style.setProperty('--comp-pop-opacity', '1');
|
|
68
|
+
};
|
|
16
69
|
this.setAbsoluteCSSProperties = async () => {
|
|
17
70
|
const { controlElement, containerElement, currentDirection, align } = this;
|
|
18
71
|
if (align === 'right') {
|
|
@@ -37,83 +90,46 @@ export class Q2Popover {
|
|
|
37
90
|
await waitForNextPaint();
|
|
38
91
|
containerElement.style.setProperty('--comp-pop-opacity', '1');
|
|
39
92
|
};
|
|
40
|
-
this.
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
const { top: controlTop, bottom: controlBottom, left: controlLeft, right: controlRight, } = (_b = (_a = controlElement === null || controlElement === void 0 ? void 0 : controlElement.getBoundingClientRect) === null || _a === void 0 ? void 0 : _a.call(controlElement)) !== null && _b !== void 0 ? _b : {
|
|
44
|
-
top: 0,
|
|
45
|
-
bottom: 0,
|
|
46
|
-
left: 0,
|
|
47
|
-
right: 0,
|
|
48
|
-
};
|
|
49
|
-
const popoverLeft = controlLeft - rootElementRect.left;
|
|
50
|
-
if (this.block)
|
|
51
|
-
containerElement.style.setProperty('--comp-pop-width', `${controlElement.offsetWidth || 0}px`);
|
|
52
|
-
containerElement.style.setProperty('--comp-pop-left', `${popoverLeft}px`);
|
|
53
|
-
containerElement.style.setProperty('--comp-pop-right', `${rootElementRect.width + rootElementRect.left - controlRight}px`);
|
|
54
|
-
if (currentDirection === 'up') {
|
|
55
|
-
containerElement.style.setProperty('--comp-pop-bottom', `${rootElementRect.height + rootElementRect.top - controlTop}px`);
|
|
56
|
-
}
|
|
57
|
-
if (currentDirection === 'down') {
|
|
58
|
-
containerElement.style.setProperty('--comp-pop-top', `${controlBottom - rootElementRect.top}px`);
|
|
59
|
-
}
|
|
60
|
-
// Wait for one paint to prevent layout thrashing
|
|
61
|
-
await waitForNextPaint();
|
|
62
|
-
containerElement.style.setProperty('--comp-pop-opacity', '1');
|
|
63
|
-
};
|
|
64
|
-
this.viewPortChanged = () => {
|
|
65
|
-
if (!this.open)
|
|
66
|
-
return;
|
|
67
|
-
this.determinePopDirection();
|
|
68
|
-
};
|
|
69
|
-
this.viewPortOrientationChanged = () => {
|
|
70
|
-
this.orientationChanged = true;
|
|
71
|
-
this.viewPortChanged();
|
|
72
|
-
};
|
|
73
|
-
this.currentDirection = undefined;
|
|
74
|
-
this.show = false;
|
|
75
|
-
this.align = undefined;
|
|
93
|
+
this.direction = undefined;
|
|
94
|
+
this.align = 'left';
|
|
95
|
+
this.open = undefined;
|
|
76
96
|
this.block = undefined;
|
|
77
97
|
this.controlElement = undefined;
|
|
78
|
-
this.direction = undefined;
|
|
79
|
-
this.minHeight = undefined;
|
|
80
98
|
this.mode = null;
|
|
81
|
-
this.
|
|
99
|
+
this.minHeight = undefined;
|
|
100
|
+
this.currentDirection = undefined;
|
|
101
|
+
this.show = false;
|
|
82
102
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
103
|
+
/// Lifecycle hooks ///
|
|
104
|
+
componentWillLoad() {
|
|
105
|
+
if (!this.supportsPopoverAPI) {
|
|
106
|
+
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.');
|
|
107
|
+
this.mode = 'legacy';
|
|
108
|
+
}
|
|
87
109
|
}
|
|
88
110
|
componentDidLoad() {
|
|
89
111
|
this.handleMinHeight();
|
|
112
|
+
if (this.supportsPopoverAPI)
|
|
113
|
+
this.containerElement.addEventListener('toggle', this.handlePopoverToggleEvent);
|
|
90
114
|
if (this.open)
|
|
91
115
|
this.determinePopDirection();
|
|
92
116
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
this.open = open;
|
|
100
|
-
event.stopPropagation();
|
|
101
|
-
}
|
|
102
|
-
// #endregion
|
|
103
|
-
// #region Public Methods API
|
|
104
|
-
async scrollContainerTo(options) {
|
|
105
|
-
this.containerElement.scrollTo(options);
|
|
117
|
+
disconnectedCallback() {
|
|
118
|
+
this.removeViewportListeners();
|
|
119
|
+
this.containerElement.removeEventListener('toggle', this.handlePopoverToggleEvent);
|
|
120
|
+
this.containerElement = null;
|
|
121
|
+
this.contentElement = null;
|
|
122
|
+
this.controlElement = null;
|
|
106
123
|
}
|
|
124
|
+
/// Methods ///
|
|
107
125
|
async toggle() {
|
|
108
126
|
this.open = !this.open;
|
|
109
127
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
minHeightProvided() {
|
|
113
|
-
this.handleMinHeight();
|
|
128
|
+
async scrollContainerTo(options) {
|
|
129
|
+
this.containerElement.scrollTo(options);
|
|
114
130
|
}
|
|
131
|
+
/// Watchers ///
|
|
115
132
|
async openChanged(open) {
|
|
116
|
-
this.setRootElement();
|
|
117
133
|
this.popoverStateChanged.emit({ open });
|
|
118
134
|
if (open) {
|
|
119
135
|
this.addViewportListeners();
|
|
@@ -122,14 +138,29 @@ export class Q2Popover {
|
|
|
122
138
|
else {
|
|
123
139
|
this.removeViewportListeners();
|
|
124
140
|
this.currentDirection = undefined;
|
|
125
|
-
this.
|
|
141
|
+
if (this.mode === 'legacy' || !this.supportsPopoverAPI) {
|
|
142
|
+
this.show = false;
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
this.containerElement.hidePopover();
|
|
146
|
+
}
|
|
126
147
|
await waitForNextPaint();
|
|
127
148
|
this.clearCSSProperties();
|
|
128
149
|
}
|
|
129
150
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
151
|
+
minHeightProvided() {
|
|
152
|
+
this.handleMinHeight();
|
|
153
|
+
}
|
|
154
|
+
/// Listeners ///
|
|
155
|
+
popoverStateHandler(event) {
|
|
156
|
+
const { detail: { open }, } = event;
|
|
157
|
+
if (open === this.open)
|
|
158
|
+
return;
|
|
159
|
+
this.open = open;
|
|
160
|
+
event.stopPropagation();
|
|
161
|
+
}
|
|
162
|
+
/// Getters ///
|
|
163
|
+
get providedDirection() {
|
|
133
164
|
const { direction } = this;
|
|
134
165
|
switch (direction) {
|
|
135
166
|
case 'up':
|
|
@@ -145,14 +176,24 @@ export class Q2Popover {
|
|
|
145
176
|
const hasPlatformDimensions = Object.keys((_b = (_a = window.Tecton) === null || _a === void 0 ? void 0 : _a.platformDimensions) !== null && _b !== void 0 ? _b : {}).length > 0;
|
|
146
177
|
return isIframe && hasPlatformDimensions;
|
|
147
178
|
}
|
|
179
|
+
get supportsPopoverAPI() {
|
|
180
|
+
return Object.hasOwn(HTMLElement.prototype, 'popover');
|
|
181
|
+
}
|
|
148
182
|
addViewportListeners() {
|
|
149
183
|
var _a;
|
|
150
184
|
window.addEventListener('resize', this.viewPortOrientationChanged);
|
|
151
|
-
|
|
185
|
+
visualViewport === null || visualViewport === void 0 ? void 0 : visualViewport.addEventListener('resize', this.viewPortChanged);
|
|
152
186
|
window.addEventListener('scroll', this.viewPortChanged, { passive: true, capture: true });
|
|
153
|
-
(_a = screen === null || screen === void 0 ? void 0 : screen.orientation) === null || _a === void 0 ? void 0 : _a.addEventListener('
|
|
187
|
+
(_a = screen === null || screen === void 0 ? void 0 : screen.orientation) === null || _a === void 0 ? void 0 : _a.addEventListener('orientationchange', this.viewPortOrientationChanged);
|
|
154
188
|
window.addEventListener('orientationchange', this.viewPortOrientationChanged);
|
|
155
|
-
|
|
189
|
+
}
|
|
190
|
+
removeViewportListeners() {
|
|
191
|
+
var _a;
|
|
192
|
+
window.removeEventListener('resize', this.viewPortOrientationChanged);
|
|
193
|
+
visualViewport === null || visualViewport === void 0 ? void 0 : visualViewport.removeEventListener('resize', this.viewPortChanged);
|
|
194
|
+
window.removeEventListener('scroll', this.viewPortChanged, { capture: true });
|
|
195
|
+
(_a = screen === null || screen === void 0 ? void 0 : screen.orientation) === null || _a === void 0 ? void 0 : _a.removeEventListener('orientationchange', this.viewPortOrientationChanged);
|
|
196
|
+
window.removeEventListener('orientationchange', this.viewPortOrientationChanged);
|
|
156
197
|
}
|
|
157
198
|
clearCSSProperties() {
|
|
158
199
|
this.containerElement.style.removeProperty('--comp-pop-max-height');
|
|
@@ -163,9 +204,25 @@ export class Q2Popover {
|
|
|
163
204
|
this.containerElement.style.removeProperty('--comp-pop-width');
|
|
164
205
|
this.containerElement.style.removeProperty('--comp-pop-opacity');
|
|
165
206
|
}
|
|
207
|
+
setDirectionAndShow(direction) {
|
|
208
|
+
// Due to some runtime inconsistency across devices/browsers we need to add one more check here because the
|
|
209
|
+
// popover can be closed between the time the popover is opened and the time the direction is determined
|
|
210
|
+
const isOpen = this.open;
|
|
211
|
+
if (!isOpen)
|
|
212
|
+
return;
|
|
213
|
+
this.currentDirection = direction;
|
|
214
|
+
if (this.mode === 'legacy' || !this.supportsPopoverAPI) {
|
|
215
|
+
this.show = true;
|
|
216
|
+
this.setAbsoluteCSSProperties();
|
|
217
|
+
}
|
|
218
|
+
else {
|
|
219
|
+
this.setPopoverAPICSSProperties();
|
|
220
|
+
this.containerElement.showPopover();
|
|
221
|
+
}
|
|
222
|
+
}
|
|
166
223
|
async determinePopDirection() {
|
|
167
224
|
var _a, _b, _c;
|
|
168
|
-
const { containerElement, controlElement,
|
|
225
|
+
const { containerElement, controlElement, providedDirection, displayBuffer } = this;
|
|
169
226
|
if (containerElement)
|
|
170
227
|
containerElement.style.maxHeight = null;
|
|
171
228
|
await waitForNextPaint();
|
|
@@ -200,7 +257,7 @@ export class Q2Popover {
|
|
|
200
257
|
const shouldUpdateMaxHeight = !containerElement.style.getPropertyValue('--comp-pop-max-height') || this.orientationChanged;
|
|
201
258
|
// we do not want to constantly update the max-height after an orientation change, so we switch this back to false
|
|
202
259
|
this.orientationChanged = false;
|
|
203
|
-
const currentOrDetermineDirection = this.currentDirection ||
|
|
260
|
+
const currentOrDetermineDirection = this.currentDirection || providedDirection || directionWithMostSpace;
|
|
204
261
|
switch (currentOrDetermineDirection) {
|
|
205
262
|
case 'up':
|
|
206
263
|
if (shouldUpdateMaxHeight) {
|
|
@@ -218,75 +275,16 @@ export class Q2Popover {
|
|
|
218
275
|
break;
|
|
219
276
|
}
|
|
220
277
|
}
|
|
221
|
-
|
|
222
|
-
var _a;
|
|
223
|
-
window.removeEventListener('resize', this.viewPortOrientationChanged);
|
|
224
|
-
// #region remove when Popover API is supported in iOS
|
|
225
|
-
window.removeEventListener('scroll', this.viewPortChanged);
|
|
226
|
-
(_a = screen === null || screen === void 0 ? void 0 : screen.orientation) === null || _a === void 0 ? void 0 : _a.removeEventListener('orientationchange', this.viewPortOrientationChanged);
|
|
227
|
-
window.removeEventListener('orientationchange', this.viewPortOrientationChanged);
|
|
228
|
-
// #endregion
|
|
229
|
-
}
|
|
230
|
-
setDirectionAndShow(direction) {
|
|
231
|
-
this.setRootElement();
|
|
232
|
-
// Due to some runtime inconsistency across devices/browsers we need to add one more check here because the
|
|
233
|
-
// popover can be closed between the time the popover is opened and the time the direction is determined
|
|
234
|
-
const isOpen = this.open;
|
|
235
|
-
if (!isOpen)
|
|
236
|
-
return;
|
|
237
|
-
this.currentDirection = direction;
|
|
238
|
-
this.show = true;
|
|
239
|
-
if (this.mode === 'legacy') {
|
|
240
|
-
this.setAbsoluteCSSProperties();
|
|
241
|
-
}
|
|
242
|
-
else {
|
|
243
|
-
this.setFixedCSSProperties();
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
setRootElement() {
|
|
247
|
-
let currentElement = this.hostElement;
|
|
248
|
-
while (currentElement && currentElement !== document.documentElement) {
|
|
249
|
-
const computedStyle = window.getComputedStyle(currentElement);
|
|
250
|
-
// Check if the element has any styles applied that create a new containg block
|
|
251
|
-
if (computedStyle.transform !== 'none' ||
|
|
252
|
-
computedStyle.filter !== 'none' ||
|
|
253
|
-
computedStyle.perspective !== 'none' ||
|
|
254
|
-
computedStyle.containerType !== 'normal' ||
|
|
255
|
-
['transform', 'perspective', 'filter'].includes(computedStyle.willChange) ||
|
|
256
|
-
['layout', 'paint', 'strict', 'content'].includes(computedStyle.contain)) {
|
|
257
|
-
this.rootElementRect = currentElement.getBoundingClientRect();
|
|
258
|
-
return;
|
|
259
|
-
}
|
|
260
|
-
const rootNode = currentElement.getRootNode();
|
|
261
|
-
const isRootNodeWebComponent = typeof ShadowRoot !== 'undefined' &&
|
|
262
|
-
rootNode instanceof ShadowRoot &&
|
|
263
|
-
rootNode.host instanceof HTMLElement;
|
|
264
|
-
if (isRootNodeWebComponent) {
|
|
265
|
-
currentElement = rootNode.host;
|
|
266
|
-
}
|
|
267
|
-
else {
|
|
268
|
-
currentElement = currentElement.parentElement;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
// Return the document's bounding rect if no element is found
|
|
272
|
-
this.rootElementRect = {
|
|
273
|
-
top: 0,
|
|
274
|
-
bottom: 0,
|
|
275
|
-
left: 0,
|
|
276
|
-
right: 0,
|
|
277
|
-
height: window.visualViewport.height,
|
|
278
|
-
width: window.visualViewport.width,
|
|
279
|
-
};
|
|
280
|
-
}
|
|
281
|
-
// #endregion
|
|
282
|
-
// #region Render Methods
|
|
278
|
+
/// DOM ///
|
|
283
279
|
render() {
|
|
284
|
-
const containerClasses = ['container', this.currentDirection];
|
|
280
|
+
const containerClasses = ['container', this.currentDirection, this.align];
|
|
285
281
|
if (this.show)
|
|
286
282
|
containerClasses.push('show');
|
|
283
|
+
if (this.block)
|
|
284
|
+
containerClasses.push('block');
|
|
287
285
|
if (this.mode === 'legacy')
|
|
288
286
|
containerClasses.push('legacy');
|
|
289
|
-
return (h("div", { key: '
|
|
287
|
+
return (h("div", { key: '764cbfd7950935e9d4a58d4d84ef8b54bab17da6', ref: el => (this.containerElement = el), class: containerClasses.join(' '), "test-id": "outerContainer", tabIndex: -1, popover: "auto" }, h("div", { key: '985dc98310a6f1a9ded9f4cafd4d0228eea36bea', ref: el => (this.contentElement = el), class: "content" }, h("slot", { key: '06f1c826d34be8a17a440ef21e1b51afc2d374b1' }))));
|
|
290
288
|
}
|
|
291
289
|
static get is() { return "q2-popover"; }
|
|
292
290
|
static get encapsulation() { return "shadow"; }
|
|
@@ -302,6 +300,23 @@ export class Q2Popover {
|
|
|
302
300
|
}
|
|
303
301
|
static get properties() {
|
|
304
302
|
return {
|
|
303
|
+
"direction": {
|
|
304
|
+
"type": "string",
|
|
305
|
+
"mutable": false,
|
|
306
|
+
"complexType": {
|
|
307
|
+
"original": "'up' | 'down'",
|
|
308
|
+
"resolved": "\"down\" | \"up\"",
|
|
309
|
+
"references": {}
|
|
310
|
+
},
|
|
311
|
+
"required": false,
|
|
312
|
+
"optional": false,
|
|
313
|
+
"docs": {
|
|
314
|
+
"tags": [],
|
|
315
|
+
"text": "Force the direction of the popover when it opens.\nIf no value is passed, the component will auto-detect the direction based on available space."
|
|
316
|
+
},
|
|
317
|
+
"attribute": "direction",
|
|
318
|
+
"reflect": true
|
|
319
|
+
},
|
|
305
320
|
"align": {
|
|
306
321
|
"type": "string",
|
|
307
322
|
"mutable": false,
|
|
@@ -317,6 +332,24 @@ export class Q2Popover {
|
|
|
317
332
|
"text": "Aligns the popover to the left or right side of the control element."
|
|
318
333
|
},
|
|
319
334
|
"attribute": "align",
|
|
335
|
+
"reflect": true,
|
|
336
|
+
"defaultValue": "'left'"
|
|
337
|
+
},
|
|
338
|
+
"open": {
|
|
339
|
+
"type": "boolean",
|
|
340
|
+
"mutable": true,
|
|
341
|
+
"complexType": {
|
|
342
|
+
"original": "boolean",
|
|
343
|
+
"resolved": "boolean",
|
|
344
|
+
"references": {}
|
|
345
|
+
},
|
|
346
|
+
"required": false,
|
|
347
|
+
"optional": false,
|
|
348
|
+
"docs": {
|
|
349
|
+
"tags": [],
|
|
350
|
+
"text": "Controls whether the popover is open or closed."
|
|
351
|
+
},
|
|
352
|
+
"attribute": "open",
|
|
320
353
|
"reflect": true
|
|
321
354
|
},
|
|
322
355
|
"block": {
|
|
@@ -356,22 +389,23 @@ export class Q2Popover {
|
|
|
356
389
|
"text": "The element that controls the popover's behavior."
|
|
357
390
|
}
|
|
358
391
|
},
|
|
359
|
-
"
|
|
392
|
+
"mode": {
|
|
360
393
|
"type": "string",
|
|
361
394
|
"mutable": false,
|
|
362
395
|
"complexType": {
|
|
363
|
-
"original": "'
|
|
364
|
-
"resolved": "\"
|
|
396
|
+
"original": "'legacy'",
|
|
397
|
+
"resolved": "\"legacy\"",
|
|
365
398
|
"references": {}
|
|
366
399
|
},
|
|
367
400
|
"required": false,
|
|
368
401
|
"optional": false,
|
|
369
402
|
"docs": {
|
|
370
403
|
"tags": [],
|
|
371
|
-
"text": "
|
|
404
|
+
"text": ""
|
|
372
405
|
},
|
|
373
|
-
"attribute": "
|
|
374
|
-
"reflect":
|
|
406
|
+
"attribute": "mode",
|
|
407
|
+
"reflect": false,
|
|
408
|
+
"defaultValue": "null"
|
|
375
409
|
},
|
|
376
410
|
"minHeight": {
|
|
377
411
|
"type": "number",
|
|
@@ -392,41 +426,6 @@ export class Q2Popover {
|
|
|
392
426
|
},
|
|
393
427
|
"attribute": "min-height",
|
|
394
428
|
"reflect": false
|
|
395
|
-
},
|
|
396
|
-
"mode": {
|
|
397
|
-
"type": "string",
|
|
398
|
-
"mutable": false,
|
|
399
|
-
"complexType": {
|
|
400
|
-
"original": "'legacy'",
|
|
401
|
-
"resolved": "\"legacy\"",
|
|
402
|
-
"references": {}
|
|
403
|
-
},
|
|
404
|
-
"required": false,
|
|
405
|
-
"optional": false,
|
|
406
|
-
"docs": {
|
|
407
|
-
"tags": [],
|
|
408
|
-
"text": ""
|
|
409
|
-
},
|
|
410
|
-
"attribute": "mode",
|
|
411
|
-
"reflect": false,
|
|
412
|
-
"defaultValue": "null"
|
|
413
|
-
},
|
|
414
|
-
"open": {
|
|
415
|
-
"type": "boolean",
|
|
416
|
-
"mutable": true,
|
|
417
|
-
"complexType": {
|
|
418
|
-
"original": "boolean",
|
|
419
|
-
"resolved": "boolean",
|
|
420
|
-
"references": {}
|
|
421
|
-
},
|
|
422
|
-
"required": false,
|
|
423
|
-
"optional": false,
|
|
424
|
-
"docs": {
|
|
425
|
-
"tags": [],
|
|
426
|
-
"text": "Controls whether the popover is open or closed."
|
|
427
|
-
},
|
|
428
|
-
"attribute": "open",
|
|
429
|
-
"reflect": true
|
|
430
429
|
}
|
|
431
430
|
};
|
|
432
431
|
}
|
|
@@ -456,22 +455,14 @@ export class Q2Popover {
|
|
|
456
455
|
}
|
|
457
456
|
static get methods() {
|
|
458
457
|
return {
|
|
459
|
-
"
|
|
458
|
+
"toggle": {
|
|
460
459
|
"complexType": {
|
|
461
|
-
"signature": "(
|
|
462
|
-
"parameters": [
|
|
463
|
-
"name": "options",
|
|
464
|
-
"type": "ScrollToOptions",
|
|
465
|
-
"docs": ""
|
|
466
|
-
}],
|
|
460
|
+
"signature": "() => Promise<void>",
|
|
461
|
+
"parameters": [],
|
|
467
462
|
"references": {
|
|
468
463
|
"Promise": {
|
|
469
464
|
"location": "global",
|
|
470
465
|
"id": "global::Promise"
|
|
471
|
-
},
|
|
472
|
-
"ScrollToOptions": {
|
|
473
|
-
"location": "global",
|
|
474
|
-
"id": "global::ScrollToOptions"
|
|
475
466
|
}
|
|
476
467
|
},
|
|
477
468
|
"return": "Promise<void>"
|
|
@@ -481,14 +472,22 @@ export class Q2Popover {
|
|
|
481
472
|
"tags": []
|
|
482
473
|
}
|
|
483
474
|
},
|
|
484
|
-
"
|
|
475
|
+
"scrollContainerTo": {
|
|
485
476
|
"complexType": {
|
|
486
|
-
"signature": "() => Promise<void>",
|
|
487
|
-
"parameters": [
|
|
477
|
+
"signature": "(options: ScrollToOptions) => Promise<void>",
|
|
478
|
+
"parameters": [{
|
|
479
|
+
"name": "options",
|
|
480
|
+
"type": "ScrollToOptions",
|
|
481
|
+
"docs": ""
|
|
482
|
+
}],
|
|
488
483
|
"references": {
|
|
489
484
|
"Promise": {
|
|
490
485
|
"location": "global",
|
|
491
486
|
"id": "global::Promise"
|
|
487
|
+
},
|
|
488
|
+
"ScrollToOptions": {
|
|
489
|
+
"location": "global",
|
|
490
|
+
"id": "global::ScrollToOptions"
|
|
492
491
|
}
|
|
493
492
|
},
|
|
494
493
|
"return": "Promise<void>"
|
|
@@ -503,11 +502,11 @@ export class Q2Popover {
|
|
|
503
502
|
static get elementRef() { return "hostElement"; }
|
|
504
503
|
static get watchers() {
|
|
505
504
|
return [{
|
|
506
|
-
"propName": "minHeight",
|
|
507
|
-
"methodName": "minHeightProvided"
|
|
508
|
-
}, {
|
|
509
505
|
"propName": "open",
|
|
510
506
|
"methodName": "openChanged"
|
|
507
|
+
}, {
|
|
508
|
+
"propName": "minHeight",
|
|
509
|
+
"methodName": "minHeightProvided"
|
|
511
510
|
}];
|
|
512
511
|
}
|
|
513
512
|
static get listeners() {
|