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
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { r as t, c as
|
|
1
|
+
import { r as t, c as i, h as o, g as e } from "./index-Cqkz7Bnm.js";
|
|
2
2
|
|
|
3
|
-
import { l as
|
|
3
|
+
import { l as a, w as s } from "./index-CP8pXJ-l.js";
|
|
4
4
|
|
|
5
|
-
import { s as
|
|
5
|
+
import { s as r, a as n } from "./sanitize-html-string-DPHNpMWE.js";
|
|
6
6
|
|
|
7
|
-
import { m as
|
|
7
|
+
import { m as c } from "./mirror-emit-DUjY_ucm.js";
|
|
8
8
|
|
|
9
|
-
const
|
|
10
|
-
constructor(
|
|
11
|
-
t(this,
|
|
12
|
-
this.tctClose =
|
|
13
|
-
|
|
9
|
+
const d = class {
|
|
10
|
+
constructor(e) {
|
|
11
|
+
t(this, e), this.close = i(this, "close", 7), this.ready = i(this, "ready", 3),
|
|
12
|
+
this.tctClose = i(this, "tctClose", 7),
|
|
13
|
+
// #region Own Properties
|
|
14
|
+
this.bodyOverflow = "", this.initialSelectedOptions = [], this.maxHeight = .75,
|
|
15
|
+
this.minHeight = .2, this.rootOverflow = "", this.selectedDate = {}, this.selectedOptions = {
|
|
14
16
|
values: [],
|
|
15
17
|
value: ""
|
|
16
18
|
},
|
|
@@ -27,18 +29,18 @@ const l = class {
|
|
|
27
29
|
const t = (await this.optionListElement.getOptions()).slice().reverse().find((t => !t.hidden && !t.disabled));
|
|
28
30
|
t && t.focus();
|
|
29
31
|
}, this.generateOptgroup = t => {
|
|
30
|
-
const
|
|
31
|
-
return t.label &&
|
|
32
|
-
t.options.length && t.options.forEach((t =>
|
|
33
|
-
|
|
32
|
+
const i = document.createElement("q2-optgroup");
|
|
33
|
+
return t.label && i.setAttribute("label", t.label), t.disabled && i.setAttribute("disabled", ""),
|
|
34
|
+
t.options.length && t.options.forEach((t => i.appendChild(this.generateOption(t)))),
|
|
35
|
+
i;
|
|
34
36
|
}, this.generateOption = t => {
|
|
35
|
-
const
|
|
36
|
-
return
|
|
37
|
-
if (void 0 ===
|
|
37
|
+
const i = document.createElement("q2-option"), {innerHTML: o, ...e} = t;
|
|
38
|
+
return o && (i.innerHTML = r(o)), Object.entries(e).forEach((([t, o]) => {
|
|
39
|
+
if (void 0 === o) return;
|
|
38
40
|
// Convert component prop names to HTML attributes, e.g. someLongPropertyName to some-long-property-name.
|
|
39
41
|
const e = t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
40
|
-
"boolean" == typeof
|
|
41
|
-
})),
|
|
42
|
+
"boolean" == typeof o ? o && i.setAttribute(e, "") : i.setAttribute(e, o);
|
|
43
|
+
})), i;
|
|
42
44
|
},
|
|
43
45
|
/**
|
|
44
46
|
* Handles keyboard navigation within the action sheet dialog.
|
|
@@ -54,11 +56,11 @@ const l = class {
|
|
|
54
56
|
* @param event - The keyboard event.
|
|
55
57
|
*/
|
|
56
58
|
this.handleDialogKeydown = t => {
|
|
57
|
-
const {data:
|
|
59
|
+
const {data: i} = this;
|
|
58
60
|
// Only activate for list appearance with an option list
|
|
59
|
-
if (!
|
|
60
|
-
const {key:
|
|
61
|
-
if ("Tab" !==
|
|
61
|
+
if (!i || "list" !== i.appearance || !this.optionListElement) return;
|
|
62
|
+
const {key: o, shiftKey: e} = t;
|
|
63
|
+
if ("Tab" !== o) return;
|
|
62
64
|
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);
|
|
63
65
|
if (e)
|
|
64
66
|
// Shift+Tab: if on close button
|
|
@@ -90,18 +92,34 @@ const l = class {
|
|
|
90
92
|
t.preventDefault(), r.focus());
|
|
91
93
|
}
|
|
92
94
|
}, this.onCancel = t => {
|
|
93
|
-
var
|
|
95
|
+
var i, o;
|
|
94
96
|
t.preventDefault();
|
|
95
97
|
const {initialSelectedOptions: e} = this;
|
|
96
98
|
this.hide({
|
|
97
|
-
value: null !== (
|
|
99
|
+
value: null !== (o = null === (i = null == e ? void 0 : e[0]) || void 0 === i ? void 0 : i.value) && void 0 !== o ? o : "",
|
|
98
100
|
values: e,
|
|
99
101
|
type: "cancel"
|
|
100
102
|
});
|
|
101
103
|
}, this.onClick = t => {
|
|
102
|
-
const
|
|
103
|
-
if (!(
|
|
104
|
-
!!
|
|
104
|
+
const i = t.target;
|
|
105
|
+
if (!(i instanceof HTMLElement)) return;
|
|
106
|
+
!!i.closest(".interior, q2-action-sheet") || this.onCancel(t);
|
|
107
|
+
}, this.onDatePickerCancel = t => {
|
|
108
|
+
t.stopPropagation(), this.onCancel(t);
|
|
109
|
+
}, this.onDatePickerChange = t => {
|
|
110
|
+
t.stopPropagation(), this.selectedDate = t.detail;
|
|
111
|
+
}, this.onDatePickerClose = t => {
|
|
112
|
+
t.stopPropagation();
|
|
113
|
+
const i = t.detail || void 0;
|
|
114
|
+
if (null == i ? void 0 : i.error) return void this.hide({
|
|
115
|
+
error: i.error,
|
|
116
|
+
type: "confirm"
|
|
117
|
+
});
|
|
118
|
+
const o = void 0 !== this.selectedDate.value || void 0 !== this.selectedDate.rangeStart || void 0 !== this.selectedDate.rangeEnd;
|
|
119
|
+
this.hide({
|
|
120
|
+
...this.selectedDate,
|
|
121
|
+
type: o ? "confirm" : "cancel"
|
|
122
|
+
});
|
|
105
123
|
}, this.onListChange = t => {
|
|
106
124
|
this.selectedOptions = t.detail;
|
|
107
125
|
}, this.onListDone = () => {
|
|
@@ -111,45 +129,95 @@ const l = class {
|
|
|
111
129
|
});
|
|
112
130
|
}, this.onListPopoverStateChange = t => {
|
|
113
131
|
t.detail.open || ("close" === t.detail.action ? this.onCancel(t) : this.onListDone());
|
|
132
|
+
}, this.onViewportResize = () => {
|
|
133
|
+
requestAnimationFrame((() => this.updateDialogMinMaxHeight()));
|
|
114
134
|
},
|
|
115
135
|
// #endregion
|
|
116
136
|
// #region Render Methods
|
|
117
|
-
this.
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}
|
|
137
|
+
this.renderDatePicker = ({data: t}) => {
|
|
138
|
+
const i = t.datePickerProps;
|
|
139
|
+
return o("div", {
|
|
140
|
+
class: "content date-picker-content",
|
|
141
|
+
ref: t => this.contentElement = t
|
|
142
|
+
}, o("q2-date-picker", {
|
|
143
|
+
_actionSheet: !0,
|
|
144
|
+
open: !0,
|
|
145
|
+
calendarLabel: i.calendarLabel,
|
|
146
|
+
closeDelay: i.closeDelay,
|
|
147
|
+
cutoffTime: i.cutoffTime,
|
|
148
|
+
daysOfWeekChecksum: i.daysOfWeekChecksum,
|
|
149
|
+
disclaimer: i.disclaimer,
|
|
150
|
+
endDate: i.endDate,
|
|
151
|
+
displayFormat: i.displayFormat,
|
|
152
|
+
invalidDates: i.invalidDates,
|
|
153
|
+
locale: i.locale,
|
|
154
|
+
mode: i.mode,
|
|
155
|
+
rangeEnd: i.rangeEnd,
|
|
156
|
+
rangeStart: i.rangeStart,
|
|
157
|
+
startDate: i.startDate,
|
|
158
|
+
validDates: i.validDates,
|
|
159
|
+
value: i.value,
|
|
160
|
+
onTctCancel: this.onDatePickerCancel,
|
|
161
|
+
onTctChange: this.onDatePickerChange,
|
|
162
|
+
onTctClose: this.onDatePickerClose
|
|
163
|
+
}));
|
|
164
|
+
}, this.renderList = ({data: t}) => {
|
|
165
|
+
var i;
|
|
166
|
+
const {listProps: e, slotsHtml: s = []} = t;
|
|
167
|
+
let r = !1;
|
|
168
|
+
const c = s.map((t => {
|
|
169
|
+
var i;
|
|
170
|
+
const o = n(t.html), e = document.createElement("div");
|
|
171
|
+
e.innerHTML = o;
|
|
172
|
+
const a = !0 === (null === (i = e.firstElementChild) || void 0 === i ? void 0 : i.hasAttribute("data-action-sheet-scroll"));
|
|
173
|
+
return "top" === t.slot && a && (r = !0), {
|
|
174
|
+
...t,
|
|
175
|
+
html: o,
|
|
176
|
+
scrolls: "top" === t.slot ? r : a
|
|
177
|
+
};
|
|
178
|
+
}));
|
|
179
|
+
// Bottom content joins the scroll area from the options through the last marker.
|
|
180
|
+
let d = !1;
|
|
181
|
+
for (let t = c.length - 1; t >= 0; t--) {
|
|
182
|
+
const i = c[t];
|
|
183
|
+
"bottom" === i.slot && (i.scrolls && (d = !0), i.scrolls = d);
|
|
184
|
+
}
|
|
185
|
+
const renderSlots = (t, i) => c.filter((o => o.slot === t && o.scrolls === i)).map((t => o("div", {
|
|
186
|
+
class: "list-slot",
|
|
187
|
+
innerHTML: t.html
|
|
188
|
+
})));
|
|
189
|
+
return o("div", {
|
|
190
|
+
class: "list-body"
|
|
191
|
+
}, renderSlots("top", !1), o("div", {
|
|
123
192
|
class: "content",
|
|
124
193
|
ref: t => this.contentElement = t
|
|
125
|
-
},
|
|
194
|
+
}, renderSlots("top", !0), o("q2-option-list", {
|
|
126
195
|
ref: t => this.optionListElement = t,
|
|
127
|
-
multiple:
|
|
128
|
-
label: (null === (
|
|
129
|
-
noSelect:
|
|
196
|
+
multiple: e.multiple,
|
|
197
|
+
label: (null === (i = this.data) || void 0 === i ? void 0 : i.title) || this.title,
|
|
198
|
+
noSelect: e.noSelect,
|
|
130
199
|
onChange: this.onListChange,
|
|
131
200
|
onPopoverState: this.onListPopoverStateChange,
|
|
132
|
-
selectedOptions:
|
|
133
|
-
},
|
|
201
|
+
selectedOptions: e.selectedOptions
|
|
202
|
+
}, o("slot", null)), renderSlots("bottom", !0)), o("footer", null, e.multiple && o("q2-btn", {
|
|
134
203
|
ref: t => this.doneButtonElement = t,
|
|
135
204
|
"test-id": "btnDone",
|
|
136
|
-
intent: "
|
|
205
|
+
intent: "primary",
|
|
137
206
|
onClick: this.onListDone
|
|
138
|
-
},
|
|
139
|
-
|
|
140
|
-
}))));
|
|
141
|
-
}, this.renderMessage = ({data: t}) => i("q2-message", {
|
|
207
|
+
}, a("tecton.element.actionSheet.done"))), renderSlots("bottom", !1));
|
|
208
|
+
}, this.renderMessage = ({data: t}) => o("q2-message", {
|
|
142
209
|
type: t.type
|
|
143
|
-
}, t.title &&
|
|
144
|
-
this.renderSlot = () =>
|
|
210
|
+
}, t.title && o("h2", null, t.title), t.description && o("p", null, t.description)),
|
|
211
|
+
this.renderSlot = () => o("div", {
|
|
145
212
|
class: "content",
|
|
146
213
|
ref: t => this.contentElement = t
|
|
147
|
-
},
|
|
214
|
+
}, o("slot", null));
|
|
148
215
|
}
|
|
149
216
|
// #endregion
|
|
150
217
|
// #region Component Lifecycle Events
|
|
151
218
|
disconnectedCallback() {
|
|
152
|
-
this.dialogElement.removeEventListener("cancel", this.onCancel), this.dialogElement.removeEventListener("keydown", this.handleDialogKeydown, !0)
|
|
219
|
+
this.dialogElement.removeEventListener("cancel", this.onCancel), this.dialogElement.removeEventListener("keydown", this.handleDialogKeydown, !0),
|
|
220
|
+
window.removeEventListener("resize", this.onViewportResize), this.dialogElement.open && this.restorePageScroll();
|
|
153
221
|
}
|
|
154
222
|
componentDidLoad() {
|
|
155
223
|
this.dialogElement.addEventListener("cancel", this.onCancel),
|
|
@@ -163,9 +231,10 @@ const l = class {
|
|
|
163
231
|
values: [],
|
|
164
232
|
type: "confirm"
|
|
165
233
|
}) {
|
|
166
|
-
|
|
234
|
+
c(this, [ "close", "tctClose" ], t), this.renderStatus = "is-closing", window.removeEventListener("resize", this.onViewportResize),
|
|
235
|
+
this.restorePageScroll(), this.dialogElement.addEventListener("transitionend", (() => {
|
|
167
236
|
"is-closing" === this.renderStatus && (this.dialogElement.close(), this.renderStatus = null,
|
|
168
|
-
this.data = void 0, this.initialSelectedOptions = [], this.selectedOptions = {
|
|
237
|
+
this.data = void 0, this.initialSelectedOptions = [], this.selectedDate = {}, this.selectedOptions = {
|
|
169
238
|
values: [],
|
|
170
239
|
value: ""
|
|
171
240
|
}, this.hidePostHook());
|
|
@@ -174,27 +243,39 @@ const l = class {
|
|
|
174
243
|
});
|
|
175
244
|
}
|
|
176
245
|
async show() {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
246
|
+
if (!this.dialogElement.open) {
|
|
247
|
+
this.showPreHook(), await s(), this.updateDialogMinMaxHeight(), this.storeInitialValues(),
|
|
248
|
+
this.dialogElement.showModal(), window.addEventListener("resize", this.onViewportResize),
|
|
249
|
+
this.bodyOverflow = document.body.style.overflow, this.rootOverflow = document.documentElement.style.overflow,
|
|
250
|
+
document.body.style.overflow = "hidden", document.documentElement.style.overflow = "hidden";
|
|
251
|
+
try {
|
|
252
|
+
this.renderStatus = "is-opening", this.dialogElement.addEventListener("transitionend", (() => {
|
|
253
|
+
"is-opening" === this.renderStatus && (this.renderStatus = "is-open", this.focusContent());
|
|
254
|
+
}), {
|
|
255
|
+
once: !0
|
|
256
|
+
});
|
|
257
|
+
} catch (t) {
|
|
258
|
+
throw window.removeEventListener("resize", this.onViewportResize), this.restorePageScroll(),
|
|
259
|
+
t;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
184
262
|
}
|
|
185
263
|
// #endregion
|
|
186
264
|
// #region Local Methods
|
|
187
265
|
focusContent() {
|
|
188
266
|
const {data: t} = this;
|
|
189
267
|
if (t && "list" === t.appearance) {
|
|
190
|
-
const {event:
|
|
191
|
-
|
|
268
|
+
const {event: i} = t;
|
|
269
|
+
i instanceof KeyboardEvent ? this.optionListElement.handleExternalKeydown(i) : this.optionListElement.focus();
|
|
192
270
|
}
|
|
193
271
|
}
|
|
194
272
|
hidePostHook() {
|
|
195
273
|
const {data: t} = this;
|
|
196
274
|
t && "list" === t.appearance && (this.hostElement.innerHTML = null);
|
|
197
275
|
}
|
|
276
|
+
restorePageScroll() {
|
|
277
|
+
document.body.style.overflow = this.bodyOverflow, document.documentElement.style.overflow = this.rootOverflow;
|
|
278
|
+
}
|
|
198
279
|
showPreHook() {
|
|
199
280
|
const {data: t} = this;
|
|
200
281
|
t && "list" === t.appearance && (this.hostElement.innerHTML = null, t.options.forEach((t => {
|
|
@@ -211,10 +292,13 @@ const l = class {
|
|
|
211
292
|
this.dialogElement.style.setProperty("--comp-action-sheet-computed-max-height", `${Math.floor(t * this.maxHeight)}px`);
|
|
212
293
|
}
|
|
213
294
|
render() {
|
|
214
|
-
|
|
215
|
-
const {data: o} = this, e = (null == o ? void 0 : o.title) || this.title || !this.hideClose, a = this.renderStatus || "";
|
|
295
|
+
const {data: t} = this, i = (null == t ? void 0 : t.title) || this.title || !this.hideClose, e = (null == t ? void 0 : t.title) || this.title, a = this.renderStatus || "";
|
|
216
296
|
let s = null;
|
|
217
|
-
switch (null ==
|
|
297
|
+
switch (null == t ? void 0 : t.appearance) {
|
|
298
|
+
case "date-picker":
|
|
299
|
+
s = this.renderDatePicker;
|
|
300
|
+
break;
|
|
301
|
+
|
|
218
302
|
case "message":
|
|
219
303
|
s = this.renderMessage;
|
|
220
304
|
break;
|
|
@@ -226,44 +310,45 @@ const l = class {
|
|
|
226
310
|
default:
|
|
227
311
|
s = this.renderSlot;
|
|
228
312
|
}
|
|
229
|
-
const r = `interior is-${(null ==
|
|
230
|
-
return
|
|
231
|
-
key: "
|
|
313
|
+
const r = `interior is-${(null == t ? void 0 : t.appearance) || "slot"}`;
|
|
314
|
+
return o("dialog", {
|
|
315
|
+
key: "a2594cad0378cf9bf045ed3ec1022afc58e34dbb",
|
|
232
316
|
ref: t => this.dialogElement = t,
|
|
233
317
|
class: a,
|
|
234
|
-
|
|
235
|
-
"aria-labelledby":
|
|
236
|
-
|
|
237
|
-
|
|
318
|
+
"aria-label": i ? void 0 : e,
|
|
319
|
+
"aria-labelledby": i ? "title" : void 0,
|
|
320
|
+
onClick: this.onClick
|
|
321
|
+
}, o("div", {
|
|
322
|
+
key: "de6361cfa49ec69666b8b2c193dcc9cfc5ac4b0f",
|
|
238
323
|
class: r
|
|
239
|
-
},
|
|
240
|
-
key: "
|
|
241
|
-
},
|
|
242
|
-
key: "
|
|
324
|
+
}, i && o("header", {
|
|
325
|
+
key: "c5a1ddd1f414027e3f75d2a7048c1ccd349cba78"
|
|
326
|
+
}, o("div", {
|
|
327
|
+
key: "3d4e7472f5c55ed96eec5ad8909d6ada7a5aa5b2",
|
|
243
328
|
id: "title"
|
|
244
|
-
}, (null ==
|
|
245
|
-
key: "
|
|
329
|
+
}, (null == t ? void 0 : t.title) || this.title), !this.hideClose && o("q2-btn", {
|
|
330
|
+
key: "c5e4c952b308e2571a6e90017e4f8010b4a580fe",
|
|
246
331
|
ref: t => this.closeButtonElement = t,
|
|
247
332
|
class: "btn-close",
|
|
248
333
|
"test-id": "btnClose",
|
|
249
334
|
onClick: this.onCancel,
|
|
250
335
|
label: "tecton.element.actionSheet.close",
|
|
251
336
|
"hide-label": !0
|
|
252
|
-
},
|
|
253
|
-
key: "
|
|
337
|
+
}, o("q2-icon", {
|
|
338
|
+
key: "10383e6b8d6ab899648208bbada3c18f47fb5bd3",
|
|
254
339
|
type: "close"
|
|
255
|
-
}))),
|
|
256
|
-
key: "
|
|
257
|
-
},
|
|
258
|
-
key: "
|
|
340
|
+
}))), t && "description" in t && t.description && o("p", {
|
|
341
|
+
key: "a1de7256a6f497270866f076d7697226a8bea946"
|
|
342
|
+
}, t.description), s && o(s, {
|
|
343
|
+
key: "3f5a57d706b4066c036bb4710a612bd34268b78e",
|
|
259
344
|
data: this.data
|
|
260
345
|
})));
|
|
261
346
|
}
|
|
262
347
|
get hostElement() {
|
|
263
|
-
return
|
|
348
|
+
return e(this);
|
|
264
349
|
}
|
|
265
350
|
};
|
|
266
351
|
|
|
267
|
-
|
|
352
|
+
d.style = '*{box-sizing:border-box}*:active{outline:none}*:focus-visible{outline:none;box-shadow:var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit;font-stretch:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}@container style(--t-prefers-motion: "reduced"){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")){@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}}@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}}';
|
|
268
353
|
|
|
269
|
-
export {
|
|
354
|
+
export { d as q2_action_sheet }
|
|
@@ -67,16 +67,16 @@ const e = class {
|
|
|
67
67
|
render() {
|
|
68
68
|
const {computedInitials: a} = this, r = 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);
|
|
69
69
|
return t("div", {
|
|
70
|
-
key: "
|
|
70
|
+
key: "2a10f13b2ca606dab3563d026910d909e37ddcb0",
|
|
71
71
|
class: `avatar-wrapper size-${this.size}`
|
|
72
72
|
}, this.hasDecorator && t("div", {
|
|
73
|
-
key: "
|
|
73
|
+
key: "e5deb3da74508a5731238724895ca9f1ab8b7a50",
|
|
74
74
|
class: "decorator"
|
|
75
75
|
}, t("slot", {
|
|
76
|
-
key: "
|
|
76
|
+
key: "3cc01e88891a09f7917416a0acd0940e79decf26",
|
|
77
77
|
name: "decorator"
|
|
78
78
|
})), r && t("img", {
|
|
79
|
-
key: "
|
|
79
|
+
key: "cbed4e936072bca7bd23bd18b8679d0539c3fbd2",
|
|
80
80
|
class: "" + (e ? "avatar-img" : "avatar-img-default"),
|
|
81
81
|
"test-id": "userImage",
|
|
82
82
|
src: this.src,
|
|
@@ -84,7 +84,7 @@ const e = class {
|
|
|
84
84
|
onLoad: this.onLoad,
|
|
85
85
|
alt: this.name || ""
|
|
86
86
|
}), i && t("svg", {
|
|
87
|
-
key: "
|
|
87
|
+
key: "f1876a7748d3806e21e48f3de7b70c6faea499ca",
|
|
88
88
|
viewBox: "0 0 100 100",
|
|
89
89
|
preserveAspectRatio: "xMidYMid meet",
|
|
90
90
|
"test-id": "userInitials",
|
|
@@ -92,18 +92,18 @@ const e = class {
|
|
|
92
92
|
"aria-label": this.name,
|
|
93
93
|
"aria-hidden": !this.name && "true"
|
|
94
94
|
}, t("text", {
|
|
95
|
-
key: "
|
|
95
|
+
key: "a120d991968334f383efcb9d5ef920c7ee542880",
|
|
96
96
|
x: "50",
|
|
97
97
|
y: "50",
|
|
98
98
|
"dominant-baseline": "central",
|
|
99
99
|
"text-anchor": "middle",
|
|
100
100
|
"aria-hidden": "true"
|
|
101
101
|
}, a)), o && t("div", {
|
|
102
|
-
key: "
|
|
102
|
+
key: "598457dc937327172221fab317246d1085a57b02",
|
|
103
103
|
"test-id": "fallbackIcon",
|
|
104
104
|
class: "fallback"
|
|
105
105
|
}, t("q2-icon", {
|
|
106
|
-
key: "
|
|
106
|
+
key: "578836c985252ea19c06d5499e6ad8f9c311e09f",
|
|
107
107
|
type: this.icon
|
|
108
108
|
})));
|
|
109
109
|
}
|