q2-tecton-elements 1.72.0 → 1.73.1
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 +39545 -34361
- package/dist/cjs/{charting-ClN1ldqv.js → charting-CdNTrVBe.js} +80 -0
- package/dist/cjs/click-elsewhere_3.cjs.entry.js +81 -14
- package/dist/cjs/{dataSample-BYR-wrOn.js → dataSample-B4blhlH4.js} +1 -1
- package/dist/cjs/date-picker-helpers-UYvPn98R.js +257 -0
- package/dist/cjs/{index-BY3aao8R.js → index-BqyWHpNu.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/q2-action-group.cjs.entry.js +1 -1
- package/dist/cjs/q2-action-sheet.cjs.entry.js +98 -18
- package/dist/cjs/q2-avatar.cjs.entry.js +34 -1
- package/dist/cjs/q2-badge_2.cjs.entry.js +3 -3
- package/dist/cjs/q2-btn_2.cjs.entry.js +2 -2
- package/dist/cjs/q2-calendar.cjs.entry.js +9 -4
- package/dist/cjs/q2-card-image.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 +20 -6
- package/dist/cjs/q2-chart-area.cjs.entry.js +38 -7
- package/dist/cjs/q2-chart-bar.cjs.entry.js +39 -8
- package/dist/cjs/q2-chart-donut.cjs.entry.js +31 -13
- package/dist/cjs/q2-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/q2-checkbox_2.cjs.entry.js +8 -5
- package/dist/cjs/q2-context.cjs.entry.js +4 -4
- package/dist/cjs/q2-currency.cjs.entry.js +1 -1
- package/dist/cjs/q2-data-table.cjs.entry.js +7 -7
- package/dist/cjs/q2-date-calendar.cjs.entry.js +452 -0
- package/dist/cjs/q2-date-picker_2.cjs.entry.js +968 -0
- 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 +3 -3
- package/dist/cjs/q2-editable-field.cjs.entry.js +20 -7
- package/dist/cjs/q2-example.cjs.entry.js +1 -1
- package/dist/cjs/q2-file-picker.cjs.entry.js +2 -2
- package/dist/cjs/q2-form.cjs.entry.js +1 -1
- package/dist/cjs/q2-formatted-text.cjs.entry.js +1 -1
- package/dist/cjs/q2-icon.cjs.entry.js +1 -1
- package/dist/cjs/q2-item.cjs.entry.js +20 -2
- package/dist/cjs/q2-legend.cjs.entry.js +1 -1
- package/dist/cjs/q2-link_2.cjs.entry.js +2 -2
- package/dist/cjs/q2-loc.cjs.entry.js +1 -1
- package/dist/cjs/q2-message.cjs.entry.js +3 -3
- package/dist/cjs/q2-meter.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-mutation-observer.cjs.entry.js +1 -1
- package/dist/cjs/q2-option.cjs.entry.js +1 -1
- package/dist/cjs/q2-otp.cjs.entry.js +5 -5
- package/dist/cjs/q2-pagination.cjs.entry.js +12 -6
- package/dist/cjs/q2-pill.cjs.entry.js +8 -5
- 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 +2 -2
- package/dist/cjs/q2-resize-observer.cjs.entry.js +1 -1
- package/dist/cjs/q2-search.cjs.entry.js +3 -3
- package/dist/cjs/q2-section.cjs.entry.js +3 -3
- package/dist/cjs/q2-select.cjs.entry.js +8 -4
- 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-surface.cjs.entry.js +1 -1
- 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-tecton-elements.cjs.js +1 -1
- package/dist/cjs/q2-textarea.cjs.entry.js +2 -2
- package/dist/cjs/q2-toast.cjs.entry.js +1 -1
- package/dist/cjs/q2-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/{sectorHelper-9TWL-3dw.js → sectorHelper-CxhDl5ql.js} +1 -1
- package/dist/cjs/tecton-tab-pane.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/q2-action-sheet/q2-action-sheet.css +52 -0
- package/dist/collection/components/q2-action-sheet/q2-action-sheet.js +98 -18
- package/dist/collection/components/q2-action-sheet/test/q2-action-sheet-test.vr.js +124 -0
- package/dist/collection/components/q2-avatar/q2-avatar.js +34 -1
- package/dist/collection/components/q2-avatar/test/q2-avatar-test.vr.js +79 -4
- package/dist/collection/components/q2-btn/q2-btn.css +84 -136
- package/dist/collection/components/q2-btn/q2-btn.js +10 -4
- package/dist/collection/components/q2-btn/test/q2-btn-test.vr.js +99 -43
- package/dist/collection/components/q2-calendar/q2-calendar.js +16 -5
- package/dist/collection/components/q2-calendar/q2-month-picker.js +2 -2
- package/dist/collection/components/q2-calendar/test/q2-calendar-test.vr.js +3 -13
- package/dist/collection/components/q2-card-image/q2-card-image.js +2 -2
- package/dist/collection/components/q2-carousel/q2-carousel.js +19 -5
- package/dist/collection/components/q2-carousel/test/q2-carousel-test.vr.js +32 -0
- package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.js +2 -2
- package/dist/collection/components/q2-chart-area/q2-chart-area.css +11 -0
- package/dist/collection/components/q2-chart-area/q2-chart-area.js +53 -7
- package/dist/collection/components/q2-chart-area/test/q2-chart-area-test.vr.js +14 -0
- package/dist/collection/components/q2-chart-bar/q2-chart-bar.css +11 -0
- package/dist/collection/components/q2-chart-bar/q2-chart-bar.js +50 -4
- package/dist/collection/components/q2-chart-bar/test/q2-chart-bar-test.vr.js +14 -0
- package/dist/collection/components/q2-chart-donut/q2-chart-donut.js +30 -10
- package/dist/collection/components/q2-chart-donut/test/q2-chart-donut-test.vr.js +25 -0
- package/dist/collection/components/q2-checkbox/q2-checkbox.js +6 -3
- package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.js +6 -3
- package/dist/collection/components/q2-context/q2-context.js +3 -3
- package/dist/collection/components/q2-context/test/q2-context-test.vr.js +3 -3
- package/dist/collection/components/q2-currency/q2-currency.js +1 -1
- package/dist/collection/components/q2-data-table/q2-data-table.css +3 -0
- package/dist/collection/components/q2-data-table/q2-data-table.js +5 -5
- package/dist/collection/components/q2-data-table/test/q2-data-table-test.vr.js +47 -0
- package/dist/collection/components/q2-date-calendar/q2-date-calendar.css +393 -0
- package/dist/collection/components/q2-date-calendar/q2-date-calendar.js +1022 -0
- package/dist/collection/components/q2-date-calendar/test/q2-date-calendar-test.vr.js +111 -0
- package/dist/collection/components/q2-date-picker/q2-date-picker.css +138 -0
- package/dist/collection/components/q2-date-picker/q2-date-picker.js +2010 -0
- package/dist/collection/components/q2-date-picker/test/q2-date-picker-test.vr.js +179 -0
- package/dist/collection/components/q2-detail/q2-detail.js +1 -1
- package/dist/collection/components/q2-dropdown/q2-dropdown.js +5 -5
- package/dist/collection/components/q2-editable-field/q2-editable-field.js +27 -8
- package/dist/collection/components/q2-example/q2-example.js +1 -1
- package/dist/collection/components/q2-file-picker/q2-file-picker.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/formatting/phone-number-formats.js +1 -1
- package/dist/collection/components/q2-input/q2-input.js +6 -3
- package/dist/collection/components/q2-item/q2-item.js +19 -1
- package/dist/collection/components/q2-item/test/q2-item-test.vr.js +2 -2
- 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.css +1 -1
- package/dist/collection/components/q2-message/q2-message.js +1 -1
- package/dist/collection/components/q2-message/test/q2-message-test.vr.js +11 -2
- package/dist/collection/components/q2-meter/q2-meter.js +1 -1
- package/dist/collection/components/q2-modal/q2-modal.js +1 -1
- package/dist/collection/components/q2-modal/test/q2-modal-test.vr.js +7 -7
- package/dist/collection/components/q2-mutation-observer/q2-mutation-observer.js +1 -1
- package/dist/collection/components/q2-optgroup/q2-optgroup.js +1 -1
- package/dist/collection/components/q2-option-list/q2-option-list.js +36 -4
- package/dist/collection/components/q2-otp/q2-otp.js +4 -4
- package/dist/collection/components/q2-pagination/q2-pagination.css +17 -0
- package/dist/collection/components/q2-pagination/q2-pagination.js +10 -4
- package/dist/collection/components/q2-pagination/test/q2-pagination-test.vr.js +39 -0
- package/dist/collection/components/q2-pill/q2-pill.css +14 -10
- package/dist/collection/components/q2-pill/q2-pill.js +6 -3
- package/dist/collection/components/q2-pill/test/q2-pill-test.vr.js +25 -0
- package/dist/collection/components/q2-popover/q2-popover.css +1 -0
- package/dist/collection/components/q2-popover/q2-popover.js +43 -8
- package/dist/collection/components/q2-radio/q2-radio.js +5 -2
- package/dist/collection/components/q2-radio-group/q2-radio-group.js +6 -3
- 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-search/q2-search.js +6 -3
- package/dist/collection/components/q2-section/q2-section.js +2 -2
- package/dist/collection/components/q2-select/q2-select.js +12 -5
- package/dist/collection/components/q2-stepper/q2-stepper.js +1 -1
- package/dist/collection/components/q2-stepper-pane/q2-stepper-pane.js +1 -1
- package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js +1 -1
- package/dist/collection/components/q2-surface/q2-surface.js +1 -1
- package/dist/collection/components/q2-surface/test/q2-surface-test.vr.js +2 -2
- 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 +6 -3
- package/dist/collection/components/q2-textarea/q2-textarea.js +6 -3
- package/dist/collection/components/q2-tooltip/test/q2-tooltip-test.vr.js +1 -1
- package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.js +2 -2
- package/dist/collection/utils/chart-keyboard.js +76 -0
- package/dist/collection/utils/date-picker/date-picker-helpers.js +239 -0
- package/dist/collection/utils/date-picker/date-picker-types.js +1 -0
- package/dist/collection/utils/index.js +1 -1
- package/dist/components/charting.js +1603 -1532
- package/dist/components/dataSample.js +7 -7
- package/dist/components/index.js +57 -53
- package/dist/components/index2.js +2 -2
- package/dist/components/q2-action-sheet.js +224 -103
- package/dist/components/q2-avatar2.js +41 -27
- package/dist/components/q2-btn2.js +2 -2
- package/dist/components/q2-calendar.js +6 -3
- package/dist/components/q2-card-image.js +2 -2
- package/dist/components/q2-carousel-pane2.js +3 -3
- package/dist/components/q2-carousel.js +37 -24
- package/dist/components/q2-chart-area.js +415 -369
- package/dist/components/q2-chart-bar.js +193 -148
- package/dist/components/q2-chart-donut.js +185 -158
- package/dist/components/q2-checkbox-group.js +6 -6
- package/dist/components/q2-checkbox2.js +11 -11
- package/dist/components/q2-context.js +20 -20
- package/dist/components/q2-currency.js +9 -9
- package/dist/components/q2-data-table.js +111 -111
- package/dist/components/q2-date-calendar.d.ts +11 -0
- package/dist/components/q2-date-calendar.js +5 -0
- package/dist/components/q2-date-calendar2.js +678 -0
- package/dist/components/q2-date-picker.d.ts +11 -0
- package/dist/components/q2-date-picker.js +5 -0
- package/dist/components/q2-date-picker2.js +875 -0
- package/dist/components/q2-detail.js +3 -3
- package/dist/components/q2-dropdown.js +17 -17
- package/dist/components/q2-editable-field.js +16 -5
- package/dist/components/q2-example.js +11 -11
- package/dist/components/q2-file-picker.js +1 -1
- package/dist/components/q2-form.js +6 -6
- package/dist/components/q2-formatted-text.js +2 -2
- package/dist/components/q2-input2.js +6 -6
- package/dist/components/q2-item2.js +32 -22
- package/dist/components/q2-legend2.js +7 -7
- package/dist/components/q2-list2.js +6 -6
- package/dist/components/q2-message2.js +10 -10
- package/dist/components/q2-meter.js +7 -7
- package/dist/components/q2-modal.js +22 -22
- package/dist/components/q2-month-picker.js +17 -17
- package/dist/components/q2-mutation-observer.js +1 -1
- package/dist/components/q2-optgroup2.js +7 -7
- package/dist/components/q2-option-list2.js +55 -34
- package/dist/components/q2-otp.js +8 -8
- package/dist/components/q2-pagination.js +70 -68
- package/dist/components/q2-pill.js +51 -46
- package/dist/components/q2-popover2.js +70 -49
- package/dist/components/q2-radio-group.js +7 -7
- package/dist/components/q2-radio.js +6 -6
- package/dist/components/q2-relative-time.js +1 -1
- package/dist/components/q2-resize-observer2.js +1 -1
- package/dist/components/q2-search.js +5 -5
- package/dist/components/q2-section.js +17 -17
- package/dist/components/q2-select2.js +2 -2
- package/dist/components/q2-stepper-pane.js +29 -29
- package/dist/components/q2-stepper-vertical.js +4 -4
- package/dist/components/q2-stepper.js +57 -57
- package/dist/components/q2-surface.js +3 -3
- package/dist/components/q2-tab-container.js +21 -21
- package/dist/components/q2-tab-pane.js +6 -6
- package/dist/components/q2-tag2.js +8 -6
- package/dist/components/q2-textarea.js +3 -3
- package/dist/components/sectorHelper.js +78 -78
- package/dist/components/tecton-tab-pane.js +10 -10
- package/dist/esm/{charting-DOZct-UB.js → charting-DFXJklqs.js} +79 -1
- package/dist/esm/click-elsewhere_3.entry.js +81 -14
- package/dist/esm/{dataSample-Dm1zpQNi.js → dataSample-CP_VKNqt.js} +1 -1
- package/dist/esm/date-picker-helpers-D8QnN_AS.js +242 -0
- package/dist/esm/{index-DJw6Feh0.js → index-CP8pXJ-l.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/q2-action-group.entry.js +1 -1
- package/dist/esm/q2-action-sheet.entry.js +99 -19
- package/dist/esm/q2-avatar.entry.js +34 -1
- package/dist/esm/q2-badge_2.entry.js +3 -3
- package/dist/esm/q2-btn_2.entry.js +2 -2
- package/dist/esm/q2-calendar.entry.js +9 -4
- package/dist/esm/q2-card-image.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 +20 -6
- package/dist/esm/q2-chart-area.entry.js +38 -7
- package/dist/esm/q2-chart-bar.entry.js +39 -8
- package/dist/esm/q2-chart-donut.entry.js +31 -13
- package/dist/esm/q2-checkbox-group.entry.js +2 -2
- package/dist/esm/q2-checkbox_2.entry.js +8 -5
- package/dist/esm/q2-context.entry.js +4 -4
- package/dist/esm/q2-currency.entry.js +1 -1
- package/dist/esm/q2-data-table.entry.js +7 -7
- package/dist/esm/q2-date-calendar.entry.js +450 -0
- package/dist/esm/q2-date-picker_2.entry.js +965 -0
- 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 +3 -3
- package/dist/esm/q2-editable-field.entry.js +20 -7
- package/dist/esm/q2-example.entry.js +1 -1
- package/dist/esm/q2-file-picker.entry.js +2 -2
- package/dist/esm/q2-form.entry.js +1 -1
- package/dist/esm/q2-formatted-text.entry.js +1 -1
- package/dist/esm/q2-icon.entry.js +1 -1
- package/dist/esm/q2-item.entry.js +20 -2
- package/dist/esm/q2-legend.entry.js +1 -1
- package/dist/esm/q2-link_2.entry.js +2 -2
- package/dist/esm/q2-loc.entry.js +1 -1
- package/dist/esm/q2-message.entry.js +3 -3
- package/dist/esm/q2-meter.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-mutation-observer.entry.js +1 -1
- package/dist/esm/q2-option.entry.js +1 -1
- package/dist/esm/q2-otp.entry.js +5 -5
- package/dist/esm/q2-pagination.entry.js +12 -6
- package/dist/esm/q2-pill.entry.js +8 -5
- 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 +2 -2
- package/dist/esm/q2-resize-observer.entry.js +1 -1
- package/dist/esm/q2-search.entry.js +3 -3
- package/dist/esm/q2-section.entry.js +3 -3
- package/dist/esm/q2-select.entry.js +8 -4
- 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-surface.entry.js +1 -1
- package/dist/esm/q2-tab-container.entry.js +2 -2
- package/dist/esm/q2-tab-pane.entry.js +1 -1
- package/dist/esm/q2-tecton-elements.js +1 -1
- package/dist/esm/q2-textarea.entry.js +2 -2
- package/dist/esm/q2-toast.entry.js +1 -1
- package/dist/esm/q2-tooltip.entry.js +1 -1
- package/dist/esm/{sectorHelper--RMGWGAy.js → sectorHelper-DBtkWtpl.js} +1 -1
- package/dist/esm/tecton-tab-pane.entry.js +2 -2
- package/dist/q2-tecton-elements/{charting-DOZct-UB.js → charting-DFXJklqs.js} +1625 -1554
- package/dist/q2-tecton-elements/click-elsewhere_3.entry.js +85 -43
- package/dist/q2-tecton-elements/{dataSample-Dm1zpQNi.js → dataSample-CP_VKNqt.js} +33 -33
- package/dist/q2-tecton-elements/date-picker-helpers-D8QnN_AS.js +153 -0
- package/dist/q2-tecton-elements/{index-DJw6Feh0.js → index-CP8pXJ-l.js} +1 -1
- package/dist/q2-tecton-elements/q2-action-group.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-action-sheet.entry.js +169 -84
- package/dist/q2-tecton-elements/q2-avatar.entry.js +24 -10
- package/dist/q2-tecton-elements/q2-badge_2.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-btn_2.entry.js +23 -23
- package/dist/q2-tecton-elements/q2-calendar.entry.js +7 -4
- package/dist/q2-tecton-elements/q2-card-image.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-card.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-carousel-pane.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-carousel.entry.js +24 -11
- package/dist/q2-tecton-elements/q2-chart-area.entry.js +187 -141
- package/dist/q2-tecton-elements/q2-chart-bar.entry.js +377 -333
- package/dist/q2-tecton-elements/q2-chart-donut.entry.js +184 -158
- package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-checkbox_2.entry.js +20 -18
- package/dist/q2-tecton-elements/q2-context.entry.js +21 -21
- package/dist/q2-tecton-elements/q2-currency.entry.js +9 -9
- package/dist/q2-tecton-elements/q2-data-table.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-date-calendar.entry.js +438 -0
- package/dist/q2-tecton-elements/q2-date-picker_2.entry.js +792 -0
- package/dist/q2-tecton-elements/q2-detail.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-dropdown-item.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-dropdown.entry.js +16 -16
- package/dist/q2-tecton-elements/q2-editable-field.entry.js +17 -6
- package/dist/q2-tecton-elements/q2-example.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-file-picker.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-form.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-formatted-text.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-icon.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-item.entry.js +26 -16
- package/dist/q2-tecton-elements/q2-legend.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-link_2.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-loc.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-message.entry.js +29 -29
- package/dist/q2-tecton-elements/q2-meter.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-modal.entry.js +18 -18
- package/dist/q2-tecton-elements/q2-month-picker.entry.js +14 -14
- package/dist/q2-tecton-elements/q2-mutation-observer.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-option.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-otp.entry.js +9 -9
- package/dist/q2-tecton-elements/q2-pagination.entry.js +51 -49
- package/dist/q2-tecton-elements/q2-pill.entry.js +22 -17
- package/dist/q2-tecton-elements/q2-radio-group.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-radio.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-relative-time.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-resize-observer.entry.js +13 -13
- package/dist/q2-tecton-elements/q2-search.entry.js +31 -31
- package/dist/q2-tecton-elements/q2-section.entry.js +20 -20
- package/dist/q2-tecton-elements/q2-select.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-stepper-pane.entry.js +10 -10
- package/dist/q2-tecton-elements/q2-stepper-vertical.entry.js +9 -9
- package/dist/q2-tecton-elements/q2-stepper.entry.js +45 -45
- package/dist/q2-tecton-elements/q2-surface.entry.js +15 -15
- package/dist/q2-tecton-elements/q2-tab-container.entry.js +20 -20
- package/dist/q2-tecton-elements/q2-tab-pane.entry.js +9 -9
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
- package/dist/q2-tecton-elements/q2-textarea.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-toast.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-tooltip.entry.js +1 -1
- package/dist/q2-tecton-elements/{sectorHelper--RMGWGAy.js → sectorHelper-DBtkWtpl.js} +56 -56
- package/dist/q2-tecton-elements/tecton-tab-pane.entry.js +9 -9
- package/dist/types/components/q2-action-sheet/q2-action-sheet.d.ts +21 -1
- package/dist/types/components/q2-action-sheet/test/q2-action-sheet-test.vr.d.ts +1 -0
- package/dist/types/components/q2-avatar/q2-avatar.d.ts +5 -0
- package/dist/types/components/q2-btn/q2-btn.d.ts +7 -3
- package/dist/types/components/q2-calendar/q2-calendar.d.ts +10 -2
- package/dist/types/components/q2-carousel/q2-carousel.d.ts +5 -0
- package/dist/types/components/q2-chart-area/q2-chart-area.d.ts +11 -2
- package/dist/types/components/q2-chart-bar/q2-chart-bar.d.ts +9 -0
- package/dist/types/components/q2-chart-donut/q2-chart-donut.d.ts +1 -0
- package/dist/types/components/q2-checkbox/q2-checkbox.d.ts +4 -3
- package/dist/types/components/q2-checkbox-group/q2-checkbox-group.d.ts +4 -2
- package/dist/types/components/q2-date-calendar/q2-date-calendar.d.ts +122 -0
- package/dist/types/components/q2-date-calendar/test/q2-date-calendar-test.vr.d.ts +1 -0
- package/dist/types/components/q2-date-picker/q2-date-picker.d.ts +304 -0
- package/dist/types/components/q2-date-picker/test/q2-date-picker-test.vr.d.ts +1 -0
- package/dist/types/components/q2-dropdown/q2-dropdown.d.ts +3 -3
- package/dist/types/components/q2-editable-field/q2-editable-field.d.ts +14 -1
- package/dist/types/components/q2-input/q2-input.d.ts +4 -2
- package/dist/types/components/q2-item/q2-item.d.ts +3 -0
- package/dist/types/components/q2-option-list/q2-option-list.d.ts +1 -0
- package/dist/types/components/q2-popover/q2-popover.d.ts +4 -0
- package/dist/types/components/q2-radio/q2-radio.d.ts +3 -2
- package/dist/types/components/q2-radio-group/q2-radio-group.d.ts +4 -2
- package/dist/types/components/q2-search/q2-search.d.ts +3 -1
- package/dist/types/components/q2-select/q2-select.d.ts +4 -2
- package/dist/types/components/q2-textarea/q2-textarea.d.ts +4 -2
- package/dist/types/components.d.ts +858 -49
- package/dist/types/global.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/utils/chart-keyboard.d.ts +16 -0
- package/dist/types/utils/date-picker/date-picker-helpers.d.ts +47 -0
- package/dist/types/utils/date-picker/date-picker-types.d.ts +42 -0
- package/package.json +3 -3
- package/dist/cjs/q2-optgroup.cjs.entry.js +0 -70
- package/dist/esm/q2-optgroup.entry.js +0 -68
- package/dist/q2-tecton-elements/q2-optgroup.entry.js +0 -88
|
@@ -92,7 +92,7 @@ export class Q2MutationObserver {
|
|
|
92
92
|
// #endregion
|
|
93
93
|
// #region Render Methods
|
|
94
94
|
render() {
|
|
95
|
-
return h("slot", { key: '
|
|
95
|
+
return h("slot", { key: '8e33d51e7485e5477d3cf98cde060dd87effc2f7', onSlotchange: this.handleSlotChange });
|
|
96
96
|
}
|
|
97
97
|
static get is() { return "q2-mutation-observer"; }
|
|
98
98
|
static get encapsulation() { return "shadow"; }
|
|
@@ -55,7 +55,7 @@ export class Q2Optgroup {
|
|
|
55
55
|
// #endregion
|
|
56
56
|
// #region Render Methods
|
|
57
57
|
render() {
|
|
58
|
-
return (h("div", { key: '
|
|
58
|
+
return (h("div", { key: '829ae5ebec150734128c98343ddb8112de0ee21e', class: "q2-optgroup-container", hidden: this.hidden, "aria-labelledby": this.headerId, role: "group" }, h("div", { key: '6683155f922a2d15349f885aabac0bf9ee6a4575', class: "q2-optgroup-header", id: this.headerId }, (this.label && loc(this.label)) || ''), h("div", { key: 'b974da306256b13283183fa03e4dc8bcc8be3f44', class: "q2-optgroup-options" }, h("slot", { key: '2f0035aad12309be2c5c4ea3125077cc704e65e4' }))));
|
|
59
59
|
}
|
|
60
60
|
static get is() { return "q2-optgroup"; }
|
|
61
61
|
static get encapsulation() { return "shadow"; }
|
|
@@ -413,9 +413,32 @@ export class Q2OptionList {
|
|
|
413
413
|
return;
|
|
414
414
|
const optionRole = type === 'menu' ? 'menuitem' : 'option';
|
|
415
415
|
this.allOptions.forEach(option => {
|
|
416
|
+
// iOS 26 bug: setting role="menuitem" on the q2-dropdown-item host prevents VoiceOver from announcing the option name.
|
|
417
|
+
if (type === 'menu' && option.tagName.toLowerCase() === 'q2-dropdown-item')
|
|
418
|
+
return;
|
|
416
419
|
option.role = optionRole;
|
|
417
420
|
});
|
|
418
421
|
}
|
|
422
|
+
findScrollableAncestor(node) {
|
|
423
|
+
var _a, _b;
|
|
424
|
+
let current = node;
|
|
425
|
+
while (current) {
|
|
426
|
+
if (current instanceof HTMLElement && current !== node) {
|
|
427
|
+
const overflowY = getComputedStyle(current).overflowY;
|
|
428
|
+
// Skip html/body so page-level scroll isn't treated as our container.
|
|
429
|
+
if ((overflowY === 'auto' || overflowY === 'scroll') &&
|
|
430
|
+
current !== document.documentElement &&
|
|
431
|
+
current !== document.body) {
|
|
432
|
+
return current;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
const slot = current.assignedSlot;
|
|
436
|
+
const parent = current.parentNode;
|
|
437
|
+
const shadowHost = current.host;
|
|
438
|
+
current = (_b = (_a = slot !== null && slot !== void 0 ? slot : parent) !== null && _a !== void 0 ? _a : shadowHost) !== null && _b !== void 0 ? _b : null;
|
|
439
|
+
}
|
|
440
|
+
return null;
|
|
441
|
+
}
|
|
419
442
|
focusSelectedSibling(option) {
|
|
420
443
|
const { allVisibleOptions, allOptions } = this;
|
|
421
444
|
const hasNoSiblings = allVisibleOptions.length < 2;
|
|
@@ -497,9 +520,18 @@ export class Q2OptionList {
|
|
|
497
520
|
const activeOption = this.allOptions[this.activeIndex];
|
|
498
521
|
if (!activeOption)
|
|
499
522
|
return;
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
523
|
+
// Do our own scroll math so `scrollIntoView` doesn't cascade to the parent window in an SDK iframe.
|
|
524
|
+
const container = this.findScrollableAncestor(activeOption);
|
|
525
|
+
if (container) {
|
|
526
|
+
if (container.scrollHeight > container.clientHeight) {
|
|
527
|
+
const optionRect = activeOption.getBoundingClientRect();
|
|
528
|
+
const containerRect = container.getBoundingClientRect();
|
|
529
|
+
const optionCenter = optionRect.top - containerRect.top + optionRect.height / 2;
|
|
530
|
+
container.scrollTop += optionCenter - containerRect.height / 2;
|
|
531
|
+
}
|
|
532
|
+
return;
|
|
533
|
+
}
|
|
534
|
+
activeOption.scrollIntoView({ block: 'nearest' });
|
|
503
535
|
}
|
|
504
536
|
searchOptions(key, shouldSelect) {
|
|
505
537
|
this.searchString = key;
|
|
@@ -583,7 +615,7 @@ export class Q2OptionList {
|
|
|
583
615
|
// #endregion
|
|
584
616
|
// #region Render Methods
|
|
585
617
|
render() {
|
|
586
|
-
return (h(Host, { key: '
|
|
618
|
+
return (h(Host, { key: '19cadb5668db33a912951df4ec0e81a74b2b78ce' }, h("div", { key: '1d5a8f310ee97bc2189b839ee3d87e08bf0fa269', class: "content", ref: el => (this.contentElement = el), onFocusout: this.focusoutHandler }, h("div", { key: '24b1616962a9b544fb6215acc1e6edb4f12a5a03', class: "options", "aria-label": loc('tecton.element.optionList.label', [this.label]), "aria-multiselectable": this.type === 'menu' ? undefined : this.multiple ? 'true' : undefined, role: this.type || 'listbox', onKeyDown: this.internalKeydownHandler, onClick: this.clickHandler }, h("slot", { key: 'eeb0342b7c319f5f5af95daa54dcaa732c3159d9' })))));
|
|
587
619
|
}
|
|
588
620
|
static get is() { return "q2-option-list"; }
|
|
589
621
|
static get encapsulation() { return "shadow"; }
|
|
@@ -358,16 +358,16 @@ export class Q2Otp {
|
|
|
358
358
|
renderSendCodeButton() {
|
|
359
359
|
if (!this.isAwaitingSendCode)
|
|
360
360
|
return;
|
|
361
|
-
return (h("q2-btn", { block: true, class: "send-code-button", disabled: this.disabled, intent: "
|
|
361
|
+
return (h("q2-btn", { block: true, class: "send-code-button", disabled: this.disabled, intent: "primary", label: this.localizedSendCodeLabel, onClick: this.handleSendCodeClick, ref: el => (this.sendCodeRef = el) }));
|
|
362
362
|
}
|
|
363
363
|
renderSubmitArea() {
|
|
364
364
|
if (this.isSuccess) {
|
|
365
365
|
return (h("q2-btn", { block: true, class: "submit-button", intent: "neutral", onClick: this.handleSubmitClick }, h("q2-icon", { type: "checkmark" }), loc('Success')));
|
|
366
366
|
}
|
|
367
|
-
return (h("q2-btn", { block: true, class: "submit-button", disabled: this.disabled || !this.isComplete, intent: "
|
|
367
|
+
return (h("q2-btn", { block: true, class: "submit-button", disabled: this.disabled || !this.isComplete, intent: "primary", label: this.isVerifying ? this.localizedProcessingLabel : this.localizedSubmitLabel, loading: this.isVerifying, onClick: this.handleSubmitClick }));
|
|
368
368
|
}
|
|
369
369
|
render() {
|
|
370
|
-
return (h("div", { key: '
|
|
370
|
+
return (h("div", { key: '8f4ada9f194f1b0995995e946097b3e24a11f605', "aria-busy": this.isVerifying ? 'true' : undefined, "aria-labelledby": this.label ? this.labelId : undefined, class: {
|
|
371
371
|
'otp-container': true,
|
|
372
372
|
'has-focus': this.hasFocus,
|
|
373
373
|
'is-masked': this.masked,
|
|
@@ -375,7 +375,7 @@ export class Q2Otp {
|
|
|
375
375
|
'state-success': this.state === 'success',
|
|
376
376
|
'state-verifying': this.isVerifying,
|
|
377
377
|
[`length-${this.normalizedLength}`]: true,
|
|
378
|
-
}, role: "group" }, this.renderSendCodeButton(), h("div", { key: '
|
|
378
|
+
}, role: "group" }, this.renderSendCodeButton(), h("div", { key: '099e1ef5ccc09846faf9952772e61ff7644e5085', class: { 'otp-content': true, 'send-code-hidden': this.state === 'ready' } }, this.renderLabel(), h("div", { key: '5ad6ff061779de6562f523148459729d73bbf53a', class: "otp-control-group" }, h("div", { key: 'd60e93f2d79d0f4b0348a5b581647ece89e9973c', class: "fields-shell" }, h("div", { key: '55b515c8a04e664024dcc66e4d894dcb0ddd4ca4', class: "fields-container" }, h("input", { key: 'b8319da6e91ea06ff5632c72326460c0e532393d', "aria-describedby": this.describedBy, "aria-invalid": this.state === 'error' ? 'true' : 'false', "aria-label": this.inputAriaLabel, autocomplete: "one-time-code", autofocus: this.autoFocus, class: "otp-hidden-input", disabled: this.disabled || this.isVerifying || this.isSuccess, inputmode: "numeric", maxLength: this.normalizedLength, onBlur: this.handleFocusOut, onFocus: this.handleFocusIn, onInput: this.handleInputEvent, onKeyDown: this.handleKeyDown, onPaste: this.handlePaste, pattern: "[0-9]*", ref: el => (this.inputRef = el), "test-id": "q2OtpInput", type: "text", value: this.value }), this.renderFields()), this.renderProcessingOverlay()), this.renderSubmitArea(), this.renderMessage()), this.renderHelperText())));
|
|
379
379
|
}
|
|
380
380
|
static get is() { return "q2-otp"; }
|
|
381
381
|
static get encapsulation() { return "shadow"; }
|
|
@@ -163,6 +163,23 @@ button {
|
|
|
163
163
|
--tct-select-margin: 0;
|
|
164
164
|
width: var(--tct-pagination-perpage-width, 60%);
|
|
165
165
|
}
|
|
166
|
+
.container.small {
|
|
167
|
+
flex-wrap: wrap;
|
|
168
|
+
row-gap: var(--tct-pagination-row-gap, var(--app-scale-2x, 10px));
|
|
169
|
+
height: auto;
|
|
170
|
+
max-width: 100%;
|
|
171
|
+
}
|
|
172
|
+
.container.small .description {
|
|
173
|
+
flex-basis: 100%;
|
|
174
|
+
min-width: 0;
|
|
175
|
+
overflow-wrap: anywhere;
|
|
176
|
+
text-align: center;
|
|
177
|
+
white-space: normal;
|
|
178
|
+
line-height: max(1.2em, var(--app-line-height, 1.428571429em));
|
|
179
|
+
}
|
|
180
|
+
.container.small .controls {
|
|
181
|
+
margin-inline: auto;
|
|
182
|
+
}
|
|
166
183
|
|
|
167
184
|
.controls {
|
|
168
185
|
display: flex;
|
|
@@ -14,7 +14,9 @@ export class Q2Pagination {
|
|
|
14
14
|
this.disabled = false;
|
|
15
15
|
this.checkSize = () => {
|
|
16
16
|
const { hostElement, containerElement } = this;
|
|
17
|
-
const
|
|
17
|
+
const fontSize = parseFloat(getComputedStyle(containerElement).fontSize);
|
|
18
|
+
// Reserve enough space for the full controls as the text grows.
|
|
19
|
+
const isOverflowing = this.containerWidth > hostElement.clientWidth || hostElement.clientWidth < fontSize * 42;
|
|
18
20
|
this.isSmall = isOverflowing;
|
|
19
21
|
nextPaint(() => {
|
|
20
22
|
const currentContainerWidth = containerElement.clientWidth;
|
|
@@ -69,7 +71,9 @@ export class Q2Pagination {
|
|
|
69
71
|
}
|
|
70
72
|
}
|
|
71
73
|
componentDidLoad() {
|
|
74
|
+
var _a;
|
|
72
75
|
this.containerWidth = this.containerElement.clientWidth;
|
|
76
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.observe(this.containerElement);
|
|
73
77
|
overrideFocus(this.hostElement);
|
|
74
78
|
}
|
|
75
79
|
// #endregion
|
|
@@ -209,6 +213,8 @@ export class Q2Pagination {
|
|
|
209
213
|
const classes = ['container'];
|
|
210
214
|
if (this.stacked)
|
|
211
215
|
classes.push('stacked');
|
|
216
|
+
if (this.isSmall)
|
|
217
|
+
classes.push('small');
|
|
212
218
|
return classes;
|
|
213
219
|
}
|
|
214
220
|
get currentRange() {
|
|
@@ -312,7 +318,7 @@ export class Q2Pagination {
|
|
|
312
318
|
total,
|
|
313
319
|
});
|
|
314
320
|
}
|
|
315
|
-
return (h("nav", { key: '
|
|
321
|
+
return (h("nav", { key: 'a427944d7134621fe5c1cc469d554cf60ea69271', class: this.containerClasses.join(' '), ref: el => (this.containerElement = el), "aria-label": loc('tecton.element.pagination.title') }, h("div", { key: 'ab5e3a0dc0a8c3ab99c8d6754097c37ae1c10193', class: "description", "test-id": "description" }, pagesOnly
|
|
316
322
|
? loc('tecton.element.pagination.pages', {
|
|
317
323
|
current: page,
|
|
318
324
|
total: totalPages,
|
|
@@ -321,10 +327,10 @@ export class Q2Pagination {
|
|
|
321
327
|
range: currentRange,
|
|
322
328
|
recordType: recordType.toLowerCase(),
|
|
323
329
|
total: total.toLocaleString(),
|
|
324
|
-
})), h("div", { key: '
|
|
330
|
+
})), h("div", { key: 'e84213e3dbeac1bb54fcd8244e486274869c5fa5', class: "controls" }, h("div", { key: 'f5a4cb3a4d467b2ce412afa2bb016e1843ccb364', class: "btn-group" }, h("q2-btn", { key: 'b4d315503de340e482ffb042d3cd4dbaff1aa3eb', ref: el => (this.firstPageBtn = el), label: loc('tecton.element.pagination.goToFirstPage'), disabled: disabled || onFirstPage, hidden: isFullViewHidden, onTctClick: () => this.handlePageChange(1), "test-id": "firstPageBtn", "hide-label": true }, h("q2-icon", { key: '8d437e9a6b00999eee091accd8581b84a2dbe4fe', type: "chevron-double-left" })), h("q2-btn", { key: 'bd91788b84cbe8a55fb7e7b53342a6c9a75e3694', ref: el => (this.prevPageBtn = el), label: prevButtonLabel, disabled: disabled || onFirstPage, onTctClick: () => this.handlePageChange(page - 1), "test-id": "prevPageBtn", "hide-label": true }, h("q2-icon", { key: 'bf9285d825da06e43e330b565ecf46f72a9ad930', type: "chevron-left" }))), h("div", { key: '76ce1e31814ec56e7d060200ee8a87c720c5fc1e', class: "input-display", hidden: isFullViewHidden }, h("span", { key: 'b1768b78ca08e2f76892823a165448c298d2a5b4', "aria-hidden": "true" }, loc('tecton.element.pagination.page')), h("div", { key: '8909fdeaf8832ec6a104ffad86258d0d3034fbb3', class: "input-wrapper", onClick: () => this.inputField.dispatchEvent(new FocusEvent('focus')) }, h("q2-input", { key: '96e0ce1764dc542fcac5a516b608b379bd1453a9', ref: el => (this.inputField = el), type: "number", value: `${page}`, min: 1, max: this.totalPages, hideLabel: true, optional: true, label: `${loc('tecton.element.pagination.page')} (${loc('tecton.element.pagination.ofPages', [totalPages.toLocaleString()])})`, onChange: event => event.stopImmediatePropagation(), onTctChange: event => {
|
|
325
331
|
event.stopPropagation();
|
|
326
332
|
this.handlePageChange(event.detail.value);
|
|
327
|
-
}, "test-id": "pageInput", current: "page", disabled: disabled })), h("span", { key: '
|
|
333
|
+
}, "test-id": "pageInput", current: "page", disabled: disabled })), h("span", { key: '3914f78404deab10b4173df5b16c205067c7e15e', "aria-hidden": "true" }, loc('tecton.element.pagination.ofPages', [totalPages.toLocaleString()]))), h("div", { key: 'b5b441d213d99d04b18c976628ba07142e00856f', class: "btn-group" }, h("q2-btn", { key: '3299b27a7d24045f2258288e86702a4b7e6d1e37', ref: el => (this.nextPageBtn = el), label: nextButtonLabel, disabled: disabled || onLastPage, onTctClick: () => this.handlePageChange(page + 1), "test-id": "nextPageBtn", "hide-label": true }, h("q2-icon", { key: 'd63e7679e5087a1a03bb17fd0a7c24c0d07bdf87', type: "chevron-right" })), h("q2-btn", { key: 'f575528380b7d239db48f49353d71b88ba0e2d9e', ref: el => (this.lastPageBtn = el), label: "tecton.element.pagination.goToLastPage", disabled: disabled || onLastPage, hidden: isFullViewHidden, onTctClick: () => this.handlePageChange(totalPages), "test-id": "lastPageBtn", "hide-label": true }, h("q2-icon", { key: 'c76d0fe0dff9095f893604fc41cd4d615075045e', type: "chevron-double-right" })))), h("div", { key: '71ad1c246e16a1c84318d7ccf75d50a37246af12', class: "per-page", hidden: isFullViewHidden || !((_a = this.perPageIncrements) === null || _a === void 0 ? void 0 : _a.length) }, showPerPageSelect && this.renderPerPage())));
|
|
328
334
|
}
|
|
329
335
|
static get is() { return "q2-pagination"; }
|
|
330
336
|
static get encapsulation() { return "shadow"; }
|
|
@@ -142,3 +142,42 @@ test.describe('q2-pagination — variants × themes', () => {
|
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
});
|
|
145
|
+
test.describe('q2-pagination — mobile large font scale', () => {
|
|
146
|
+
for (const theme of ['standard', 'default-2026']) {
|
|
147
|
+
for (const scale of [200, 400]) {
|
|
148
|
+
test(`q2-pagination--mobile-font-scale-${scale}--${theme}`, async ({ page }) => {
|
|
149
|
+
await page.setViewportSize({ width: 375, height: 812 });
|
|
150
|
+
await setupPage(page, `<q2-pagination record-type="International account transactions" total="123456789" page="5000000" per-page="10"></q2-pagination>`, { theme, fontSizePx: (16 * scale) / 100, setupLoc: true });
|
|
151
|
+
await expect(page.locator('q2-pagination nav.container')).toHaveClass(/small/);
|
|
152
|
+
await page.locator('q2-pagination').evaluate(host => {
|
|
153
|
+
host.style.lineHeight = '20px';
|
|
154
|
+
});
|
|
155
|
+
const layout = await page.locator('q2-pagination').evaluate(host => {
|
|
156
|
+
const description = host.shadowRoot.querySelector('.description');
|
|
157
|
+
const controls = host.shadowRoot.querySelector('.controls');
|
|
158
|
+
const descriptionRect = description.getBoundingClientRect();
|
|
159
|
+
const controlsRect = controls.getBoundingClientRect();
|
|
160
|
+
const hostRect = host.getBoundingClientRect();
|
|
161
|
+
const descriptionStyle = getComputedStyle(description);
|
|
162
|
+
return {
|
|
163
|
+
controlsBelowDescription: controlsRect.top >= descriptionRect.bottom,
|
|
164
|
+
descriptionFits: description.scrollWidth <= description.clientWidth,
|
|
165
|
+
controlsFit: controlsRect.right <= hostRect.right,
|
|
166
|
+
descriptionWrapped: descriptionRect.height > parseFloat(descriptionStyle.lineHeight) * 1.5,
|
|
167
|
+
lineHeightFitsFont: parseFloat(descriptionStyle.lineHeight) >= parseFloat(descriptionStyle.fontSize) * 1.2 - 1,
|
|
168
|
+
};
|
|
169
|
+
});
|
|
170
|
+
await expect(page).toHaveScreenshot(`q2-pagination--mobile-font-scale-${scale}--${theme}.png`, {
|
|
171
|
+
fullPage: true,
|
|
172
|
+
});
|
|
173
|
+
expect(layout).toEqual({
|
|
174
|
+
controlsBelowDescription: true,
|
|
175
|
+
descriptionFits: true,
|
|
176
|
+
controlsFit: true,
|
|
177
|
+
descriptionWrapped: true,
|
|
178
|
+
lineHeightFitsFont: true,
|
|
179
|
+
});
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
});
|
|
@@ -90,9 +90,8 @@ button {
|
|
|
90
90
|
/**
|
|
91
91
|
* @prop --tct-pill-margin: (<length-percentage>) Controls the trailing inline margin between sibling pills.
|
|
92
92
|
* @prop --tct-pill-min-height: (<length>) Controls the minimum height of the pill (and its popover container).
|
|
93
|
-
* @prop --tct-pill-max-width: (<length-percentage>) Controls the maximum width of the pill
|
|
93
|
+
* @prop --tct-pill-max-width: (<length-percentage>) Controls the maximum width of the pill button. Use font-scaling units to scale with text.
|
|
94
94
|
* @prop --tct-pill-disabled-opacity: (<number>) Controls the opacity of the pill when disabled.
|
|
95
|
-
* @prop --tct-pill-btn-height: (<length>) Controls the height of the pill button.
|
|
96
95
|
* @prop --tct-pill-btn-padding-inline: (<length-percentage>+) Controls the inline padding of the pill button.
|
|
97
96
|
* @prop --tct-pill-btn-border-radius: (<length-percentage>) Controls the corner radius of the pill button.
|
|
98
97
|
* @prop --tct-pill-btn-border-width: (<length>+) Controls the border width of the pill button.
|
|
@@ -147,6 +146,7 @@ button {
|
|
|
147
146
|
*/
|
|
148
147
|
:host {
|
|
149
148
|
display: inline-block;
|
|
149
|
+
max-width: 100%;
|
|
150
150
|
position: relative;
|
|
151
151
|
line-height: 0;
|
|
152
152
|
}
|
|
@@ -227,7 +227,7 @@ q2-popover,
|
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
.btn-height-wrapper {
|
|
230
|
-
height: var(--comp-pill-min-height);
|
|
230
|
+
min-height: var(--comp-pill-min-height);
|
|
231
231
|
display: flex;
|
|
232
232
|
align-items: center;
|
|
233
233
|
cursor: pointer;
|
|
@@ -242,7 +242,7 @@ q2-popover,
|
|
|
242
242
|
.btn-close,
|
|
243
243
|
.btn-primary {
|
|
244
244
|
cursor: pointer;
|
|
245
|
-
height: var(--comp-pill-btn-height);
|
|
245
|
+
min-height: var(--comp-pill-btn-height);
|
|
246
246
|
border-style: solid;
|
|
247
247
|
border-radius: var(--tct-pill-btn-border-radius, var(--t-pill-btn-border-radius, 30px));
|
|
248
248
|
transition-property: background, color, padding, width, opacity;
|
|
@@ -272,9 +272,12 @@ q2-popover,
|
|
|
272
272
|
align-items: center;
|
|
273
273
|
gap: var(--app-scale-1x, 5px);
|
|
274
274
|
width: 100%;
|
|
275
|
+
max-width: var(--tct-pill-max-width, var(--t-pill-max-width, calc(200 * var(--t-px-1, 1px))));
|
|
276
|
+
min-width: 0;
|
|
275
277
|
text-align: start;
|
|
276
278
|
}
|
|
277
279
|
.btn-primary ::slotted(q2-icon[slot=decorator]) {
|
|
280
|
+
flex-shrink: 0;
|
|
278
281
|
--tct-icon-size: 1em;
|
|
279
282
|
--tct-icon-stroke-primary: var(--tct-pill-decorator-icon-primary-stroke, var(--comp-btn-color));
|
|
280
283
|
--tct-icon-stroke-secondary: var(--tct-pill-decorator-icon-secondary-stroke, var(--comp-btn-color));
|
|
@@ -291,12 +294,6 @@ q2-popover,
|
|
|
291
294
|
.has-options .btn-primary, .has-icon .btn-primary {
|
|
292
295
|
padding-right: calc(var(--tct-pill-icon-gap, var(--t-pill-icon-gap, var(--app-scale-1x, 5px))) + var(--comp-close-size));
|
|
293
296
|
}
|
|
294
|
-
.has-options .btn-primary {
|
|
295
|
-
text-overflow: ellipsis;
|
|
296
|
-
overflow: hidden;
|
|
297
|
-
white-space: nowrap;
|
|
298
|
-
max-width: var(--tct-pill-max-width, var(--t-pill-max-width, 200px));
|
|
299
|
-
}
|
|
300
297
|
:host([active]:not([active=false])) .btn-primary {
|
|
301
298
|
background: var(--comp-active-btn-background);
|
|
302
299
|
box-shadow: var(--comp-active-btn-box-shadow);
|
|
@@ -319,6 +316,13 @@ q2-popover,
|
|
|
319
316
|
--tct-icon-stroke-secondary: var(--tct-pill-active-decorator-icon-secondary-stroke, var(--tct-pill-decorator-icon-secondary-stroke, var(--comp-active-btn-color)));
|
|
320
317
|
}
|
|
321
318
|
|
|
319
|
+
.pill-label {
|
|
320
|
+
text-overflow: ellipsis;
|
|
321
|
+
overflow: hidden;
|
|
322
|
+
white-space: nowrap;
|
|
323
|
+
min-width: 0;
|
|
324
|
+
}
|
|
325
|
+
|
|
322
326
|
.btn-close {
|
|
323
327
|
background: transparent;
|
|
324
328
|
border-color: transparent;
|
|
@@ -273,11 +273,14 @@ export class Q2Pill {
|
|
|
273
273
|
this.primaryBtn.focus();
|
|
274
274
|
}
|
|
275
275
|
async popoverStateHandler({ detail: { open } }) {
|
|
276
|
-
|
|
277
|
-
|
|
276
|
+
var _a;
|
|
277
|
+
if (this.open === open)
|
|
278
|
+
return;
|
|
279
|
+
this.open = open;
|
|
278
280
|
if (open)
|
|
279
281
|
return;
|
|
280
282
|
this.setOptionListActiveElement(null);
|
|
283
|
+
(_a = this.primaryBtn) === null || _a === void 0 ? void 0 : _a.focus();
|
|
281
284
|
}
|
|
282
285
|
// #endregion
|
|
283
286
|
// #region Public Methods API
|
|
@@ -410,7 +413,7 @@ export class Q2Pill {
|
|
|
410
413
|
wrapperClassNames.push('has-icon');
|
|
411
414
|
if (optionCount)
|
|
412
415
|
wrapperClassNames.push('has-options');
|
|
413
|
-
return (h("click-elsewhere", { key: '
|
|
416
|
+
return (h("click-elsewhere", { key: '8cba59cde3746d0397305512334eb56357e9e5d4', onChange: this.onClickElsewhere }, h("div", { key: '391da54f9fd870e223765e6266291dff9775abe6', class: wrapperClassNames.join(' ') }, h("div", { key: '06431fd76c0a9d30833756407c89ff59609bc3a3', class: "btn-height-wrapper", ref: el => (this.primaryBtnWrapper = el), onClick: this.handleWrapperClick, tabIndex: -1 }, h("button", { key: '609557b9206c91511e78e26c990230e61f7e5c19', class: "btn-primary", "test-id": "btn-control", type: "button", role: (optionCount && 'combobox') || undefined, ref: el => (this.primaryBtn = el), onClick: this.handleClick, onKeyDown: this.handleKeydown, onFocusout: this.handleFocusOut, disabled: this.disabled, "aria-roledescription": !optionCount && 'filter', "aria-controls": (optionCount && 'option-list') || undefined, "aria-expanded": (optionCount && `${!!open}`) || undefined, "aria-label": text, "aria-pressed": !optionCount ? `${!!active}` : undefined, "aria-describedby": (optionCount && 'option-description') || undefined }, h("slot", { key: 'e1f4c57b7526f714cf0242e101ec0f5c39ebafa5', name: "decorator" }), h("span", { key: '98a770f6f4fabe04d886f66d57e76a4febb31353', class: "pill-label" }, truncatedText))), this.renderIcon(), !!optionCount && this.renderHiddenElement()), this.optionCount > 0 && (h("q2-popover", { key: '30fb581a9eeb008262bbb3fc4a82537f1b78af28', ref: el => (this.popoverElement = el), controlElement: this.primaryBtn, open: this.open, "max-height": this.popoverMaxHeight, minHeight: this.popoverMinHeight, direction: this.popoverDirection, align: this.popoverAlignment, onFocusout: this.handleFocusOut }, h("div", { key: '6fc858b2064b78b2ccaafd35aefaa2e4c9e1ea07', class: "popover-content" }, h("div", { key: '75134f4a5d4296f6f69a70197bf1bd450c05a8e0', ref: el => (this.popoverTopContainer = el), class: "popover-top-container", tabindex: "-1", hidden: !this.hasPopoverTop, onKeyDown: this.handleSlotKeydown }, h("slot", { key: 'f570a1a19b97bd7eb4b2ae38975db95ff1153b00', name: "popover-top" })), h("q2-option-list", { key: 'aca9ff86903dcf5b4e5138541ac20dac68955fb7', type: "listbox", ref: el => (this.optionList = el), id: "option-list", onChange: this.handleChange, multiple: this.multiple, selectedOptions: this.selectedOptions, onReady: () => this.updateSelectedOptionElements(), onPopoverState: this.onPopoverState, label: loc('tecton.element.optionList.label', [this.optionListLabel]) }, h("slot", { key: '89c5f3739c36206ceecb06245ba3052491b89898' })), h("div", { key: '8f98c6b4a59c2c0675b5648aed4a1110f0136d87', ref: el => (this.popoverBottomContainer = el), class: "popover-bottom-container", tabindex: "-1", hidden: !this.hasPopoverBottom, onKeyDown: this.handleSlotKeydown }, h("slot", { key: '75ef6c235c31755e0a5b9905db16e02ff8c4eea3', name: "popover-bottom" })))))));
|
|
414
417
|
}
|
|
415
418
|
static get is() { return "q2-pill"; }
|
|
416
419
|
static get encapsulation() { return "shadow"; }
|
|
@@ -125,6 +125,16 @@ test.describe('q2-pill — variants × themes', () => {
|
|
|
125
125
|
});
|
|
126
126
|
// 'default' (inactive, no value) exercises --tct-pill-btn-font-size (button label text).
|
|
127
127
|
const PILL_DEFAULT_VARIANT = VARIANTS.find(v => v.name === 'default');
|
|
128
|
+
const LONG_LABEL = 'ExtraordinarilyLongAccountDescription WithoutAnyAvailableSpace';
|
|
129
|
+
const LONG_LABEL_VARIANTS = [
|
|
130
|
+
{ name: 'long-label', html: `<q2-pill label="${LONG_LABEL}"></q2-pill>` },
|
|
131
|
+
{ name: 'long-label-active', html: `<q2-pill label="${LONG_LABEL}" active></q2-pill>` },
|
|
132
|
+
{
|
|
133
|
+
name: 'long-label-decorator',
|
|
134
|
+
html: `<q2-pill label="${LONG_LABEL}"><q2-icon slot="decorator" type="star"></q2-icon></q2-pill>`,
|
|
135
|
+
},
|
|
136
|
+
{ name: 'long-label-options', html: `<q2-pill label="${LONG_LABEL}">${OPTIONS}</q2-pill>` },
|
|
137
|
+
];
|
|
128
138
|
test.describe(`q2-pill — scaled font size × themes`, () => {
|
|
129
139
|
for (const theme of THEMES) {
|
|
130
140
|
test(`q2-pill--default--resting--${FONT_SCALE_SUFFIX} — ${theme}`, async ({ page }) => {
|
|
@@ -132,4 +142,19 @@ test.describe(`q2-pill — scaled font size × themes`, () => {
|
|
|
132
142
|
await expect(page).toHaveScreenshot(`q2-pill--default--resting--${FONT_SCALE_SUFFIX}--${theme}.png`);
|
|
133
143
|
});
|
|
134
144
|
}
|
|
145
|
+
for (const variant of LONG_LABEL_VARIANTS) {
|
|
146
|
+
for (const theme of THEMES) {
|
|
147
|
+
test(`q2-pill--${variant.name}--${FONT_SCALE_SUFFIX} — ${theme}`, async ({ page }) => {
|
|
148
|
+
await setupPage(page, `<div style="width: 180px">${variant.html}</div>`, {
|
|
149
|
+
theme,
|
|
150
|
+
fontSizePx: FONT_SCALE_PX,
|
|
151
|
+
});
|
|
152
|
+
const maxWidth = await page
|
|
153
|
+
.locator('q2-pill .btn-primary')
|
|
154
|
+
.evaluate(el => parseFloat(getComputedStyle(el).maxWidth));
|
|
155
|
+
expect(maxWidth).toBeCloseTo((200 * FONT_SCALE_PX) / 16, 0);
|
|
156
|
+
await expect(page).toHaveScreenshot(`q2-pill--${variant.name}--${FONT_SCALE_SUFFIX}--${theme}.png`);
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
}
|
|
135
160
|
});
|
|
@@ -142,6 +142,7 @@ button {
|
|
|
142
142
|
margin: 0;
|
|
143
143
|
padding: var(--tct-popover-padding, 0);
|
|
144
144
|
overflow: auto;
|
|
145
|
+
overscroll-behavior: contain;
|
|
145
146
|
background: var(--tct-popover-background, var(--app-white, #ffffff));
|
|
146
147
|
backdrop-filter: var(--tct-popover-backdrop-filter, none);
|
|
147
148
|
color: var(--tct-popover-font-color, inherit);
|
|
@@ -41,6 +41,7 @@ export class Q2Popover {
|
|
|
41
41
|
this.displayBuffer = 10;
|
|
42
42
|
this.orientationChanged = false;
|
|
43
43
|
this.pendingAnimationResolve = null;
|
|
44
|
+
this.platformScrollUnsubscribe = null;
|
|
44
45
|
// #endregion
|
|
45
46
|
// #region State Properties
|
|
46
47
|
this.animationState = 'idle';
|
|
@@ -52,11 +53,30 @@ export class Q2Popover {
|
|
|
52
53
|
/** Aligns the popover to the left or right side of the control element. */
|
|
53
54
|
this.align = 'left';
|
|
54
55
|
this.mode = null;
|
|
56
|
+
this.handleInsideScroll = (event) => {
|
|
57
|
+
const { containerElement } = this;
|
|
58
|
+
if (!containerElement)
|
|
59
|
+
return;
|
|
60
|
+
if (containerElement.scrollHeight > containerElement.clientHeight)
|
|
61
|
+
return;
|
|
62
|
+
event.preventDefault();
|
|
63
|
+
};
|
|
55
64
|
this.handleMinHeight = () => {
|
|
56
65
|
if (this.minHeight) {
|
|
57
66
|
handleDeprecationWarning(this, 'minHeight', 'prop');
|
|
58
67
|
}
|
|
59
68
|
};
|
|
69
|
+
this.handleOutsideScroll = (event) => {
|
|
70
|
+
if (!this.open)
|
|
71
|
+
return;
|
|
72
|
+
if (event.composedPath().includes(this.hostElement))
|
|
73
|
+
return;
|
|
74
|
+
this.open = false;
|
|
75
|
+
};
|
|
76
|
+
this.handlePlatformScroll = () => {
|
|
77
|
+
if (this.open)
|
|
78
|
+
this.open = false;
|
|
79
|
+
};
|
|
60
80
|
this.handlePopoverToggleEvent = (event) => {
|
|
61
81
|
mirrorEmit(this, ['popoverStateChanged', 'tctPopoverStateChanged'], { open: event.newState === 'open' });
|
|
62
82
|
};
|
|
@@ -171,8 +191,10 @@ export class Q2Popover {
|
|
|
171
191
|
this.handleMinHeight();
|
|
172
192
|
if (this.supportsPopoverAPI)
|
|
173
193
|
(_a = this.containerElement) === null || _a === void 0 ? void 0 : _a.addEventListener('toggle', this.handlePopoverToggleEvent);
|
|
174
|
-
if (this.open)
|
|
194
|
+
if (this.open) {
|
|
195
|
+
this.addViewportListeners();
|
|
175
196
|
this.determinePopDirection();
|
|
197
|
+
}
|
|
176
198
|
}
|
|
177
199
|
// #endregion
|
|
178
200
|
// #region Listeners
|
|
@@ -265,14 +287,22 @@ export class Q2Popover {
|
|
|
265
287
|
return isNaN(maxHeight) ? undefined : maxHeight;
|
|
266
288
|
}
|
|
267
289
|
addViewportListeners() {
|
|
268
|
-
var _a;
|
|
290
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
269
291
|
window.addEventListener('resize', this.viewPortOrientationChanged);
|
|
270
|
-
visualViewport === null ||
|
|
292
|
+
(_b = (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.addEventListener) === null || _b === void 0 ? void 0 : _b.call(_a, 'resize', this.viewPortChanged);
|
|
271
293
|
if (isInScrollableContainer(this.hostElement) && !isMobile()) {
|
|
272
294
|
window.addEventListener('scroll', this.viewPortChanged, { passive: true, capture: true });
|
|
273
295
|
}
|
|
274
|
-
(
|
|
296
|
+
(_e = (_d = (_c = window.screen) === null || _c === void 0 ? void 0 : _c.orientation) === null || _d === void 0 ? void 0 : _d.addEventListener) === null || _e === void 0 ? void 0 : _e.call(_d, 'orientationchange', this.viewPortOrientationChanged);
|
|
275
297
|
window.addEventListener('orientationchange', this.viewPortOrientationChanged);
|
|
298
|
+
if (!isMobile()) {
|
|
299
|
+
window.addEventListener('scroll', this.handleOutsideScroll, { passive: true, capture: true });
|
|
300
|
+
}
|
|
301
|
+
(_f = this.containerElement) === null || _f === void 0 ? void 0 : _f.addEventListener('wheel', this.handleInsideScroll, { passive: false });
|
|
302
|
+
(_g = this.containerElement) === null || _g === void 0 ? void 0 : _g.addEventListener('touchmove', this.handleInsideScroll, { passive: false });
|
|
303
|
+
(_h = this.platformScrollUnsubscribe) === null || _h === void 0 ? void 0 : _h.call(this);
|
|
304
|
+
this.platformScrollUnsubscribe =
|
|
305
|
+
(_l = (_k = (_j = window.TectonElements) === null || _j === void 0 ? void 0 : _j.platformScrollChanged) === null || _k === void 0 ? void 0 : _k.call(_j, this.handlePlatformScroll)) !== null && _l !== void 0 ? _l : null;
|
|
276
306
|
}
|
|
277
307
|
clearCSSProperties() {
|
|
278
308
|
if (!this.containerElement)
|
|
@@ -353,12 +383,17 @@ export class Q2Popover {
|
|
|
353
383
|
}
|
|
354
384
|
}
|
|
355
385
|
removeViewportListeners() {
|
|
356
|
-
var _a;
|
|
386
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
357
387
|
window.removeEventListener('resize', this.viewPortOrientationChanged);
|
|
358
|
-
visualViewport === null ||
|
|
388
|
+
(_b = (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.removeEventListener) === null || _b === void 0 ? void 0 : _b.call(_a, 'resize', this.viewPortChanged);
|
|
359
389
|
window.removeEventListener('scroll', this.viewPortChanged, { capture: true });
|
|
360
|
-
(
|
|
390
|
+
(_e = (_d = (_c = window.screen) === null || _c === void 0 ? void 0 : _c.orientation) === null || _d === void 0 ? void 0 : _d.removeEventListener) === null || _e === void 0 ? void 0 : _e.call(_d, 'orientationchange', this.viewPortOrientationChanged);
|
|
361
391
|
window.removeEventListener('orientationchange', this.viewPortOrientationChanged);
|
|
392
|
+
window.removeEventListener('scroll', this.handleOutsideScroll, { capture: true });
|
|
393
|
+
(_f = this.containerElement) === null || _f === void 0 ? void 0 : _f.removeEventListener('wheel', this.handleInsideScroll);
|
|
394
|
+
(_g = this.containerElement) === null || _g === void 0 ? void 0 : _g.removeEventListener('touchmove', this.handleInsideScroll);
|
|
395
|
+
(_h = this.platformScrollUnsubscribe) === null || _h === void 0 ? void 0 : _h.call(this);
|
|
396
|
+
this.platformScrollUnsubscribe = null;
|
|
362
397
|
}
|
|
363
398
|
setDirectionAndShow(direction) {
|
|
364
399
|
var _a;
|
|
@@ -393,7 +428,7 @@ export class Q2Popover {
|
|
|
393
428
|
containerClasses.push('animating-open');
|
|
394
429
|
if (this.animationState === 'closing')
|
|
395
430
|
containerClasses.push('animating-close');
|
|
396
|
-
return (h("div", { key: '
|
|
431
|
+
return (h("div", { key: 'f608766723c6ae6737181318b5baf8b52ed7fc0f', ref: el => (this.containerElement = el), class: containerClasses.join(' '), "test-id": "outerContainer", tabIndex: -1, popover: "manual" }, h("div", { key: '477f1a209cf4abc984a82324d0c6fc07ede82160', ref: el => (this.contentElement = el), class: "content" }, h("slot", { key: '5b48ff13907b952a2cdcffc1b6e271e4982c78ad' }))));
|
|
397
432
|
}
|
|
398
433
|
static get is() { return "q2-popover"; }
|
|
399
434
|
static get encapsulation() { return "shadow"; }
|
|
@@ -90,7 +90,7 @@ export class Q2Radio {
|
|
|
90
90
|
// #endregion
|
|
91
91
|
// #region Render Methods
|
|
92
92
|
render() {
|
|
93
|
-
return (h("div", { key: '
|
|
93
|
+
return (h("div", { key: '1aafcfbdb7d6e2863618d6741bc12491a109ec80', class: this.groupTileLayout ? 'radio-tile' : 'radio-container' }, h("input", { key: '1989707753be2d6b8bc8c69098a5c9bf27af99b7', ref: el => (this.inputField = el), class: "sr", id: this._id, type: "radio", name: this.name, value: this.value, disabled: this.disabled || this.groupDisabled, checked: this.checked, "aria-label": this.label && this.hideLabel ? loc(this.label) : undefined, onChange: this.inputChange, "test-id": "q2RadioInnerRadioBox" }), h("label", { key: '93a6f7f8d718c8070c4d4d88c3b48905f518e166', htmlFor: this._id, class: this.hideLabel ? 'label-hidden' : undefined, "test-id": "radioButton" }, !this.groupTileLayout && (h("span", { key: 'f351a1aef39845bbb1bbd360037d36486de27cd9', class: "radio-mark", "aria-hidden": "true" })), !this.hideLabel && (h("div", { key: 'c9cb25115cffc72dfbb52024b6343f16a0744fbc', class: "label-content" }, (this.label && loc(this.label)) || '', h("slot", { key: '8d63e148c83fb247b60b719d3de8627c327efaa4' }))))));
|
|
94
94
|
}
|
|
95
95
|
static get is() { return "q2-radio"; }
|
|
96
96
|
static get encapsulation() { return "shadow"; }
|
|
@@ -250,7 +250,7 @@ export class Q2Radio {
|
|
|
250
250
|
"docs": {
|
|
251
251
|
"tags": [{
|
|
252
252
|
"name": "warning",
|
|
253
|
-
"text": "
|
|
253
|
+
"text": "Hides the label visually. `label` text is still required for screenreader compliance."
|
|
254
254
|
}],
|
|
255
255
|
"text": "Hides the field's `<label>` element from view."
|
|
256
256
|
},
|
|
@@ -271,6 +271,9 @@ export class Q2Radio {
|
|
|
271
271
|
"optional": false,
|
|
272
272
|
"docs": {
|
|
273
273
|
"tags": [{
|
|
274
|
+
"name": "warning",
|
|
275
|
+
"text": "Required for screen reader compliance even when `hideLabel` is `true`."
|
|
276
|
+
}, {
|
|
274
277
|
"name": "localizable",
|
|
275
278
|
"text": undefined
|
|
276
279
|
}],
|
|
@@ -196,7 +196,7 @@ export class Q2RadioGroup {
|
|
|
196
196
|
const showLabel = this.label || this.optional || this.readonly;
|
|
197
197
|
const { hasError } = this;
|
|
198
198
|
const showLabelRow = (showLabel && !this.hideLabel) || hasError;
|
|
199
|
-
return (h(Fragment, { key: '
|
|
199
|
+
return (h(Fragment, { key: '0503a52d9cb4715cba418f445b708ad650aa5f1f' }, showLabelRow && (h("div", { key: '7236b03ea65a44bbfacf57944370236c9653d69c', class: "label-row" }, showLabel && !this.hideLabel && h("div", { key: 'fbede7f7cfbd2c0fe8364a77966009a2e14ede37', class: "group-legend" }, renderLabel(this)), hasError && (h("q2-icon", { key: 'b7d7456a6fd1e673d5799748a727db2babc3d2bf', type: "error", "test-id": "iconError" })))), h("fieldset", { key: 'cba87bdefb32eaa0cd6cc1760d874fd622146b5e', onChange: this.onInnerRadioChange, "aria-invalid": hasError ? `${hasError}` : undefined }, showLabel && h("legend", { key: 'c4ff0e86435564ece7e468ecd7b0e373ae9fc078', class: "sr-only" }, renderLabel(this)), h("q2-resize-observer", { key: 'f3bfe6941b46da58433ed959017a4383c07ce16d', onTctResize: this.handleResize, disabled: this.tileLayout || this.orientation !== 'horizontal' }, this.inputDom()))));
|
|
200
200
|
}
|
|
201
201
|
static get is() { return "q2-radio-group"; }
|
|
202
202
|
static get encapsulation() { return "shadow"; }
|
|
@@ -265,9 +265,9 @@ export class Q2RadioGroup {
|
|
|
265
265
|
"docs": {
|
|
266
266
|
"tags": [{
|
|
267
267
|
"name": "warning",
|
|
268
|
-
"text": "
|
|
268
|
+
"text": "Hides the label visually. `label` text is still required for screenreader compliance."
|
|
269
269
|
}],
|
|
270
|
-
"text": "
|
|
270
|
+
"text": "Hides the group's `<label>` element from view."
|
|
271
271
|
},
|
|
272
272
|
"getter": false,
|
|
273
273
|
"setter": false,
|
|
@@ -286,6 +286,9 @@ export class Q2RadioGroup {
|
|
|
286
286
|
"optional": false,
|
|
287
287
|
"docs": {
|
|
288
288
|
"tags": [{
|
|
289
|
+
"name": "warning",
|
|
290
|
+
"text": "Required for screen reader compliance even when `hideLabel` is `true`."
|
|
291
|
+
}, {
|
|
289
292
|
"name": "localizable",
|
|
290
293
|
"text": undefined
|
|
291
294
|
}],
|
|
@@ -153,7 +153,7 @@ export class Q2RelativeTime {
|
|
|
153
153
|
// #region Render Methods
|
|
154
154
|
render() {
|
|
155
155
|
const { shouldShow, displayedMessage } = this;
|
|
156
|
-
return h(Fragment, { key: '
|
|
156
|
+
return h(Fragment, { key: 'e32fc9201354f10456368f47c0a7b6e50fd3eeb2' }, shouldShow ? h("time", { dateTime: displayedMessage }, displayedMessage) : null);
|
|
157
157
|
}
|
|
158
158
|
static get is() { return "q2-relative-time"; }
|
|
159
159
|
static get encapsulation() { return "shadow"; }
|
|
@@ -76,7 +76,7 @@ export class Q2ResizeObserver {
|
|
|
76
76
|
// #endregion
|
|
77
77
|
// #region Render Methods
|
|
78
78
|
render() {
|
|
79
|
-
return h("slot", { key: '
|
|
79
|
+
return h("slot", { key: '78ea06c9c3963fe4fe145d66c42b546432d10e95', onSlotchange: this.handleSlotChange });
|
|
80
80
|
}
|
|
81
81
|
static get is() { return "q2-resize-observer"; }
|
|
82
82
|
static get encapsulation() { return "shadow"; }
|