q2-tecton-elements 1.71.4 → 1.73.0
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 +32564 -26687
- package/dist/cjs/{charting-ClN1ldqv.js → charting-CdNTrVBe.js} +80 -0
- package/dist/cjs/click-elsewhere_3.cjs.entry.js +85 -20
- 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-SpDCZABA.js → index-BqyWHpNu.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{q2-action-group_2.cjs.entry.js → q2-action-group.cjs.entry.js} +1 -89
- package/dist/cjs/q2-action-sheet.cjs.entry.js +98 -18
- package/dist/cjs/q2-avatar.cjs.entry.js +1 -1
- package/dist/cjs/q2-badge_2.cjs.entry.js +113 -12
- package/dist/cjs/q2-btn_2.cjs.entry.js +2 -2
- package/dist/cjs/q2-calendar.cjs.entry.js +14 -7
- package/dist/cjs/q2-card-image.cjs.entry.js +4 -4
- 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 +3 -3
- package/dist/cjs/q2-checkbox_2.cjs.entry.js +9 -6
- package/dist/cjs/q2-context.cjs.entry.js +6 -5
- 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 +4 -4
- package/dist/cjs/q2-editable-field.cjs.entry.js +51 -37
- package/dist/cjs/q2-example.cjs.entry.js +1 -1
- package/dist/cjs/q2-file-picker.cjs.entry.js +60 -4
- 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 +21 -3
- 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 +59 -17
- 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 +4 -4
- package/dist/cjs/q2-pill.cjs.entry.js +8 -5
- package/dist/cjs/q2-radio-group.cjs.entry.js +22 -4
- package/dist/cjs/q2-radio.cjs.entry.js +3 -3
- package/dist/cjs/q2-relative-time.cjs.entry.js +3 -3
- package/dist/cjs/q2-resize-observer.cjs.entry.js +92 -0
- package/dist/cjs/q2-search.cjs.entry.js +4 -4
- package/dist/cjs/q2-section.cjs.entry.js +7 -7
- package/dist/cjs/q2-select.cjs.entry.js +41 -21
- 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 +5 -3
- 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 +1 -1
- package/dist/collection/components/q2-btn/q2-btn.css +152 -146
- package/dist/collection/components/q2-btn/q2-btn.js +10 -4
- package/dist/collection/components/q2-btn/test/q2-btn-test.vr.js +229 -20
- package/dist/collection/components/q2-calendar/q2-calendar.css +3 -0
- package/dist/collection/components/q2-calendar/q2-calendar.js +20 -7
- package/dist/collection/components/q2-calendar/q2-month-picker.js +2 -2
- package/dist/collection/components/q2-calendar/test/q2-calendar-test.vr.js +26 -15
- package/dist/collection/components/q2-card/test/q2-card-test.vr.js +4 -0
- package/dist/collection/components/q2-card-image/q2-card-image.css +89 -134
- package/dist/collection/components/q2-card-image/q2-card-image.js +4 -4
- package/dist/collection/components/q2-card-image/test/q2-card-image-test.vr.js +4 -0
- package/dist/collection/components/q2-carousel/q2-carousel.js +19 -5
- package/dist/collection/components/q2-carousel/test/q2-carousel-test.vr.js +45 -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.css +2 -2
- package/dist/collection/components/q2-checkbox/q2-checkbox.js +6 -3
- package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.css +2 -0
- package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.js +6 -3
- package/dist/collection/components/q2-context/q2-context.css +5 -0
- package/dist/collection/components/q2-context/q2-context.js +4 -3
- package/dist/collection/components/q2-context/test/q2-context-test.vr.js +14 -4
- package/dist/collection/components/q2-currency/q2-currency.js +1 -1
- package/dist/collection/components/q2-data-table/q2-data-table.css +6 -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 +52 -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.css +2 -0
- package/dist/collection/components/q2-dropdown/q2-dropdown.js +5 -5
- package/dist/collection/components/q2-dropdown/test/q2-dropdown-test.vr.js +30 -0
- package/dist/collection/components/q2-editable-field/q2-editable-field.css +2 -0
- package/dist/collection/components/q2-editable-field/q2-editable-field.js +59 -45
- package/dist/collection/components/q2-example/q2-example.js +1 -1
- package/dist/collection/components/q2-file-picker/q2-file-picker.css +27 -0
- package/dist/collection/components/q2-file-picker/q2-file-picker.js +98 -2
- package/dist/collection/components/q2-file-picker/test/q2-file-picker-test.vr.js +22 -0
- package/dist/collection/components/q2-form/q2-form.js +1 -1
- package/dist/collection/components/q2-formatted-text/q2-formatted-text.js +1 -1
- package/dist/collection/components/q2-input/q2-input.css +67 -1
- package/dist/collection/components/q2-input/q2-input.js +160 -15
- package/dist/collection/components/q2-input/test/q2-input-test.vr.js +35 -0
- package/dist/collection/components/q2-item/q2-item.css +3 -1
- package/dist/collection/components/q2-item/q2-item.js +19 -1
- package/dist/collection/components/q2-item/test/q2-item-test.vr.js +8 -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 +5 -5
- package/dist/collection/components/q2-message/q2-message.js +1 -1
- package/dist/collection/components/q2-meter/q2-meter.js +1 -1
- package/dist/collection/components/q2-modal/q2-modal.css +40 -3
- package/dist/collection/components/q2-modal/q2-modal.js +100 -16
- package/dist/collection/components/q2-modal/test/q2-modal-test.vr.js +32 -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 +33 -4
- package/dist/collection/components/q2-otp/q2-otp.js +4 -4
- package/dist/collection/components/q2-pagination/q2-pagination.js +3 -3
- package/dist/collection/components/q2-pill/q2-pill.css +2 -2
- package/dist/collection/components/q2-pill/q2-pill.js +6 -3
- package/dist/collection/components/q2-popover/q2-popover.css +4 -2
- package/dist/collection/components/q2-popover/q2-popover.js +50 -14
- package/dist/collection/components/q2-radio/q2-radio.css +158 -104
- package/dist/collection/components/q2-radio/q2-radio.js +5 -2
- package/dist/collection/components/q2-radio/test/q2-radio-test.vr.js +25 -2
- package/dist/collection/components/q2-radio-group/q2-radio-group.css +39 -2
- package/dist/collection/components/q2-radio-group/q2-radio-group.js +73 -4
- package/dist/collection/components/q2-radio-group/test/q2-radio-group-test.vr.js +43 -1
- package/dist/collection/components/q2-relative-time/q2-relative-time.js +2 -2
- package/dist/collection/components/q2-resize-observer/q2-resize-observer.js +1 -1
- package/dist/collection/components/q2-search/q2-search.css +2 -0
- package/dist/collection/components/q2-search/q2-search.js +6 -3
- package/dist/collection/components/q2-section/q2-section.css +2 -0
- package/dist/collection/components/q2-section/q2-section.js +6 -6
- package/dist/collection/components/q2-select/q2-select.css +3 -0
- package/dist/collection/components/q2-select/q2-select.js +48 -22
- package/dist/collection/components/q2-select/test/q2-select-test.vr.js +13 -0
- 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 +5 -3
- 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 +2 -2
- package/dist/collection/utils/test/vr-helpers.js +16 -2
- 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 +3 -3
- package/dist/components/q2-action-sheet.js +224 -103
- package/dist/components/q2-avatar2.js +8 -8
- package/dist/components/q2-btn2.js +2 -2
- package/dist/components/q2-calendar.js +15 -10
- package/dist/components/q2-card-image.js +24 -24
- 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 +12 -12
- package/dist/components/q2-checkbox2.js +12 -12
- package/dist/components/q2-context.js +30 -29
- 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 +13 -13
- package/dist/components/q2-editable-field.js +45 -36
- package/dist/components/q2-example.js +11 -11
- package/dist/components/q2-file-picker.js +71 -11
- package/dist/components/q2-form.js +6 -6
- package/dist/components/q2-formatted-text.js +2 -2
- package/dist/components/q2-input2.js +268 -163
- package/dist/components/q2-item2.js +33 -23
- package/dist/components/q2-legend2.js +7 -7
- package/dist/components/q2-list2.js +6 -6
- package/dist/components/q2-message2.js +29 -29
- package/dist/components/q2-meter.js +7 -7
- package/dist/components/q2-modal.js +94 -76
- 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 +52 -32
- package/dist/components/q2-otp.js +8 -8
- package/dist/components/q2-pagination.js +67 -67
- package/dist/components/q2-pill.js +17 -15
- package/dist/components/q2-popover2.js +77 -53
- package/dist/components/q2-radio-group.js +70 -40
- package/dist/components/q2-radio.js +40 -55
- package/dist/components/q2-relative-time.js +5 -5
- package/dist/components/q2-resize-observer2.js +23 -23
- package/dist/components/q2-search.js +6 -6
- package/dist/components/q2-section.js +33 -33
- package/dist/components/q2-select2.js +47 -40
- package/dist/components/q2-stepper-pane.js +17 -13
- 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 +18 -18
- package/dist/components/q2-tab-pane.js +2 -2
- 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 +12 -11
- package/dist/esm/{charting-DOZct-UB.js → charting-DFXJklqs.js} +79 -1
- package/dist/esm/click-elsewhere_3.entry.js +85 -20
- 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-Cps4jSQM.js → index-CP8pXJ-l.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{q2-action-group_2.entry.js → q2-action-group.entry.js} +3 -90
- package/dist/esm/q2-action-sheet.entry.js +99 -19
- package/dist/esm/q2-avatar.entry.js +1 -1
- package/dist/esm/q2-badge_2.entry.js +113 -12
- package/dist/esm/q2-btn_2.entry.js +2 -2
- package/dist/esm/q2-calendar.entry.js +14 -7
- package/dist/esm/q2-card-image.entry.js +4 -4
- 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 +3 -3
- package/dist/esm/q2-checkbox_2.entry.js +9 -6
- package/dist/esm/q2-context.entry.js +6 -5
- 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 +4 -4
- package/dist/esm/q2-editable-field.entry.js +51 -37
- package/dist/esm/q2-example.entry.js +1 -1
- package/dist/esm/q2-file-picker.entry.js +60 -4
- 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 +21 -3
- 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 +59 -17
- 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 +4 -4
- package/dist/esm/q2-pill.entry.js +8 -5
- package/dist/esm/q2-radio-group.entry.js +22 -4
- package/dist/esm/q2-radio.entry.js +3 -3
- package/dist/esm/q2-relative-time.entry.js +3 -3
- package/dist/esm/q2-resize-observer.entry.js +90 -0
- package/dist/esm/q2-search.entry.js +4 -4
- package/dist/esm/q2-section.entry.js +7 -7
- package/dist/esm/q2-select.entry.js +41 -21
- 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 +5 -3
- package/dist/q2-tecton-elements/{charting-DOZct-UB.js → charting-DFXJklqs.js} +1625 -1554
- package/dist/q2-tecton-elements/click-elsewhere_3.entry.js +98 -54
- 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-Cps4jSQM.js → index-CP8pXJ-l.js} +2 -2
- package/dist/q2-tecton-elements/{q2-action-group_2.entry.js → q2-action-group.entry.js} +35 -113
- package/dist/q2-tecton-elements/q2-action-sheet.entry.js +169 -84
- package/dist/q2-tecton-elements/q2-avatar.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-badge_2.entry.js +240 -140
- package/dist/q2-tecton-elements/q2-btn_2.entry.js +23 -23
- package/dist/q2-tecton-elements/q2-calendar.entry.js +18 -13
- package/dist/q2-tecton-elements/q2-card-image.entry.js +9 -9
- 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 +190 -144
- package/dist/q2-tecton-elements/q2-chart-bar.entry.js +382 -338
- package/dist/q2-tecton-elements/q2-chart-donut.entry.js +186 -160
- package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-checkbox_2.entry.js +21 -19
- package/dist/q2-tecton-elements/q2-context.entry.js +18 -17
- package/dist/q2-tecton-elements/q2-currency.entry.js +9 -9
- package/dist/q2-tecton-elements/q2-data-table.entry.js +38 -38
- 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 +10 -10
- package/dist/q2-tecton-elements/q2-editable-field.entry.js +50 -41
- package/dist/q2-tecton-elements/q2-example.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-file-picker.entry.js +62 -7
- 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 +27 -17
- 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 +30 -30
- package/dist/q2-tecton-elements/q2-meter.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-modal.entry.js +61 -45
- 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 +20 -20
- package/dist/q2-tecton-elements/q2-pill.entry.js +43 -41
- package/dist/q2-tecton-elements/q2-radio-group.entry.js +55 -34
- package/dist/q2-tecton-elements/q2-radio.entry.js +38 -53
- package/dist/q2-tecton-elements/q2-relative-time.entry.js +11 -11
- package/dist/q2-tecton-elements/q2-resize-observer.entry.js +81 -0
- package/dist/q2-tecton-elements/q2-search.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-section.entry.js +25 -25
- package/dist/q2-tecton-elements/q2-select.entry.js +28 -21
- package/dist/q2-tecton-elements/q2-stepper-pane.entry.js +19 -15
- 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 +3 -3
- package/dist/q2-tecton-elements/q2-tab-container.entry.js +15 -15
- 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 +8 -7
- 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-btn/q2-btn.d.ts +7 -3
- package/dist/types/components/q2-calendar/q2-calendar.d.ts +10 -2
- package/dist/types/components/q2-card-image/q2-card-image.d.ts +1 -1
- 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-dropdown/test/q2-dropdown-test.vr.d.ts +1 -0
- package/dist/types/components/q2-editable-field/q2-editable-field.d.ts +20 -2
- package/dist/types/components/q2-file-picker/q2-file-picker.d.ts +20 -0
- package/dist/types/components/q2-input/q2-input.d.ts +32 -4
- package/dist/types/components/q2-item/q2-item.d.ts +3 -0
- package/dist/types/components/q2-modal/q2-modal.d.ts +10 -1
- 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 +18 -2
- package/dist/types/components/q2-search/q2-search.d.ts +3 -1
- package/dist/types/components/q2-select/q2-select.d.ts +12 -4
- package/dist/types/components/q2-textarea/q2-textarea.d.ts +4 -2
- package/dist/types/components.d.ts +1112 -195
- 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/dist/types/utils/test/vr-helpers.d.ts +2 -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
|
@@ -2,7 +2,7 @@ import { proxyCustomElement as t, HTMLElement as e, createEvent as i, h as s, Ho
|
|
|
2
2
|
|
|
3
3
|
import { b as a } from "./component.js";
|
|
4
4
|
|
|
5
|
-
import { l as
|
|
5
|
+
import { l as r, n as h, o as l, i as c, w as d, t as p } from "./index2.js";
|
|
6
6
|
|
|
7
7
|
import { m as u } from "./mirror-emit.js";
|
|
8
8
|
|
|
@@ -15,7 +15,7 @@ const b = t(class extends e {
|
|
|
15
15
|
lastPressedAt: new Date
|
|
16
16
|
}, this.scheduledAfterRender = [],
|
|
17
17
|
/** Determines the label that is applied to the option list for accessibility purposes. */
|
|
18
|
-
this.label =
|
|
18
|
+
this.label = r("tecton.element.optionList.label"),
|
|
19
19
|
/** A list of the selected options on the element. */
|
|
20
20
|
this.selectedOptions = [],
|
|
21
21
|
/** Translates to the role of the option list */
|
|
@@ -42,7 +42,7 @@ const b = t(class extends e {
|
|
|
42
42
|
break;
|
|
43
43
|
}
|
|
44
44
|
"menu" === this.type ? (this.activeIndex = 0, this.openDropdownWithActiveElement(0)) : (this.setDefaultActiveElement(),
|
|
45
|
-
|
|
45
|
+
h((() => this.popoverState.emit({
|
|
46
46
|
open: !0,
|
|
47
47
|
action: "open"
|
|
48
48
|
}))));
|
|
@@ -50,7 +50,7 @@ const b = t(class extends e {
|
|
|
50
50
|
|
|
51
51
|
case "Enter":
|
|
52
52
|
"menu" === this.type ? (this.activeIndex = 0, this.openDropdownWithActiveElement(0)) : (this.setDefaultActiveElement(),
|
|
53
|
-
|
|
53
|
+
h((() => this.popoverState.emit({
|
|
54
54
|
open: !0,
|
|
55
55
|
action: "open"
|
|
56
56
|
}))));
|
|
@@ -111,8 +111,8 @@ const b = t(class extends e {
|
|
|
111
111
|
(i || s) && t.stopPropagation();
|
|
112
112
|
}, this.internalKeydownHandler = t => {
|
|
113
113
|
t.stopPropagation();
|
|
114
|
-
const {activeIndex: e, customSearch: i, allOptions: s, allVisibleOptions: n, multiple: o} = this, {key: a, shiftKey:
|
|
115
|
-
let
|
|
114
|
+
const {activeIndex: e, customSearch: i, allOptions: s, allVisibleOptions: n, multiple: o} = this, {key: a, shiftKey: r} = t;
|
|
115
|
+
let h;
|
|
116
116
|
switch (a) {
|
|
117
117
|
case " ":
|
|
118
118
|
if (this.searchString && !this.multiple) {
|
|
@@ -120,8 +120,8 @@ const b = t(class extends e {
|
|
|
120
120
|
this.searchOptions(a, !1);
|
|
121
121
|
break;
|
|
122
122
|
}
|
|
123
|
-
if (
|
|
124
|
-
if (this.selectOption(
|
|
123
|
+
if (h = s.find((t => t.active)), !h || h.disabled) break;
|
|
124
|
+
if (this.selectOption(h), o) break;
|
|
125
125
|
this.hostElement.addEventListener("tctClick", (() => {
|
|
126
126
|
this.popoverState.emit({
|
|
127
127
|
open: !1,
|
|
@@ -133,8 +133,8 @@ const b = t(class extends e {
|
|
|
133
133
|
break;
|
|
134
134
|
|
|
135
135
|
case "Enter":
|
|
136
|
-
if (
|
|
137
|
-
if (this.selectOption(
|
|
136
|
+
if (h = s.find((t => t.active)), !h || h.disabled) break;
|
|
137
|
+
if (this.selectOption(h), o) break;
|
|
138
138
|
this.hostElement.addEventListener("tctClick", (() => {
|
|
139
139
|
this.popoverState.emit({
|
|
140
140
|
open: !1,
|
|
@@ -148,8 +148,8 @@ const b = t(class extends e {
|
|
|
148
148
|
case "ArrowUp":
|
|
149
149
|
case "ArrowDown":
|
|
150
150
|
// Guard: only process if an option is currently focused
|
|
151
|
-
const
|
|
152
|
-
if (!this.allOptions.some((t => t ===
|
|
151
|
+
const l = document.activeElement;
|
|
152
|
+
if (!this.allOptions.some((t => t === l))) return;
|
|
153
153
|
if (t.preventDefault(), "ArrowUp" === a) {
|
|
154
154
|
if (n[0].active) break;
|
|
155
155
|
if (void 0 === e) {
|
|
@@ -192,7 +192,7 @@ const b = t(class extends e {
|
|
|
192
192
|
break;
|
|
193
193
|
|
|
194
194
|
case "Tab":
|
|
195
|
-
if (
|
|
195
|
+
if (r) break;
|
|
196
196
|
if (this.multiple && "listbox" === this.type) break;
|
|
197
197
|
if ("menu" === this.type) {
|
|
198
198
|
this.popoverState.emit({
|
|
@@ -201,8 +201,8 @@ const b = t(class extends e {
|
|
|
201
201
|
});
|
|
202
202
|
break;
|
|
203
203
|
}
|
|
204
|
-
if (
|
|
205
|
-
this.selectOption(
|
|
204
|
+
if (h = s.find((t => t.active)), !h || h.disabled) return;
|
|
205
|
+
this.selectOption(h);
|
|
206
206
|
break;
|
|
207
207
|
|
|
208
208
|
case "Esc":
|
|
@@ -257,7 +257,7 @@ const b = t(class extends e {
|
|
|
257
257
|
this.hasOptions = !!this.hostElement.querySelectorAll("q2-option:not([separator]):not([separator=true]), q2-dropdown-item:not([separator]):not([separator=true])").length;
|
|
258
258
|
}
|
|
259
259
|
componentDidLoad() {
|
|
260
|
-
|
|
260
|
+
l(this.hostElement), this.checkOptions(), this.selectedOptionsUpdated(), this.ready.emit();
|
|
261
261
|
}
|
|
262
262
|
componentDidRender() {
|
|
263
263
|
this.scheduledAfterRender.forEach((t => t())), this.scheduledAfterRender = [];
|
|
@@ -268,7 +268,7 @@ const b = t(class extends e {
|
|
|
268
268
|
t.stopPropagation();
|
|
269
269
|
}
|
|
270
270
|
delegateFocus(t) {
|
|
271
|
-
if (!
|
|
271
|
+
if (!c(t, this.hostElement)) return;
|
|
272
272
|
this.popoverState.emit({
|
|
273
273
|
open: !0,
|
|
274
274
|
action: "open"
|
|
@@ -328,6 +328,20 @@ const b = t(class extends e {
|
|
|
328
328
|
"menu" === t && "q2-dropdown-item" === i.tagName.toLowerCase() || (i.role = e);
|
|
329
329
|
}));
|
|
330
330
|
}
|
|
331
|
+
findScrollableAncestor(t) {
|
|
332
|
+
var i, s;
|
|
333
|
+
let n = t;
|
|
334
|
+
for (;n; ) {
|
|
335
|
+
if (n instanceof e && n !== t) {
|
|
336
|
+
const t = getComputedStyle(n).overflowY;
|
|
337
|
+
// Skip html/body so page-level scroll isn't treated as our container.
|
|
338
|
+
if (("auto" === t || "scroll" === t) && n !== document.documentElement && n !== document.body) return n;
|
|
339
|
+
}
|
|
340
|
+
const o = n.assignedSlot, a = n.parentNode, r = n.host;
|
|
341
|
+
n = null !== (s = null !== (i = null != o ? o : a) && void 0 !== i ? i : r) && void 0 !== s ? s : null;
|
|
342
|
+
}
|
|
343
|
+
return null;
|
|
344
|
+
}
|
|
331
345
|
focusSelectedSibling(t) {
|
|
332
346
|
const {allVisibleOptions: e, allOptions: i} = this;
|
|
333
347
|
if (e.length < 2) return void (this.showSelected = !1);
|
|
@@ -369,10 +383,16 @@ const b = t(class extends e {
|
|
|
369
383
|
scrollToActiveOption() {
|
|
370
384
|
const t = this.allOptions[this.activeIndex];
|
|
371
385
|
if (!t) return;
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
386
|
+
// Do our own scroll math so `scrollIntoView` doesn't cascade to the parent window in an SDK iframe.
|
|
387
|
+
const e = this.findScrollableAncestor(t);
|
|
388
|
+
if (e) {
|
|
389
|
+
if (e.scrollHeight > e.clientHeight) {
|
|
390
|
+
const i = t.getBoundingClientRect(), s = e.getBoundingClientRect(), n = i.top - s.top + i.height / 2;
|
|
391
|
+
e.scrollTop += n - s.height / 2;
|
|
392
|
+
}
|
|
393
|
+
} else t.scrollIntoView({
|
|
394
|
+
block: "nearest"
|
|
395
|
+
});
|
|
376
396
|
}
|
|
377
397
|
searchOptions(t, e) {
|
|
378
398
|
this.searchString = t, this.searchAndFocus(t, e);
|
|
@@ -384,15 +404,15 @@ const b = t(class extends e {
|
|
|
384
404
|
value: n,
|
|
385
405
|
display: o
|
|
386
406
|
};
|
|
387
|
-
let
|
|
407
|
+
let r = [];
|
|
388
408
|
if (e) {
|
|
389
409
|
const {selectedOptions: e} = this;
|
|
390
|
-
|
|
410
|
+
r = e.find((t => t.value === n)) ? e.filter((({value: t}) => t !== n)) : [ ...e, a ],
|
|
391
411
|
s && this.focusSelectedSibling(t);
|
|
392
|
-
} else
|
|
393
|
-
i ? this.setActiveElement(null) : this.selectedOptions =
|
|
412
|
+
} else r = [ a ];
|
|
413
|
+
i ? this.setActiveElement(null) : this.selectedOptions = r, u(this, [ "change", "tctChange" ], {
|
|
394
414
|
value: n,
|
|
395
|
-
values:
|
|
415
|
+
values: r
|
|
396
416
|
});
|
|
397
417
|
}
|
|
398
418
|
setActiveOption() {
|
|
@@ -406,7 +426,7 @@ const b = t(class extends e {
|
|
|
406
426
|
if (!t) return;
|
|
407
427
|
p(t) ? t.focus({
|
|
408
428
|
preventScroll: !0
|
|
409
|
-
}) :
|
|
429
|
+
}) : h((() => t.focus({
|
|
410
430
|
preventScroll: !0
|
|
411
431
|
})));
|
|
412
432
|
}
|
|
@@ -427,22 +447,22 @@ const b = t(class extends e {
|
|
|
427
447
|
// #region Render Methods
|
|
428
448
|
render() {
|
|
429
449
|
return s(n, {
|
|
430
|
-
key: "
|
|
450
|
+
key: "19cadb5668db33a912951df4ec0e81a74b2b78ce"
|
|
431
451
|
}, s("div", {
|
|
432
|
-
key: "
|
|
452
|
+
key: "1d5a8f310ee97bc2189b839ee3d87e08bf0fa269",
|
|
433
453
|
class: "content",
|
|
434
454
|
ref: t => this.contentElement = t,
|
|
435
455
|
onFocusout: this.focusoutHandler
|
|
436
456
|
}, s("div", {
|
|
437
|
-
key: "
|
|
457
|
+
key: "24b1616962a9b544fb6215acc1e6edb4f12a5a03",
|
|
438
458
|
class: "options",
|
|
439
|
-
"aria-label":
|
|
459
|
+
"aria-label": r("tecton.element.optionList.label", [ this.label ]),
|
|
440
460
|
"aria-multiselectable": "menu" === this.type ? void 0 : this.multiple ? "true" : void 0,
|
|
441
461
|
role: this.type || "listbox",
|
|
442
462
|
onKeyDown: this.internalKeydownHandler,
|
|
443
463
|
onClick: this.clickHandler
|
|
444
464
|
}, s("slot", {
|
|
445
|
-
key: "
|
|
465
|
+
key: "eeb0342b7c319f5f5af95daa54dcaa732c3159d9"
|
|
446
466
|
}))));
|
|
447
467
|
}
|
|
448
468
|
get hostElement() {
|
|
@@ -291,7 +291,7 @@ const f = t(class extends e {
|
|
|
291
291
|
block: !0,
|
|
292
292
|
class: "send-code-button",
|
|
293
293
|
disabled: this.disabled,
|
|
294
|
-
intent: "
|
|
294
|
+
intent: "primary",
|
|
295
295
|
label: this.localizedSendCodeLabel,
|
|
296
296
|
onClick: this.handleSendCodeClick,
|
|
297
297
|
ref: t => this.sendCodeRef = t
|
|
@@ -309,7 +309,7 @@ const f = t(class extends e {
|
|
|
309
309
|
block: !0,
|
|
310
310
|
class: "submit-button",
|
|
311
311
|
disabled: this.disabled || !this.isComplete,
|
|
312
|
-
intent: "
|
|
312
|
+
intent: "primary",
|
|
313
313
|
label: this.isVerifying ? this.localizedProcessingLabel : this.localizedSubmitLabel,
|
|
314
314
|
loading: this.isVerifying,
|
|
315
315
|
onClick: this.handleSubmitClick
|
|
@@ -317,7 +317,7 @@ const f = t(class extends e {
|
|
|
317
317
|
}
|
|
318
318
|
render() {
|
|
319
319
|
return i("div", {
|
|
320
|
-
key: "
|
|
320
|
+
key: "8f4ada9f194f1b0995995e946097b3e24a11f605",
|
|
321
321
|
"aria-busy": this.isVerifying ? "true" : void 0,
|
|
322
322
|
"aria-labelledby": this.label ? this.labelId : void 0,
|
|
323
323
|
class: {
|
|
@@ -331,22 +331,22 @@ const f = t(class extends e {
|
|
|
331
331
|
},
|
|
332
332
|
role: "group"
|
|
333
333
|
}, this.renderSendCodeButton(), i("div", {
|
|
334
|
-
key: "
|
|
334
|
+
key: "099e1ef5ccc09846faf9952772e61ff7644e5085",
|
|
335
335
|
class: {
|
|
336
336
|
"otp-content": !0,
|
|
337
337
|
"send-code-hidden": "ready" === this.state
|
|
338
338
|
}
|
|
339
339
|
}, this.renderLabel(), i("div", {
|
|
340
|
-
key: "
|
|
340
|
+
key: "5ad6ff061779de6562f523148459729d73bbf53a",
|
|
341
341
|
class: "otp-control-group"
|
|
342
342
|
}, i("div", {
|
|
343
|
-
key: "
|
|
343
|
+
key: "d60e93f2d79d0f4b0348a5b581647ece89e9973c",
|
|
344
344
|
class: "fields-shell"
|
|
345
345
|
}, i("div", {
|
|
346
|
-
key: "
|
|
346
|
+
key: "55b515c8a04e664024dcc66e4d894dcb0ddd4ca4",
|
|
347
347
|
class: "fields-container"
|
|
348
348
|
}, i("input", {
|
|
349
|
-
key: "
|
|
349
|
+
key: "b8319da6e91ea06ff5632c72326460c0e532393d",
|
|
350
350
|
"aria-describedby": this.describedBy,
|
|
351
351
|
"aria-invalid": "error" === this.state ? "true" : "false",
|
|
352
352
|
"aria-label": this.inputAriaLabel,
|
|
@@ -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
|
|
|
@@ -12,9 +12,9 @@ import { d as g } from "./q2-btn2.js";
|
|
|
12
12
|
|
|
13
13
|
import { d as u } from "./q2-icon2.js";
|
|
14
14
|
|
|
15
|
-
import { d as
|
|
15
|
+
import { d as f } from "./q2-input2.js";
|
|
16
16
|
|
|
17
|
-
import { d as
|
|
17
|
+
import { d as m } from "./q2-loading2.js";
|
|
18
18
|
|
|
19
19
|
import { d as b } from "./q2-option2.js";
|
|
20
20
|
|
|
@@ -73,8 +73,8 @@ const x = t(class extends e {
|
|
|
73
73
|
var e;
|
|
74
74
|
if (this.disabled) return;
|
|
75
75
|
if (!r(t, this.hostElement)) return;
|
|
76
|
-
const {isFullViewHidden: i, containerElement:
|
|
77
|
-
i ? null === (e =
|
|
76
|
+
const {isFullViewHidden: i, containerElement: a, inputField: n} = this;
|
|
77
|
+
i ? null === (e = a.querySelector("q2-btn:not([disabled])")) || void 0 === e || e.focus() : n.focus();
|
|
78
78
|
}
|
|
79
79
|
// #endregion
|
|
80
80
|
// #region Public Methods API
|
|
@@ -196,8 +196,8 @@ const x = t(class extends e {
|
|
|
196
196
|
return (null === (t = this.perPageIncrements) || void 0 === t ? void 0 : t.length) > 1;
|
|
197
197
|
}
|
|
198
198
|
get totalPages() {
|
|
199
|
-
const {pagesOnly: t, totalWithDefault: e, perPageWithDefault: i, pages:
|
|
200
|
-
return t &&
|
|
199
|
+
const {pagesOnly: t, totalWithDefault: e, perPageWithDefault: i, pages: a} = this;
|
|
200
|
+
return t && a && !isNaN(parseInt("" + a)) ? a : Math.ceil(e / i);
|
|
201
201
|
}
|
|
202
202
|
get totalWithDefault() {
|
|
203
203
|
return this.total || 0;
|
|
@@ -212,7 +212,7 @@ const x = t(class extends e {
|
|
|
212
212
|
renderPerPage() {
|
|
213
213
|
const t = this.perPageIncrementsArray.sort(((t, e) => t - e));
|
|
214
214
|
return (void 0 === this.perPage || isNaN(this.perPage)) && (this.perPage = t[0]),
|
|
215
|
-
this.perPageIncrements = `[${t.join(",")}]`,
|
|
215
|
+
this.perPageIncrements = `[${t.join(",")}]`, a("q2-select", {
|
|
216
216
|
ref: t => this.perPageSelect = t,
|
|
217
217
|
onChange: t => t.stopImmediatePropagation(),
|
|
218
218
|
onTctChange: t => {
|
|
@@ -220,14 +220,14 @@ const x = t(class extends e {
|
|
|
220
220
|
},
|
|
221
221
|
value: this.perPageIncrementsArray.includes(this.perPage) ? "" + this.perPage : void 0,
|
|
222
222
|
disabled: this.disabled
|
|
223
|
-
}, t.map((t =>
|
|
223
|
+
}, t.map((t => a("q2-option", {
|
|
224
224
|
value: "" + t,
|
|
225
225
|
display: `${l("tecton.element.pagination.view")} ${t}`
|
|
226
226
|
}, `${l("tecton.element.pagination.view")} ${t}`))));
|
|
227
227
|
}
|
|
228
228
|
render() {
|
|
229
229
|
var t;
|
|
230
|
-
const {pagesOnly: e, recordsOnly: i, isFullViewHidden:
|
|
230
|
+
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, f = c < 2, m = c === o;
|
|
231
231
|
let b = l("tecton.element.pagination.goToNext"), v = l("tecton.element.pagination.goToPrevious");
|
|
232
232
|
return e ? (v = l("tecton.element.pagination.goToPages", {
|
|
233
233
|
next: c - 1,
|
|
@@ -243,13 +243,13 @@ const x = t(class extends e {
|
|
|
243
243
|
range: h,
|
|
244
244
|
recordType: s.toLowerCase(),
|
|
245
245
|
total: r
|
|
246
|
-
})),
|
|
247
|
-
key: "
|
|
246
|
+
})), a("nav", {
|
|
247
|
+
key: "647c141a9df399b3764fdc90c5ae05f113e0019d",
|
|
248
248
|
class: this.containerClasses.join(" "),
|
|
249
249
|
ref: t => this.containerElement = t,
|
|
250
250
|
"aria-label": l("tecton.element.pagination.title")
|
|
251
|
-
},
|
|
252
|
-
key: "
|
|
251
|
+
}, a("div", {
|
|
252
|
+
key: "fd595002af27dd639391665573433783342d2aee",
|
|
253
253
|
class: "description",
|
|
254
254
|
"test-id": "description"
|
|
255
255
|
}, e ? l("tecton.element.pagination.pages", {
|
|
@@ -259,48 +259,48 @@ const x = t(class extends e {
|
|
|
259
259
|
range: p,
|
|
260
260
|
recordType: s.toLowerCase(),
|
|
261
261
|
total: r.toLocaleString()
|
|
262
|
-
})),
|
|
263
|
-
key: "
|
|
262
|
+
})), a("div", {
|
|
263
|
+
key: "da4c7137ed566532a9471a7b83a63c49c51c8e82",
|
|
264
264
|
class: "controls"
|
|
265
|
-
},
|
|
266
|
-
key: "
|
|
265
|
+
}, a("div", {
|
|
266
|
+
key: "ef59aadb7b6cfb82707ffb1ee9e1626428a84801",
|
|
267
267
|
class: "btn-group"
|
|
268
|
-
},
|
|
269
|
-
key: "
|
|
268
|
+
}, a("q2-btn", {
|
|
269
|
+
key: "e5d551764bec56fed3dc34684c4ff2cdfadd95ea",
|
|
270
270
|
ref: t => this.firstPageBtn = t,
|
|
271
271
|
label: l("tecton.element.pagination.goToFirstPage"),
|
|
272
|
-
disabled: u ||
|
|
273
|
-
hidden:
|
|
272
|
+
disabled: u || f,
|
|
273
|
+
hidden: n,
|
|
274
274
|
onTctClick: () => this.handlePageChange(1),
|
|
275
275
|
"test-id": "firstPageBtn",
|
|
276
276
|
"hide-label": !0
|
|
277
|
-
},
|
|
278
|
-
key: "
|
|
277
|
+
}, a("q2-icon", {
|
|
278
|
+
key: "7423721c4c3082b8f0fdea5d6bde9fc62640fa24",
|
|
279
279
|
type: "chevron-double-left"
|
|
280
|
-
})),
|
|
281
|
-
key: "
|
|
280
|
+
})), a("q2-btn", {
|
|
281
|
+
key: "90b3544e9983fa652f225eda9d18d08883b31c39",
|
|
282
282
|
ref: t => this.prevPageBtn = t,
|
|
283
283
|
label: v,
|
|
284
|
-
disabled: u ||
|
|
284
|
+
disabled: u || f,
|
|
285
285
|
onTctClick: () => this.handlePageChange(c - 1),
|
|
286
286
|
"test-id": "prevPageBtn",
|
|
287
287
|
"hide-label": !0
|
|
288
|
-
},
|
|
289
|
-
key: "
|
|
288
|
+
}, a("q2-icon", {
|
|
289
|
+
key: "6535f2c3745421cbf1dd5750e3ab8d08288bc148",
|
|
290
290
|
type: "chevron-left"
|
|
291
|
-
}))),
|
|
292
|
-
key: "
|
|
291
|
+
}))), a("div", {
|
|
292
|
+
key: "d4a581982a62f360e5b693a110a7d75eaf0ba24c",
|
|
293
293
|
class: "input-display",
|
|
294
|
-
hidden:
|
|
295
|
-
},
|
|
296
|
-
key: "
|
|
294
|
+
hidden: n
|
|
295
|
+
}, a("span", {
|
|
296
|
+
key: "45a28afc71ee038d829cbe64550bf929210002a9",
|
|
297
297
|
"aria-hidden": "true"
|
|
298
|
-
}, l("tecton.element.pagination.page")),
|
|
299
|
-
key: "
|
|
298
|
+
}, l("tecton.element.pagination.page")), a("div", {
|
|
299
|
+
key: "ba5df7f89aed5be2f882057d8cf344981e3f1127",
|
|
300
300
|
class: "input-wrapper",
|
|
301
301
|
onClick: () => this.inputField.dispatchEvent(new FocusEvent("focus"))
|
|
302
|
-
},
|
|
303
|
-
key: "
|
|
302
|
+
}, a("q2-input", {
|
|
303
|
+
key: "686c5c8891bd64a40ba9abe8436475bf3ef8fd38",
|
|
304
304
|
ref: t => this.inputField = t,
|
|
305
305
|
type: "number",
|
|
306
306
|
value: "" + c,
|
|
@@ -316,39 +316,39 @@ const x = t(class extends e {
|
|
|
316
316
|
"test-id": "pageInput",
|
|
317
317
|
current: "page",
|
|
318
318
|
disabled: u
|
|
319
|
-
})),
|
|
320
|
-
key: "
|
|
319
|
+
})), a("span", {
|
|
320
|
+
key: "59853a0308d1f97b6722f40c29219d887842c54c",
|
|
321
321
|
"aria-hidden": "true"
|
|
322
|
-
}, l("tecton.element.pagination.ofPages", [ o.toLocaleString() ]))),
|
|
323
|
-
key: "
|
|
322
|
+
}, l("tecton.element.pagination.ofPages", [ o.toLocaleString() ]))), a("div", {
|
|
323
|
+
key: "17fa28deff49d5a3a28b6d66b5639428a309057a",
|
|
324
324
|
class: "btn-group"
|
|
325
|
-
},
|
|
326
|
-
key: "
|
|
325
|
+
}, a("q2-btn", {
|
|
326
|
+
key: "0e5eca8dc228a8285015d5941d9c4e44af5e5353",
|
|
327
327
|
ref: t => this.nextPageBtn = t,
|
|
328
328
|
label: b,
|
|
329
|
-
disabled: u ||
|
|
329
|
+
disabled: u || m,
|
|
330
330
|
onTctClick: () => this.handlePageChange(c + 1),
|
|
331
331
|
"test-id": "nextPageBtn",
|
|
332
332
|
"hide-label": !0
|
|
333
|
-
},
|
|
334
|
-
key: "
|
|
333
|
+
}, a("q2-icon", {
|
|
334
|
+
key: "9a42a4961ac7efd40c176145a39f0c63540daf14",
|
|
335
335
|
type: "chevron-right"
|
|
336
|
-
})),
|
|
337
|
-
key: "
|
|
336
|
+
})), a("q2-btn", {
|
|
337
|
+
key: "fe0c41536c25d7deffa26fdab4f91405e5b197d6",
|
|
338
338
|
ref: t => this.lastPageBtn = t,
|
|
339
339
|
label: "tecton.element.pagination.goToLastPage",
|
|
340
|
-
disabled: u ||
|
|
341
|
-
hidden:
|
|
340
|
+
disabled: u || m,
|
|
341
|
+
hidden: n,
|
|
342
342
|
onTctClick: () => this.handlePageChange(o),
|
|
343
343
|
"test-id": "lastPageBtn",
|
|
344
344
|
"hide-label": !0
|
|
345
|
-
},
|
|
346
|
-
key: "
|
|
345
|
+
}, a("q2-icon", {
|
|
346
|
+
key: "5beccc87ad5ef95350cb21d969b15c0996911126",
|
|
347
347
|
type: "chevron-double-right"
|
|
348
|
-
})))),
|
|
349
|
-
key: "
|
|
348
|
+
})))), a("div", {
|
|
349
|
+
key: "d60b56b2f8173ea2a6fcf3cf4fd1b5f2807fbc5c",
|
|
350
350
|
class: "per-page",
|
|
351
|
-
hidden:
|
|
351
|
+
hidden: n || !(null === (t = this.perPageIncrements) || void 0 === t ? void 0 : t.length)
|
|
352
352
|
}, g && this.renderPerPage()));
|
|
353
353
|
}
|
|
354
354
|
get hostElement() {
|
|
@@ -420,47 +420,47 @@ const q = x, defineCustomElement = function() {
|
|
|
420
420
|
[ "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
421
|
switch (t) {
|
|
422
422
|
case "q2-pagination":
|
|
423
|
-
customElements.get(
|
|
423
|
+
customElements.get(n(t)) || customElements.define(n(t), x);
|
|
424
424
|
break;
|
|
425
425
|
|
|
426
426
|
case "click-elsewhere":
|
|
427
|
-
customElements.get(
|
|
427
|
+
customElements.get(n(t)) || h();
|
|
428
428
|
break;
|
|
429
429
|
|
|
430
430
|
case "q2-badge":
|
|
431
|
-
customElements.get(
|
|
431
|
+
customElements.get(n(t)) || d();
|
|
432
432
|
break;
|
|
433
433
|
|
|
434
434
|
case "q2-btn":
|
|
435
|
-
customElements.get(
|
|
435
|
+
customElements.get(n(t)) || g();
|
|
436
436
|
break;
|
|
437
437
|
|
|
438
438
|
case "q2-icon":
|
|
439
|
-
customElements.get(
|
|
439
|
+
customElements.get(n(t)) || u();
|
|
440
440
|
break;
|
|
441
441
|
|
|
442
442
|
case "q2-input":
|
|
443
|
-
customElements.get(
|
|
443
|
+
customElements.get(n(t)) || f();
|
|
444
444
|
break;
|
|
445
445
|
|
|
446
446
|
case "q2-loading":
|
|
447
|
-
customElements.get(
|
|
447
|
+
customElements.get(n(t)) || m();
|
|
448
448
|
break;
|
|
449
449
|
|
|
450
450
|
case "q2-option":
|
|
451
|
-
customElements.get(
|
|
451
|
+
customElements.get(n(t)) || b();
|
|
452
452
|
break;
|
|
453
453
|
|
|
454
454
|
case "q2-option-list":
|
|
455
|
-
customElements.get(
|
|
455
|
+
customElements.get(n(t)) || v();
|
|
456
456
|
break;
|
|
457
457
|
|
|
458
458
|
case "q2-popover":
|
|
459
|
-
customElements.get(
|
|
459
|
+
customElements.get(n(t)) || y();
|
|
460
460
|
break;
|
|
461
461
|
|
|
462
462
|
case "q2-select":
|
|
463
|
-
customElements.get(
|
|
463
|
+
customElements.get(n(t)) || k();
|
|
464
464
|
}
|
|
465
465
|
}));
|
|
466
466
|
};
|