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,4 +1,4 @@
|
|
|
1
|
-
import { proxyCustomElement as t, HTMLElement as e, createEvent as i, h as
|
|
1
|
+
import { proxyCustomElement as t, HTMLElement as e, createEvent as i, h as a, transformTag as n } from "@stencil/core/internal/client";
|
|
2
2
|
|
|
3
3
|
import { n as s, o, i as r, a as c, l } from "./index2.js";
|
|
4
4
|
|
|
@@ -32,8 +32,8 @@ const x = t(class extends e {
|
|
|
32
32
|
this.autoSize = !0,
|
|
33
33
|
/** Allows the component to be disabled should the state of the page require this */
|
|
34
34
|
this.disabled = !1, this.checkSize = () => {
|
|
35
|
-
const {hostElement: t, containerElement: e} = this, i = this.containerWidth > t.clientWidth;
|
|
36
|
-
this.isSmall =
|
|
35
|
+
const {hostElement: t, containerElement: e} = this, i = parseFloat(getComputedStyle(e).fontSize), a = this.containerWidth > t.clientWidth || t.clientWidth < 42 * i;
|
|
36
|
+
this.isSmall = a, s((() => {
|
|
37
37
|
const t = e.clientWidth, i = this.isSmall ? Math.max(this.containerWidth || 0, t) : t;
|
|
38
38
|
this.containerWidth === i || (this.containerWidth = i, this.checkSize());
|
|
39
39
|
}));
|
|
@@ -65,7 +65,9 @@ const x = t(class extends e {
|
|
|
65
65
|
this.align || (this.align = this.stacked ? "center" : "right");
|
|
66
66
|
}
|
|
67
67
|
componentDidLoad() {
|
|
68
|
-
|
|
68
|
+
var t;
|
|
69
|
+
this.containerWidth = this.containerElement.clientWidth, null === (t = this.resizeObserver) || void 0 === t || t.observe(this.containerElement),
|
|
70
|
+
o(this.hostElement);
|
|
69
71
|
}
|
|
70
72
|
// #endregion
|
|
71
73
|
// #region Listeners
|
|
@@ -73,8 +75,8 @@ const x = t(class extends e {
|
|
|
73
75
|
var e;
|
|
74
76
|
if (this.disabled) return;
|
|
75
77
|
if (!r(t, this.hostElement)) return;
|
|
76
|
-
const {isFullViewHidden: i, containerElement:
|
|
77
|
-
i ? null === (e =
|
|
78
|
+
const {isFullViewHidden: i, containerElement: a, inputField: n} = this;
|
|
79
|
+
i ? null === (e = a.querySelector("q2-btn:not([disabled])")) || void 0 === e || e.focus() : n.focus();
|
|
78
80
|
}
|
|
79
81
|
// #endregion
|
|
80
82
|
// #region Public Methods API
|
|
@@ -162,7 +164,7 @@ const x = t(class extends e {
|
|
|
162
164
|
// #region Local Methods
|
|
163
165
|
get containerClasses() {
|
|
164
166
|
const t = [ "container" ];
|
|
165
|
-
return this.stacked && t.push("stacked"), t;
|
|
167
|
+
return this.stacked && t.push("stacked"), this.isSmall && t.push("small"), t;
|
|
166
168
|
}
|
|
167
169
|
get currentRange() {
|
|
168
170
|
const {perPageWithDefault: t, totalWithDefault: e, pageWithDefault: i} = this;
|
|
@@ -196,8 +198,8 @@ const x = t(class extends e {
|
|
|
196
198
|
return (null === (t = this.perPageIncrements) || void 0 === t ? void 0 : t.length) > 1;
|
|
197
199
|
}
|
|
198
200
|
get totalPages() {
|
|
199
|
-
const {pagesOnly: t, totalWithDefault: e, perPageWithDefault: i, pages:
|
|
200
|
-
return t &&
|
|
201
|
+
const {pagesOnly: t, totalWithDefault: e, perPageWithDefault: i, pages: a} = this;
|
|
202
|
+
return t && a && !isNaN(parseInt("" + a)) ? a : Math.ceil(e / i);
|
|
201
203
|
}
|
|
202
204
|
get totalWithDefault() {
|
|
203
205
|
return this.total || 0;
|
|
@@ -212,7 +214,7 @@ const x = t(class extends e {
|
|
|
212
214
|
renderPerPage() {
|
|
213
215
|
const t = this.perPageIncrementsArray.sort(((t, e) => t - e));
|
|
214
216
|
return (void 0 === this.perPage || isNaN(this.perPage)) && (this.perPage = t[0]),
|
|
215
|
-
this.perPageIncrements = `[${t.join(",")}]`,
|
|
217
|
+
this.perPageIncrements = `[${t.join(",")}]`, a("q2-select", {
|
|
216
218
|
ref: t => this.perPageSelect = t,
|
|
217
219
|
onChange: t => t.stopImmediatePropagation(),
|
|
218
220
|
onTctChange: t => {
|
|
@@ -220,14 +222,14 @@ const x = t(class extends e {
|
|
|
220
222
|
},
|
|
221
223
|
value: this.perPageIncrementsArray.includes(this.perPage) ? "" + this.perPage : void 0,
|
|
222
224
|
disabled: this.disabled
|
|
223
|
-
}, t.map((t =>
|
|
225
|
+
}, t.map((t => a("q2-option", {
|
|
224
226
|
value: "" + t,
|
|
225
227
|
display: `${l("tecton.element.pagination.view")} ${t}`
|
|
226
228
|
}, `${l("tecton.element.pagination.view")} ${t}`))));
|
|
227
229
|
}
|
|
228
230
|
render() {
|
|
229
231
|
var t;
|
|
230
|
-
const {pagesOnly: e, recordsOnly: i, isFullViewHidden:
|
|
232
|
+
const {pagesOnly: e, recordsOnly: i, isFullViewHidden: n, recordTypeWithDefault: s, totalPages: o, totalWithDefault: r, pageWithDefault: c, currentRange: p, nextRange: h, prevRange: d, showPerPageSelect: g, disabled: u} = this, m = c < 2, f = c === o;
|
|
231
233
|
let b = l("tecton.element.pagination.goToNext"), v = l("tecton.element.pagination.goToPrevious");
|
|
232
234
|
return e ? (v = l("tecton.element.pagination.goToPages", {
|
|
233
235
|
next: c - 1,
|
|
@@ -243,13 +245,13 @@ const x = t(class extends e {
|
|
|
243
245
|
range: h,
|
|
244
246
|
recordType: s.toLowerCase(),
|
|
245
247
|
total: r
|
|
246
|
-
})),
|
|
247
|
-
key: "
|
|
248
|
+
})), a("nav", {
|
|
249
|
+
key: "a427944d7134621fe5c1cc469d554cf60ea69271",
|
|
248
250
|
class: this.containerClasses.join(" "),
|
|
249
251
|
ref: t => this.containerElement = t,
|
|
250
252
|
"aria-label": l("tecton.element.pagination.title")
|
|
251
|
-
},
|
|
252
|
-
key: "
|
|
253
|
+
}, a("div", {
|
|
254
|
+
key: "ab5e3a0dc0a8c3ab99c8d6754097c37ae1c10193",
|
|
253
255
|
class: "description",
|
|
254
256
|
"test-id": "description"
|
|
255
257
|
}, e ? l("tecton.element.pagination.pages", {
|
|
@@ -259,48 +261,48 @@ const x = t(class extends e {
|
|
|
259
261
|
range: p,
|
|
260
262
|
recordType: s.toLowerCase(),
|
|
261
263
|
total: r.toLocaleString()
|
|
262
|
-
})),
|
|
263
|
-
key: "
|
|
264
|
+
})), a("div", {
|
|
265
|
+
key: "e84213e3dbeac1bb54fcd8244e486274869c5fa5",
|
|
264
266
|
class: "controls"
|
|
265
|
-
},
|
|
266
|
-
key: "
|
|
267
|
+
}, a("div", {
|
|
268
|
+
key: "f5a4cb3a4d467b2ce412afa2bb016e1843ccb364",
|
|
267
269
|
class: "btn-group"
|
|
268
|
-
},
|
|
269
|
-
key: "
|
|
270
|
+
}, a("q2-btn", {
|
|
271
|
+
key: "b4d315503de340e482ffb042d3cd4dbaff1aa3eb",
|
|
270
272
|
ref: t => this.firstPageBtn = t,
|
|
271
273
|
label: l("tecton.element.pagination.goToFirstPage"),
|
|
272
274
|
disabled: u || m,
|
|
273
|
-
hidden:
|
|
275
|
+
hidden: n,
|
|
274
276
|
onTctClick: () => this.handlePageChange(1),
|
|
275
277
|
"test-id": "firstPageBtn",
|
|
276
278
|
"hide-label": !0
|
|
277
|
-
},
|
|
278
|
-
key: "
|
|
279
|
+
}, a("q2-icon", {
|
|
280
|
+
key: "8d437e9a6b00999eee091accd8581b84a2dbe4fe",
|
|
279
281
|
type: "chevron-double-left"
|
|
280
|
-
})),
|
|
281
|
-
key: "
|
|
282
|
+
})), a("q2-btn", {
|
|
283
|
+
key: "bd91788b84cbe8a55fb7e7b53342a6c9a75e3694",
|
|
282
284
|
ref: t => this.prevPageBtn = t,
|
|
283
285
|
label: v,
|
|
284
286
|
disabled: u || m,
|
|
285
287
|
onTctClick: () => this.handlePageChange(c - 1),
|
|
286
288
|
"test-id": "prevPageBtn",
|
|
287
289
|
"hide-label": !0
|
|
288
|
-
},
|
|
289
|
-
key: "
|
|
290
|
+
}, a("q2-icon", {
|
|
291
|
+
key: "bf9285d825da06e43e330b565ecf46f72a9ad930",
|
|
290
292
|
type: "chevron-left"
|
|
291
|
-
}))),
|
|
292
|
-
key: "
|
|
293
|
+
}))), a("div", {
|
|
294
|
+
key: "76ce1e31814ec56e7d060200ee8a87c720c5fc1e",
|
|
293
295
|
class: "input-display",
|
|
294
|
-
hidden:
|
|
295
|
-
},
|
|
296
|
-
key: "
|
|
296
|
+
hidden: n
|
|
297
|
+
}, a("span", {
|
|
298
|
+
key: "b1768b78ca08e2f76892823a165448c298d2a5b4",
|
|
297
299
|
"aria-hidden": "true"
|
|
298
|
-
}, l("tecton.element.pagination.page")),
|
|
299
|
-
key: "
|
|
300
|
+
}, l("tecton.element.pagination.page")), a("div", {
|
|
301
|
+
key: "8909fdeaf8832ec6a104ffad86258d0d3034fbb3",
|
|
300
302
|
class: "input-wrapper",
|
|
301
303
|
onClick: () => this.inputField.dispatchEvent(new FocusEvent("focus"))
|
|
302
|
-
},
|
|
303
|
-
key: "
|
|
304
|
+
}, a("q2-input", {
|
|
305
|
+
key: "96e0ce1764dc542fcac5a516b608b379bd1453a9",
|
|
304
306
|
ref: t => this.inputField = t,
|
|
305
307
|
type: "number",
|
|
306
308
|
value: "" + c,
|
|
@@ -316,39 +318,39 @@ const x = t(class extends e {
|
|
|
316
318
|
"test-id": "pageInput",
|
|
317
319
|
current: "page",
|
|
318
320
|
disabled: u
|
|
319
|
-
})),
|
|
320
|
-
key: "
|
|
321
|
+
})), a("span", {
|
|
322
|
+
key: "3914f78404deab10b4173df5b16c205067c7e15e",
|
|
321
323
|
"aria-hidden": "true"
|
|
322
|
-
}, l("tecton.element.pagination.ofPages", [ o.toLocaleString() ]))),
|
|
323
|
-
key: "
|
|
324
|
+
}, l("tecton.element.pagination.ofPages", [ o.toLocaleString() ]))), a("div", {
|
|
325
|
+
key: "b5b441d213d99d04b18c976628ba07142e00856f",
|
|
324
326
|
class: "btn-group"
|
|
325
|
-
},
|
|
326
|
-
key: "
|
|
327
|
+
}, a("q2-btn", {
|
|
328
|
+
key: "3299b27a7d24045f2258288e86702a4b7e6d1e37",
|
|
327
329
|
ref: t => this.nextPageBtn = t,
|
|
328
330
|
label: b,
|
|
329
331
|
disabled: u || f,
|
|
330
332
|
onTctClick: () => this.handlePageChange(c + 1),
|
|
331
333
|
"test-id": "nextPageBtn",
|
|
332
334
|
"hide-label": !0
|
|
333
|
-
},
|
|
334
|
-
key: "
|
|
335
|
+
}, a("q2-icon", {
|
|
336
|
+
key: "d63e7679e5087a1a03bb17fd0a7c24c0d07bdf87",
|
|
335
337
|
type: "chevron-right"
|
|
336
|
-
})),
|
|
337
|
-
key: "
|
|
338
|
+
})), a("q2-btn", {
|
|
339
|
+
key: "f575528380b7d239db48f49353d71b88ba0e2d9e",
|
|
338
340
|
ref: t => this.lastPageBtn = t,
|
|
339
341
|
label: "tecton.element.pagination.goToLastPage",
|
|
340
342
|
disabled: u || f,
|
|
341
|
-
hidden:
|
|
343
|
+
hidden: n,
|
|
342
344
|
onTctClick: () => this.handlePageChange(o),
|
|
343
345
|
"test-id": "lastPageBtn",
|
|
344
346
|
"hide-label": !0
|
|
345
|
-
},
|
|
346
|
-
key: "
|
|
347
|
+
}, a("q2-icon", {
|
|
348
|
+
key: "c76d0fe0dff9095f893604fc41cd4d615075045e",
|
|
347
349
|
type: "chevron-double-right"
|
|
348
|
-
})))),
|
|
349
|
-
key: "
|
|
350
|
+
})))), a("div", {
|
|
351
|
+
key: "71ad1c246e16a1c84318d7ccf75d50a37246af12",
|
|
350
352
|
class: "per-page",
|
|
351
|
-
hidden:
|
|
353
|
+
hidden: n || !(null === (t = this.perPageIncrements) || void 0 === t ? void 0 : t.length)
|
|
352
354
|
}, g && this.renderPerPage()));
|
|
353
355
|
}
|
|
354
356
|
get hostElement() {
|
|
@@ -374,7 +376,7 @@ const x = t(class extends e {
|
|
|
374
376
|
};
|
|
375
377
|
}
|
|
376
378
|
static get style() {
|
|
377
|
-
return '*{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:flex;width:100%}:host([align=right]),:host([alignment=right]){justify-content:flex-end}:host([align=center]),:host([alignment=center]){justify-content:center}:host([align=left]),:host([alignment=left]){justify-content:flex-start}:host([hidden]){display:none}.container{display:inline-flex;column-gap:var(--tct-pagination-column-gap, var(--t-pagination-column-gap, var(--app-scale-2x, 10px)));align-items:center;height:var(--tct-pagination-height, var(--t-pagination-height, 44px));color:var(--tct-pagination-color, inherit);font-size:var(--tct-pagination-font-size, inherit);font-weight:var(--tct-pagination-font-weight, inherit)}.container.stacked{flex-direction:column;column-gap:0;row-gap:var(--tct-pagination-row-gap, var(--app-scale-2x, 10px));height:auto;align-items:stretch}.container.stacked .description{text-align:center}.container.stacked .controls{justify-content:center}.container.stacked .per-page{display:flex;justify-content:center}.container.stacked q2-select{--tct-select-margin:0;width:var(--tct-pagination-perpage-width, 60%)}.controls{display:flex}.btn-group{display:flex;gap:var(--tct-pagination-btn-gap, var(--t-pagination-btn-gap, 0))}.description,.input-display{white-space:nowrap}.input-display{display:grid;grid-template-columns:auto var(--tct-pagination-input-width, 50px) auto;align-items:center;gap:var(--tct-pagination-controls-gap, var(--t-pagination-controls-gap, var(--app-scale-1x, 5px)))}.input-display[hidden]{display:none}.input-wrapper{height:var(--tct-pagination-height, var(--t-pagination-height, 44px));display:flex;align-items:center}q2-btn{--tct-btn-border-radius:var(--tct-pagination-btn-border-radius, var(--t-pagination-btn-border-radius));--tct-btn-border:var(--tct-pagination-btn-border, var(--t-pagination-btn-border));--tct-btn-icon-hover-background:var(--tct-pagination-btn-hover-background, var(--app-gray-l3, #f2f2f2));--tct-icon-stroke-primary:var(--tct-pagination-btn-icon-stroke-primary, var(--app-gray, #747474));--tct-icon-stroke-secondary:var(--tct-pagination-btn-icon-stroke-secondary, var(--app-gray, #747474))}q2-icon{--tct-icon-size:var(--tct-pagination-icon-size, var(--t-pagination-icon-size, 12px));color:var(--tct-pagination-icon-color, var(--t-pagination-icon-color, var(--t-text, #4d4d4d)))}q2-input{--tct-input-margin-top:0;--tct-input-margin-bottom:0;--tct-input-height:var(--tct-pagination-input-height, var(--t-pagination-input-height, 30px));--tct-input-min-height:var(--tct-input-height);--tct-input-align:center}q2-select{--tct-input-align:start;--tct-select-input-min-height:var(--tct-pagination-select-height, var(--t-pagination-select-height, 30px));--tct-select-input-max-height:var(--tct-pagination-select-height, var(--t-pagination-select-height, 30px));width:var(--tct-pagination-perpage-width, var(--t-pagination-perpage-width, 100%));min-width:var(--tct-pagination-perpage-min-width, var(--t-pagination-perpage-min-width, 110px))}';
|
|
379
|
+
return '*{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:flex;width:100%}:host([align=right]),:host([alignment=right]){justify-content:flex-end}:host([align=center]),:host([alignment=center]){justify-content:center}:host([align=left]),:host([alignment=left]){justify-content:flex-start}:host([hidden]){display:none}.container{display:inline-flex;column-gap:var(--tct-pagination-column-gap, var(--t-pagination-column-gap, var(--app-scale-2x, 10px)));align-items:center;height:var(--tct-pagination-height, var(--t-pagination-height, 44px));color:var(--tct-pagination-color, inherit);font-size:var(--tct-pagination-font-size, inherit);font-weight:var(--tct-pagination-font-weight, inherit)}.container.stacked{flex-direction:column;column-gap:0;row-gap:var(--tct-pagination-row-gap, var(--app-scale-2x, 10px));height:auto;align-items:stretch}.container.stacked .description{text-align:center}.container.stacked .controls{justify-content:center}.container.stacked .per-page{display:flex;justify-content:center}.container.stacked q2-select{--tct-select-margin:0;width:var(--tct-pagination-perpage-width, 60%)}.container.small{flex-wrap:wrap;row-gap:var(--tct-pagination-row-gap, var(--app-scale-2x, 10px));height:auto;max-width:100%}.container.small .description{flex-basis:100%;min-width:0;overflow-wrap:anywhere;text-align:center;white-space:normal;line-height:max(1.2em, var(--app-line-height, 1.428571429em))}.container.small .controls{margin-inline:auto}.controls{display:flex}.btn-group{display:flex;gap:var(--tct-pagination-btn-gap, var(--t-pagination-btn-gap, 0))}.description,.input-display{white-space:nowrap}.input-display{display:grid;grid-template-columns:auto var(--tct-pagination-input-width, 50px) auto;align-items:center;gap:var(--tct-pagination-controls-gap, var(--t-pagination-controls-gap, var(--app-scale-1x, 5px)))}.input-display[hidden]{display:none}.input-wrapper{height:var(--tct-pagination-height, var(--t-pagination-height, 44px));display:flex;align-items:center}q2-btn{--tct-btn-border-radius:var(--tct-pagination-btn-border-radius, var(--t-pagination-btn-border-radius));--tct-btn-border:var(--tct-pagination-btn-border, var(--t-pagination-btn-border));--tct-btn-icon-hover-background:var(--tct-pagination-btn-hover-background, var(--app-gray-l3, #f2f2f2));--tct-icon-stroke-primary:var(--tct-pagination-btn-icon-stroke-primary, var(--app-gray, #747474));--tct-icon-stroke-secondary:var(--tct-pagination-btn-icon-stroke-secondary, var(--app-gray, #747474))}q2-icon{--tct-icon-size:var(--tct-pagination-icon-size, var(--t-pagination-icon-size, 12px));color:var(--tct-pagination-icon-color, var(--t-pagination-icon-color, var(--t-text, #4d4d4d)))}q2-input{--tct-input-margin-top:0;--tct-input-margin-bottom:0;--tct-input-height:var(--tct-pagination-input-height, var(--t-pagination-input-height, 30px));--tct-input-min-height:var(--tct-input-height);--tct-input-align:center}q2-select{--tct-input-align:start;--tct-select-input-min-height:var(--tct-pagination-select-height, var(--t-pagination-select-height, 30px));--tct-select-input-max-height:var(--tct-pagination-select-height, var(--t-pagination-select-height, 30px));width:var(--tct-pagination-perpage-width, var(--t-pagination-perpage-width, 100%));min-width:var(--tct-pagination-perpage-min-width, var(--t-pagination-perpage-min-width, 110px))}';
|
|
378
380
|
}
|
|
379
381
|
}, [ 1, "q2-pagination", {
|
|
380
382
|
align: [ 1537 ],
|
|
@@ -415,54 +417,54 @@ const x = t(class extends e {
|
|
|
415
417
|
} ]
|
|
416
418
|
} ]);
|
|
417
419
|
|
|
418
|
-
const
|
|
420
|
+
const w = x, defineCustomElement = function() {
|
|
419
421
|
if ("undefined" == typeof customElements) return;
|
|
420
422
|
[ "q2-pagination", "click-elsewhere", "q2-badge", "q2-btn", "q2-icon", "q2-input", "q2-loading", "q2-option", "q2-option-list", "q2-popover", "q2-select" ].forEach((t => {
|
|
421
423
|
switch (t) {
|
|
422
424
|
case "q2-pagination":
|
|
423
|
-
customElements.get(
|
|
425
|
+
customElements.get(n(t)) || customElements.define(n(t), x);
|
|
424
426
|
break;
|
|
425
427
|
|
|
426
428
|
case "click-elsewhere":
|
|
427
|
-
customElements.get(
|
|
429
|
+
customElements.get(n(t)) || h();
|
|
428
430
|
break;
|
|
429
431
|
|
|
430
432
|
case "q2-badge":
|
|
431
|
-
customElements.get(
|
|
433
|
+
customElements.get(n(t)) || d();
|
|
432
434
|
break;
|
|
433
435
|
|
|
434
436
|
case "q2-btn":
|
|
435
|
-
customElements.get(
|
|
437
|
+
customElements.get(n(t)) || g();
|
|
436
438
|
break;
|
|
437
439
|
|
|
438
440
|
case "q2-icon":
|
|
439
|
-
customElements.get(
|
|
441
|
+
customElements.get(n(t)) || u();
|
|
440
442
|
break;
|
|
441
443
|
|
|
442
444
|
case "q2-input":
|
|
443
|
-
customElements.get(
|
|
445
|
+
customElements.get(n(t)) || m();
|
|
444
446
|
break;
|
|
445
447
|
|
|
446
448
|
case "q2-loading":
|
|
447
|
-
customElements.get(
|
|
449
|
+
customElements.get(n(t)) || f();
|
|
448
450
|
break;
|
|
449
451
|
|
|
450
452
|
case "q2-option":
|
|
451
|
-
customElements.get(
|
|
453
|
+
customElements.get(n(t)) || b();
|
|
452
454
|
break;
|
|
453
455
|
|
|
454
456
|
case "q2-option-list":
|
|
455
|
-
customElements.get(
|
|
457
|
+
customElements.get(n(t)) || v();
|
|
456
458
|
break;
|
|
457
459
|
|
|
458
460
|
case "q2-popover":
|
|
459
|
-
customElements.get(
|
|
461
|
+
customElements.get(n(t)) || y();
|
|
460
462
|
break;
|
|
461
463
|
|
|
462
464
|
case "q2-select":
|
|
463
|
-
customElements.get(
|
|
465
|
+
customElements.get(n(t)) || k();
|
|
464
466
|
}
|
|
465
467
|
}));
|
|
466
468
|
};
|
|
467
469
|
|
|
468
|
-
export {
|
|
470
|
+
export { w as Q2Pagination, defineCustomElement }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { proxyCustomElement as t, HTMLElement as o, createEvent as i, h as e, transformTag as
|
|
1
|
+
import { proxyCustomElement as t, HTMLElement as o, createEvent as i, h as e, transformTag as a } from "@stencil/core/internal/client";
|
|
2
2
|
|
|
3
|
-
import { e as
|
|
3
|
+
import { e as r, o as n, i as c, w as s, l } from "./index2.js";
|
|
4
4
|
|
|
5
5
|
import { m as p } from "./mirror-emit.js";
|
|
6
6
|
|
|
@@ -39,7 +39,7 @@ const f = t(class extends o {
|
|
|
39
39
|
value: null,
|
|
40
40
|
values: [],
|
|
41
41
|
active: !1
|
|
42
|
-
}), this.scheduledAfterRender.push(
|
|
42
|
+
}), this.scheduledAfterRender.push(r);
|
|
43
43
|
}, this.determineOptionCount = async () => {
|
|
44
44
|
if (this.optionList) {
|
|
45
45
|
const t = await this.getOptionListOptions();
|
|
@@ -100,7 +100,7 @@ const f = t(class extends o {
|
|
|
100
100
|
var o;
|
|
101
101
|
await (null === (o = this.optionList) || void 0 === o ? void 0 : o.handleExternalKeydown(t));
|
|
102
102
|
}, this.handleSelectionChanges = async t => {
|
|
103
|
-
const {multiple: o} = this, {value: i = "", values: e = []} = t,
|
|
103
|
+
const {multiple: o} = this, {value: i = "", values: e = []} = t, a = o ? !!e.length : !!i;
|
|
104
104
|
if (!this.hostElement.onchange) if (o) this.selectedOptions = e, this.value = void 0; else {
|
|
105
105
|
const t = await this.getOption(i);
|
|
106
106
|
this.selectedOptions = t ? [ {
|
|
@@ -111,7 +111,7 @@ const f = t(class extends o {
|
|
|
111
111
|
p(this, [ "change", "tctChange" ], {
|
|
112
112
|
value: o ? void 0 : i,
|
|
113
113
|
values: e,
|
|
114
|
-
active:
|
|
114
|
+
active: a
|
|
115
115
|
});
|
|
116
116
|
}, this.handleSlotKeydown = t => {
|
|
117
117
|
var o;
|
|
@@ -151,8 +151,8 @@ const f = t(class extends o {
|
|
|
151
151
|
const {selectedOptions: t = []} = this, o = t.map((t => t.value)), i = await this.getOptionListOptions();
|
|
152
152
|
this.optionCount && (this.active = !!o.length), this.selectedOptionElements = (null == i ? void 0 : i.filter((t => o.includes(t.value)))) || [];
|
|
153
153
|
}, this.updateSlotState = () => {
|
|
154
|
-
const {hostElement: t, hasPopoverTop: o, hasPopoverBottom: i} = this, e = t.shadowRoot.querySelector('slot[name="popover-top"]'),
|
|
155
|
-
o !==
|
|
154
|
+
const {hostElement: t, hasPopoverTop: o, hasPopoverBottom: i} = this, e = t.shadowRoot.querySelector('slot[name="popover-top"]'), a = t.shadowRoot.querySelector('slot[name="popover-bottom"]'), r = (null == e ? void 0 : e.assignedNodes().length) > 0, n = (null == a ? void 0 : a.assignedNodes().length) > 0;
|
|
155
|
+
o !== r && (this.hasPopoverTop = r), i !== n && (this.hasPopoverBottom = n);
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
158
|
// #endregion
|
|
@@ -183,7 +183,9 @@ const f = t(class extends o {
|
|
|
183
183
|
c(t, this.hostElement) && this.primaryBtn.focus();
|
|
184
184
|
}
|
|
185
185
|
async popoverStateHandler({detail: {open: t}}) {
|
|
186
|
-
|
|
186
|
+
var o;
|
|
187
|
+
this.open !== t && (this.open = t, t || (this.setOptionListActiveElement(null),
|
|
188
|
+
null === (o = this.primaryBtn) || void 0 === o || o.focus()));
|
|
187
189
|
}
|
|
188
190
|
// #endregion
|
|
189
191
|
// #region Public Methods API
|
|
@@ -222,14 +224,14 @@ const f = t(class extends o {
|
|
|
222
224
|
// #region Watchers
|
|
223
225
|
selectedOptionsChanged(t) {
|
|
224
226
|
var o, i;
|
|
225
|
-
const {multiple: e} = this,
|
|
226
|
-
e ? (this.value && (this.value = null), this.updateSelectedOptionElements()) : this.value ===
|
|
227
|
+
const {multiple: e} = this, a = null !== (i = null === (o = null == t ? void 0 : t[0]) || void 0 === o ? void 0 : o.value) && void 0 !== i ? i : null;
|
|
228
|
+
e ? (this.value && (this.value = null), this.updateSelectedOptionElements()) : this.value === a ? this.updateSelectedOptionElements() : this.value = a;
|
|
227
229
|
}
|
|
228
230
|
async valueChanged(t, o, i) {
|
|
229
|
-
var e,
|
|
230
|
-
const {label:
|
|
231
|
+
var e, a;
|
|
232
|
+
const {label: r, multiple: n, selectedOptions: c, value: s} = this, l = "value" === i ? t : s, p = "label" === i ? t : r;
|
|
231
233
|
if (n) return;
|
|
232
|
-
const d = null !== (
|
|
234
|
+
const d = null !== (a = null === (e = null == c ? void 0 : c[0]) || void 0 === e ? void 0 : e.value) && void 0 !== a ? a : null;
|
|
233
235
|
if ("value" === i && t === d) this.updateSelectedOptionElements(); else {
|
|
234
236
|
const o = await this.getOption(t), {value: i, display: e} = o || {
|
|
235
237
|
value: l,
|
|
@@ -244,21 +246,21 @@ const f = t(class extends o {
|
|
|
244
246
|
// #endregion
|
|
245
247
|
// #region Local Methods
|
|
246
248
|
get buttonContent() {
|
|
247
|
-
const {label: t, selectedOptionElements: o, optionCount: i, maxLength: e} = this,
|
|
248
|
-
let
|
|
249
|
-
if (i && 0 !==
|
|
250
|
-
if (1 !==
|
|
251
|
-
const t = l(o[0].display), i = " +" + (
|
|
249
|
+
const {label: t, selectedOptionElements: o, optionCount: i, maxLength: e} = this, a = o.length;
|
|
250
|
+
let r;
|
|
251
|
+
if (i && 0 !== a) {
|
|
252
|
+
if (1 !== a) {
|
|
253
|
+
const t = l(o[0].display), i = " +" + (a - 1);
|
|
252
254
|
return {
|
|
253
255
|
text: `${t}${i}`,
|
|
254
256
|
truncatedText: `${this._truncate(t, e)}${i}`
|
|
255
257
|
};
|
|
256
258
|
}
|
|
257
|
-
|
|
258
|
-
} else
|
|
259
|
+
r = l(o[0].display);
|
|
260
|
+
} else r = l(t);
|
|
259
261
|
return {
|
|
260
|
-
text:
|
|
261
|
-
truncatedText: this._truncate(
|
|
262
|
+
text: r,
|
|
263
|
+
truncatedText: this._truncate(r, e)
|
|
262
264
|
};
|
|
263
265
|
}
|
|
264
266
|
_togglePopover() {
|
|
@@ -278,7 +280,7 @@ const f = t(class extends o {
|
|
|
278
280
|
}, l("tecton.element.optionList.optionCount", [ this.optionCount ]));
|
|
279
281
|
}
|
|
280
282
|
renderIcon() {
|
|
281
|
-
const {optionCount: t, active: o} = this, i = t && o,
|
|
283
|
+
const {optionCount: t, active: o} = this, i = t && o, a = i || !t ? "close" : "chevron-down";
|
|
282
284
|
return e(i ? "button" : "div", {
|
|
283
285
|
class: "btn-close",
|
|
284
286
|
onClick: i && this.clearSelectedOptions || void 0,
|
|
@@ -286,25 +288,25 @@ const f = t(class extends o {
|
|
|
286
288
|
"aria-label": i && l("tecton.element.pill.clearSelection") || void 0,
|
|
287
289
|
type: i ? "button" : void 0
|
|
288
290
|
}, e("q2-icon", {
|
|
289
|
-
type:
|
|
291
|
+
type: a
|
|
290
292
|
}));
|
|
291
293
|
}
|
|
292
294
|
render() {
|
|
293
|
-
const {optionCount: t, active: o, open: i} = this, {text:
|
|
295
|
+
const {optionCount: t, active: o, open: i} = this, {text: a, truncatedText: r} = this.buttonContent, n = [ "btn-wrapper" ];
|
|
294
296
|
return (t || o) && n.push("has-icon"), t && n.push("has-options"), e("click-elsewhere", {
|
|
295
|
-
key: "
|
|
297
|
+
key: "8cba59cde3746d0397305512334eb56357e9e5d4",
|
|
296
298
|
onChange: this.onClickElsewhere
|
|
297
299
|
}, e("div", {
|
|
298
|
-
key: "
|
|
300
|
+
key: "391da54f9fd870e223765e6266291dff9775abe6",
|
|
299
301
|
class: n.join(" ")
|
|
300
302
|
}, e("div", {
|
|
301
|
-
key: "
|
|
303
|
+
key: "06431fd76c0a9d30833756407c89ff59609bc3a3",
|
|
302
304
|
class: "btn-height-wrapper",
|
|
303
305
|
ref: t => this.primaryBtnWrapper = t,
|
|
304
306
|
onClick: this.handleWrapperClick,
|
|
305
307
|
tabIndex: -1
|
|
306
308
|
}, e("button", {
|
|
307
|
-
key: "
|
|
309
|
+
key: "609557b9206c91511e78e26c990230e61f7e5c19",
|
|
308
310
|
class: "btn-primary",
|
|
309
311
|
"test-id": "btn-control",
|
|
310
312
|
type: "button",
|
|
@@ -317,14 +319,17 @@ const f = t(class extends o {
|
|
|
317
319
|
"aria-roledescription": !t && "filter",
|
|
318
320
|
"aria-controls": t ? "option-list" : void 0,
|
|
319
321
|
"aria-expanded": t && "" + !!i || void 0,
|
|
320
|
-
"aria-label":
|
|
322
|
+
"aria-label": a,
|
|
321
323
|
"aria-pressed": t ? void 0 : "" + !!o,
|
|
322
324
|
"aria-describedby": t ? "option-description" : void 0
|
|
323
325
|
}, e("slot", {
|
|
324
|
-
key: "
|
|
326
|
+
key: "e1f4c57b7526f714cf0242e101ec0f5c39ebafa5",
|
|
325
327
|
name: "decorator"
|
|
326
|
-
}),
|
|
327
|
-
key: "
|
|
328
|
+
}), e("span", {
|
|
329
|
+
key: "98a770f6f4fabe04d886f66d57e76a4febb31353",
|
|
330
|
+
class: "pill-label"
|
|
331
|
+
}, r))), this.renderIcon(), !!t && this.renderHiddenElement()), this.optionCount > 0 && e("q2-popover", {
|
|
332
|
+
key: "30fb581a9eeb008262bbb3fc4a82537f1b78af28",
|
|
328
333
|
ref: t => this.popoverElement = t,
|
|
329
334
|
controlElement: this.primaryBtn,
|
|
330
335
|
open: this.open,
|
|
@@ -334,20 +339,20 @@ const f = t(class extends o {
|
|
|
334
339
|
align: this.popoverAlignment,
|
|
335
340
|
onFocusout: this.handleFocusOut
|
|
336
341
|
}, e("div", {
|
|
337
|
-
key: "
|
|
342
|
+
key: "6fc858b2064b78b2ccaafd35aefaa2e4c9e1ea07",
|
|
338
343
|
class: "popover-content"
|
|
339
344
|
}, e("div", {
|
|
340
|
-
key: "
|
|
345
|
+
key: "75134f4a5d4296f6f69a70197bf1bd450c05a8e0",
|
|
341
346
|
ref: t => this.popoverTopContainer = t,
|
|
342
347
|
class: "popover-top-container",
|
|
343
348
|
tabindex: "-1",
|
|
344
349
|
hidden: !this.hasPopoverTop,
|
|
345
350
|
onKeyDown: this.handleSlotKeydown
|
|
346
351
|
}, e("slot", {
|
|
347
|
-
key: "
|
|
352
|
+
key: "f570a1a19b97bd7eb4b2ae38975db95ff1153b00",
|
|
348
353
|
name: "popover-top"
|
|
349
354
|
})), e("q2-option-list", {
|
|
350
|
-
key: "
|
|
355
|
+
key: "aca9ff86903dcf5b4e5138541ac20dac68955fb7",
|
|
351
356
|
type: "listbox",
|
|
352
357
|
ref: t => this.optionList = t,
|
|
353
358
|
id: "option-list",
|
|
@@ -358,16 +363,16 @@ const f = t(class extends o {
|
|
|
358
363
|
onPopoverState: this.onPopoverState,
|
|
359
364
|
label: l("tecton.element.optionList.label", [ this.optionListLabel ])
|
|
360
365
|
}, e("slot", {
|
|
361
|
-
key: "
|
|
366
|
+
key: "89c5f3739c36206ceecb06245ba3052491b89898"
|
|
362
367
|
})), e("div", {
|
|
363
|
-
key: "
|
|
368
|
+
key: "8f98c6b4a59c2c0675b5648aed4a1110f0136d87",
|
|
364
369
|
ref: t => this.popoverBottomContainer = t,
|
|
365
370
|
class: "popover-bottom-container",
|
|
366
371
|
tabindex: "-1",
|
|
367
372
|
hidden: !this.hasPopoverBottom,
|
|
368
373
|
onKeyDown: this.handleSlotKeydown
|
|
369
374
|
}, e("slot", {
|
|
370
|
-
key: "
|
|
375
|
+
key: "75ef6c235c31755e0a5b9905db16e02ff8c4eea3",
|
|
371
376
|
name: "popover-bottom"
|
|
372
377
|
})))));
|
|
373
378
|
}
|
|
@@ -388,7 +393,7 @@ const f = t(class extends o {
|
|
|
388
393
|
};
|
|
389
394
|
}
|
|
390
395
|
static get style() {
|
|
391
|
-
return '*{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}';
|
|
396
|
+
return '*{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}';
|
|
392
397
|
}
|
|
393
398
|
}, [ 257, "q2-pill", {
|
|
394
399
|
active: [ 1540 ],
|
|
@@ -431,23 +436,23 @@ const y = f, defineCustomElement = function() {
|
|
|
431
436
|
[ "q2-pill", "click-elsewhere", "q2-icon", "q2-option-list", "q2-popover" ].forEach((t => {
|
|
432
437
|
switch (t) {
|
|
433
438
|
case "q2-pill":
|
|
434
|
-
customElements.get(
|
|
439
|
+
customElements.get(a(t)) || customElements.define(a(t), f);
|
|
435
440
|
break;
|
|
436
441
|
|
|
437
442
|
case "click-elsewhere":
|
|
438
|
-
customElements.get(
|
|
443
|
+
customElements.get(a(t)) || h();
|
|
439
444
|
break;
|
|
440
445
|
|
|
441
446
|
case "q2-icon":
|
|
442
|
-
customElements.get(
|
|
447
|
+
customElements.get(a(t)) || b();
|
|
443
448
|
break;
|
|
444
449
|
|
|
445
450
|
case "q2-option-list":
|
|
446
|
-
customElements.get(
|
|
451
|
+
customElements.get(a(t)) || m();
|
|
447
452
|
break;
|
|
448
453
|
|
|
449
454
|
case "q2-popover":
|
|
450
|
-
customElements.get(
|
|
455
|
+
customElements.get(a(t)) || u();
|
|
451
456
|
}
|
|
452
457
|
}));
|
|
453
458
|
};
|