q2-tecton-elements 1.72.0 → 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 +38990 -33801
- 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 +1 -1
- package/dist/cjs/q2-badge_2.cjs.entry.js +2 -2
- 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 +2 -2
- 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 +4 -4
- package/dist/cjs/q2-pill.cjs.entry.js +7 -4
- 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 +1 -1
- 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/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.js +1 -1
- 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.js +3 -3
- package/dist/collection/components/q2-pill/q2-pill.js +6 -3
- 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 +8 -8
- 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 +5 -5
- 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 +9 -9
- 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 +67 -67
- package/dist/components/q2-pill.js +16 -14
- 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 +23 -23
- package/dist/components/q2-search.js +5 -5
- package/dist/components/q2-section.js +19 -19
- package/dist/components/q2-select2.js +2 -2
- package/dist/components/q2-stepper-pane.js +9 -9
- 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 +17 -17
- 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 +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 +1 -1
- package/dist/esm/q2-badge_2.entry.js +2 -2
- 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 +2 -2
- 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 +4 -4
- package/dist/esm/q2-pill.entry.js +7 -4
- 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 +8 -8
- package/dist/q2-tecton-elements/q2-badge_2.entry.js +5 -5
- 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 +28 -28
- 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 +20 -20
- package/dist/q2-tecton-elements/q2-pill.entry.js +42 -40
- 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 +5 -5
- package/dist/q2-tecton-elements/q2-resize-observer.entry.js +13 -13
- package/dist/q2-tecton-elements/q2-search.entry.js +6 -6
- 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 +13 -13
- 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 +20 -20
- package/dist/q2-tecton-elements/q2-tab-pane.entry.js +7 -7
- 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 +6 -6
- 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-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,30 +1,44 @@
|
|
|
1
|
-
import { proxyCustomElement as t, HTMLElement as
|
|
1
|
+
import { proxyCustomElement as t, HTMLElement as e, createEvent as i, h as o, transformTag as a } from "@stencil/core/internal/client";
|
|
2
2
|
|
|
3
|
-
import { l as
|
|
3
|
+
import { l as s, w as r } from "./index2.js";
|
|
4
4
|
|
|
5
|
-
import { s as
|
|
5
|
+
import { s as n, a as c } from "./sanitize-html-string.js";
|
|
6
6
|
|
|
7
|
-
import { m as
|
|
7
|
+
import { m as d } from "./mirror-emit.js";
|
|
8
8
|
|
|
9
|
-
import { d as
|
|
9
|
+
import { d as l } from "./click-elsewhere2.js";
|
|
10
10
|
|
|
11
|
-
import { d as
|
|
11
|
+
import { d as h } from "./q2-badge2.js";
|
|
12
12
|
|
|
13
|
-
import { d as
|
|
13
|
+
import { d as p } from "./q2-btn2.js";
|
|
14
14
|
|
|
15
|
-
import { d as
|
|
15
|
+
import { d as m } from "./q2-date-calendar2.js";
|
|
16
16
|
|
|
17
|
-
import { d as
|
|
17
|
+
import { d as b } from "./q2-date-picker2.js";
|
|
18
18
|
|
|
19
|
-
import { d as
|
|
19
|
+
import { d as g } from "./q2-icon2.js";
|
|
20
20
|
|
|
21
|
-
import { d as
|
|
21
|
+
import { d as u } from "./q2-input2.js";
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
import { d as v } from "./q2-loading2.js";
|
|
24
|
+
|
|
25
|
+
import { d as f } from "./q2-message2.js";
|
|
26
|
+
|
|
27
|
+
import { d as x } from "./q2-optgroup2.js";
|
|
28
|
+
|
|
29
|
+
import { d as k } from "./q2-option2.js";
|
|
30
|
+
|
|
31
|
+
import { d as w } from "./q2-option-list2.js";
|
|
32
|
+
|
|
33
|
+
import { d as y } from "./q2-popover2.js";
|
|
34
|
+
|
|
35
|
+
const q = t(class extends e {
|
|
24
36
|
constructor(t) {
|
|
25
|
-
super(), !1 !== t && this.__registerHost(), this.__attachShadow(), this.close =
|
|
26
|
-
this.ready =
|
|
27
|
-
|
|
37
|
+
super(), !1 !== t && this.__registerHost(), this.__attachShadow(), this.close = i(this, "close", 7),
|
|
38
|
+
this.ready = i(this, "ready", 3), this.tctClose = i(this, "tctClose", 7),
|
|
39
|
+
// #region Own Properties
|
|
40
|
+
this.bodyOverflow = "", this.initialSelectedOptions = [], this.maxHeight = .75,
|
|
41
|
+
this.minHeight = .2, this.rootOverflow = "", this.selectedDate = {}, this.selectedOptions = {
|
|
28
42
|
values: [],
|
|
29
43
|
value: ""
|
|
30
44
|
},
|
|
@@ -41,18 +55,18 @@ const f = t(class extends o {
|
|
|
41
55
|
const t = (await this.optionListElement.getOptions()).slice().reverse().find((t => !t.hidden && !t.disabled));
|
|
42
56
|
t && t.focus();
|
|
43
57
|
}, this.generateOptgroup = t => {
|
|
44
|
-
const
|
|
45
|
-
return t.label &&
|
|
46
|
-
t.options.length && t.options.forEach((t =>
|
|
47
|
-
|
|
58
|
+
const e = document.createElement("q2-optgroup");
|
|
59
|
+
return t.label && e.setAttribute("label", t.label), t.disabled && e.setAttribute("disabled", ""),
|
|
60
|
+
t.options.length && t.options.forEach((t => e.appendChild(this.generateOption(t)))),
|
|
61
|
+
e;
|
|
48
62
|
}, this.generateOption = t => {
|
|
49
|
-
const
|
|
50
|
-
return
|
|
51
|
-
if (void 0 ===
|
|
63
|
+
const e = document.createElement("q2-option"), {innerHTML: i, ...o} = t;
|
|
64
|
+
return i && (e.innerHTML = n(i)), Object.entries(o).forEach((([t, i]) => {
|
|
65
|
+
if (void 0 === i) return;
|
|
52
66
|
// Convert component prop names to HTML attributes, e.g. someLongPropertyName to some-long-property-name.
|
|
53
|
-
const
|
|
54
|
-
"boolean" == typeof
|
|
55
|
-
})),
|
|
67
|
+
const o = t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
68
|
+
"boolean" == typeof i ? i && e.setAttribute(o, "") : e.setAttribute(o, i);
|
|
69
|
+
})), e;
|
|
56
70
|
},
|
|
57
71
|
/**
|
|
58
72
|
* Handles keyboard navigation within the action sheet dialog.
|
|
@@ -68,13 +82,13 @@ const f = t(class extends o {
|
|
|
68
82
|
* @param event - The keyboard event.
|
|
69
83
|
*/
|
|
70
84
|
this.handleDialogKeydown = t => {
|
|
71
|
-
const {data:
|
|
85
|
+
const {data: e} = this;
|
|
72
86
|
// Only activate for list appearance with an option list
|
|
73
|
-
if (!
|
|
74
|
-
const {key:
|
|
75
|
-
if ("Tab" !==
|
|
87
|
+
if (!e || "list" !== e.appearance || !this.optionListElement) return;
|
|
88
|
+
const {key: i, shiftKey: o} = t;
|
|
89
|
+
if ("Tab" !== i) return;
|
|
76
90
|
const a = this.hostElement.shadowRoot.activeElement, s = this.closeButtonElement, r = this.doneButtonElement, n = a === s, c = a === r, d = document.activeElement, l = !!d && ("Q2-OPTION" === d.tagName || "Q2-DROPDOWN-ITEM" === d.tagName) && this.hostElement.contains(d);
|
|
77
|
-
if (
|
|
91
|
+
if (o)
|
|
78
92
|
// Shift+Tab: if on close button
|
|
79
93
|
if (n) {
|
|
80
94
|
// With a done button (multi-select): allow default to exit to browser.
|
|
@@ -104,18 +118,34 @@ const f = t(class extends o {
|
|
|
104
118
|
t.preventDefault(), r.focus());
|
|
105
119
|
}
|
|
106
120
|
}, this.onCancel = t => {
|
|
107
|
-
var
|
|
121
|
+
var e, i;
|
|
108
122
|
t.preventDefault();
|
|
109
|
-
const {initialSelectedOptions:
|
|
123
|
+
const {initialSelectedOptions: o} = this;
|
|
110
124
|
this.hide({
|
|
111
|
-
value: null !== (
|
|
112
|
-
values:
|
|
125
|
+
value: null !== (i = null === (e = null == o ? void 0 : o[0]) || void 0 === e ? void 0 : e.value) && void 0 !== i ? i : "",
|
|
126
|
+
values: o,
|
|
113
127
|
type: "cancel"
|
|
114
128
|
});
|
|
115
129
|
}, this.onClick = t => {
|
|
116
|
-
const
|
|
117
|
-
if (!(
|
|
118
|
-
!!
|
|
130
|
+
const i = t.target;
|
|
131
|
+
if (!(i instanceof e)) return;
|
|
132
|
+
!!i.closest(".interior, q2-action-sheet") || this.onCancel(t);
|
|
133
|
+
}, this.onDatePickerCancel = t => {
|
|
134
|
+
t.stopPropagation(), this.onCancel(t);
|
|
135
|
+
}, this.onDatePickerChange = t => {
|
|
136
|
+
t.stopPropagation(), this.selectedDate = t.detail;
|
|
137
|
+
}, this.onDatePickerClose = t => {
|
|
138
|
+
t.stopPropagation();
|
|
139
|
+
const e = t.detail || void 0;
|
|
140
|
+
if (null == e ? void 0 : e.error) return void this.hide({
|
|
141
|
+
error: e.error,
|
|
142
|
+
type: "confirm"
|
|
143
|
+
});
|
|
144
|
+
const i = void 0 !== this.selectedDate.value || void 0 !== this.selectedDate.rangeStart || void 0 !== this.selectedDate.rangeEnd;
|
|
145
|
+
this.hide({
|
|
146
|
+
...this.selectedDate,
|
|
147
|
+
type: i ? "confirm" : "cancel"
|
|
148
|
+
});
|
|
119
149
|
}, this.onListChange = t => {
|
|
120
150
|
this.selectedOptions = t.detail;
|
|
121
151
|
}, this.onListDone = () => {
|
|
@@ -125,45 +155,95 @@ const f = t(class extends o {
|
|
|
125
155
|
});
|
|
126
156
|
}, this.onListPopoverStateChange = t => {
|
|
127
157
|
t.detail.open || ("close" === t.detail.action ? this.onCancel(t) : this.onListDone());
|
|
158
|
+
}, this.onViewportResize = () => {
|
|
159
|
+
requestAnimationFrame((() => this.updateDialogMinMaxHeight()));
|
|
128
160
|
},
|
|
129
161
|
// #endregion
|
|
130
162
|
// #region Render Methods
|
|
131
|
-
this.
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}
|
|
163
|
+
this.renderDatePicker = ({data: t}) => {
|
|
164
|
+
const e = t.datePickerProps;
|
|
165
|
+
return o("div", {
|
|
166
|
+
class: "content date-picker-content",
|
|
167
|
+
ref: t => this.contentElement = t
|
|
168
|
+
}, o("q2-date-picker", {
|
|
169
|
+
_actionSheet: !0,
|
|
170
|
+
open: !0,
|
|
171
|
+
calendarLabel: e.calendarLabel,
|
|
172
|
+
closeDelay: e.closeDelay,
|
|
173
|
+
cutoffTime: e.cutoffTime,
|
|
174
|
+
daysOfWeekChecksum: e.daysOfWeekChecksum,
|
|
175
|
+
disclaimer: e.disclaimer,
|
|
176
|
+
endDate: e.endDate,
|
|
177
|
+
displayFormat: e.displayFormat,
|
|
178
|
+
invalidDates: e.invalidDates,
|
|
179
|
+
locale: e.locale,
|
|
180
|
+
mode: e.mode,
|
|
181
|
+
rangeEnd: e.rangeEnd,
|
|
182
|
+
rangeStart: e.rangeStart,
|
|
183
|
+
startDate: e.startDate,
|
|
184
|
+
validDates: e.validDates,
|
|
185
|
+
value: e.value,
|
|
186
|
+
onTctCancel: this.onDatePickerCancel,
|
|
187
|
+
onTctChange: this.onDatePickerChange,
|
|
188
|
+
onTctClose: this.onDatePickerClose
|
|
189
|
+
}));
|
|
190
|
+
}, this.renderList = ({data: t}) => {
|
|
191
|
+
var e;
|
|
192
|
+
const {listProps: i, slotsHtml: a = []} = t;
|
|
193
|
+
let r = !1;
|
|
194
|
+
const n = a.map((t => {
|
|
195
|
+
var e;
|
|
196
|
+
const i = c(t.html), o = document.createElement("div");
|
|
197
|
+
o.innerHTML = i;
|
|
198
|
+
const a = !0 === (null === (e = o.firstElementChild) || void 0 === e ? void 0 : e.hasAttribute("data-action-sheet-scroll"));
|
|
199
|
+
return "top" === t.slot && a && (r = !0), {
|
|
200
|
+
...t,
|
|
201
|
+
html: i,
|
|
202
|
+
scrolls: "top" === t.slot ? r : a
|
|
203
|
+
};
|
|
204
|
+
}));
|
|
205
|
+
// Bottom content joins the scroll area from the options through the last marker.
|
|
206
|
+
let d = !1;
|
|
207
|
+
for (let t = n.length - 1; t >= 0; t--) {
|
|
208
|
+
const e = n[t];
|
|
209
|
+
"bottom" === e.slot && (e.scrolls && (d = !0), e.scrolls = d);
|
|
210
|
+
}
|
|
211
|
+
const renderSlots = (t, e) => n.filter((i => i.slot === t && i.scrolls === e)).map((t => o("div", {
|
|
212
|
+
class: "list-slot",
|
|
213
|
+
innerHTML: t.html
|
|
214
|
+
})));
|
|
215
|
+
return o("div", {
|
|
216
|
+
class: "list-body"
|
|
217
|
+
}, renderSlots("top", !1), o("div", {
|
|
137
218
|
class: "content",
|
|
138
219
|
ref: t => this.contentElement = t
|
|
139
|
-
},
|
|
220
|
+
}, renderSlots("top", !0), o("q2-option-list", {
|
|
140
221
|
ref: t => this.optionListElement = t,
|
|
141
|
-
multiple:
|
|
142
|
-
label: (null === (
|
|
143
|
-
noSelect:
|
|
222
|
+
multiple: i.multiple,
|
|
223
|
+
label: (null === (e = this.data) || void 0 === e ? void 0 : e.title) || this.title,
|
|
224
|
+
noSelect: i.noSelect,
|
|
144
225
|
onChange: this.onListChange,
|
|
145
226
|
onPopoverState: this.onListPopoverStateChange,
|
|
146
|
-
selectedOptions:
|
|
147
|
-
},
|
|
227
|
+
selectedOptions: i.selectedOptions
|
|
228
|
+
}, o("slot", null)), renderSlots("bottom", !0)), o("footer", null, i.multiple && o("q2-btn", {
|
|
148
229
|
ref: t => this.doneButtonElement = t,
|
|
149
230
|
"test-id": "btnDone",
|
|
150
|
-
intent: "
|
|
231
|
+
intent: "primary",
|
|
151
232
|
onClick: this.onListDone
|
|
152
|
-
},
|
|
153
|
-
|
|
154
|
-
}))));
|
|
155
|
-
}, this.renderMessage = ({data: t}) => i("q2-message", {
|
|
233
|
+
}, s("tecton.element.actionSheet.done"))), renderSlots("bottom", !1));
|
|
234
|
+
}, this.renderMessage = ({data: t}) => o("q2-message", {
|
|
156
235
|
type: t.type
|
|
157
|
-
}, t.title &&
|
|
158
|
-
this.renderSlot = () =>
|
|
236
|
+
}, t.title && o("h2", null, t.title), t.description && o("p", null, t.description)),
|
|
237
|
+
this.renderSlot = () => o("div", {
|
|
159
238
|
class: "content",
|
|
160
239
|
ref: t => this.contentElement = t
|
|
161
|
-
},
|
|
240
|
+
}, o("slot", null));
|
|
162
241
|
}
|
|
163
242
|
// #endregion
|
|
164
243
|
// #region Component Lifecycle Events
|
|
165
244
|
disconnectedCallback() {
|
|
166
|
-
this.dialogElement.removeEventListener("cancel", this.onCancel), this.dialogElement.removeEventListener("keydown", this.handleDialogKeydown, !0)
|
|
245
|
+
this.dialogElement.removeEventListener("cancel", this.onCancel), this.dialogElement.removeEventListener("keydown", this.handleDialogKeydown, !0),
|
|
246
|
+
window.removeEventListener("resize", this.onViewportResize), this.dialogElement.open && this.restorePageScroll();
|
|
167
247
|
}
|
|
168
248
|
componentDidLoad() {
|
|
169
249
|
this.dialogElement.addEventListener("cancel", this.onCancel),
|
|
@@ -177,9 +257,10 @@ const f = t(class extends o {
|
|
|
177
257
|
values: [],
|
|
178
258
|
type: "confirm"
|
|
179
259
|
}) {
|
|
180
|
-
|
|
260
|
+
d(this, [ "close", "tctClose" ], t), this.renderStatus = "is-closing", window.removeEventListener("resize", this.onViewportResize),
|
|
261
|
+
this.restorePageScroll(), this.dialogElement.addEventListener("transitionend", (() => {
|
|
181
262
|
"is-closing" === this.renderStatus && (this.dialogElement.close(), this.renderStatus = null,
|
|
182
|
-
this.data = void 0, this.initialSelectedOptions = [], this.selectedOptions = {
|
|
263
|
+
this.data = void 0, this.initialSelectedOptions = [], this.selectedDate = {}, this.selectedOptions = {
|
|
183
264
|
values: [],
|
|
184
265
|
value: ""
|
|
185
266
|
}, this.hidePostHook());
|
|
@@ -188,27 +269,39 @@ const f = t(class extends o {
|
|
|
188
269
|
});
|
|
189
270
|
}
|
|
190
271
|
async show() {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
272
|
+
if (!this.dialogElement.open) {
|
|
273
|
+
this.showPreHook(), await r(), this.updateDialogMinMaxHeight(), this.storeInitialValues(),
|
|
274
|
+
this.dialogElement.showModal(), window.addEventListener("resize", this.onViewportResize),
|
|
275
|
+
this.bodyOverflow = document.body.style.overflow, this.rootOverflow = document.documentElement.style.overflow,
|
|
276
|
+
document.body.style.overflow = "hidden", document.documentElement.style.overflow = "hidden";
|
|
277
|
+
try {
|
|
278
|
+
this.renderStatus = "is-opening", this.dialogElement.addEventListener("transitionend", (() => {
|
|
279
|
+
"is-opening" === this.renderStatus && (this.renderStatus = "is-open", this.focusContent());
|
|
280
|
+
}), {
|
|
281
|
+
once: !0
|
|
282
|
+
});
|
|
283
|
+
} catch (t) {
|
|
284
|
+
throw window.removeEventListener("resize", this.onViewportResize), this.restorePageScroll(),
|
|
285
|
+
t;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
198
288
|
}
|
|
199
289
|
// #endregion
|
|
200
290
|
// #region Local Methods
|
|
201
291
|
focusContent() {
|
|
202
292
|
const {data: t} = this;
|
|
203
293
|
if (t && "list" === t.appearance) {
|
|
204
|
-
const {event:
|
|
205
|
-
|
|
294
|
+
const {event: e} = t;
|
|
295
|
+
e instanceof KeyboardEvent ? this.optionListElement.handleExternalKeydown(e) : this.optionListElement.focus();
|
|
206
296
|
}
|
|
207
297
|
}
|
|
208
298
|
hidePostHook() {
|
|
209
299
|
const {data: t} = this;
|
|
210
300
|
t && "list" === t.appearance && (this.hostElement.innerHTML = null);
|
|
211
301
|
}
|
|
302
|
+
restorePageScroll() {
|
|
303
|
+
document.body.style.overflow = this.bodyOverflow, document.documentElement.style.overflow = this.rootOverflow;
|
|
304
|
+
}
|
|
212
305
|
showPreHook() {
|
|
213
306
|
const {data: t} = this;
|
|
214
307
|
t && "list" === t.appearance && (this.hostElement.innerHTML = null, t.options.forEach((t => {
|
|
@@ -225,10 +318,13 @@ const f = t(class extends o {
|
|
|
225
318
|
this.dialogElement.style.setProperty("--comp-action-sheet-computed-max-height", Math.floor(t * this.maxHeight) + "px");
|
|
226
319
|
}
|
|
227
320
|
render() {
|
|
228
|
-
|
|
229
|
-
const {data: o} = this, e = (null == o ? void 0 : o.title) || this.title || !this.hideClose, a = this.renderStatus || "";
|
|
321
|
+
const {data: t} = this, e = (null == t ? void 0 : t.title) || this.title || !this.hideClose, i = (null == t ? void 0 : t.title) || this.title, a = this.renderStatus || "";
|
|
230
322
|
let s = null;
|
|
231
|
-
switch (null ==
|
|
323
|
+
switch (null == t ? void 0 : t.appearance) {
|
|
324
|
+
case "date-picker":
|
|
325
|
+
s = this.renderDatePicker;
|
|
326
|
+
break;
|
|
327
|
+
|
|
232
328
|
case "message":
|
|
233
329
|
s = this.renderMessage;
|
|
234
330
|
break;
|
|
@@ -240,36 +336,37 @@ const f = t(class extends o {
|
|
|
240
336
|
default:
|
|
241
337
|
s = this.renderSlot;
|
|
242
338
|
}
|
|
243
|
-
const r = "interior is-" + ((null ==
|
|
244
|
-
return
|
|
245
|
-
key: "
|
|
339
|
+
const r = "interior is-" + ((null == t ? void 0 : t.appearance) || "slot");
|
|
340
|
+
return o("dialog", {
|
|
341
|
+
key: "a2594cad0378cf9bf045ed3ec1022afc58e34dbb",
|
|
246
342
|
ref: t => this.dialogElement = t,
|
|
247
343
|
class: a,
|
|
248
|
-
|
|
249
|
-
"aria-labelledby": e ? "title" : void 0
|
|
250
|
-
|
|
251
|
-
|
|
344
|
+
"aria-label": e ? void 0 : i,
|
|
345
|
+
"aria-labelledby": e ? "title" : void 0,
|
|
346
|
+
onClick: this.onClick
|
|
347
|
+
}, o("div", {
|
|
348
|
+
key: "de6361cfa49ec69666b8b2c193dcc9cfc5ac4b0f",
|
|
252
349
|
class: r
|
|
253
|
-
}, e &&
|
|
254
|
-
key: "
|
|
255
|
-
},
|
|
256
|
-
key: "
|
|
350
|
+
}, e && o("header", {
|
|
351
|
+
key: "c5a1ddd1f414027e3f75d2a7048c1ccd349cba78"
|
|
352
|
+
}, o("div", {
|
|
353
|
+
key: "3d4e7472f5c55ed96eec5ad8909d6ada7a5aa5b2",
|
|
257
354
|
id: "title"
|
|
258
|
-
}, (null ==
|
|
259
|
-
key: "
|
|
355
|
+
}, (null == t ? void 0 : t.title) || this.title), !this.hideClose && o("q2-btn", {
|
|
356
|
+
key: "c5e4c952b308e2571a6e90017e4f8010b4a580fe",
|
|
260
357
|
ref: t => this.closeButtonElement = t,
|
|
261
358
|
class: "btn-close",
|
|
262
359
|
"test-id": "btnClose",
|
|
263
360
|
onClick: this.onCancel,
|
|
264
361
|
label: "tecton.element.actionSheet.close",
|
|
265
362
|
"hide-label": !0
|
|
266
|
-
},
|
|
267
|
-
key: "
|
|
363
|
+
}, o("q2-icon", {
|
|
364
|
+
key: "10383e6b8d6ab899648208bbada3c18f47fb5bd3",
|
|
268
365
|
type: "close"
|
|
269
|
-
}))),
|
|
270
|
-
key: "
|
|
271
|
-
},
|
|
272
|
-
key: "
|
|
366
|
+
}))), t && "description" in t && t.description && o("p", {
|
|
367
|
+
key: "a1de7256a6f497270866f076d7697226a8bea946"
|
|
368
|
+
}, t.description), s && o(s, {
|
|
369
|
+
key: "3f5a57d706b4066c036bb4710a612bd34268b78e",
|
|
273
370
|
data: this.data
|
|
274
371
|
})));
|
|
275
372
|
}
|
|
@@ -277,7 +374,7 @@ const f = t(class extends o {
|
|
|
277
374
|
return this;
|
|
278
375
|
}
|
|
279
376
|
static get style() {
|
|
280
|
-
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}}}@keyframes showBackdrop{from{opacity:0}}@keyframes hideBackdrop{to{opacity:0}}dialog{--comp-border-radius-default:var(--app-scale-3x, 15px) var(--app-scale-3x, 15px) 0 0;--comp-border-radius:var(--tct-action-sheet-border-radius, var(--comp-border-radius-default));--comp-desktop-border-radius:var(--tct-action-sheet-border-radius, var(--app-scale-3x, 15px));--comp-close-button-size:var(--tct-action-sheet-close-button-size, var(--t-a11y-min-size, 44px));--comp-header-height:var(--tct-action-sheet-header-height, var(--t-a11y-min-size, 44px));--comp-dialog-background:var(--tct-action-sheet-background, var(--t-base, #ffffff));--comp-dialog-color:var(--tct-action-sheet-color, inherit);--comp-dialog-padding:var(--tct-action-sheet-padding, var(--app-scale-3x, 15px));--comp-content-gradient-height:var(--tct-action-sheet-content-gradient-height, var(--app-scale-2x, 10px));--comp-dialog-gap:var(--tct-action-sheet-gap, var(--app-scale-2x, 10px));--comp-dialog-max-width:var(--tct-action-sheet-max-width, 400px);--comp-dialog-max-height:var(--tct-action-sheet-max-height, var(--comp-action-sheet-computed-max-height, 75vh));--comp-dialog-min-height:var(--tct-action-sheet-min-height, var(--comp-action-sheet-computed-min-height, 20vh));--comp-dialog-box-shadow:var(--tct-action-sheet-box-shadow, var(--app-shadow-2, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 4px 8px rgba(0, 0, 0, 0.14)));position:fixed;top:100%;bottom:unset;color:var(--comp-dialog-color);background:var(--comp-dialog-background);transition:transform var(--tct-action-sheet-tween, var(--app-tween-2, 0.4s ease)), opacity var(--tct-action-sheet-tween, var(--app-tween-2, 0.4s ease));width:100%;max-width:var(--comp-dialog-max-width);border:0;border-radius:var(--comp-border-radius);box-shadow:var(--comp-dialog-box-shadow);padding:0;height:auto;overflow:hidden;min-height:var(--comp-dialog-min-height);max-height:var(--comp-dialog-max-height)}dialog::backdrop{opacity:0;background:var(--tct-action-sheet-backdrop-background, var(--t-top-a2, rgba(13, 13, 13, 0.6)))}dialog[open].is-opening,dialog[open].is-open{transform:translateY(-100%)}@media screen and (min-width: 1200px){dialog[open].is-opening,dialog[open].is-open{opacity:1;transform:translateY(0)}}dialog[open].is-opening::backdrop,dialog[open].is-open::backdrop{opacity:1;animation:showBackdrop var(--tct-action-sheet-tween, var(--app-tween-2, 0.4s ease))}dialog[open].is-closing{transform:translateY(10%)}dialog[open].is-closing::backdrop{animation:hideBackdrop var(--tct-action-sheet-tween, var(--app-tween-2, 0.4s ease))}@media screen and (min-width: 1200px){dialog{border-radius:var(--comp-desktop-border-radius);top:0px;bottom:0px;height:fit-content;transform:translateY(10%);opacity:0}}.content{overflow-y:auto;--comp-scrollbar-size:var(--tct-scrollbar-size, var(--t-scrollbar-size, var(--app-scale-1x, 5px)));--comp-scrollbar-border-radius:var(--tct-scrollbar-border-radius, var(--t-scrollbar-border-radius, var(--app-border-radius-1, 4px)));--comp-scrollbar-color:var(--tct-scrollbar-color, var(--t-scrollbar-color, var(--t-a11y-gray-color, #747474)));scrollbar-width:thin;scrollbar-color:var(--comp-scrollbar-color) transparent}.content::-webkit-scrollbar{width:var(--comp-scrollbar-size);height:var(--comp-scrollbar-size);margin:5px}.content::-webkit-scrollbar-thumb{background:var(--comp-scrollbar-color);border-radius:var(--comp-scrollbar-border-radius)}.content::-webkit-scrollbar-track{background:transparent;border-radius:var(--comp-scrollbar-border-radius)}.interior{display:grid;grid-template-rows:44px 1fr auto;gap:var(--comp-dialog-gap);max-height:calc(var(--comp-dialog-max-height) - var(--comp-dialog-padding));padding:var(--comp-dialog-padding);margin-bottom:env(safe-area-inset-bottom, 0px)}.interior.is-list header,.interior.is-list footer{position:relative}.interior.is-list header:before,.interior.is-list footer:before{content:"";display:block;position:absolute;left:0;height:var(--comp-content-gradient-height);width:100%;z-index:1}.interior [slot=popover-top]{padding:var(--tct-dropdown-popover-top-slot-padding, 0);border-bottom:var(--tct-dropdown-slot-border-top)}.interior [slot=popover-bottom]{padding:var(--tct-dropdown-popover-bottom-slot-padding, 0);border-top:var(--tct-dropdown-slot-border-bottom)}header{display:grid;grid-template-columns:var(--comp-close-button-size) 1fr var(--comp-close-button-size);grid-template-areas:". title close";gap:var(--comp-dialog-gap)}header #title{grid-area:title;text-align:center;line-height:var(--comp-header-height)}header .btn-close{grid-area:close;width:var(--comp-close-button-size);height:var(--comp-close-button-size)}footer{display:flex;justify-content:end}';
|
|
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}}}@keyframes showBackdrop{from{opacity:0}}@keyframes hideBackdrop{to{opacity:0}}dialog{--comp-border-radius-default:var(--app-scale-3x, 15px) var(--app-scale-3x, 15px) 0 0;--comp-border-radius:var(--tct-action-sheet-border-radius, var(--comp-border-radius-default));--comp-desktop-border-radius:var(--tct-action-sheet-border-radius, var(--app-scale-3x, 15px));--comp-close-button-size:var(--tct-action-sheet-close-button-size, var(--t-a11y-min-size, 44px));--comp-header-height:var(--tct-action-sheet-header-height, var(--t-a11y-min-size, 44px));--comp-dialog-background:var(--tct-action-sheet-background, var(--t-base, #ffffff));--comp-dialog-color:var(--tct-action-sheet-color, inherit);--comp-dialog-padding:var(--tct-action-sheet-padding, var(--app-scale-3x, 15px));--comp-content-gradient-height:var(--tct-action-sheet-content-gradient-height, var(--app-scale-2x, 10px));--comp-dialog-gap:var(--tct-action-sheet-gap, var(--app-scale-2x, 10px));--comp-dialog-max-width:var(--tct-action-sheet-max-width, 400px);--comp-dialog-max-height:var(--tct-action-sheet-max-height, var(--comp-action-sheet-computed-max-height, 75vh));--comp-dialog-min-height:var(--tct-action-sheet-min-height, var(--comp-action-sheet-computed-min-height, 20vh));--comp-dialog-box-shadow:var(--tct-action-sheet-box-shadow, var(--app-shadow-2, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 4px 8px rgba(0, 0, 0, 0.14)));position:fixed;top:100%;bottom:unset;color:var(--comp-dialog-color);background:var(--comp-dialog-background);transition:transform var(--tct-action-sheet-tween, var(--app-tween-2, 0.4s ease)), opacity var(--tct-action-sheet-tween, var(--app-tween-2, 0.4s ease));width:100%;max-width:var(--comp-dialog-max-width);border:0;border-radius:var(--comp-border-radius);box-shadow:var(--comp-dialog-box-shadow);padding:0;height:auto;overflow:hidden;overscroll-behavior:contain;min-height:var(--comp-dialog-min-height);max-height:var(--comp-dialog-max-height)}dialog::backdrop{opacity:0;background:var(--tct-action-sheet-backdrop-background, var(--t-top-a2, rgba(13, 13, 13, 0.6)))}dialog[open].is-opening,dialog[open].is-open{transform:translateY(-100%)}@media screen and (min-width: 1200px){dialog[open].is-opening,dialog[open].is-open{opacity:1;transform:translateY(0)}}dialog[open].is-opening::backdrop,dialog[open].is-open::backdrop{opacity:1;animation:showBackdrop var(--tct-action-sheet-tween, var(--app-tween-2, 0.4s ease))}dialog[open].is-closing{transform:translateY(10%)}dialog[open].is-closing::backdrop{animation:hideBackdrop var(--tct-action-sheet-tween, var(--app-tween-2, 0.4s ease))}@media screen and (min-width: 1200px){dialog{border-radius:var(--comp-desktop-border-radius);top:0px;bottom:0px;height:fit-content;transform:translateY(10%);opacity:0}}.content{overflow-y:auto;overscroll-behavior:contain;--comp-scrollbar-size:var(--tct-scrollbar-size, var(--t-scrollbar-size, var(--app-scale-1x, 5px)));--comp-scrollbar-border-radius:var(--tct-scrollbar-border-radius, var(--t-scrollbar-border-radius, var(--app-border-radius-1, 4px)));--comp-scrollbar-color:var(--tct-scrollbar-color, var(--t-scrollbar-color, var(--t-a11y-gray-color, #747474)));scrollbar-width:thin;scrollbar-color:var(--comp-scrollbar-color) transparent}.content::-webkit-scrollbar{width:var(--comp-scrollbar-size);height:var(--comp-scrollbar-size);margin:5px}.content::-webkit-scrollbar-thumb{background:var(--comp-scrollbar-color);border-radius:var(--comp-scrollbar-border-radius)}.content::-webkit-scrollbar-track{background:transparent;border-radius:var(--comp-scrollbar-border-radius)}.date-picker-content{padding:var(--tct-action-sheet-date-picker-padding, var(--app-scale-1x, 5px))}.interior{display:grid;grid-template-rows:44px 1fr auto;gap:var(--comp-dialog-gap);max-height:calc(var(--comp-dialog-max-height) - var(--comp-dialog-padding));padding:var(--comp-dialog-padding);margin-bottom:env(safe-area-inset-bottom, 0px)}.interior.is-list header,.interior.is-list footer{position:relative}.interior.is-list header:before,.interior.is-list footer:before{content:"";display:block;position:absolute;left:0;height:var(--comp-content-gradient-height);width:100%;z-index:1}.interior [slot=popover-top]{padding:var(--tct-dropdown-popover-top-slot-padding, 0);border-bottom:var(--tct-dropdown-slot-border-top)}.interior [slot=popover-bottom]{padding:var(--tct-dropdown-popover-bottom-slot-padding, 0);border-top:var(--tct-dropdown-slot-border-bottom)}.list-body{display:contents}.interior.is-list{display:flex;flex-direction:column}.interior.is-list>header,.interior.is-list .list-body>.list-slot,.interior.is-list .list-body>footer{flex-shrink:0}.interior.is-list .list-body>.content{flex:1 1 auto;min-height:0}.interior.is-list .list-body>.content>.list-slot{margin-block:var(--comp-dialog-gap)}header{display:grid;grid-template-columns:var(--comp-close-button-size) 1fr var(--comp-close-button-size);grid-template-areas:". title close";gap:var(--comp-dialog-gap)}header #title{grid-area:title;text-align:center;line-height:var(--comp-header-height)}header .btn-close{grid-area:close;width:var(--comp-close-button-size);height:var(--comp-close-button-size)}footer{display:flex;justify-content:end}@media screen and (max-width: 1199px) and (orientation: portrait){dialog:has(.date-picker-content){--comp-dialog-max-height:100dvh}.interior:has(.date-picker-content){max-height:calc(100dvh - var(--comp-dialog-padding) - var(--comp-dialog-padding))}.content.date-picker-content{overflow-y:visible}}@media screen and (max-width: 1199px) and (orientation: landscape){dialog:has(.date-picker-content){--comp-dialog-max-height:100dvh;height:100dvh}.interior:has(.date-picker-content){height:calc(100dvh - var(--comp-dialog-padding) - var(--comp-dialog-padding))}.content.date-picker-content{min-height:0}}';
|
|
281
378
|
}
|
|
282
379
|
}, [ 257, "q2-action-sheet", {
|
|
283
380
|
data: [ 1040 ],
|
|
@@ -289,42 +386,66 @@ const f = t(class extends o {
|
|
|
289
386
|
show: [ 64 ]
|
|
290
387
|
} ]);
|
|
291
388
|
|
|
292
|
-
const
|
|
389
|
+
const z = q, defineCustomElement = function() {
|
|
293
390
|
if ("undefined" == typeof customElements) return;
|
|
294
|
-
[ "q2-action-sheet", "q2-btn", "q2-icon", "q2-loading", "q2-message", "q2-optgroup", "q2-option", "q2-option-list" ].forEach((t => {
|
|
391
|
+
[ "q2-action-sheet", "click-elsewhere", "q2-badge", "q2-btn", "q2-date-calendar", "q2-date-picker", "q2-icon", "q2-input", "q2-loading", "q2-message", "q2-optgroup", "q2-option", "q2-option-list", "q2-popover" ].forEach((t => {
|
|
295
392
|
switch (t) {
|
|
296
393
|
case "q2-action-sheet":
|
|
297
|
-
customElements.get(
|
|
394
|
+
customElements.get(a(t)) || customElements.define(a(t), q);
|
|
395
|
+
break;
|
|
396
|
+
|
|
397
|
+
case "click-elsewhere":
|
|
398
|
+
customElements.get(a(t)) || l();
|
|
399
|
+
break;
|
|
400
|
+
|
|
401
|
+
case "q2-badge":
|
|
402
|
+
customElements.get(a(t)) || h();
|
|
298
403
|
break;
|
|
299
404
|
|
|
300
405
|
case "q2-btn":
|
|
301
|
-
customElements.get(
|
|
406
|
+
customElements.get(a(t)) || p();
|
|
407
|
+
break;
|
|
408
|
+
|
|
409
|
+
case "q2-date-calendar":
|
|
410
|
+
customElements.get(a(t)) || m();
|
|
411
|
+
break;
|
|
412
|
+
|
|
413
|
+
case "q2-date-picker":
|
|
414
|
+
customElements.get(a(t)) || b();
|
|
302
415
|
break;
|
|
303
416
|
|
|
304
417
|
case "q2-icon":
|
|
305
|
-
customElements.get(
|
|
418
|
+
customElements.get(a(t)) || g();
|
|
419
|
+
break;
|
|
420
|
+
|
|
421
|
+
case "q2-input":
|
|
422
|
+
customElements.get(a(t)) || u();
|
|
306
423
|
break;
|
|
307
424
|
|
|
308
425
|
case "q2-loading":
|
|
309
|
-
customElements.get(
|
|
426
|
+
customElements.get(a(t)) || v();
|
|
310
427
|
break;
|
|
311
428
|
|
|
312
429
|
case "q2-message":
|
|
313
|
-
customElements.get(
|
|
430
|
+
customElements.get(a(t)) || f();
|
|
314
431
|
break;
|
|
315
432
|
|
|
316
433
|
case "q2-optgroup":
|
|
317
|
-
customElements.get(
|
|
434
|
+
customElements.get(a(t)) || x();
|
|
318
435
|
break;
|
|
319
436
|
|
|
320
437
|
case "q2-option":
|
|
321
|
-
customElements.get(
|
|
438
|
+
customElements.get(a(t)) || k();
|
|
322
439
|
break;
|
|
323
440
|
|
|
324
441
|
case "q2-option-list":
|
|
325
|
-
customElements.get(
|
|
442
|
+
customElements.get(a(t)) || w();
|
|
443
|
+
break;
|
|
444
|
+
|
|
445
|
+
case "q2-popover":
|
|
446
|
+
customElements.get(a(t)) || y();
|
|
326
447
|
}
|
|
327
448
|
}));
|
|
328
449
|
};
|
|
329
450
|
|
|
330
|
-
export {
|
|
451
|
+
export { z as Q2ActionSheet, defineCustomElement }
|
|
@@ -69,16 +69,16 @@ const o = a(class extends t {
|
|
|
69
69
|
render() {
|
|
70
70
|
const {computedInitials: a} = this, t = this.src && !this.badSrc, e = this.isLoaded, i = (this.name || this.initials) && (!this.src || this.badSrc), o = !this.name && !this.initials && (!this.src || this.badSrc);
|
|
71
71
|
return r("div", {
|
|
72
|
-
key: "
|
|
72
|
+
key: "2a10f13b2ca606dab3563d026910d909e37ddcb0",
|
|
73
73
|
class: `avatar-wrapper size-${this.size}`
|
|
74
74
|
}, this.hasDecorator && r("div", {
|
|
75
|
-
key: "
|
|
75
|
+
key: "e5deb3da74508a5731238724895ca9f1ab8b7a50",
|
|
76
76
|
class: "decorator"
|
|
77
77
|
}, r("slot", {
|
|
78
|
-
key: "
|
|
78
|
+
key: "3cc01e88891a09f7917416a0acd0940e79decf26",
|
|
79
79
|
name: "decorator"
|
|
80
80
|
})), t && r("img", {
|
|
81
|
-
key: "
|
|
81
|
+
key: "cbed4e936072bca7bd23bd18b8679d0539c3fbd2",
|
|
82
82
|
class: "" + (e ? "avatar-img" : "avatar-img-default"),
|
|
83
83
|
"test-id": "userImage",
|
|
84
84
|
src: this.src,
|
|
@@ -86,7 +86,7 @@ const o = a(class extends t {
|
|
|
86
86
|
onLoad: this.onLoad,
|
|
87
87
|
alt: this.name || ""
|
|
88
88
|
}), i && r("svg", {
|
|
89
|
-
key: "
|
|
89
|
+
key: "f1876a7748d3806e21e48f3de7b70c6faea499ca",
|
|
90
90
|
viewBox: "0 0 100 100",
|
|
91
91
|
preserveAspectRatio: "xMidYMid meet",
|
|
92
92
|
"test-id": "userInitials",
|
|
@@ -94,18 +94,18 @@ const o = a(class extends t {
|
|
|
94
94
|
"aria-label": this.name,
|
|
95
95
|
"aria-hidden": !this.name && "true"
|
|
96
96
|
}, r("text", {
|
|
97
|
-
key: "
|
|
97
|
+
key: "a120d991968334f383efcb9d5ef920c7ee542880",
|
|
98
98
|
x: "50",
|
|
99
99
|
y: "50",
|
|
100
100
|
"dominant-baseline": "central",
|
|
101
101
|
"text-anchor": "middle",
|
|
102
102
|
"aria-hidden": "true"
|
|
103
103
|
}, a)), o && r("div", {
|
|
104
|
-
key: "
|
|
104
|
+
key: "598457dc937327172221fab317246d1085a57b02",
|
|
105
105
|
"test-id": "fallbackIcon",
|
|
106
106
|
class: "fallback"
|
|
107
107
|
}, r("q2-icon", {
|
|
108
|
-
key: "
|
|
108
|
+
key: "578836c985252ea19c06d5499e6ad8f9c311e09f",
|
|
109
109
|
type: this.icon
|
|
110
110
|
})));
|
|
111
111
|
}
|