q2-tecton-elements 1.56.3 → 1.56.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle-report.json +262 -214
- package/dist/cjs/{index-99667782.js → index-ac3330d8.js} +33 -5
- package/dist/cjs/index-ac3330d8.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 +4 -4
- 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 +27 -22
- package/dist/cjs/q2-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-editable-field.cjs.entry.js +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-form.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 +1 -1
- package/dist/cjs/q2-message.cjs.entry.js +2 -2
- package/dist/cjs/q2-modal.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_2.cjs.entry.js +63 -71
- package/dist/cjs/q2-option-list_2.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-option.cjs.entry.js +1 -1
- 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 +122 -12
- 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 +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/components/q2-action-group/q2-action-group.js +1 -1
- 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-month-picker.js +2 -2
- 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-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-currency/q2-currency.js +1 -1
- package/dist/collection/components/q2-detail/q2-detail.js +1 -1
- package/dist/collection/components/q2-dropdown/q2-dropdown.js +27 -21
- package/dist/collection/components/q2-dropdown/q2-dropdown.js.map +1 -1
- package/dist/collection/components/q2-dropdown/test/q2-dropdown-test.e2e.js +34 -32
- package/dist/collection/components/q2-dropdown/test/q2-dropdown-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-example/q2-example.js +1 -1
- package/dist/collection/components/q2-form/q2-form.js +1 -1
- package/dist/collection/components/q2-formatted-text/q2-formatted-text.js +1 -1
- package/dist/collection/components/q2-input/q2-input.js +1 -1
- 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-message/q2-message.js +1 -1
- package/dist/collection/components/q2-modal/q2-modal.js +1 -1
- package/dist/collection/components/q2-optgroup/q2-optgroup.js +1 -1
- package/dist/collection/components/q2-pagination/q2-pagination.js +3 -3
- 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-popover/q2-popover.css +18 -10
- package/dist/collection/components/q2-popover/q2-popover.js +64 -71
- 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 +902 -511
- package/dist/collection/components/q2-popover/test/q2-popover-test.spec.js.map +1 -1
- package/dist/collection/components/q2-relative-time/q2-relative-time.js +1 -1
- package/dist/collection/components/q2-resize-observer/q2-resize-observer.js +1 -1
- package/dist/collection/components/q2-section/q2-section.js +2 -2
- package/dist/collection/components/q2-select/q2-select.js +137 -15
- package/dist/collection/components/q2-select/q2-select.js.map +1 -1
- package/dist/collection/components/q2-select/test/q2-select-test.spec.js +467 -0
- package/dist/collection/components/q2-select/test/q2-select-test.spec.js.map +1 -1
- package/dist/collection/components/q2-stepper/q2-stepper.js +1 -1
- 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-tag/test/q2-tag-test.e2e.js +5 -0
- package/dist/collection/components/q2-tag/test/q2-tag-test.e2e.js.map +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/collection/utils/index.js +34 -0
- package/dist/collection/utils/index.js.map +1 -1
- package/dist/components/index2.js +32 -4
- package/dist/components/index2.js.map +1 -1
- package/dist/components/q2-action-group2.js +1 -1
- package/dist/components/q2-action-sheet.js +1 -1
- package/dist/components/q2-avatar2.js +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 +26 -21
- package/dist/components/q2-dropdown.js.map +1 -1
- package/dist/components/q2-example.js +1 -1
- package/dist/components/q2-form.js +1 -1
- package/dist/components/q2-formatted-text.js +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-message2.js +1 -1
- package/dist/components/q2-modal.js +1 -1
- package/dist/components/q2-month-picker.js +2 -2
- package/dist/components/q2-optgroup2.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 -71
- 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 +125 -15
- 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 +1 -1
- package/dist/components/tecton-tab-pane.js +2 -2
- package/dist/esm/{index-c215e8ef.js → index-e4c2bfff.js} +33 -5
- package/dist/esm/index-e4c2bfff.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 +4 -4
- 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 +27 -22
- package/dist/esm/q2-dropdown.entry.js.map +1 -1
- package/dist/esm/q2-editable-field.entry.js +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-form.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 +1 -1
- package/dist/esm/q2-message.entry.js +2 -2
- package/dist/esm/q2-modal.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_2.entry.js +63 -71
- package/dist/esm/q2-option-list_2.entry.js.map +1 -1
- package/dist/esm/q2-option.entry.js +1 -1
- 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 +123 -13
- 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 +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 +11 -0
- package/dist/jest.setup.js.map +1 -1
- package/dist/q2-tecton-elements/{index-c215e8ef.js → index-e4c2bfff.js} +71 -50
- package/dist/{esm/index-c215e8ef.js.map → q2-tecton-elements/index-e4c2bfff.js.map} +1 -1
- package/dist/q2-tecton-elements/q2-action-group.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-action-sheet.entry.js +9 -9
- package/dist/q2-tecton-elements/q2-avatar.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-badge_7.entry.js +42 -42
- 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 +80 -80
- package/dist/q2-tecton-elements/q2-chart-donut.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-checkbox.entry.js +4 -4
- 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 +81 -75
- package/dist/q2-tecton-elements/q2-dropdown.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-editable-field.entry.js +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-form.entry.js +10 -10
- 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 +1 -1
- package/dist/q2-tecton-elements/q2-message.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-modal.entry.js +24 -24
- package/dist/q2-tecton-elements/q2-month-picker.entry.js +67 -67
- package/dist/q2-tecton-elements/q2-optgroup.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-option-list_2.entry.js +248 -248
- package/dist/q2-tecton-elements/q2-option-list_2.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-option.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-pagination.entry.js +42 -42
- 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 +23 -23
- package/dist/q2-tecton-elements/q2-select.entry.js +186 -89
- 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 +5 -5
- package/dist/q2-tecton-elements/q2-stepper.entry.js +21 -21
- package/dist/q2-tecton-elements/q2-tag.entry.js +6 -6
- 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 +3 -3
- 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 +9 -0
- package/dist/types/components/q2-dropdown/q2-dropdown.d.ts +6 -4
- package/dist/types/components/q2-popover/q2-popover.d.ts +4 -4
- package/dist/types/components/q2-select/q2-select.d.ts +22 -0
- package/dist/types/utils/index.d.ts +2 -0
- package/package.json +3 -3
- package/dist/cjs/index-99667782.js.map +0 -1
- package/dist/q2-tecton-elements/index-c215e8ef.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement, c as createEvent } from './index-7a5365e2.js';
|
|
2
|
-
import { o as overrideFocus, e as hasSlotContent } from './index-
|
|
2
|
+
import { o as overrideFocus, e as hasSlotContent } from './index-e4c2bfff.js';
|
|
3
3
|
|
|
4
4
|
const q2ItemCss = "*{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}*{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}:host{display:block}:host .item{--comp-border-radius:var(--tct-item-border-radius, var(--app-border-radius-0, 0))}:host([clickable]){cursor:pointer;--comp-background:var(--tct-btn-primary-background, var(--tct-btn-primary-bg, var(--t-a11y-active-gray-color-AA, #404040)))}:host([clickable]) .item{--comp-border-radius:var(--tct-item-border-radius, var(--app-border-radius-1, 4px));--comp-btn-tween:var(--tct-btn-tween, var(--t-btn-tween, var(--tct-tween-1, var(--app-tween-1, 0.2s ease))));--comp-btn-fallback-box-shadow:0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);--comp-hover-box-shadow:var(--tct-btn-primary-box-shadow, var(--comp-btn-fallback-box-shadow));--comp-active-box-shadow:var(--tct-btn-primary-active-background, #0063a0);--comp-font-color:var(--tct-btn-primary-font-color, var(--app-white, #ffffff));--comp-hover-outer-ring-color:var(--tct-btn-primary-hover-outer-ring-color, var(--comp-background));--comp-hover-inner-ring-color:var(--tct-btn-primary-hover-inner-ring-color, var(--comp-font-color));--comp-hover-box-shadow:0 0 0 2px var(--comp-hover-inner-ring-color),\n 0 0 0 4px var(--comp-hover-outer-ring-color)}:host([clickable]) .item:hover{box-shadow:var(--comp-hover-box-shadow)}:host([clickable]) .item:active{box-shadow:var(--comp-active-box-shadow)}:host([clickable]) .item:focus-visible{box-shadow:var(--const-double-focus-ring)}.action{--tct-btn-icon-height:var(--tct-item-action-icon-height, var(--app-scale-6x, 30px));--tct-btn-icon-width:var(--tct-item-action-icon-width, var(--app-scale-6x, 30px));--tct-icon-size:var(--tct-item-action-icon-size, var(--app-scale-6x, 30px));--tct-radio-label-hidden-columns:18px;--tct-radio-label-margin-right:0;--tct-radio-margin:0;align-items:center;display:flex;grid-row:1;justify-content:center}.action-no-bullet{grid-column:2}.body{color:var(--tct-item-body-color, var(--t-textA, #747474));font-size:var(--tct-item-body-font-size, var(--app-font-size, 14px));font-weight:var(--tct-item-body-font-weight, 400)}.bullet{--tct-avatar-fallback-height:var(--tct-item-avatar-height, var(--app-scale-7x, 35px));--tct-avatar-fallback-width:var(--tct-item-avatar-width, var(--app-scale-7x, 35px));--tct-avatar-height:var(--tct-item-avatar-height, var(--app-scale-7x, 35px));--tct-avatar-width:var(--tct-item-avatar-width, var(--app-scale-7x, 35px));grid-column:1;grid-row-start:1;grid-row-end:3;padding-top:var(--tct-item-bullet-padding-top, var(--app-scale-1x, 5px));text-align:center}.bullet-no-footer{grid-row-end:2}.footer{grid-column-start:2;grid-column-end:4;grid-row:2}.footer-no-action-nor-bullet{grid-column-start:1;grid-column-end:2}.footer-no-action{grid-column-start:2;grid-column-end:3}.footer-no-bullet{grid-column-start:1;grid-column-end:3}.header{color:var(--tct-item-header-color, var(--t-text, #4d4d4d));font-size:var(--tct-item-header-font-size, 16px);font-weight:var(--tct-item-header-font-weight, 600);line-height:var(--tct-item-header-line-height, 1.5)}.item{border:var(--tct-item-border);border-radius:var(--comp-border-radius);transition:var(--comp-btn-tween);transition-property:box-shadow;column-gap:var(--tct-item-horizontal-spacing, var(--app-scale-3x, 15px));display:grid;grid-template-columns:minmax(var(--app-scale-7x, 35px), auto) minmax(0, 1fr) minmax(var(--app-scale-5x, 25px), auto);grid-template-rows:auto auto;padding:var(--tct-item-padding, 0);row-gap:var(--tct-item-vertical-spacing, var(--app-scale-2x, 10px))}.item-no-action-nor-bullet{grid-template-columns:auto}.item-no-action{grid-template-columns:minmax(var(--app-scale-7x, 35px), auto) minmax(0, 1fr)}.item-no-footer{grid-template-rows:auto}.item-no-bullet{grid-template-columns:minmax(0, 1fr) minmax(var(--app-scale-5x, 25px), auto)}.main{grid-column:2;grid-row:1}.main-no-action-nor-bullet{grid-column:1}.main-no-bullet{grid-column:1}";
|
|
5
5
|
const Q2ItemStyle0 = q2ItemCss;
|
|
@@ -105,7 +105,7 @@ const Q2Item = class {
|
|
|
105
105
|
// #region Render Methods
|
|
106
106
|
render() {
|
|
107
107
|
const { clickable } = this;
|
|
108
|
-
return (h("div", { key: '
|
|
108
|
+
return (h("div", { key: '50dfa5bbda8a2e9e999e8d2f8802769f364d89b1', "test-id": "itemContainer", class: this.itemClasses, ref: el => (this.itemElement = el), role: clickable ? 'button' : undefined, tabIndex: clickable ? 0 : undefined }, this.hasBulletSlotContent && (h("div", { key: '1c26db2c974577f5fbbec8a01e6e9f4e9cef9f96', class: this.bulletClasses }, h("slot", { key: '91e7c3f7b1c8fc0d75fa33b4dca0c07e11257020', name: "bullet" }))), h("div", { key: '5942e7972b1bf3894e4854973b9f3a6667e578bf', class: this.mainClasses }, this.hasHeaderSlotContent && (h("div", { key: '21f2819f13d44e5ed8738e415c1e3d793fb75e44', class: "header" }, h("slot", { key: 'a6c8182d90972e7492ead940ae386fc1739209a7', name: "header" }))), this.hasBodySlotContent && (h("div", { key: '91fbced71976b927615b32e54a7b9f42261d0d0e', class: "body" }, h("slot", { key: 'cd989467616bc33970cd1e32477678855c32ff79', name: "body" })))), this.hasActionSlotContent && (h("div", { key: 'ff878148864e9c18365e820c1b47937de4d57750', class: this.actionClasses }, h("slot", { key: '5b03288fd354d4d00ae9b3339e22374288897ceb', name: "action" }))), this.hasFooterSlotContent && (h("div", { key: '986e46c47edfee86e61937902a94aa25463cf6f3', class: this.footerClasses }, h("slot", { key: '5fbbe5165bb9e9fc700e01082aca5d7319d1e448', name: "footer" })))));
|
|
109
109
|
}
|
|
110
110
|
get hostElement() { return getElement(this); }
|
|
111
111
|
};
|
|
@@ -234,7 +234,7 @@ const Q2List = class {
|
|
|
234
234
|
// #endregion
|
|
235
235
|
// #region Render Methods
|
|
236
236
|
render() {
|
|
237
|
-
return (h("div", { key: '
|
|
237
|
+
return (h("div", { key: 'b9a278c2835f8019f4ce77f3faad5245da4837be', class: this.listClasses, ref: el => (this.listElement = el) }, (this.hasFilterSlot || this.hasLabelContent) && (h("div", { key: '9b748a716d57f3aa8cd1f951dd6dc6431e8ad598', class: this.headerClasses }, h("div", { key: '1ccc3478d514a9a977351579b83286c33dd01721', class: "label" }, this.label), this.hasFilterSlot && h("slot", { key: '92220efb13353cf88f24adcc77bb9591b25bc94b', name: "filter" }))), h("div", { key: 'eacbad6f3cfe9b7c714771da194da02e480bf928', role: "list" }, h("slot", { key: 'f509ef608b8e016f1d22e93e66f8d10285dfad8f' }))));
|
|
238
238
|
}
|
|
239
239
|
get hostElement() { return getElement(this); }
|
|
240
240
|
};
|
|
@@ -102,7 +102,7 @@ const Q2Legend = class {
|
|
|
102
102
|
// #endregion
|
|
103
103
|
// #region Render Methods
|
|
104
104
|
render() {
|
|
105
|
-
return (h("click-elsewhere", { key: '
|
|
105
|
+
return (h("click-elsewhere", { key: 'f1b2cc98ce1049fdab0a64f1bf716060cc8658c2', onChange: () => this.onClickElsewhere(this) }, h("ul", { key: '9310fd8b724fb252b7c8f76147d2447d48d1d14b' }, this.dataWithClasses.map(item => (h("li", { class: "item" }, h("button", { "test-id": "item", "aria-label": `${item.name} ${this.formatValue(item.value)}`, class: item.classes, onClick: event => this.onClick(event, item), onMouseEnter: event => this.onMouseEnter(event, item), onMouseLeave: event => this.onMouseLeave(event, item) }, h("span", { "test-id": "itemColor", class: "item-color-indicator", style: { backgroundColor: item.color }, "aria-hidden": "true" }), h("span", { "test-id": "itemName", class: "item-name" }, item.name), h("span", { id: `item-${item.id}`, "test-id": "itemValue", class: "item-value" }, this.formatValue(item.value)))))))));
|
|
106
106
|
}
|
|
107
107
|
static get watchers() { return {
|
|
108
108
|
"hoveredItemId": ["watchHoveredItemId"],
|
package/dist/esm/q2-loc.entry.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-7a5365e2.js';
|
|
2
|
-
import { o as overrideFocus, i as isEventFromElement, n as nextPaint, t as isFirefox, l as loc } from './index-
|
|
2
|
+
import { o as overrideFocus, i as isEventFromElement, n as nextPaint, t as isFirefox, l as loc } from './index-e4c2bfff.js';
|
|
3
3
|
|
|
4
4
|
const q2MessageCss = "*{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}:host{display:block}:host([hidden]){display:none}.message{border-left-width:var(--tct-message-bar-width, var(--t-message-bar-width, var(--app-scale-1x, 5px)));border-left-style:solid;--comp-line-height:var(--tct-message-line-height, var(--t-message-line-height, var(--app-line-height, 1.428571429em)));display:grid;gap:var(--tct-scale-1, var(--app-scale-1x, 5px));align-items:flex-start;background:var(--tct-message-background, var(--tct-message-bg, var(--t-message-bg, var(--tct-gray-14, var(--t-gray-14, var(--tct-gray-l3, var(--app-gray-l3, #f2f2f2)))))));color:var(--tct-message-font-color, var(--t-message-font-color, inherit));box-shadow:var(--tct-message-box-shadow, var(--t-message-box-shadow, inherit));border-radius:var(--tct-message-border-radius, var(--t-message-border-radius, inherit))}.message:focus{box-shadow:var(--const-global-focus)}.message-icon{--comp-top-offset:calc(calc(var(--comp-line-height) - var(--comp-icon-size)) / 2);--tct-icon-size:var(--comp-icon-size);top:var(--comp-top-offset);margin-bottom:calc(var(--comp-top-offset) * -1)}.message-content{flex:1;line-height:var(--comp-line-height)}::slotted(ul){--comp-list-default-padding:0 0 0 var(--app-scale-3x, 15px);padding:var(--tct-message-list-padding, var(--comp-list-default-padding))}:host(:not([appearance])),:host([appearance=standard]){--comp-default-margin:var(--app-scale-3x, 5px) 0;margin:var(--tct-message-margin, var(--comp-default-margin))}:host(:not([appearance])) .message,:host([appearance=standard]) .message{--comp-icon-size:var(--tct-message-icon-size, var(--t-message-icon-size, 24px));--comp-padding:var(--tct-message-padding, var(--t-message-padding, var(--app-scale-3x, 15px)));grid-template-columns:var(--comp-icon-size) 1fr;padding:var(--comp-padding);padding-left:calc(var(--comp-padding) - var(--tct-scale-2, var(--app-scale-2x, 10px)));padding-bottom:calc(var(--comp-padding) - var(--tct-scale-1, var(--app-scale-1x, 5px)))}:host(:not([appearance])) ::slotted(ul),:host([appearance=standard]) ::slotted(ul){--comp-list-default-margin:var(--app-scale-3x, 15px) 0;margin:var(--tct-message-list-margin, var(--comp-list-default-margin))}:host([appearance=minimal]){margin:0}:host([appearance=minimal]) .message{padding:var(--tct-message-minimal-padding, var(--t-message-minimal-padding, var(--app-scale-2x, 10px)));grid-template-columns:1fr}:host([appearance=minimal]) ::slotted(ul){margin:var(--tct-scale-1, var(--app-scale-1x, 5px)) 0}:host(:not([type])) .message,:host([type=info]) .message{border-left-color:var(--tct-stoplight-info, var(--const-stoplight-info, #0079c1))}:host(:not([type])) .message-icon,:host([type=info]) .message-icon{--tct-icon-stroke-primary:var(--tct-stoplight-info, var(--const-stoplight-info, #0079c1));--tct-icon-stroke-secondary:var(--tct-stoplight-info, var(--const-stoplight-info, #0079c1))}:host([type=success]) .message{border-left-color:var(--tct-stoplight-success, var(--const-stoplight-success, #0e8a00))}:host([type=success]) .message-icon{--tct-icon-stroke-primary:var(--tct-stoplight-success, var(--const-stoplight-success, #0e8a00));--tct-icon-stroke-secondary:var(--tct-stoplight-success, var(--const-stoplight-success, #0e8a00))}:host([type=warning]) .message{border-left-color:var(--tct-stoplight-warning, var(--const-stoplight-warning, #c35500))}:host([type=warning]) .message-icon{--tct-icon-stroke-primary:var(--tct-stoplight-warning, var(--const-stoplight-warning, #c35500));--tct-icon-stroke-secondary:var(--tct-stoplight-warning, var(--const-stoplight-warning, #c35500))}:host([type=error]) .message,:host([type=danger]) .message{border-left-color:var(--tct-stoplight-error, var(--const-stoplight-alert, #d20a0a))}:host([type=error]) .message-icon,:host([type=danger]) .message-icon{--tct-icon-stroke-primary:var(--tct-stoplight-error, var(--const-stoplight-alert, #d20a0a));--tct-icon-stroke-secondary:var(--tct-stoplight-error, var(--const-stoplight-alert, #d20a0a))}";
|
|
5
5
|
const Q2MessageStyle0 = q2MessageCss;
|
|
@@ -62,7 +62,7 @@ const Q2Message = class {
|
|
|
62
62
|
const addDivForAriaLive = !isFirefox && this.presentToggle;
|
|
63
63
|
const { description } = this;
|
|
64
64
|
const messageLabel = loc(`tecton.element.message.type.${this.type ? this.type : 'info'}`);
|
|
65
|
-
return (h("div", { key: '
|
|
65
|
+
return (h("div", { key: '6f3af6002aa956f2a62e66df60f86e4c3d2318ab', tabindex: "-1", class: "message", role: description ? undefined : 'alert', "aria-live": description ? undefined : 'assertive', "aria-atomic": description ? undefined : 'true', "aria-relevant": description && addAriaHiddenForAriaLive ? undefined : 'all', "test-id": "messageContainer" }, this.appearance === 'standard' ? this.messageIcon(this.type) : '', addDivForAriaLive && h("div", { key: 'be9dc7762c3b6142862d18adb51b37431e1c965e', class: "sr" }), h("div", { key: '123d2b573a948eaa40867097e882a495580dde0e', class: "sr message-label" }, messageLabel), h("div", { key: '31bec3d11a0fa60dde66d54053c1a92c842c55cf', class: "message-content", "aria-hidden": addAriaHiddenForAriaLive ? 'true' : undefined }, h("slot", { key: '8a15ba2c2b36a8f3b73cb211d817304abb38da9b' }))));
|
|
66
66
|
}
|
|
67
67
|
get hostElement() { return getElement(this); }
|
|
68
68
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-7a5365e2.js';
|
|
2
|
-
import { p as debounce, w as waitForNextPaint, e as hasSlotContent } from './index-
|
|
2
|
+
import { p as debounce, w as waitForNextPaint, e as hasSlotContent } from './index-e4c2bfff.js';
|
|
3
3
|
import { s as sanitizeHTMLString } from './sanitize-html-string-735c19f5.js';
|
|
4
4
|
|
|
5
5
|
const q2ModalCss = "*{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}@keyframes showBackdrop{from{opacity:0}}@keyframes hideBackdrop{to{opacity:0}}dialog{--comp-border-radius-default:var(--app-scale-3x, 15px);--comp-border-radius:var(--tct-modal-border-radius, var(--comp-border-radius-default));--comp-desktop-border-radius:var(--tct-modal-border-radius, var(--app-scale-3x, 15px));--comp-close-button-size:var(--tct-modal-close-button-size, var(--t-a11y-min-size, 44px));--comp-header-height:var(--tct-modal-header-height, var(--t-a11y-min-size, 44px));--comp-dialog-background:var(--tct-modal-background, var(--t-base, #ffffff));--comp-dialog-color:var(--tct-modal-color, var(--t-text, #4d4d4d));--comp-dialog-padding:var(--tct-modal-padding, var(--app-scale-3x, 15px));--comp-content-gradient-height:var(--tct-modal-content-gradient-height, var(--app-scale-2x, 10px));--comp-dialog-gap:var(--tct-modal-gap, var(--app-scale-2x, 10px));--comp-dialog-max-width:var(--tct-modal-max-width, 600px);--comp-dialog-max-height:var(--tct-modal-max-height, 100vh);--comp-dialog-min-height:var(--tct-modal-min-height, 40vh);--comp-dialog-box-shadow:var(--tct-modal-box-shadow, var(--app-shadow-2, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 4px 8px rgba(0, 0, 0, 0.14)));position:fixed;top:100%;bottom:unset;color:var(--comp-dialog-color);background:var(--comp-dialog-background);transition:transform var(--tct-modal-tween, var(--app-tween-2, 0.4s ease)), opacity var(--tct-modal-tween, var(--app-tween-2, 0.4s ease));width:100%;max-width:var(--comp-dialog-max-width);border:0;border-radius:var(--comp-border-radius);box-shadow:var(--comp-dialog-box-shadow);padding:0;height:auto;overflow:hidden}dialog::backdrop{opacity:0;background:var(--tct-modal-backdrop-background, var(--t-top-a2, rgba(13, 13, 13, 0.6)))}dialog[open]{border-radius:var(--comp-desktop-border-radius);top:0px;bottom:0px;height:fit-content;transform:translateY(10%);opacity:1}dialog[open].is-opening,dialog[open].is-open{opacity:1;transform:translateY(0)}dialog[open].is-opening::backdrop,dialog[open].is-open::backdrop{opacity:1;animation:showBackdrop var(--tct-modal-tween, var(--app-tween-2, 0.4s ease))}dialog[open].is-closing{transform:translateY(10%)}dialog[open].is-closing::backdrop{animation:hideBackdrop var(--tct-modal-tween, var(--app-tween-2, 0.4s ease))}.content{overflow-y:auto;--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}.content::-webkit-scrollbar{width:var(--comp-scrollbar-size);height:var(--comp-scrollbar-size);margin:5px}.content::-webkit-scrollbar-thumb{background:var(--comp-scrollbar-color);border-radius:var(--comp-scrollbar-border-radius)}.content::-webkit-scrollbar-track{background:transparent;border-radius:var(--comp-scrollbar-border-radius)}.content .icon{height:var(--tct-modal-icon-size, var(--app-scale-9x, 45px));margin:var(--tct-modal-icon-margin, var(--app-scale-2x, 10px));display:flex;justify-content:center}.content .icon q2-icon{width:var(--tct-modal-icon-size, var(--app-scale-9x, 45px))}.content .image{display:flex;justify-content:center}.content .image img{width:100%;border-radius:var(--tct-modal-image-border-radius, var(--app-border-radius-2, 8px))}.content .message{font-size:1rem}.content.more-gradient{-webkit-mask-image:linear-gradient(to bottom, red 85%, transparent 100%);mask-image:linear-gradient(to bottom, red 85%, transparent 100%)}.interior{display:grid;min-height:var(--comp-dialog-min-height);grid-template-rows:auto 1fr auto;gap:var(--comp-dialog-gap);max-height:calc(var(--comp-dialog-max-height) - var(--comp-dialog-padding));padding:var(--comp-dialog-padding)}.interior.is-list header,.interior.is-list footer{position:relative}.interior.is-list header:before,.interior.is-list footer:before{content:\"\";display:block;position:absolute;left:0;height:var(--comp-content-gradient-height);width:100%;z-index:1}header{display:flex;justify-content:space-between}header .title{text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;text-align:left;font-weight:var(--tct-modal-title-font-weight, 400);margin:0;padding-top:0.5rem}header .btn-close{grid-area:close;width:var(--comp-close-button-size);height:var(--comp-close-button-size)}";
|
|
@@ -157,7 +157,7 @@ const Q2Modal = class {
|
|
|
157
157
|
render() {
|
|
158
158
|
const interiorClasses = `interior`;
|
|
159
159
|
const renderStatus = `${this.renderStatus || ''}`;
|
|
160
|
-
return (h("dialog", { key: '
|
|
160
|
+
return (h("dialog", { key: 'e261675529f0fca98e0df94747ab85a391675b56', ref: el => (this.dialogElement = el), class: renderStatus, onClick: this.onClick }, h("div", { key: '92e29c8d96c9a200faa5de4bb745682adddc9672', class: interiorClasses }, this.title && (h("header", { key: 'c9be962ee668dd38bc9687b7513e1b8212271c13' }, this.title && h("h2", { key: '49408207c3bcab05902f2b086ad33c0a6f4bed5b', class: "title" }, this.title), !!this.closable && (h("q2-btn", { key: '125ef2f2501db785ee64bf6cd0f2819c9fbb1c08', class: "btn-close", "test-id": "btnClose", onClick: this.onCancel, label: "tecton.element.modal.close", "hide-label": true }, h("q2-icon", { key: '356f891879eb7236df237dea9ca3a04492e3ef9d', type: "close" }))))), h("div", { key: '8011acdd94084041c5638dd7f36b11383bc8d96b', class: "content", ref: el => (this.contentElement = el) }, this.icon && (h("div", { key: '1ea508709847537f75bec4dc6dffa994608f673a', class: "icon" }, h("q2-icon", { key: '498a9f7315cbe8b1a6a665a21fe3f059fbaeef75', type: this.icon, style: this.iconStyle() }))), this.imageSrc && (h("div", { key: '3cf8de8eff6f76a6d393d203e076a5342428efef', class: "image" }, h("img", { key: '661271b0feee6b05d65fe45be304a7a3c8724ef6', src: this.imageSrc }))), hasSlotContent(this.hostElement, 'content') && h("slot", { key: 'ff394b2cbcb073433820b1b749351dc23abf7ba0', name: "content" }), this.description && h("p", { key: '1a1ee0636c1519995711530fcf6ae6c142a3c6e3', class: "description" }, this.description), this.customMarkup && (h("p", { key: 'aa28aaa4fcd83e1ba5663886f4ef6b9f3cc384f6', class: "customMarkup", innerHTML: sanitizeHTMLString(this.customMarkup) }))), h("footer", { key: '0934473d012524592ee0760b19333f50ca6ddd81' }, h("q2-action-group", { key: 'ecd8fee68fb7262800185fdd139d2bb79743092a', "full-width": true }, h("slot", { key: '6e603da8f98bfc10ff65d3d310d135e7931bed54', name: "action" }))))));
|
|
161
161
|
}
|
|
162
162
|
get hostElement() { return getElement(this); }
|
|
163
163
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-7a5365e2.js';
|
|
2
|
-
import { l as loc, o as overrideFocus } from './index-
|
|
2
|
+
import { l as loc, o as overrideFocus } from './index-e4c2bfff.js';
|
|
3
3
|
|
|
4
4
|
const q2MonthPickerCss = "*{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}.month-container{--comp-month-primary-background:var(--tct-btn-primary-background, var(--tct-btn-primary-bg, var(--t-btn-primary-bg, #2e2e2e)));--comp-month-primary-font-color:var(--tct-btn-primary-font-color, var(--t-btn-primary-font-color, var(--tct-white, var(--app-white, #ffffff))));--comp-month-primary-background:var(--tct-btn-secondary-background, var(--tct-btn-secondary-bg, var(--t-button-default-bg, #cccccc)));--comp-month-secondary-font-color:var(--tct-btn-secondary-font-color, var(--t-btn-secondary-font-color, var(--t-button-default-font-color, #2e2e2e)))}.month-container .navigation{display:flex;justify-content:space-between;flex-direction:row}.month-container .navigation .year-btn{padding:0 1rem;display:flex;align-items:center}.month-container .navigation .year-btn .year{margin-right:0.2rem}.month-container .navigation .year-btn .year-icon{--t-icon-stroke-width:2px;width:16px;height:16px;transition:all 0.3s ease-in-out}.month-container .navigation .year-btn .year-icon.on{transform:rotate(-180deg)}.month-container .navigation .month-controller{display:flex;align-items:center}.month-container .month-list{display:grid;grid-template-columns:auto auto auto}.month-container .month-list .month{display:flex;justify-content:center;align-items:center;padding:0.5rem 0}.month-container .month-list .month .month-button{border-radius:50%;aspect-ratio:1;width:50px;display:flex;justify-content:center;align-items:center}.month-container .month-list .month .month-button:hover{background:var(--comp-month-primary-background);color:var(--comp-month-secondary-font-color);cursor:pointer}.month-container .month-list .month .month-button:active,.month-container .month-list .month .month-button.active{background:var(--comp-month-primary-background);color:var(--comp-month-primary-font-color)}.month-container .today-label{padding:0.5rem 0;color:var(--tct-calendar-day-selected-outline-color, var(--t-calendar-day-selected-outline-color, var(--tct-stoplight-info, var(--const-stoplight-info, #0079c1))))}";
|
|
5
5
|
const Q2MonthPickerStyle0 = q2MonthPickerCss;
|
|
@@ -141,10 +141,10 @@ const Q2MonthPicker = class {
|
|
|
141
141
|
// #endregion
|
|
142
142
|
// #region Render Methods
|
|
143
143
|
render() {
|
|
144
|
-
return (h("div", { key: '
|
|
144
|
+
return (h("div", { key: 'a2cd6eda280f23475ee4f1ab29872e6667d4c7a6', class: "month-container", onKeyDown: this.onMonthKeydown }, h("div", { key: '17998748ded31646cb5ab2a9ec7b110c9fae386e', class: "navigation" }, h("q2-btn", { key: 'cedd674d79ffeab0fa6603cd17cc196030a1ea64', class: "year-btn", onClick: () => this.viewChange.emit({
|
|
145
145
|
view: 'year',
|
|
146
146
|
selectedYear: this.year,
|
|
147
|
-
}) }, h("span", { key: '
|
|
147
|
+
}) }, h("span", { key: '82dc9d7302ad2b286986601098343716052974d8', class: "year" }, this.year), h("q2-icon", { key: 'b7f2ff86e4ad317b38fb495145516975600e95e5', class: "year-icon off", type: "chevron-down" })), h("div", { key: '3544cee5c78dac5e9886e76a14bf7acc09916070', class: "month-controller" }, h("div", { key: 'a5a6ed45da80ea01f2ccb61518f48c6ceb69e99f', class: "cal-year-prev-next" }, h("q2-btn", { key: '38a50b26ef2652c70edd45fa062dd0a492bda180', label: loc('tecton.element.calendar.previousYear'), "hide-label": true, class: "cal-nav-btn prev-year", "test-id": "previousYearButton", onClick: () => this.selectYear(this.year - 1) }, h("q2-icon", { key: 'b8f64f6bace3a2136c1760ef9e000c7fabab4e23', type: "arrow-left" })), h("q2-btn", { key: '1d8a2d56bf3697a60e68c5716425427c9ce35f3e', label: loc('tecton.element.calendar.nextYear'), "hide-label": true, class: "cal-nav-btn next-year", "test-id": "nextYearButton", onClick: () => this.selectYear(this.year + 1) }, h("q2-icon", { key: 'cf841e5dba06f28527cd9e89c3da94b84a3ff267', type: "arrow-right" }))))), h("div", { key: '61863a2ef6c42ad6dddf276835ec14e0b262120b', class: "month-list", onClick: this.onMonthSelection }, this.months.map((month, index) => (h("div", { class: "month" }, h("span", { role: "button", class: "month-button", "data-index": index, "aria-label": month.label, tabindex: index === this.focusedIndex ? 0 : -1 }, month.abbr))))), this.today && (h("div", { key: 'baee50514a1673f651ed0724d2fe52faf1384037', class: "today-label" }, loc('tecton.element.calendar.today'), ": ", this.today))));
|
|
148
148
|
}
|
|
149
149
|
get hostElement() { return getElement(this); }
|
|
150
150
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-7a5365e2.js';
|
|
2
|
-
import { c as createGuid, l as loc } from './index-
|
|
2
|
+
import { c as createGuid, l as loc } from './index-e4c2bfff.js';
|
|
3
3
|
|
|
4
4
|
const q2OptgroupCss = "*{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}:host{display:block}.q2-optgroup-header{--comp-header-padding:var(--tct-scale-1, var(--app-scale-1x, 5px)) var(--tct-scale-2, var(--app-scale-2x, 10px));background:var(--tct-optgroup-header-background, var(--tct-optgroup-header-bg, var(--t-optgroup-header-bg, var(--tct-gray-13, var(--t-gray-13, var(--tct-gray-l2, var(--app-gray-l2, #e6e6e6)))))));color:var(--tct-optgroup-header-color, inherit);padding:var(--tct-optgroup-header-padding, var(--t-optgroup-header-padding, var(--comp-header-padding)));font-weight:var(--tct-optgroup-header-font-weight, var(--t-optgroup-header-font-weight, 600));text-transform:var(--tct-optgroup-header-text-transform, var(--t-optgroup-header-text-transform, uppercase));position:sticky;top:calc(var(--comp-popover-top-container-height, 0px) + var(--tct-optgroup-top, var(--t-optgroup-top, 0px)));z-index:5}";
|
|
5
5
|
const Q2OptgroupStyle0 = q2OptgroupCss;
|
|
@@ -49,7 +49,7 @@ const Q2Optgroup = class {
|
|
|
49
49
|
// #endregion
|
|
50
50
|
// #region Render Methods
|
|
51
51
|
render() {
|
|
52
|
-
return (h("div", { key: '
|
|
52
|
+
return (h("div", { key: '16906b816decbeeaa6c86a6334d5c51459ed6419', class: "q2-optgroup-container", hidden: this.hidden, "aria-labelledby": this.headerId, role: "group" }, h("div", { key: 'c60a5fdeb4a8ea3696b4f9dc9c636bb6469dee43', class: "q2-optgroup-header", id: this.headerId }, (this.label && loc(this.label)) || ''), h("div", { key: 'ce8276d408d6358fadabd91b2abc6eb1143031c1', class: "q2-optgroup-options" }, h("slot", { key: 'd252050c0565f501f74ef493eec41490dcaa9576' }))));
|
|
53
53
|
}
|
|
54
54
|
get hostElement() { return getElement(this); }
|
|
55
55
|
static get watchers() { return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-7a5365e2.js';
|
|
2
|
-
import { n as nextPaint, l as loc, o as overrideFocus, i as isEventFromElement, w as waitForNextPaint, v as isVisible, h as handleDeprecationWarning, x as
|
|
2
|
+
import { n as nextPaint, l as loc, o as overrideFocus, i as isEventFromElement, w as waitForNextPaint, v as isVisible, h as handleDeprecationWarning, x as isInScrollableContainer, d as isMobile } from './index-e4c2bfff.js';
|
|
3
3
|
|
|
4
4
|
function sanitizeRegexString(regexString) {
|
|
5
5
|
return regexString.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
@@ -583,7 +583,7 @@ const Q2OptionList = class {
|
|
|
583
583
|
};
|
|
584
584
|
Q2OptionList.style = Q2OptionListStyle0;
|
|
585
585
|
|
|
586
|
-
const q2PopoverCss = "*{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}.container{display:none}.show{display:block;
|
|
586
|
+
const q2PopoverCss = "*{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}";
|
|
587
587
|
const Q2PopoverStyle0 = q2PopoverCss;
|
|
588
588
|
|
|
589
589
|
const Q2Popover = class {
|
|
@@ -594,13 +594,15 @@ const Q2Popover = class {
|
|
|
594
594
|
* The number of pixels to leave between the popover and the edge of the viewport
|
|
595
595
|
*/
|
|
596
596
|
this.displayBuffer = 10;
|
|
597
|
-
/** remove when Popover API is supported in iOS */
|
|
598
597
|
this.orientationChanged = false;
|
|
599
598
|
this.handleMinHeight = () => {
|
|
600
599
|
if (this.minHeight) {
|
|
601
600
|
handleDeprecationWarning(this, 'minHeight', 'prop');
|
|
602
601
|
}
|
|
603
602
|
};
|
|
603
|
+
this.handlePopoverToggleEvent = (event) => {
|
|
604
|
+
this.popoverStateChanged.emit({ open: event.newState === 'open' });
|
|
605
|
+
};
|
|
604
606
|
this.setAbsoluteCSSProperties = async () => {
|
|
605
607
|
const { controlElement, containerElement, currentDirection, align } = this;
|
|
606
608
|
if (align === 'right') {
|
|
@@ -625,34 +627,41 @@ const Q2Popover = class {
|
|
|
625
627
|
await waitForNextPaint();
|
|
626
628
|
containerElement.style.setProperty('--comp-pop-opacity', '1');
|
|
627
629
|
};
|
|
628
|
-
this.
|
|
629
|
-
var _a, _b, _c
|
|
630
|
-
const { controlElement, containerElement, currentDirection,
|
|
630
|
+
this.setPopoverAPICSSProperties = async () => {
|
|
631
|
+
var _a, _b, _c;
|
|
632
|
+
const { controlElement, containerElement, currentDirection, isModule, align } = this;
|
|
631
633
|
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 : {
|
|
632
634
|
top: 0,
|
|
633
635
|
bottom: 0,
|
|
634
636
|
left: 0,
|
|
635
637
|
right: 0,
|
|
636
638
|
};
|
|
637
|
-
const popoverLeft = controlLeft
|
|
639
|
+
const popoverLeft = controlLeft;
|
|
640
|
+
const popoverRight = ((_c = window === null || window === void 0 ? void 0 : window.visualViewport) === null || _c === void 0 ? void 0 : _c.width) - controlRight;
|
|
641
|
+
if (align === 'right') {
|
|
642
|
+
containerElement.style.setProperty('--comp-pop-right', `${popoverRight - window.scrollX}px`);
|
|
643
|
+
containerElement.style.setProperty('--comp-pop-left', 'unset');
|
|
644
|
+
}
|
|
645
|
+
else {
|
|
646
|
+
containerElement.style.setProperty('--comp-pop-left', `${popoverLeft + window.scrollX}px`);
|
|
647
|
+
containerElement.style.setProperty('--comp-pop-right', 'unset');
|
|
648
|
+
}
|
|
638
649
|
if (this.block)
|
|
639
650
|
containerElement.style.setProperty('--comp-pop-width', `${(controlElement === null || controlElement === void 0 ? void 0 : controlElement.offsetWidth) || 0}px`);
|
|
640
|
-
containerElement.style.setProperty('--comp-pop-left', `${popoverLeft}px`);
|
|
641
|
-
containerElement.style.setProperty('--comp-pop-right', `${rootElementRect.width + rootElementRect.left - controlRight}px`);
|
|
642
651
|
if (currentDirection === 'up') {
|
|
643
|
-
if (
|
|
652
|
+
if (isModule) {
|
|
644
653
|
containerElement.style.setProperty('--comp-pop-bottom', `${window.innerHeight - controlTop}px`);
|
|
645
654
|
}
|
|
646
655
|
else {
|
|
647
|
-
containerElement.style.setProperty('--comp-pop-bottom', `${window.innerHeight - controlTop -
|
|
656
|
+
containerElement.style.setProperty('--comp-pop-bottom', `${window.innerHeight - controlTop - window.scrollY}px`);
|
|
648
657
|
}
|
|
649
658
|
}
|
|
650
659
|
if (currentDirection === 'down') {
|
|
651
|
-
if (
|
|
660
|
+
if (isModule) {
|
|
652
661
|
containerElement.style.setProperty('--comp-pop-top', `${controlBottom}px`);
|
|
653
662
|
}
|
|
654
663
|
else {
|
|
655
|
-
containerElement.style.setProperty('--comp-pop-top', `${controlBottom
|
|
664
|
+
containerElement.style.setProperty('--comp-pop-top', `${controlBottom + window.scrollY}px`);
|
|
656
665
|
}
|
|
657
666
|
}
|
|
658
667
|
// Wait for one paint to prevent layout thrashing
|
|
@@ -670,7 +679,7 @@ const Q2Popover = class {
|
|
|
670
679
|
};
|
|
671
680
|
this.currentDirection = undefined;
|
|
672
681
|
this.show = false;
|
|
673
|
-
this.align =
|
|
682
|
+
this.align = 'left';
|
|
674
683
|
this.block = undefined;
|
|
675
684
|
this.controlElement = undefined;
|
|
676
685
|
this.direction = undefined;
|
|
@@ -683,13 +692,21 @@ const Q2Popover = class {
|
|
|
683
692
|
// #region Component Lifecycle Events
|
|
684
693
|
disconnectedCallback() {
|
|
685
694
|
this.removeViewportListeners();
|
|
695
|
+
this.containerElement.removeEventListener('toggle', this.handlePopoverToggleEvent);
|
|
686
696
|
this.containerElement = null;
|
|
687
697
|
this.contentElement = null;
|
|
688
698
|
this.controlElement = null;
|
|
689
|
-
|
|
699
|
+
}
|
|
700
|
+
componentWillLoad() {
|
|
701
|
+
if (!this.supportsPopoverAPI) {
|
|
702
|
+
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.');
|
|
703
|
+
this.mode = 'legacy';
|
|
704
|
+
}
|
|
690
705
|
}
|
|
691
706
|
componentDidLoad() {
|
|
692
707
|
this.handleMinHeight();
|
|
708
|
+
if (this.supportsPopoverAPI)
|
|
709
|
+
this.containerElement.addEventListener('toggle', this.handlePopoverToggleEvent);
|
|
693
710
|
if (this.open)
|
|
694
711
|
this.determinePopDirection();
|
|
695
712
|
}
|
|
@@ -716,7 +733,6 @@ const Q2Popover = class {
|
|
|
716
733
|
this.handleMinHeight();
|
|
717
734
|
}
|
|
718
735
|
async openChanged(open) {
|
|
719
|
-
this.setRootElement();
|
|
720
736
|
this.popoverStateChanged.emit({ open });
|
|
721
737
|
if (open) {
|
|
722
738
|
this.addViewportListeners();
|
|
@@ -725,7 +741,12 @@ const Q2Popover = class {
|
|
|
725
741
|
else {
|
|
726
742
|
this.removeViewportListeners();
|
|
727
743
|
this.currentDirection = undefined;
|
|
728
|
-
this.
|
|
744
|
+
if (this.mode === 'legacy' || !this.supportsPopoverAPI) {
|
|
745
|
+
this.show = false;
|
|
746
|
+
}
|
|
747
|
+
else {
|
|
748
|
+
this.containerElement.hidePopover();
|
|
749
|
+
}
|
|
729
750
|
await waitForNextPaint();
|
|
730
751
|
this.clearCSSProperties();
|
|
731
752
|
}
|
|
@@ -748,6 +769,9 @@ const Q2Popover = class {
|
|
|
748
769
|
return undefined;
|
|
749
770
|
}
|
|
750
771
|
}
|
|
772
|
+
get supportsPopoverAPI() {
|
|
773
|
+
return Object.hasOwn(HTMLElement.prototype, 'popover');
|
|
774
|
+
}
|
|
751
775
|
get validatedMaxHeight() {
|
|
752
776
|
const { maxHeight } = this;
|
|
753
777
|
return isNaN(maxHeight) ? undefined : maxHeight;
|
|
@@ -756,11 +780,11 @@ const Q2Popover = class {
|
|
|
756
780
|
var _a;
|
|
757
781
|
window.addEventListener('resize', this.viewPortOrientationChanged);
|
|
758
782
|
visualViewport === null || visualViewport === void 0 ? void 0 : visualViewport.addEventListener('resize', this.viewPortChanged);
|
|
759
|
-
|
|
760
|
-
|
|
783
|
+
if (isInScrollableContainer(this.hostElement) && !isMobile()) {
|
|
784
|
+
window.addEventListener('scroll', this.viewPortChanged, { passive: true, capture: true });
|
|
785
|
+
}
|
|
761
786
|
(_a = screen === null || screen === void 0 ? void 0 : screen.orientation) === null || _a === void 0 ? void 0 : _a.addEventListener('orientationchange', this.viewPortOrientationChanged);
|
|
762
787
|
window.addEventListener('orientationchange', this.viewPortOrientationChanged);
|
|
763
|
-
// #endregion
|
|
764
788
|
}
|
|
765
789
|
clearCSSProperties() {
|
|
766
790
|
this.containerElement.style.removeProperty('--comp-pop-max-height');
|
|
@@ -786,20 +810,23 @@ const Q2Popover = class {
|
|
|
786
810
|
let maxSpaceAbove;
|
|
787
811
|
let maxSpaceBelow;
|
|
788
812
|
if (isModule) {
|
|
789
|
-
const { outletOffset = 0, innerHeight = window.innerHeight } = ((_c = window.Tecton) === null || _c === void 0 ? void 0 : _c.platformDimensions) || {};
|
|
790
|
-
const distanceToIframeBottom = window.
|
|
791
|
-
|
|
813
|
+
const { outletOffset = 0, innerHeight = window.innerHeight, top: topBarHeight = 0, bottom: bottomBarHeight = 0, } = ((_c = window.Tecton) === null || _c === void 0 ? void 0 : _c.platformDimensions) || {};
|
|
814
|
+
const distanceToIframeBottom = window.innerHeight - controlBottom;
|
|
815
|
+
// controlElement position visually on the page
|
|
816
|
+
const visualControlTop = outletOffset > 0 ? controlTop : controlTop + outletOffset - topBarHeight;
|
|
817
|
+
const visualControlBottom = outletOffset + controlBottom - topBarHeight;
|
|
818
|
+
// visual space around the controlElement
|
|
819
|
+
const viewableSpaceAbove = visualControlTop;
|
|
820
|
+
const viewableSpaceBelow = innerHeight - bottomBarHeight - visualControlBottom;
|
|
821
|
+
// calculate space above and below controlElement
|
|
792
822
|
const isIframeShorterThanWindow = distanceToIframeBottom < viewableSpaceBelow;
|
|
793
|
-
|
|
794
|
-
// If the top of the module is below the top of the window we just use the controlTop
|
|
795
|
-
// Otherwise we need to add the outletOffset to the controlTop
|
|
796
|
-
maxSpaceAbove = (outletOffset > 0 ? controlTop : controlTop + outletOffset) - displayBuffer;
|
|
823
|
+
maxSpaceAbove = viewableSpaceAbove - displayBuffer;
|
|
797
824
|
maxSpaceBelow = isIframeShorterThanWindow
|
|
798
825
|
? distanceToIframeBottom - displayBuffer
|
|
799
826
|
: viewableSpaceBelow - displayBuffer;
|
|
800
827
|
}
|
|
801
828
|
else {
|
|
802
|
-
windowHeight = window.
|
|
829
|
+
windowHeight = window.innerHeight;
|
|
803
830
|
maxSpaceAbove = controlTop - displayBuffer;
|
|
804
831
|
maxSpaceBelow = windowHeight - controlBottom - displayBuffer;
|
|
805
832
|
}
|
|
@@ -832,72 +859,37 @@ const Q2Popover = class {
|
|
|
832
859
|
var _a;
|
|
833
860
|
window.removeEventListener('resize', this.viewPortOrientationChanged);
|
|
834
861
|
visualViewport === null || visualViewport === void 0 ? void 0 : visualViewport.removeEventListener('resize', this.viewPortChanged);
|
|
835
|
-
// #region remove when Popover API is supported in iOS
|
|
836
862
|
window.removeEventListener('scroll', this.viewPortChanged, { capture: true });
|
|
837
863
|
(_a = screen === null || screen === void 0 ? void 0 : screen.orientation) === null || _a === void 0 ? void 0 : _a.removeEventListener('orientationchange', this.viewPortOrientationChanged);
|
|
838
864
|
window.removeEventListener('orientationchange', this.viewPortOrientationChanged);
|
|
839
|
-
// #endregion
|
|
840
865
|
}
|
|
841
866
|
setDirectionAndShow(direction) {
|
|
842
|
-
this.setRootElement();
|
|
843
867
|
// Due to some runtime inconsistency across devices/browsers we need to add one more check here because the
|
|
844
868
|
// popover can be closed between the time the popover is opened and the time the direction is determined
|
|
845
869
|
const isOpen = this.open;
|
|
846
870
|
if (!isOpen)
|
|
847
871
|
return;
|
|
848
872
|
this.currentDirection = direction;
|
|
849
|
-
this.
|
|
850
|
-
|
|
873
|
+
if (this.mode === 'legacy' || !this.supportsPopoverAPI) {
|
|
874
|
+
this.show = true;
|
|
851
875
|
this.setAbsoluteCSSProperties();
|
|
852
876
|
}
|
|
853
877
|
else {
|
|
854
|
-
this.
|
|
878
|
+
this.setPopoverAPICSSProperties();
|
|
879
|
+
this.containerElement.showPopover();
|
|
855
880
|
}
|
|
856
881
|
}
|
|
857
|
-
setRootElement() {
|
|
858
|
-
let currentElement = this.hostElement;
|
|
859
|
-
while (currentElement && currentElement !== document.documentElement) {
|
|
860
|
-
const computedStyle = window.getComputedStyle(currentElement);
|
|
861
|
-
// Check if the element has any styles applied that create a new containg block
|
|
862
|
-
if (computedStyle.transform !== 'none' ||
|
|
863
|
-
computedStyle.filter !== 'none' ||
|
|
864
|
-
computedStyle.perspective !== 'none' ||
|
|
865
|
-
computedStyle.containerType !== 'normal' ||
|
|
866
|
-
['transform', 'perspective', 'filter'].includes(computedStyle.willChange) ||
|
|
867
|
-
['layout', 'paint', 'strict', 'content'].includes(computedStyle.contain)) {
|
|
868
|
-
this.rootElementRect = currentElement.getBoundingClientRect();
|
|
869
|
-
return;
|
|
870
|
-
}
|
|
871
|
-
const rootNode = currentElement.getRootNode();
|
|
872
|
-
const isRootNodeWebComponent = typeof ShadowRoot !== 'undefined' &&
|
|
873
|
-
rootNode instanceof ShadowRoot &&
|
|
874
|
-
rootNode.host instanceof HTMLElement;
|
|
875
|
-
if (isRootNodeWebComponent) {
|
|
876
|
-
currentElement = rootNode.host;
|
|
877
|
-
}
|
|
878
|
-
else {
|
|
879
|
-
currentElement = currentElement.parentElement;
|
|
880
|
-
}
|
|
881
|
-
}
|
|
882
|
-
// Return the document's bounding rect if no element is found
|
|
883
|
-
this.rootElementRect = {
|
|
884
|
-
top: 0,
|
|
885
|
-
bottom: 0,
|
|
886
|
-
left: 0,
|
|
887
|
-
right: 0,
|
|
888
|
-
height: window.visualViewport.height,
|
|
889
|
-
width: window.visualViewport.width,
|
|
890
|
-
};
|
|
891
|
-
}
|
|
892
882
|
// #endregion
|
|
893
883
|
// #region Render Methods
|
|
894
884
|
render() {
|
|
895
|
-
const containerClasses = ['container', this.currentDirection];
|
|
885
|
+
const containerClasses = ['container', this.currentDirection, this.align];
|
|
896
886
|
if (this.show)
|
|
897
887
|
containerClasses.push('show');
|
|
888
|
+
if (this.block)
|
|
889
|
+
containerClasses.push('block');
|
|
898
890
|
if (this.mode === 'legacy')
|
|
899
891
|
containerClasses.push('legacy');
|
|
900
|
-
return (h("div", { key: '
|
|
892
|
+
return (h("div", { key: '4c79a6d47eb532ea80987757424ef83e2b41af3a', ref: el => (this.containerElement = el), class: containerClasses.join(' '), "test-id": "outerContainer", tabIndex: -1, popover: "manual" }, h("div", { key: '86fe5c9902e995ddb03602d510f14da62a319f15', ref: el => (this.contentElement = el), class: "content" }, h("slot", { key: '1d67d359c40caaaa94f6604c113c499a2b6f0e9e' }))));
|
|
901
893
|
}
|
|
902
894
|
get hostElement() { return getElement(this); }
|
|
903
895
|
static get watchers() { return {
|