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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as t, c as o, h as i, g as e } from "./index-Cqkz7Bnm.js";
|
|
2
2
|
|
|
3
|
-
import { a, o as r, i as n, w as c, l as s } from "./index-
|
|
3
|
+
import { a, o as r, i as n, w as c, l as s } from "./index-CP8pXJ-l.js";
|
|
4
4
|
|
|
5
5
|
import { m as l } from "./mirror-emit-DUjY_ucm.js";
|
|
6
6
|
|
|
@@ -175,7 +175,9 @@ const v = class {
|
|
|
175
175
|
n(t, this.hostElement) && this.primaryBtn.focus();
|
|
176
176
|
}
|
|
177
177
|
async popoverStateHandler({detail: {open: t}}) {
|
|
178
|
-
|
|
178
|
+
var o;
|
|
179
|
+
this.open !== t && (this.open = t, t || (this.setOptionListActiveElement(null),
|
|
180
|
+
null === (o = this.primaryBtn) || void 0 === o || o.focus()));
|
|
179
181
|
}
|
|
180
182
|
// #endregion
|
|
181
183
|
// #region Public Methods API
|
|
@@ -284,19 +286,19 @@ const v = class {
|
|
|
284
286
|
render() {
|
|
285
287
|
const {optionCount: t, active: o, open: e} = this, {text: a, truncatedText: r} = this.buttonContent, n = [ "btn-wrapper" ];
|
|
286
288
|
return (t || o) && n.push("has-icon"), t && n.push("has-options"), i("click-elsewhere", {
|
|
287
|
-
key: "
|
|
289
|
+
key: "8cba59cde3746d0397305512334eb56357e9e5d4",
|
|
288
290
|
onChange: this.onClickElsewhere
|
|
289
291
|
}, i("div", {
|
|
290
|
-
key: "
|
|
292
|
+
key: "391da54f9fd870e223765e6266291dff9775abe6",
|
|
291
293
|
class: n.join(" ")
|
|
292
294
|
}, i("div", {
|
|
293
|
-
key: "
|
|
295
|
+
key: "06431fd76c0a9d30833756407c89ff59609bc3a3",
|
|
294
296
|
class: "btn-height-wrapper",
|
|
295
297
|
ref: t => this.primaryBtnWrapper = t,
|
|
296
298
|
onClick: this.handleWrapperClick,
|
|
297
299
|
tabIndex: -1
|
|
298
300
|
}, i("button", {
|
|
299
|
-
key: "
|
|
301
|
+
key: "609557b9206c91511e78e26c990230e61f7e5c19",
|
|
300
302
|
class: "btn-primary",
|
|
301
303
|
"test-id": "btn-control",
|
|
302
304
|
type: "button",
|
|
@@ -313,10 +315,13 @@ const v = class {
|
|
|
313
315
|
"aria-pressed": t ? void 0 : `${!!o}`,
|
|
314
316
|
"aria-describedby": t ? "option-description" : void 0
|
|
315
317
|
}, i("slot", {
|
|
316
|
-
key: "
|
|
318
|
+
key: "e1f4c57b7526f714cf0242e101ec0f5c39ebafa5",
|
|
317
319
|
name: "decorator"
|
|
318
|
-
}),
|
|
319
|
-
key: "
|
|
320
|
+
}), i("span", {
|
|
321
|
+
key: "98a770f6f4fabe04d886f66d57e76a4febb31353",
|
|
322
|
+
class: "pill-label"
|
|
323
|
+
}, r))), this.renderIcon(), !!t && this.renderHiddenElement()), this.optionCount > 0 && i("q2-popover", {
|
|
324
|
+
key: "30fb581a9eeb008262bbb3fc4a82537f1b78af28",
|
|
320
325
|
ref: t => this.popoverElement = t,
|
|
321
326
|
controlElement: this.primaryBtn,
|
|
322
327
|
open: this.open,
|
|
@@ -326,20 +331,20 @@ const v = class {
|
|
|
326
331
|
align: this.popoverAlignment,
|
|
327
332
|
onFocusout: this.handleFocusOut
|
|
328
333
|
}, i("div", {
|
|
329
|
-
key: "
|
|
334
|
+
key: "6fc858b2064b78b2ccaafd35aefaa2e4c9e1ea07",
|
|
330
335
|
class: "popover-content"
|
|
331
336
|
}, i("div", {
|
|
332
|
-
key: "
|
|
337
|
+
key: "75134f4a5d4296f6f69a70197bf1bd450c05a8e0",
|
|
333
338
|
ref: t => this.popoverTopContainer = t,
|
|
334
339
|
class: "popover-top-container",
|
|
335
340
|
tabindex: "-1",
|
|
336
341
|
hidden: !this.hasPopoverTop,
|
|
337
342
|
onKeyDown: this.handleSlotKeydown
|
|
338
343
|
}, i("slot", {
|
|
339
|
-
key: "
|
|
344
|
+
key: "f570a1a19b97bd7eb4b2ae38975db95ff1153b00",
|
|
340
345
|
name: "popover-top"
|
|
341
346
|
})), i("q2-option-list", {
|
|
342
|
-
key: "
|
|
347
|
+
key: "aca9ff86903dcf5b4e5138541ac20dac68955fb7",
|
|
343
348
|
type: "listbox",
|
|
344
349
|
ref: t => this.optionList = t,
|
|
345
350
|
id: "option-list",
|
|
@@ -350,16 +355,16 @@ const v = class {
|
|
|
350
355
|
onPopoverState: this.onPopoverState,
|
|
351
356
|
label: s("tecton.element.optionList.label", [ this.optionListLabel ])
|
|
352
357
|
}, i("slot", {
|
|
353
|
-
key: "
|
|
358
|
+
key: "89c5f3739c36206ceecb06245ba3052491b89898"
|
|
354
359
|
})), i("div", {
|
|
355
|
-
key: "
|
|
360
|
+
key: "8f98c6b4a59c2c0675b5648aed4a1110f0136d87",
|
|
356
361
|
ref: t => this.popoverBottomContainer = t,
|
|
357
362
|
class: "popover-bottom-container",
|
|
358
363
|
tabindex: "-1",
|
|
359
364
|
hidden: !this.hasPopoverBottom,
|
|
360
365
|
onKeyDown: this.handleSlotKeydown
|
|
361
366
|
}, i("slot", {
|
|
362
|
-
key: "
|
|
367
|
+
key: "75ef6c235c31755e0a5b9905db16e02ff8c4eea3",
|
|
363
368
|
name: "popover-bottom"
|
|
364
369
|
})))));
|
|
365
370
|
}
|
|
@@ -381,6 +386,6 @@ const v = class {
|
|
|
381
386
|
}
|
|
382
387
|
};
|
|
383
388
|
|
|
384
|
-
v.style = '*{box-sizing:border-box}*:active{outline:none}*:focus-visible{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 style(--t-prefers-motion: "reduced"){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")){@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}}:host{display:inline-block;position:relative;line-height:0}:host(:not(:last-child)){margin-inline-end:var(--tct-pill-margin, var(--t-pill-margin, var(--app-scale-2x, 10px)))}q2-popover,.btn-wrapper{--comp-pill-min-height:var(--tct-pill-min-height, var(--t-pill-min-height, 44px));--comp-pill-btn-height:var(--tct-pill-btn-height, var(--t-pill-btn-height, 30px))}.popover-top-container{position:sticky;top:0;z-index:5}.popover-bottom-container{position:sticky;bottom:0;z-index:5}.btn-wrapper{--comp-pill-btn-border-width:var(--tct-pill-btn-border-width, var(--t-pill-btn-border-width, 2px));--comp-close-size:0px;--comp-btn-background:var(--tct-pill-btn-background, var(--t-pill-btn-background, var(--t-base, #ffffff)));--comp-btn-box-shadow:var(--tct-pill-btn-box-shadow, none);--comp-btn-backdrop-filter:var(--tct-pill-btn-backdrop-filter, none);--comp-hover-btn-background:var(--tct-pill-hover-btn-background, var(--t-pill-hover-btn-background, var(--t-gray-13, #e6e6e6)));--comp-btn-padding:var(--tct-pill-btn-padding-inline, var(--t-pill-btn-padding-inline, var(--app-scale-3x, 15px)));--comp-btn-letter-spacing:var(--tct-pill-btn-letter-spacing, inherit);--comp-btn-color:var(--tct-pill-btn-color, var(--t-pill-btn-color, var(--t-gray-3, #262626)));--comp-active-btn-color:var(--tct-pill-active-btn-color, var(--comp-btn-background));--comp-active-btn-background:var(--tct-pill-active-btn-background, var(--t-pill-active-btn-background, var(--t-gray-7, #666666)));--comp-active-btn-box-shadow:var(--tct-pill-active-btn-box-shadow, var(--tct-pill-btn-box-shadow, none));--comp-active-btn-backdrop-filter:var(--tct-pill-active-btn-backdrop-filter, none);--comp-active-btn-border-color:var(--tct-pill-active-btn-border-color, var(--t-pill-active-btn-border-color, var(--t-gray-7, #666666)));--comp-hover-active-btn-background:var(--tct-pill-active-btn-background, var(--t-pill-active-btn-background, var(--t-gray-6, #4d4d4d)));--comp-hover-active-btn-border-color:var(--tct-pill-active-btn-background, var(--t-pill-active-btn-background, var(--t-gray-6, #4d4d4d)));position:relative}.btn-wrapper.has-options,.btn-wrapper.has-icon{--comp-close-size:var(--comp-pill-btn-height)}:host([active]:not([active=false])) .btn-wrapper{--comp-btn-color:var(--tct-pill-active-btn-color, var(--t-pill-active-btn-color, var(--t-base, #ffffff)))}:host([theme=primary]) .btn-wrapper{--comp-active-btn-background:var(--tct-pill-primary-active-background, var(--t-primary, #0079c1));--comp-active-btn-box-shadow:var(--tct-pill-primary-active-btn-box-shadow, none);--comp-active-btn-backdrop-filter:var(--tct-pill-primary-active-backdrop-filter, none);--comp-active-btn-color:var(--tct-pill-primary-active-font-color, var(--t-primary-text, #ffffff));--comp-active-btn-border-color:var(--tct-pill-primary-active-border-color, var(--t-primary, #0079c1));--comp-hover-active-btn-background:var(--tct-pill-primary-active-hover-background, var(--t-primary-l3, #21acff));--comp-hover-active-btn-border-color:var(--tct-pill-primary-active-hover-border-color, var(--t-primary-l3, #21acff))}:host([theme=secondary]) .btn-wrapper{--comp-active-btn-background:var(--tct-pill-secondary-active-background, var(--t-secondary, #b3c2cc));--comp-active-btn-box-shadow:var(--tct-pill-secondary-active-box-shadow, none);--comp-active-btn-backdrop-filter:var(--tct-pill-secondary-active-backdrop-filter, none);--comp-active-btn-color:var(--tct-pill-secondary-active-font-color, var(--t-secondary-text, #141414));--comp-active-btn-border-color:var(--tct-pill-secondary-active-border-color, var(--t-secondary, #b3c2cc));--comp-hover-active-btn-background:var(--tct-pill-secondary-active-hover-background, var(--t-secondary-l3, #c9d5db));--comp-hover-active-btn-border-color:var(--tct-pill-secondary-active-hover-border-color, var(--t-secondary-l3, #c9d5db))}:host([theme=tertiary]) .btn-wrapper{--comp-active-btn-background:var(--tct-pill-tertiary-active-background, var(--t-tertiary, #e8f5fc));--comp-active-btn-box-shadow:var(--tct-pill-tertiary-active-box-shadow, none);--comp-active-btn-backdrop-filter:var(--tct-pill-tertiary-active-backdrop-filter, none);--comp-active-btn-color:var(--tct-pill-tertiary-active-font-color, var(--t-tertiary-text, #141414));--comp-active-btn-border-color:var(--tct-pill-tertiary-active-border-color, var(--t-tertiary, #e8f5fc));--comp-hover-active-btn-background:var(--tct-pill-tertiary-active-hover-background, var(--t-tertiary-l3, #eff8fd));--comp-hover-active-btn-border-color:var(--tct-pill-tertiary-active-hover-border-color, var(--t-tertiary-l3, #eff8fd))}.btn-height-wrapper{height:var(--comp-pill-min-height);display:flex;align-items:center;cursor:pointer}.btn-height-wrapper:focus{box-shadow:none}:host([disabled]) .btn-height-wrapper{cursor:not-allowed}.btn-close,.btn-primary{cursor:pointer;height:var(--comp-pill-btn-height);border-style:solid;border-radius:var(--tct-pill-btn-border-radius, var(--t-pill-btn-border-radius, 30px));transition-property:background, color, padding, width, opacity;transition:var(--tct-pill-btn-tween, var(--t-pill-btn-tween, var(--app-tween-1, 0.2s ease)))}:host([disabled]) .btn-close,:host([disabled]) .btn-primary,:host([disabled]) q2-icon{opacity:var(--tct-pill-disabled-opacity, var(--t-pill-disabled-opacity, var(--tct-disabled-opacity, var(--app-disabled-opacity, 0.4))));cursor:not-allowed}.btn-primary{background:var(--comp-btn-background);box-shadow:var(--comp-btn-box-shadow);backdrop-filter:var(--comp-btn-backdrop-filter);border-width:var(--comp-pill-btn-border-width);border-color:var(--tct-pill-btn-border-color, var(--t-pill-btn-border-color, var(--t-a11y-gray-color-AA, #949494)));letter-spacing:var(--comp-btn-letter-spacing);padding-inline:var(--comp-btn-padding);padding-right:calc(var(--comp-btn-padding) + var(--comp-close-size));font-size:var(--tct-pill-btn-font-size, var(--t-pill-btn-font-size, var(--app-font-size, var(--const-px-14, 14px))));font-weight:var(--tct-pill-btn-font-weight, 400);color:var(--comp-btn-color);display:flex;align-items:center;gap:var(--app-scale-1x, 5px);width:100%;text-align:start}.btn-primary ::slotted(q2-icon[slot=decorator]){--tct-icon-size:1em;--tct-icon-stroke-primary:var(--tct-pill-decorator-icon-primary-stroke, var(--comp-btn-color));--tct-icon-stroke-secondary:var(--tct-pill-decorator-icon-secondary-stroke, var(--comp-btn-color))}.btn-primary:focus{box-shadow:var(--tct-pill-btn-focus-box-shadow, var(--const-double-focus-ring))}.btn-primary:focus-visible{box-shadow:var(--tct-pill-btn-focus-visible-box-shadow, var(--const-double-focus-ring))}.btn-primary:hover{background:var(--comp-hover-btn-background)}.has-options .btn-primary,.has-icon .btn-primary{padding-right:calc(var(--tct-pill-icon-gap, var(--t-pill-icon-gap, var(--app-scale-1x, 5px))) + var(--comp-close-size))}.has-options .btn-primary{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:var(--tct-pill-max-width, var(--t-pill-max-width, 200px))}:host([active]:not([active=false])) .btn-primary{background:var(--comp-active-btn-background);box-shadow:var(--comp-active-btn-box-shadow);backdrop-filter:var(--comp-active-btn-backdrop-filter);border-color:var(--comp-active-btn-border-color);color:var(--comp-active-btn-color)}:host([active]:not([active=false])) .btn-primary:focus{box-shadow:var(--tct-pill-btn-focus-box-shadow, var(--const-double-focus-ring))}:host([active]:not([active=false])) .btn-primary:focus-visible{box-shadow:var(--tct-pill-btn-focus-visible-box-shadow, var(--const-double-focus-ring))}:host([active]:not([active=false])) .btn-primary:hover{background:var(--comp-hover-active-btn-background);border-color:var(--comp-hover-active-btn-border-color)}:host([active]:not([active=false])) .btn-primary ::slotted(q2-icon[slot=decorator]){--tct-icon-stroke-primary:var(--tct-pill-active-decorator-icon-primary-stroke, var(--tct-pill-decorator-icon-primary-stroke, var(--comp-active-btn-color)));--tct-icon-stroke-secondary:var(--tct-pill-active-decorator-icon-secondary-stroke, var(--tct-pill-decorator-icon-secondary-stroke, var(--comp-active-btn-color)))}.btn-close{background:transparent;border-color:transparent;border-width:var(--comp-pill-btn-border-width);width:var(--comp-close-size);height:var(--comp-close-size);padding:0;border:0;display:inline-flex;justify-content:center;align-items:center;position:absolute;right:0;top:50%;transform:translateY(-50%);opacity:0}.btn-close:focus-visible{box-shadow:var(--tct-pill-btn-focus-visible-box-shadow, var(--const-double-focus-ring))}:host([active]:not([active=false])) .btn-close{color:var(--comp-active-btn-color)}.has-options .btn-close,.has-icon .btn-close{opacity:1}q2-icon{--tct-icon-stroke-primary:var(--tct-pill-icon-stroke, currentcolor);--tct-icon-stroke-width:var(--tct-pill-icon-stroke-width, inherit);width:var(--tct-pill-icon-size, var(--t-pill-icon-size, var(--const-px-18, 18px)));height:var(--tct-pill-icon-size, var(--t-pill-icon-size, var(--const-px-18, 18px)));transition-property:transform;transition:var(--tct-pill-btn-tween, var(--t-pill-btn-tween, var(--app-tween-1, 0.2s ease)))}div.btn-close{pointer-events:none}:host([open]) div.btn-close q2-icon{transform:rotate(180deg)}:host([active]:not([active=false])) button.btn-close:focus,:host([active]:not([active=false])) button.btn-close:hover{background:var(--tct-pill-hover-close-btn-background, var(--t-pill-hover-close-btn-background, var(--t-top-a1, rgba(13, 13, 13, 0.35))));border-color:var(--tct-pill-hover-close-btn-border-color, var(--t-pill-hover-close-btn-border-color, var(--t-top-a1, rgba(13, 13, 13, 0.35))))}q2-popover{top:calc(var(--comp-pill-min-height) - (var(--comp-pill-min-height) - var(--comp-pill-btn-height)) / 2)}:host([borderless]:not([borderless=false])) button{border-style:none}';
|
|
389
|
+
v.style = '*{box-sizing:border-box}*:active{outline:none}*:focus-visible{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 style(--t-prefers-motion: "reduced"){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")){@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}}:host{display:inline-block;max-width:100%;position:relative;line-height:0}:host(:not(:last-child)){margin-inline-end:var(--tct-pill-margin, var(--t-pill-margin, var(--app-scale-2x, 10px)))}q2-popover,.btn-wrapper{--comp-pill-min-height:var(--tct-pill-min-height, var(--t-pill-min-height, 44px));--comp-pill-btn-height:var(--tct-pill-btn-height, var(--t-pill-btn-height, 30px))}.popover-top-container{position:sticky;top:0;z-index:5}.popover-bottom-container{position:sticky;bottom:0;z-index:5}.btn-wrapper{--comp-pill-btn-border-width:var(--tct-pill-btn-border-width, var(--t-pill-btn-border-width, 2px));--comp-close-size:0px;--comp-btn-background:var(--tct-pill-btn-background, var(--t-pill-btn-background, var(--t-base, #ffffff)));--comp-btn-box-shadow:var(--tct-pill-btn-box-shadow, none);--comp-btn-backdrop-filter:var(--tct-pill-btn-backdrop-filter, none);--comp-hover-btn-background:var(--tct-pill-hover-btn-background, var(--t-pill-hover-btn-background, var(--t-gray-13, #e6e6e6)));--comp-btn-padding:var(--tct-pill-btn-padding-inline, var(--t-pill-btn-padding-inline, var(--app-scale-3x, 15px)));--comp-btn-letter-spacing:var(--tct-pill-btn-letter-spacing, inherit);--comp-btn-color:var(--tct-pill-btn-color, var(--t-pill-btn-color, var(--t-gray-3, #262626)));--comp-active-btn-color:var(--tct-pill-active-btn-color, var(--comp-btn-background));--comp-active-btn-background:var(--tct-pill-active-btn-background, var(--t-pill-active-btn-background, var(--t-gray-7, #666666)));--comp-active-btn-box-shadow:var(--tct-pill-active-btn-box-shadow, var(--tct-pill-btn-box-shadow, none));--comp-active-btn-backdrop-filter:var(--tct-pill-active-btn-backdrop-filter, none);--comp-active-btn-border-color:var(--tct-pill-active-btn-border-color, var(--t-pill-active-btn-border-color, var(--t-gray-7, #666666)));--comp-hover-active-btn-background:var(--tct-pill-active-btn-background, var(--t-pill-active-btn-background, var(--t-gray-6, #4d4d4d)));--comp-hover-active-btn-border-color:var(--tct-pill-active-btn-background, var(--t-pill-active-btn-background, var(--t-gray-6, #4d4d4d)));position:relative}.btn-wrapper.has-options,.btn-wrapper.has-icon{--comp-close-size:var(--comp-pill-btn-height)}:host([active]:not([active=false])) .btn-wrapper{--comp-btn-color:var(--tct-pill-active-btn-color, var(--t-pill-active-btn-color, var(--t-base, #ffffff)))}:host([theme=primary]) .btn-wrapper{--comp-active-btn-background:var(--tct-pill-primary-active-background, var(--t-primary, #0079c1));--comp-active-btn-box-shadow:var(--tct-pill-primary-active-btn-box-shadow, none);--comp-active-btn-backdrop-filter:var(--tct-pill-primary-active-backdrop-filter, none);--comp-active-btn-color:var(--tct-pill-primary-active-font-color, var(--t-primary-text, #ffffff));--comp-active-btn-border-color:var(--tct-pill-primary-active-border-color, var(--t-primary, #0079c1));--comp-hover-active-btn-background:var(--tct-pill-primary-active-hover-background, var(--t-primary-l3, #21acff));--comp-hover-active-btn-border-color:var(--tct-pill-primary-active-hover-border-color, var(--t-primary-l3, #21acff))}:host([theme=secondary]) .btn-wrapper{--comp-active-btn-background:var(--tct-pill-secondary-active-background, var(--t-secondary, #b3c2cc));--comp-active-btn-box-shadow:var(--tct-pill-secondary-active-box-shadow, none);--comp-active-btn-backdrop-filter:var(--tct-pill-secondary-active-backdrop-filter, none);--comp-active-btn-color:var(--tct-pill-secondary-active-font-color, var(--t-secondary-text, #141414));--comp-active-btn-border-color:var(--tct-pill-secondary-active-border-color, var(--t-secondary, #b3c2cc));--comp-hover-active-btn-background:var(--tct-pill-secondary-active-hover-background, var(--t-secondary-l3, #c9d5db));--comp-hover-active-btn-border-color:var(--tct-pill-secondary-active-hover-border-color, var(--t-secondary-l3, #c9d5db))}:host([theme=tertiary]) .btn-wrapper{--comp-active-btn-background:var(--tct-pill-tertiary-active-background, var(--t-tertiary, #e8f5fc));--comp-active-btn-box-shadow:var(--tct-pill-tertiary-active-box-shadow, none);--comp-active-btn-backdrop-filter:var(--tct-pill-tertiary-active-backdrop-filter, none);--comp-active-btn-color:var(--tct-pill-tertiary-active-font-color, var(--t-tertiary-text, #141414));--comp-active-btn-border-color:var(--tct-pill-tertiary-active-border-color, var(--t-tertiary, #e8f5fc));--comp-hover-active-btn-background:var(--tct-pill-tertiary-active-hover-background, var(--t-tertiary-l3, #eff8fd));--comp-hover-active-btn-border-color:var(--tct-pill-tertiary-active-hover-border-color, var(--t-tertiary-l3, #eff8fd))}.btn-height-wrapper{min-height:var(--comp-pill-min-height);display:flex;align-items:center;cursor:pointer}.btn-height-wrapper:focus{box-shadow:none}:host([disabled]) .btn-height-wrapper{cursor:not-allowed}.btn-close,.btn-primary{cursor:pointer;min-height:var(--comp-pill-btn-height);border-style:solid;border-radius:var(--tct-pill-btn-border-radius, var(--t-pill-btn-border-radius, 30px));transition-property:background, color, padding, width, opacity;transition:var(--tct-pill-btn-tween, var(--t-pill-btn-tween, var(--app-tween-1, 0.2s ease)))}:host([disabled]) .btn-close,:host([disabled]) .btn-primary,:host([disabled]) q2-icon{opacity:var(--tct-pill-disabled-opacity, var(--t-pill-disabled-opacity, var(--tct-disabled-opacity, var(--app-disabled-opacity, 0.4))));cursor:not-allowed}.btn-primary{background:var(--comp-btn-background);box-shadow:var(--comp-btn-box-shadow);backdrop-filter:var(--comp-btn-backdrop-filter);border-width:var(--comp-pill-btn-border-width);border-color:var(--tct-pill-btn-border-color, var(--t-pill-btn-border-color, var(--t-a11y-gray-color-AA, #949494)));letter-spacing:var(--comp-btn-letter-spacing);padding-inline:var(--comp-btn-padding);padding-right:calc(var(--comp-btn-padding) + var(--comp-close-size));font-size:var(--tct-pill-btn-font-size, var(--t-pill-btn-font-size, var(--app-font-size, var(--const-px-14, 14px))));font-weight:var(--tct-pill-btn-font-weight, 400);color:var(--comp-btn-color);display:flex;align-items:center;gap:var(--app-scale-1x, 5px);width:100%;max-width:var(--tct-pill-max-width, var(--t-pill-max-width, calc(200 * var(--t-px-1, 1px))));min-width:0;text-align:start}.btn-primary ::slotted(q2-icon[slot=decorator]){flex-shrink:0;--tct-icon-size:1em;--tct-icon-stroke-primary:var(--tct-pill-decorator-icon-primary-stroke, var(--comp-btn-color));--tct-icon-stroke-secondary:var(--tct-pill-decorator-icon-secondary-stroke, var(--comp-btn-color))}.btn-primary:focus{box-shadow:var(--tct-pill-btn-focus-box-shadow, var(--const-double-focus-ring))}.btn-primary:focus-visible{box-shadow:var(--tct-pill-btn-focus-visible-box-shadow, var(--const-double-focus-ring))}.btn-primary:hover{background:var(--comp-hover-btn-background)}.has-options .btn-primary,.has-icon .btn-primary{padding-right:calc(var(--tct-pill-icon-gap, var(--t-pill-icon-gap, var(--app-scale-1x, 5px))) + var(--comp-close-size))}:host([active]:not([active=false])) .btn-primary{background:var(--comp-active-btn-background);box-shadow:var(--comp-active-btn-box-shadow);backdrop-filter:var(--comp-active-btn-backdrop-filter);border-color:var(--comp-active-btn-border-color);color:var(--comp-active-btn-color)}:host([active]:not([active=false])) .btn-primary:focus{box-shadow:var(--tct-pill-btn-focus-box-shadow, var(--const-double-focus-ring))}:host([active]:not([active=false])) .btn-primary:focus-visible{box-shadow:var(--tct-pill-btn-focus-visible-box-shadow, var(--const-double-focus-ring))}:host([active]:not([active=false])) .btn-primary:hover{background:var(--comp-hover-active-btn-background);border-color:var(--comp-hover-active-btn-border-color)}:host([active]:not([active=false])) .btn-primary ::slotted(q2-icon[slot=decorator]){--tct-icon-stroke-primary:var(--tct-pill-active-decorator-icon-primary-stroke, var(--tct-pill-decorator-icon-primary-stroke, var(--comp-active-btn-color)));--tct-icon-stroke-secondary:var(--tct-pill-active-decorator-icon-secondary-stroke, var(--tct-pill-decorator-icon-secondary-stroke, var(--comp-active-btn-color)))}.pill-label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;min-width:0}.btn-close{background:transparent;border-color:transparent;border-width:var(--comp-pill-btn-border-width);width:var(--comp-close-size);height:var(--comp-close-size);padding:0;border:0;display:inline-flex;justify-content:center;align-items:center;position:absolute;right:0;top:50%;transform:translateY(-50%);opacity:0}.btn-close:focus-visible{box-shadow:var(--tct-pill-btn-focus-visible-box-shadow, var(--const-double-focus-ring))}:host([active]:not([active=false])) .btn-close{color:var(--comp-active-btn-color)}.has-options .btn-close,.has-icon .btn-close{opacity:1}q2-icon{--tct-icon-stroke-primary:var(--tct-pill-icon-stroke, currentcolor);--tct-icon-stroke-width:var(--tct-pill-icon-stroke-width, inherit);width:var(--tct-pill-icon-size, var(--t-pill-icon-size, var(--const-px-18, 18px)));height:var(--tct-pill-icon-size, var(--t-pill-icon-size, var(--const-px-18, 18px)));transition-property:transform;transition:var(--tct-pill-btn-tween, var(--t-pill-btn-tween, var(--app-tween-1, 0.2s ease)))}div.btn-close{pointer-events:none}:host([open]) div.btn-close q2-icon{transform:rotate(180deg)}:host([active]:not([active=false])) button.btn-close:focus,:host([active]:not([active=false])) button.btn-close:hover{background:var(--tct-pill-hover-close-btn-background, var(--t-pill-hover-close-btn-background, var(--t-top-a1, rgba(13, 13, 13, 0.35))));border-color:var(--tct-pill-hover-close-btn-border-color, var(--t-pill-hover-close-btn-border-color, var(--t-top-a1, rgba(13, 13, 13, 0.35))))}q2-popover{top:calc(var(--comp-pill-min-height) - (var(--comp-pill-min-height) - var(--comp-pill-btn-height)) / 2)}:host([borderless]:not([borderless=false])) button{border-style:none}';
|
|
385
390
|
|
|
386
391
|
export { v as q2_pill }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as t, c as r, h as o, F as i, g as a } from "./index-Cqkz7Bnm.js";
|
|
2
2
|
|
|
3
|
-
import { c as e, o as n, i as s, r as d } from "./index-
|
|
3
|
+
import { c as e, o as n, i as s, r as d } from "./index-CP8pXJ-l.js";
|
|
4
4
|
|
|
5
5
|
import { m as l } from "./mirror-emit-DUjY_ucm.js";
|
|
6
6
|
|
|
@@ -156,26 +156,26 @@ const c = class {
|
|
|
156
156
|
render() {
|
|
157
157
|
const t = this.label || this.optional || this.readonly, {hasError: r} = this, a = t && !this.hideLabel || r;
|
|
158
158
|
return o(i, {
|
|
159
|
-
key: "
|
|
159
|
+
key: "0503a52d9cb4715cba418f445b708ad650aa5f1f"
|
|
160
160
|
}, a && o("div", {
|
|
161
|
-
key: "
|
|
161
|
+
key: "7236b03ea65a44bbfacf57944370236c9653d69c",
|
|
162
162
|
class: "label-row"
|
|
163
163
|
}, t && !this.hideLabel && o("div", {
|
|
164
|
-
key: "
|
|
164
|
+
key: "fbede7f7cfbd2c0fe8364a77966009a2e14ede37",
|
|
165
165
|
class: "group-legend"
|
|
166
166
|
}, d(this)), r && o("q2-icon", {
|
|
167
|
-
key: "
|
|
167
|
+
key: "b7d7456a6fd1e673d5799748a727db2babc3d2bf",
|
|
168
168
|
type: "error",
|
|
169
169
|
"test-id": "iconError"
|
|
170
170
|
})), o("fieldset", {
|
|
171
|
-
key: "
|
|
171
|
+
key: "cba87bdefb32eaa0cd6cc1760d874fd622146b5e",
|
|
172
172
|
onChange: this.onInnerRadioChange,
|
|
173
173
|
"aria-invalid": r ? `${r}` : void 0
|
|
174
174
|
}, t && o("legend", {
|
|
175
|
-
key: "
|
|
175
|
+
key: "c4ff0e86435564ece7e468ecd7b0e373ae9fc078",
|
|
176
176
|
class: "sr-only"
|
|
177
177
|
}, d(this)), o("q2-resize-observer", {
|
|
178
|
-
key: "
|
|
178
|
+
key: "f3bfe6941b46da58433ed959017a4383c07ce16d",
|
|
179
179
|
onTctResize: this.handleResize,
|
|
180
180
|
disabled: this.tileLayout || "horizontal" !== this.orientation
|
|
181
181
|
}, this.inputDom())));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r, c as a, h as o, g as t } from "./index-Cqkz7Bnm.js";
|
|
2
2
|
|
|
3
|
-
import { c as e, d as i, o as c, l as d } from "./index-
|
|
3
|
+
import { c as e, d as i, o as c, l as d } from "./index-CP8pXJ-l.js";
|
|
4
4
|
|
|
5
5
|
import { m as l } from "./mirror-emit-DUjY_ucm.js";
|
|
6
6
|
|
|
@@ -71,10 +71,10 @@ const n = class {
|
|
|
71
71
|
// #region Render Methods
|
|
72
72
|
render() {
|
|
73
73
|
return o("div", {
|
|
74
|
-
key: "
|
|
74
|
+
key: "1aafcfbdb7d6e2863618d6741bc12491a109ec80",
|
|
75
75
|
class: this.groupTileLayout ? "radio-tile" : "radio-container"
|
|
76
76
|
}, o("input", {
|
|
77
|
-
key: "
|
|
77
|
+
key: "1989707753be2d6b8bc8c69098a5c9bf27af99b7",
|
|
78
78
|
ref: r => this.inputField = r,
|
|
79
79
|
class: "sr",
|
|
80
80
|
id: this._id,
|
|
@@ -87,19 +87,19 @@ const n = class {
|
|
|
87
87
|
onChange: this.inputChange,
|
|
88
88
|
"test-id": "q2RadioInnerRadioBox"
|
|
89
89
|
}), o("label", {
|
|
90
|
-
key: "
|
|
90
|
+
key: "93a6f7f8d718c8070c4d4d88c3b48905f518e166",
|
|
91
91
|
htmlFor: this._id,
|
|
92
92
|
class: this.hideLabel ? "label-hidden" : void 0,
|
|
93
93
|
"test-id": "radioButton"
|
|
94
94
|
}, !this.groupTileLayout && o("span", {
|
|
95
|
-
key: "
|
|
95
|
+
key: "f351a1aef39845bbb1bbd360037d36486de27cd9",
|
|
96
96
|
class: "radio-mark",
|
|
97
97
|
"aria-hidden": "true"
|
|
98
98
|
}), !this.hideLabel && o("div", {
|
|
99
|
-
key: "
|
|
99
|
+
key: "c9cb25115cffc72dfbb52024b6343f16a0744fbc",
|
|
100
100
|
class: "label-content"
|
|
101
101
|
}, this.label && d(this.label) || "", o("slot", {
|
|
102
|
-
key: "
|
|
102
|
+
key: "8d63e148c83fb247b60b719d3de8627c327efaa4"
|
|
103
103
|
}))));
|
|
104
104
|
}
|
|
105
105
|
get hostElement() {
|
|
@@ -2,7 +2,7 @@ import { r as t, h as e, F as i, g as s } from "./index-Cqkz7Bnm.js";
|
|
|
2
2
|
|
|
3
3
|
import { d as n } from "./index-O1A-ZSZs.js";
|
|
4
4
|
|
|
5
|
-
import { l as a } from "./index-
|
|
5
|
+
import { l as a } from "./index-CP8pXJ-l.js";
|
|
6
6
|
|
|
7
7
|
const o = class {
|
|
8
8
|
constructor(e) {
|
|
@@ -63,16 +63,16 @@ const o = class {
|
|
|
63
63
|
// #endregion
|
|
64
64
|
// #region Watchers
|
|
65
65
|
updateMessage() {
|
|
66
|
-
const {isValidDate: t, isBaseDateProvided: e, isValidBaseDate: i, dateObject: s, baseDateObject: o, locale: r, handleNumeric: d, messageFormat:
|
|
66
|
+
const {isValidDate: t, isBaseDateProvided: e, isValidBaseDate: i, dateObject: s, baseDateObject: o, locale: r, handleNumeric: d, messageFormat: l, isValidUnit: h, unit: u, trimSuffix: c} = this;
|
|
67
67
|
if (!t || e && !i) return this.sync = !1, void (this.displayedMessage = a("tecton.element.relativeTime.invalidDate"));
|
|
68
68
|
const m = n.intlFormatDistance(new Date(s), new Date(o), {
|
|
69
69
|
locale: r || document.documentElement.lang || "en-US",
|
|
70
70
|
localeMatcher: "best fit",
|
|
71
71
|
numeric: d,
|
|
72
|
-
style:
|
|
73
|
-
unit:
|
|
72
|
+
style: l,
|
|
73
|
+
unit: h ? u : null
|
|
74
74
|
});
|
|
75
|
-
this.displayedMessage =
|
|
75
|
+
this.displayedMessage = c ? this.trimMessage(m) : m;
|
|
76
76
|
}
|
|
77
77
|
syncUpdated() {
|
|
78
78
|
this.sync ? this.syncTimer = window.setInterval((() => {
|
|
@@ -118,7 +118,7 @@ const o = class {
|
|
|
118
118
|
render() {
|
|
119
119
|
const {shouldShow: t, displayedMessage: s} = this;
|
|
120
120
|
return e(i, {
|
|
121
|
-
key: "
|
|
121
|
+
key: "e32fc9201354f10456368f47c0a7b6e50fd3eeb2"
|
|
122
122
|
}, t ? e("time", {
|
|
123
123
|
dateTime: s
|
|
124
124
|
}, s) : null);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as t, c as
|
|
1
|
+
import { r as t, c as i, h as e, g as n } from "./index-Cqkz7Bnm.js";
|
|
2
2
|
|
|
3
3
|
const o = class {
|
|
4
|
-
constructor(
|
|
5
|
-
t(this,
|
|
4
|
+
constructor(e) {
|
|
5
|
+
t(this, e), this.tctResize = i(this, "tctResize", 7), this.observedElements = [],
|
|
6
6
|
// #endregion
|
|
7
7
|
// #region Local Methods
|
|
8
8
|
this.handleSlotChange = () => {
|
|
@@ -35,21 +35,21 @@ const o = class {
|
|
|
35
35
|
t ? this.stopObserver() : this.startObserver();
|
|
36
36
|
}
|
|
37
37
|
startObserver() {
|
|
38
|
-
var t,
|
|
38
|
+
var t, i, e;
|
|
39
39
|
const n = this.hostElement.shadowRoot.querySelector("slot");
|
|
40
40
|
if (null === n) return;
|
|
41
|
-
const o = null !== (
|
|
41
|
+
const o = null !== (i = null === (t = n.assignedElements) || void 0 === t ? void 0 : t.call(n, {
|
|
42
42
|
flatten: !0
|
|
43
|
-
})) && void 0 !==
|
|
43
|
+
})) && void 0 !== i ? i : [];
|
|
44
44
|
// Unwatch previous elements
|
|
45
|
-
null === (
|
|
46
|
-
var
|
|
47
|
-
return null === (
|
|
45
|
+
null === (e = this.observedElements) || void 0 === e || e.forEach((t => {
|
|
46
|
+
var i;
|
|
47
|
+
return null === (i = this.resizeObserver) || void 0 === i ? void 0 : i.unobserve(t);
|
|
48
48
|
})), this.observedElements = [],
|
|
49
49
|
// Watch new elements
|
|
50
50
|
o.forEach((t => {
|
|
51
|
-
var
|
|
52
|
-
null === (
|
|
51
|
+
var i;
|
|
52
|
+
null === (i = this.resizeObserver) || void 0 === i || i.observe(t), this.observedElements.push(t);
|
|
53
53
|
}));
|
|
54
54
|
}
|
|
55
55
|
stopObserver() {
|
|
@@ -59,8 +59,8 @@ const o = class {
|
|
|
59
59
|
// #endregion
|
|
60
60
|
// #region Render Methods
|
|
61
61
|
render() {
|
|
62
|
-
return
|
|
63
|
-
key: "
|
|
62
|
+
return e("slot", {
|
|
63
|
+
key: "78ea06c9c3963fe4fe145d66c42b546432d10e95",
|
|
64
64
|
onSlotchange: this.handleSlotChange
|
|
65
65
|
});
|
|
66
66
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as t, c as i, h as e, F as s, g as o } from "./index-Cqkz7Bnm.js";
|
|
2
2
|
|
|
3
|
-
import { o as n, i as r, w as
|
|
3
|
+
import { o as n, i as r, w as a, l } from "./index-CP8pXJ-l.js";
|
|
4
4
|
|
|
5
5
|
const h = class {
|
|
6
6
|
constructor(e) {
|
|
@@ -30,7 +30,7 @@ const h = class {
|
|
|
30
30
|
/**
|
|
31
31
|
* Hides the field's `<label>` element from view.
|
|
32
32
|
* @warning
|
|
33
|
-
*
|
|
33
|
+
* Hides the label visually. `label` text is still required for screenreader compliance.
|
|
34
34
|
*/
|
|
35
35
|
this.hideLabel = !1,
|
|
36
36
|
/**
|
|
@@ -144,8 +144,8 @@ const h = class {
|
|
|
144
144
|
var t, i, e, s;
|
|
145
145
|
const o = this.hostElement.shadowRoot;
|
|
146
146
|
if (!o) return;
|
|
147
|
-
const n = o.querySelector('slot[name="popover-top"]'), r = o.querySelector('slot[name="popover-bottom"]'),
|
|
148
|
-
this.hasPopoverTop !==
|
|
147
|
+
const n = o.querySelector('slot[name="popover-top"]'), r = o.querySelector('slot[name="popover-bottom"]'), a = o.querySelector('slot[name="empty"]'), l = (null !== (t = null == n ? void 0 : n.assignedNodes().length) && void 0 !== t ? t : 0) > 0, h = (null !== (i = null == r ? void 0 : r.assignedNodes().length) && void 0 !== i ? i : 0) > 0, c = (null !== (e = null == a ? void 0 : a.assignedNodes().length) && void 0 !== e ? e : 0) > 0, d = this.optionElements.length > 0;
|
|
148
|
+
this.hasPopoverTop !== l && (this.hasPopoverTop = l), this.hasPopoverBottom !== h && (this.hasPopoverBottom = h),
|
|
149
149
|
this.hasEmptySlot !== c && (this.hasEmptySlot = c), this.hasOptions !== d && (this.hasOptions = d),
|
|
150
150
|
// If input-only mode just turned on while popover was open, close it.
|
|
151
151
|
this.open && this.isInputOnlyMode && this.closeDropdown(), this.checkSelectedOptions(),
|
|
@@ -246,13 +246,13 @@ const h = class {
|
|
|
246
246
|
* @testOnly
|
|
247
247
|
*/
|
|
248
248
|
async closePopover() {
|
|
249
|
-
this.closeDropdown(), await
|
|
249
|
+
this.closeDropdown(), await a();
|
|
250
250
|
}
|
|
251
251
|
/**
|
|
252
252
|
* Opens the popover.
|
|
253
253
|
* @testOnly
|
|
254
254
|
*/ async openPopover() {
|
|
255
|
-
this.openDropdown(), await
|
|
255
|
+
this.openDropdown(), await a();
|
|
256
256
|
}
|
|
257
257
|
/**
|
|
258
258
|
* Resets the search to its initial state: clears the input, the
|
|
@@ -288,14 +288,14 @@ const h = class {
|
|
|
288
288
|
this.open || await this.openPopover(), e.forEach((t => {
|
|
289
289
|
var i;
|
|
290
290
|
null === (i = this.optionElements.find((i => i.value === t))) || void 0 === i || i.click();
|
|
291
|
-
})), i.closePopover && (await this.closePopover(), await
|
|
291
|
+
})), i.closePopover && (await this.closePopover(), await a());
|
|
292
292
|
}
|
|
293
293
|
// #endregion
|
|
294
294
|
// #region Watchers
|
|
295
295
|
onLoadingChange(t) {
|
|
296
296
|
// When loading turns on with the input focused but the popover was closed (because
|
|
297
297
|
// input-only mode was active), open the popover so the spinner is visible.
|
|
298
|
-
t && this.inputFocused && !this.open && this.openDropdown(), t ? this.setStatusMessage(
|
|
298
|
+
t && this.inputFocused && !this.open && this.openDropdown(), t ? this.setStatusMessage(l("tecton.element.search.loading")) : this.open && this.announceResults();
|
|
299
299
|
}
|
|
300
300
|
onMultilineOptionsChange() {
|
|
301
301
|
this.applyMultilineOptions();
|
|
@@ -384,7 +384,7 @@ const h = class {
|
|
|
384
384
|
this.inputFocused && t.push("is-focused"), t.join(" ");
|
|
385
385
|
}
|
|
386
386
|
announceResults() {
|
|
387
|
-
const t = this.visibleOptionElements.length, i = 0 === t ?
|
|
387
|
+
const t = this.visibleOptionElements.length, i = 0 === t ? l("tecton.element.search.noResults") : l("tecton.element.search.results", [ t ]);
|
|
388
388
|
this.setStatusMessage(i);
|
|
389
389
|
}
|
|
390
390
|
applyLocalFilter() {
|
|
@@ -402,12 +402,12 @@ const h = class {
|
|
|
402
402
|
}
|
|
403
403
|
checkSelectedDisplay() {
|
|
404
404
|
var t;
|
|
405
|
-
const {multilineOptions: i, isShowingSelectionDisplay: e, value: s, multiple: o, selectedOptions: n, firstSelectedOptionElement: r} = this,
|
|
406
|
-
if (!i || !e ||
|
|
405
|
+
const {multilineOptions: i, isShowingSelectionDisplay: e, value: s, multiple: o, selectedOptions: n, firstSelectedOptionElement: r} = this, a = o ? !(null == n ? void 0 : n.length) : !s;
|
|
406
|
+
if (!i || !e || a) return this.clearSelectedDisplay();
|
|
407
407
|
if (!r || r.display) return this.clearSelectedDisplay();
|
|
408
|
-
const
|
|
409
|
-
if (!
|
|
410
|
-
const h =
|
|
408
|
+
const l = r.firstElementChild;
|
|
409
|
+
if (!l) return this.clearSelectedDisplay();
|
|
410
|
+
const h = l.cloneNode(!0);
|
|
411
411
|
h.querySelectorAll("[hide-on-select]").forEach((t => t.remove()));
|
|
412
412
|
let c = this.selectedDisplaySlot;
|
|
413
413
|
return c ? (null === (t = c.firstElementChild) || void 0 === t ? void 0 : t.outerHTML) !== h.outerHTML && c.replaceChildren(h) : (c = document.createElement("div"),
|
|
@@ -446,7 +446,7 @@ const h = class {
|
|
|
446
446
|
}
|
|
447
447
|
optionDisplayText(t, i = "") {
|
|
448
448
|
var e, s;
|
|
449
|
-
return (null == t ? void 0 : t.display) ?
|
|
449
|
+
return (null == t ? void 0 : t.display) ? l(t.display) : this.multilineOptions ? "" : null !== (s = null === (e = null == t ? void 0 : t.textContent) || void 0 === e ? void 0 : e.trim()) && void 0 !== s ? s : i;
|
|
450
450
|
}
|
|
451
451
|
revertToSelectedDisplay() {
|
|
452
452
|
var t, i, e;
|
|
@@ -469,7 +469,7 @@ const h = class {
|
|
|
469
469
|
const s = this.optionElements.find((t => t.value === this.value));
|
|
470
470
|
// Same guard: don't clobber an in-progress query when the matching option isn't in the DOM.
|
|
471
471
|
if (!s) return;
|
|
472
|
-
const o = s.display ?
|
|
472
|
+
const o = s.display ? l(s.display) : this.multilineOptions ? "" : null !== (e = null === (i = s.textContent) || void 0 === i ? void 0 : i.trim()) && void 0 !== e ? e : "";
|
|
473
473
|
this.isShowingSelectionDisplay = !0, this.searchText !== o ? this.searchText = o : this.checkSelectedDisplay();
|
|
474
474
|
}
|
|
475
475
|
setCustomLabel() {
|
|
@@ -504,7 +504,7 @@ const h = class {
|
|
|
504
504
|
name: "empty"
|
|
505
505
|
}) : e("div", {
|
|
506
506
|
class: "no-results"
|
|
507
|
-
},
|
|
507
|
+
}, l(this.noResultsMessage));
|
|
508
508
|
}
|
|
509
509
|
renderMultiSelectHeader() {
|
|
510
510
|
var t, i;
|
|
@@ -513,19 +513,19 @@ const h = class {
|
|
|
513
513
|
return e("div", {
|
|
514
514
|
class: "multi-select-header"
|
|
515
515
|
}, e("fieldset", null, e("legend", {
|
|
516
|
-
"aria-label":
|
|
517
|
-
},
|
|
516
|
+
"aria-label": l("tecton.element.search.multiHeader.showing")
|
|
517
|
+
}, l("tecton.element.search.multiHeader.showing")), e("div", null, e("input", {
|
|
518
518
|
class: "sr",
|
|
519
519
|
type: "radio",
|
|
520
520
|
id: `${this.optionListId}-results`,
|
|
521
521
|
name: `${this.optionListId}-view`,
|
|
522
522
|
value: "results",
|
|
523
523
|
checked: !n,
|
|
524
|
-
"aria-label":
|
|
524
|
+
"aria-label": l("tecton.element.search.multiHeader.resultsAriaLabel", [ o ]),
|
|
525
525
|
onClick: this.showAllOptions
|
|
526
526
|
}), e("label", {
|
|
527
527
|
htmlFor: `${this.optionListId}-results`
|
|
528
|
-
},
|
|
528
|
+
}, l("tecton.element.search.multiHeader.results", [ o ]))), e("div", null, e("input", {
|
|
529
529
|
class: "sr",
|
|
530
530
|
type: "radio",
|
|
531
531
|
id: `${this.optionListId}-selected`,
|
|
@@ -533,11 +533,11 @@ const h = class {
|
|
|
533
533
|
value: "selected",
|
|
534
534
|
disabled: 0 === s,
|
|
535
535
|
checked: n,
|
|
536
|
-
"aria-label":
|
|
536
|
+
"aria-label": l("tecton.element.search.multiHeader.selectedAriaLabel", [ s ]),
|
|
537
537
|
onClick: this.showSelectedOptions
|
|
538
538
|
}), e("label", {
|
|
539
539
|
htmlFor: `${this.optionListId}-selected`
|
|
540
|
-
},
|
|
540
|
+
}, l("tecton.element.search.multiHeader.selected", [ s ])))));
|
|
541
541
|
}
|
|
542
542
|
renderOptionsDropdown() {
|
|
543
543
|
var t;
|
|
@@ -578,7 +578,7 @@ const h = class {
|
|
|
578
578
|
ref: t => this.optionList = t,
|
|
579
579
|
type: "listbox",
|
|
580
580
|
id: this.optionListId,
|
|
581
|
-
label:
|
|
581
|
+
label: l(this.listLabel),
|
|
582
582
|
multiple: this.multiple,
|
|
583
583
|
selectedOptions: this.structuredSelectedOptions,
|
|
584
584
|
showSelected: this.showSelected,
|
|
@@ -601,32 +601,32 @@ const h = class {
|
|
|
601
601
|
}
|
|
602
602
|
render() {
|
|
603
603
|
return e(s, {
|
|
604
|
-
key: "
|
|
604
|
+
key: "4b3787554c37521bc3467345cdd1d733cffba3a5"
|
|
605
605
|
}, e("div", {
|
|
606
|
-
key: "
|
|
606
|
+
key: "696caa142cffecf1e0d62afafd826dce37f75512",
|
|
607
607
|
"aria-live": "polite",
|
|
608
608
|
"aria-atomic": "true",
|
|
609
609
|
role: "status",
|
|
610
610
|
class: "sr"
|
|
611
611
|
}, this.statusMessage), e("click-elsewhere", {
|
|
612
|
-
key: "
|
|
612
|
+
key: "f8b493ec8f7da09fad48f9fa30f0e9be7fbaedf4",
|
|
613
613
|
class: this.wrapperClasses,
|
|
614
614
|
role: "presentation",
|
|
615
615
|
onChange: this.onClickElsewhere
|
|
616
616
|
}, e("q2-input", {
|
|
617
|
-
key: "
|
|
617
|
+
key: "44e0ad4b7825ac319dd4277ccb93d4dd66acef12",
|
|
618
618
|
ref: t => this.inputField = t,
|
|
619
619
|
class: "q2-search-input",
|
|
620
|
-
label: this.label &&
|
|
620
|
+
label: this.label && l(this.label) || "",
|
|
621
621
|
value: this.searchText,
|
|
622
622
|
iconLeft: "search",
|
|
623
623
|
clearable: this.clearable && !this.loading && !!this.searchText,
|
|
624
624
|
disabled: this.disabled,
|
|
625
625
|
optional: this.optional,
|
|
626
626
|
readonly: !!this.readonly,
|
|
627
|
-
placeholder: this.placeholder ?
|
|
627
|
+
placeholder: this.placeholder ? l(this.placeholder) : void 0,
|
|
628
628
|
hideLabel: this.hideLabel,
|
|
629
|
-
errors: Array.isArray(this.errors) && this.errors.length > 0 && this.errors.map((t =>
|
|
629
|
+
errors: Array.isArray(this.errors) && this.errors.length > 0 && this.errors.map((t => l(t))) || this.invalid && [ "tecton.element.search.invalid" ] || [],
|
|
630
630
|
ariaExpanded: this.isInputOnlyMode ? void 0 : `${this.open}`,
|
|
631
631
|
ariaControls: this.isInputOnlyMode ? void 0 : this.optionListId,
|
|
632
632
|
ariaHaspopup: this.isInputOnlyMode ? void 0 : "listbox",
|