q2-tecton-elements 1.72.0 → 1.73.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle-report.json +39545 -34361
- package/dist/cjs/{charting-ClN1ldqv.js → charting-CdNTrVBe.js} +80 -0
- package/dist/cjs/click-elsewhere_3.cjs.entry.js +81 -14
- package/dist/cjs/{dataSample-BYR-wrOn.js → dataSample-B4blhlH4.js} +1 -1
- package/dist/cjs/date-picker-helpers-UYvPn98R.js +257 -0
- package/dist/cjs/{index-BY3aao8R.js → index-BqyWHpNu.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/q2-action-group.cjs.entry.js +1 -1
- package/dist/cjs/q2-action-sheet.cjs.entry.js +98 -18
- package/dist/cjs/q2-avatar.cjs.entry.js +34 -1
- package/dist/cjs/q2-badge_2.cjs.entry.js +3 -3
- package/dist/cjs/q2-btn_2.cjs.entry.js +2 -2
- package/dist/cjs/q2-calendar.cjs.entry.js +9 -4
- package/dist/cjs/q2-card-image.cjs.entry.js +3 -3
- package/dist/cjs/q2-card.cjs.entry.js +1 -1
- package/dist/cjs/q2-carousel-pane.cjs.entry.js +3 -3
- package/dist/cjs/q2-carousel.cjs.entry.js +20 -6
- package/dist/cjs/q2-chart-area.cjs.entry.js +38 -7
- package/dist/cjs/q2-chart-bar.cjs.entry.js +39 -8
- package/dist/cjs/q2-chart-donut.cjs.entry.js +31 -13
- package/dist/cjs/q2-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/q2-checkbox_2.cjs.entry.js +8 -5
- package/dist/cjs/q2-context.cjs.entry.js +4 -4
- package/dist/cjs/q2-currency.cjs.entry.js +1 -1
- package/dist/cjs/q2-data-table.cjs.entry.js +7 -7
- package/dist/cjs/q2-date-calendar.cjs.entry.js +452 -0
- package/dist/cjs/q2-date-picker_2.cjs.entry.js +968 -0
- package/dist/cjs/q2-detail.cjs.entry.js +2 -2
- package/dist/cjs/q2-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/q2-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/q2-editable-field.cjs.entry.js +20 -7
- package/dist/cjs/q2-example.cjs.entry.js +1 -1
- package/dist/cjs/q2-file-picker.cjs.entry.js +2 -2
- package/dist/cjs/q2-form.cjs.entry.js +1 -1
- package/dist/cjs/q2-formatted-text.cjs.entry.js +1 -1
- package/dist/cjs/q2-icon.cjs.entry.js +1 -1
- package/dist/cjs/q2-item.cjs.entry.js +20 -2
- package/dist/cjs/q2-legend.cjs.entry.js +1 -1
- package/dist/cjs/q2-link_2.cjs.entry.js +2 -2
- package/dist/cjs/q2-loc.cjs.entry.js +1 -1
- package/dist/cjs/q2-message.cjs.entry.js +3 -3
- package/dist/cjs/q2-meter.cjs.entry.js +2 -2
- package/dist/cjs/q2-modal.cjs.entry.js +2 -2
- package/dist/cjs/q2-month-picker.cjs.entry.js +3 -3
- package/dist/cjs/q2-mutation-observer.cjs.entry.js +1 -1
- package/dist/cjs/q2-option.cjs.entry.js +1 -1
- package/dist/cjs/q2-otp.cjs.entry.js +5 -5
- package/dist/cjs/q2-pagination.cjs.entry.js +12 -6
- package/dist/cjs/q2-pill.cjs.entry.js +8 -5
- package/dist/cjs/q2-radio-group.cjs.entry.js +2 -2
- package/dist/cjs/q2-radio.cjs.entry.js +2 -2
- package/dist/cjs/q2-relative-time.cjs.entry.js +2 -2
- package/dist/cjs/q2-resize-observer.cjs.entry.js +1 -1
- package/dist/cjs/q2-search.cjs.entry.js +3 -3
- package/dist/cjs/q2-section.cjs.entry.js +3 -3
- package/dist/cjs/q2-select.cjs.entry.js +8 -4
- package/dist/cjs/q2-stepper-pane.cjs.entry.js +2 -2
- package/dist/cjs/q2-stepper-vertical.cjs.entry.js +2 -2
- package/dist/cjs/q2-stepper.cjs.entry.js +2 -2
- package/dist/cjs/q2-surface.cjs.entry.js +1 -1
- package/dist/cjs/q2-tab-container.cjs.entry.js +2 -2
- package/dist/cjs/q2-tab-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
- package/dist/cjs/q2-textarea.cjs.entry.js +2 -2
- package/dist/cjs/q2-toast.cjs.entry.js +1 -1
- package/dist/cjs/q2-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/{sectorHelper-9TWL-3dw.js → sectorHelper-CxhDl5ql.js} +1 -1
- package/dist/cjs/tecton-tab-pane.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/q2-action-sheet/q2-action-sheet.css +52 -0
- package/dist/collection/components/q2-action-sheet/q2-action-sheet.js +98 -18
- package/dist/collection/components/q2-action-sheet/test/q2-action-sheet-test.vr.js +124 -0
- package/dist/collection/components/q2-avatar/q2-avatar.js +34 -1
- package/dist/collection/components/q2-avatar/test/q2-avatar-test.vr.js +79 -4
- package/dist/collection/components/q2-btn/q2-btn.css +84 -136
- package/dist/collection/components/q2-btn/q2-btn.js +10 -4
- package/dist/collection/components/q2-btn/test/q2-btn-test.vr.js +99 -43
- package/dist/collection/components/q2-calendar/q2-calendar.js +16 -5
- package/dist/collection/components/q2-calendar/q2-month-picker.js +2 -2
- package/dist/collection/components/q2-calendar/test/q2-calendar-test.vr.js +3 -13
- package/dist/collection/components/q2-card-image/q2-card-image.js +2 -2
- package/dist/collection/components/q2-carousel/q2-carousel.js +19 -5
- package/dist/collection/components/q2-carousel/test/q2-carousel-test.vr.js +32 -0
- package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.js +2 -2
- package/dist/collection/components/q2-chart-area/q2-chart-area.css +11 -0
- package/dist/collection/components/q2-chart-area/q2-chart-area.js +53 -7
- package/dist/collection/components/q2-chart-area/test/q2-chart-area-test.vr.js +14 -0
- package/dist/collection/components/q2-chart-bar/q2-chart-bar.css +11 -0
- package/dist/collection/components/q2-chart-bar/q2-chart-bar.js +50 -4
- package/dist/collection/components/q2-chart-bar/test/q2-chart-bar-test.vr.js +14 -0
- package/dist/collection/components/q2-chart-donut/q2-chart-donut.js +30 -10
- package/dist/collection/components/q2-chart-donut/test/q2-chart-donut-test.vr.js +25 -0
- package/dist/collection/components/q2-checkbox/q2-checkbox.js +6 -3
- package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.js +6 -3
- package/dist/collection/components/q2-context/q2-context.js +3 -3
- package/dist/collection/components/q2-context/test/q2-context-test.vr.js +3 -3
- package/dist/collection/components/q2-currency/q2-currency.js +1 -1
- package/dist/collection/components/q2-data-table/q2-data-table.css +3 -0
- package/dist/collection/components/q2-data-table/q2-data-table.js +5 -5
- package/dist/collection/components/q2-data-table/test/q2-data-table-test.vr.js +47 -0
- package/dist/collection/components/q2-date-calendar/q2-date-calendar.css +393 -0
- package/dist/collection/components/q2-date-calendar/q2-date-calendar.js +1022 -0
- package/dist/collection/components/q2-date-calendar/test/q2-date-calendar-test.vr.js +111 -0
- package/dist/collection/components/q2-date-picker/q2-date-picker.css +138 -0
- package/dist/collection/components/q2-date-picker/q2-date-picker.js +2010 -0
- package/dist/collection/components/q2-date-picker/test/q2-date-picker-test.vr.js +179 -0
- package/dist/collection/components/q2-detail/q2-detail.js +1 -1
- package/dist/collection/components/q2-dropdown/q2-dropdown.js +5 -5
- package/dist/collection/components/q2-editable-field/q2-editable-field.js +27 -8
- package/dist/collection/components/q2-example/q2-example.js +1 -1
- package/dist/collection/components/q2-file-picker/q2-file-picker.js +1 -1
- package/dist/collection/components/q2-form/q2-form.js +1 -1
- package/dist/collection/components/q2-formatted-text/q2-formatted-text.js +1 -1
- package/dist/collection/components/q2-input/formatting/phone-number-formats.js +1 -1
- package/dist/collection/components/q2-input/q2-input.js +6 -3
- package/dist/collection/components/q2-item/q2-item.js +19 -1
- package/dist/collection/components/q2-item/test/q2-item-test.vr.js +2 -2
- package/dist/collection/components/q2-legend/q2-legend.js +1 -1
- package/dist/collection/components/q2-list/q2-list.js +1 -1
- package/dist/collection/components/q2-message/q2-message.css +1 -1
- package/dist/collection/components/q2-message/q2-message.js +1 -1
- package/dist/collection/components/q2-message/test/q2-message-test.vr.js +11 -2
- package/dist/collection/components/q2-meter/q2-meter.js +1 -1
- package/dist/collection/components/q2-modal/q2-modal.js +1 -1
- package/dist/collection/components/q2-modal/test/q2-modal-test.vr.js +7 -7
- package/dist/collection/components/q2-mutation-observer/q2-mutation-observer.js +1 -1
- package/dist/collection/components/q2-optgroup/q2-optgroup.js +1 -1
- package/dist/collection/components/q2-option-list/q2-option-list.js +36 -4
- package/dist/collection/components/q2-otp/q2-otp.js +4 -4
- package/dist/collection/components/q2-pagination/q2-pagination.css +17 -0
- package/dist/collection/components/q2-pagination/q2-pagination.js +10 -4
- package/dist/collection/components/q2-pagination/test/q2-pagination-test.vr.js +39 -0
- package/dist/collection/components/q2-pill/q2-pill.css +14 -10
- package/dist/collection/components/q2-pill/q2-pill.js +6 -3
- package/dist/collection/components/q2-pill/test/q2-pill-test.vr.js +25 -0
- package/dist/collection/components/q2-popover/q2-popover.css +1 -0
- package/dist/collection/components/q2-popover/q2-popover.js +43 -8
- package/dist/collection/components/q2-radio/q2-radio.js +5 -2
- package/dist/collection/components/q2-radio-group/q2-radio-group.js +6 -3
- package/dist/collection/components/q2-relative-time/q2-relative-time.js +1 -1
- package/dist/collection/components/q2-resize-observer/q2-resize-observer.js +1 -1
- package/dist/collection/components/q2-search/q2-search.js +6 -3
- package/dist/collection/components/q2-section/q2-section.js +2 -2
- package/dist/collection/components/q2-select/q2-select.js +12 -5
- package/dist/collection/components/q2-stepper/q2-stepper.js +1 -1
- package/dist/collection/components/q2-stepper-pane/q2-stepper-pane.js +1 -1
- package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js +1 -1
- package/dist/collection/components/q2-surface/q2-surface.js +1 -1
- package/dist/collection/components/q2-surface/test/q2-surface-test.vr.js +2 -2
- package/dist/collection/components/q2-tab-container/q2-tab-container.js +1 -1
- package/dist/collection/components/q2-tab-pane/q2-tab-pane.js +1 -1
- package/dist/collection/components/q2-tag/q2-tag.js +6 -3
- package/dist/collection/components/q2-textarea/q2-textarea.js +6 -3
- package/dist/collection/components/q2-tooltip/test/q2-tooltip-test.vr.js +1 -1
- package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.js +2 -2
- package/dist/collection/utils/chart-keyboard.js +76 -0
- package/dist/collection/utils/date-picker/date-picker-helpers.js +239 -0
- package/dist/collection/utils/date-picker/date-picker-types.js +1 -0
- package/dist/collection/utils/index.js +1 -1
- package/dist/components/charting.js +1603 -1532
- package/dist/components/dataSample.js +7 -7
- package/dist/components/index.js +57 -53
- package/dist/components/index2.js +2 -2
- package/dist/components/q2-action-sheet.js +224 -103
- package/dist/components/q2-avatar2.js +41 -27
- package/dist/components/q2-btn2.js +2 -2
- package/dist/components/q2-calendar.js +6 -3
- package/dist/components/q2-card-image.js +2 -2
- package/dist/components/q2-carousel-pane2.js +3 -3
- package/dist/components/q2-carousel.js +37 -24
- package/dist/components/q2-chart-area.js +415 -369
- package/dist/components/q2-chart-bar.js +193 -148
- package/dist/components/q2-chart-donut.js +185 -158
- package/dist/components/q2-checkbox-group.js +6 -6
- package/dist/components/q2-checkbox2.js +11 -11
- package/dist/components/q2-context.js +20 -20
- package/dist/components/q2-currency.js +9 -9
- package/dist/components/q2-data-table.js +111 -111
- package/dist/components/q2-date-calendar.d.ts +11 -0
- package/dist/components/q2-date-calendar.js +5 -0
- package/dist/components/q2-date-calendar2.js +678 -0
- package/dist/components/q2-date-picker.d.ts +11 -0
- package/dist/components/q2-date-picker.js +5 -0
- package/dist/components/q2-date-picker2.js +875 -0
- package/dist/components/q2-detail.js +3 -3
- package/dist/components/q2-dropdown.js +17 -17
- package/dist/components/q2-editable-field.js +16 -5
- package/dist/components/q2-example.js +11 -11
- package/dist/components/q2-file-picker.js +1 -1
- package/dist/components/q2-form.js +6 -6
- package/dist/components/q2-formatted-text.js +2 -2
- package/dist/components/q2-input2.js +6 -6
- package/dist/components/q2-item2.js +32 -22
- package/dist/components/q2-legend2.js +7 -7
- package/dist/components/q2-list2.js +6 -6
- package/dist/components/q2-message2.js +10 -10
- package/dist/components/q2-meter.js +7 -7
- package/dist/components/q2-modal.js +22 -22
- package/dist/components/q2-month-picker.js +17 -17
- package/dist/components/q2-mutation-observer.js +1 -1
- package/dist/components/q2-optgroup2.js +7 -7
- package/dist/components/q2-option-list2.js +55 -34
- package/dist/components/q2-otp.js +8 -8
- package/dist/components/q2-pagination.js +70 -68
- package/dist/components/q2-pill.js +51 -46
- package/dist/components/q2-popover2.js +70 -49
- package/dist/components/q2-radio-group.js +7 -7
- package/dist/components/q2-radio.js +6 -6
- package/dist/components/q2-relative-time.js +1 -1
- package/dist/components/q2-resize-observer2.js +1 -1
- package/dist/components/q2-search.js +5 -5
- package/dist/components/q2-section.js +17 -17
- package/dist/components/q2-select2.js +2 -2
- package/dist/components/q2-stepper-pane.js +29 -29
- package/dist/components/q2-stepper-vertical.js +4 -4
- package/dist/components/q2-stepper.js +57 -57
- package/dist/components/q2-surface.js +3 -3
- package/dist/components/q2-tab-container.js +21 -21
- package/dist/components/q2-tab-pane.js +6 -6
- package/dist/components/q2-tag2.js +8 -6
- package/dist/components/q2-textarea.js +3 -3
- package/dist/components/sectorHelper.js +78 -78
- package/dist/components/tecton-tab-pane.js +10 -10
- package/dist/esm/{charting-DOZct-UB.js → charting-DFXJklqs.js} +79 -1
- package/dist/esm/click-elsewhere_3.entry.js +81 -14
- package/dist/esm/{dataSample-Dm1zpQNi.js → dataSample-CP_VKNqt.js} +1 -1
- package/dist/esm/date-picker-helpers-D8QnN_AS.js +242 -0
- package/dist/esm/{index-DJw6Feh0.js → index-CP8pXJ-l.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/q2-action-group.entry.js +1 -1
- package/dist/esm/q2-action-sheet.entry.js +99 -19
- package/dist/esm/q2-avatar.entry.js +34 -1
- package/dist/esm/q2-badge_2.entry.js +3 -3
- package/dist/esm/q2-btn_2.entry.js +2 -2
- package/dist/esm/q2-calendar.entry.js +9 -4
- package/dist/esm/q2-card-image.entry.js +3 -3
- package/dist/esm/q2-card.entry.js +1 -1
- package/dist/esm/q2-carousel-pane.entry.js +3 -3
- package/dist/esm/q2-carousel.entry.js +20 -6
- package/dist/esm/q2-chart-area.entry.js +38 -7
- package/dist/esm/q2-chart-bar.entry.js +39 -8
- package/dist/esm/q2-chart-donut.entry.js +31 -13
- package/dist/esm/q2-checkbox-group.entry.js +2 -2
- package/dist/esm/q2-checkbox_2.entry.js +8 -5
- package/dist/esm/q2-context.entry.js +4 -4
- package/dist/esm/q2-currency.entry.js +1 -1
- package/dist/esm/q2-data-table.entry.js +7 -7
- package/dist/esm/q2-date-calendar.entry.js +450 -0
- package/dist/esm/q2-date-picker_2.entry.js +965 -0
- package/dist/esm/q2-detail.entry.js +2 -2
- package/dist/esm/q2-dropdown-item.entry.js +1 -1
- package/dist/esm/q2-dropdown.entry.js +3 -3
- package/dist/esm/q2-editable-field.entry.js +20 -7
- package/dist/esm/q2-example.entry.js +1 -1
- package/dist/esm/q2-file-picker.entry.js +2 -2
- package/dist/esm/q2-form.entry.js +1 -1
- package/dist/esm/q2-formatted-text.entry.js +1 -1
- package/dist/esm/q2-icon.entry.js +1 -1
- package/dist/esm/q2-item.entry.js +20 -2
- package/dist/esm/q2-legend.entry.js +1 -1
- package/dist/esm/q2-link_2.entry.js +2 -2
- package/dist/esm/q2-loc.entry.js +1 -1
- package/dist/esm/q2-message.entry.js +3 -3
- package/dist/esm/q2-meter.entry.js +2 -2
- package/dist/esm/q2-modal.entry.js +2 -2
- package/dist/esm/q2-month-picker.entry.js +3 -3
- package/dist/esm/q2-mutation-observer.entry.js +1 -1
- package/dist/esm/q2-option.entry.js +1 -1
- package/dist/esm/q2-otp.entry.js +5 -5
- package/dist/esm/q2-pagination.entry.js +12 -6
- package/dist/esm/q2-pill.entry.js +8 -5
- package/dist/esm/q2-radio-group.entry.js +2 -2
- package/dist/esm/q2-radio.entry.js +2 -2
- package/dist/esm/q2-relative-time.entry.js +2 -2
- package/dist/esm/q2-resize-observer.entry.js +1 -1
- package/dist/esm/q2-search.entry.js +3 -3
- package/dist/esm/q2-section.entry.js +3 -3
- package/dist/esm/q2-select.entry.js +8 -4
- package/dist/esm/q2-stepper-pane.entry.js +2 -2
- package/dist/esm/q2-stepper-vertical.entry.js +2 -2
- package/dist/esm/q2-stepper.entry.js +2 -2
- package/dist/esm/q2-surface.entry.js +1 -1
- package/dist/esm/q2-tab-container.entry.js +2 -2
- package/dist/esm/q2-tab-pane.entry.js +1 -1
- package/dist/esm/q2-tecton-elements.js +1 -1
- package/dist/esm/q2-textarea.entry.js +2 -2
- package/dist/esm/q2-toast.entry.js +1 -1
- package/dist/esm/q2-tooltip.entry.js +1 -1
- package/dist/esm/{sectorHelper--RMGWGAy.js → sectorHelper-DBtkWtpl.js} +1 -1
- package/dist/esm/tecton-tab-pane.entry.js +2 -2
- package/dist/q2-tecton-elements/{charting-DOZct-UB.js → charting-DFXJklqs.js} +1625 -1554
- package/dist/q2-tecton-elements/click-elsewhere_3.entry.js +85 -43
- package/dist/q2-tecton-elements/{dataSample-Dm1zpQNi.js → dataSample-CP_VKNqt.js} +33 -33
- package/dist/q2-tecton-elements/date-picker-helpers-D8QnN_AS.js +153 -0
- package/dist/q2-tecton-elements/{index-DJw6Feh0.js → index-CP8pXJ-l.js} +1 -1
- package/dist/q2-tecton-elements/q2-action-group.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-action-sheet.entry.js +169 -84
- package/dist/q2-tecton-elements/q2-avatar.entry.js +24 -10
- package/dist/q2-tecton-elements/q2-badge_2.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-btn_2.entry.js +23 -23
- package/dist/q2-tecton-elements/q2-calendar.entry.js +7 -4
- package/dist/q2-tecton-elements/q2-card-image.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-card.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-carousel-pane.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-carousel.entry.js +24 -11
- package/dist/q2-tecton-elements/q2-chart-area.entry.js +187 -141
- package/dist/q2-tecton-elements/q2-chart-bar.entry.js +377 -333
- package/dist/q2-tecton-elements/q2-chart-donut.entry.js +184 -158
- package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-checkbox_2.entry.js +20 -18
- package/dist/q2-tecton-elements/q2-context.entry.js +21 -21
- package/dist/q2-tecton-elements/q2-currency.entry.js +9 -9
- package/dist/q2-tecton-elements/q2-data-table.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-date-calendar.entry.js +438 -0
- package/dist/q2-tecton-elements/q2-date-picker_2.entry.js +792 -0
- package/dist/q2-tecton-elements/q2-detail.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-dropdown-item.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-dropdown.entry.js +16 -16
- package/dist/q2-tecton-elements/q2-editable-field.entry.js +17 -6
- package/dist/q2-tecton-elements/q2-example.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-file-picker.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-form.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-formatted-text.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-icon.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-item.entry.js +26 -16
- package/dist/q2-tecton-elements/q2-legend.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-link_2.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-loc.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-message.entry.js +29 -29
- package/dist/q2-tecton-elements/q2-meter.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-modal.entry.js +18 -18
- package/dist/q2-tecton-elements/q2-month-picker.entry.js +14 -14
- package/dist/q2-tecton-elements/q2-mutation-observer.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-option.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-otp.entry.js +9 -9
- package/dist/q2-tecton-elements/q2-pagination.entry.js +51 -49
- package/dist/q2-tecton-elements/q2-pill.entry.js +22 -17
- package/dist/q2-tecton-elements/q2-radio-group.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-radio.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-relative-time.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-resize-observer.entry.js +13 -13
- package/dist/q2-tecton-elements/q2-search.entry.js +31 -31
- package/dist/q2-tecton-elements/q2-section.entry.js +20 -20
- package/dist/q2-tecton-elements/q2-select.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-stepper-pane.entry.js +10 -10
- package/dist/q2-tecton-elements/q2-stepper-vertical.entry.js +9 -9
- package/dist/q2-tecton-elements/q2-stepper.entry.js +45 -45
- package/dist/q2-tecton-elements/q2-surface.entry.js +15 -15
- package/dist/q2-tecton-elements/q2-tab-container.entry.js +20 -20
- package/dist/q2-tecton-elements/q2-tab-pane.entry.js +9 -9
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
- package/dist/q2-tecton-elements/q2-textarea.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-toast.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-tooltip.entry.js +1 -1
- package/dist/q2-tecton-elements/{sectorHelper--RMGWGAy.js → sectorHelper-DBtkWtpl.js} +56 -56
- package/dist/q2-tecton-elements/tecton-tab-pane.entry.js +9 -9
- package/dist/types/components/q2-action-sheet/q2-action-sheet.d.ts +21 -1
- package/dist/types/components/q2-action-sheet/test/q2-action-sheet-test.vr.d.ts +1 -0
- package/dist/types/components/q2-avatar/q2-avatar.d.ts +5 -0
- package/dist/types/components/q2-btn/q2-btn.d.ts +7 -3
- package/dist/types/components/q2-calendar/q2-calendar.d.ts +10 -2
- package/dist/types/components/q2-carousel/q2-carousel.d.ts +5 -0
- package/dist/types/components/q2-chart-area/q2-chart-area.d.ts +11 -2
- package/dist/types/components/q2-chart-bar/q2-chart-bar.d.ts +9 -0
- package/dist/types/components/q2-chart-donut/q2-chart-donut.d.ts +1 -0
- package/dist/types/components/q2-checkbox/q2-checkbox.d.ts +4 -3
- package/dist/types/components/q2-checkbox-group/q2-checkbox-group.d.ts +4 -2
- package/dist/types/components/q2-date-calendar/q2-date-calendar.d.ts +122 -0
- package/dist/types/components/q2-date-calendar/test/q2-date-calendar-test.vr.d.ts +1 -0
- package/dist/types/components/q2-date-picker/q2-date-picker.d.ts +304 -0
- package/dist/types/components/q2-date-picker/test/q2-date-picker-test.vr.d.ts +1 -0
- package/dist/types/components/q2-dropdown/q2-dropdown.d.ts +3 -3
- package/dist/types/components/q2-editable-field/q2-editable-field.d.ts +14 -1
- package/dist/types/components/q2-input/q2-input.d.ts +4 -2
- package/dist/types/components/q2-item/q2-item.d.ts +3 -0
- package/dist/types/components/q2-option-list/q2-option-list.d.ts +1 -0
- package/dist/types/components/q2-popover/q2-popover.d.ts +4 -0
- package/dist/types/components/q2-radio/q2-radio.d.ts +3 -2
- package/dist/types/components/q2-radio-group/q2-radio-group.d.ts +4 -2
- package/dist/types/components/q2-search/q2-search.d.ts +3 -1
- package/dist/types/components/q2-select/q2-select.d.ts +4 -2
- package/dist/types/components/q2-textarea/q2-textarea.d.ts +4 -2
- package/dist/types/components.d.ts +858 -49
- package/dist/types/global.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/utils/chart-keyboard.d.ts +16 -0
- package/dist/types/utils/date-picker/date-picker-helpers.d.ts +47 -0
- package/dist/types/utils/date-picker/date-picker-types.d.ts +42 -0
- package/package.json +3 -3
- package/dist/cjs/q2-optgroup.cjs.entry.js +0 -70
- package/dist/esm/q2-optgroup.entry.js +0 -68
- package/dist/q2-tecton-elements/q2-optgroup.entry.js +0 -88
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { d as e } from "./index-O1A-ZSZs.js";
|
|
2
|
+
|
|
3
|
+
import { l as t } from "./index-CP8pXJ-l.js";
|
|
4
|
+
|
|
5
|
+
const a = "MM/DD/YYYY", n = [ a, "DD/MM/YYYY", "MM-DD-YYYY", "DD-MM-YYYY", "YYYY-MM-DD" ], r = {
|
|
6
|
+
"Choose a date": "tecton.element.datePicker.calendarLabel",
|
|
7
|
+
"Dates are shown in your local time zone.": "tecton.element.datePicker.disclaimer.localTimeZone"
|
|
8
|
+
}, o = /^\d{4}-\d{2}-\d{2}$/, s = /^(\d{4})-(\d{1,2})-(\d{1,2})(?:T.*)?$/, i = /^(\d{1,2})\/(\d{1,2})\/(\d{2}|\d{4})$/;
|
|
9
|
+
|
|
10
|
+
/** Determines a year for a month and day when typeable input omits the year. */
|
|
11
|
+
function buildInputDate(t, a) {
|
|
12
|
+
const [n, r, o] = t.split("/");
|
|
13
|
+
if (!n) return;
|
|
14
|
+
if (!r) return new Date((new Date).getFullYear(), Number(n) - 1, 1);
|
|
15
|
+
if (Number(r) <= 0) return;
|
|
16
|
+
const s = 4 === (null == o ? void 0 : o.length) ? Number(o) : Number(function(e, t, a) {
|
|
17
|
+
const n = `${e.padStart(2, "0")}/${t.padStart(2, "0")}`, r = new Date, o = `${r.getMonth() + 1}`.padStart(2, "0") + `/${r.getDate()}`.padStart(2, "0");
|
|
18
|
+
let s = r.getFullYear();
|
|
19
|
+
"future" === a && o > n && s++;
|
|
20
|
+
"past" === a && o < n && s--;
|
|
21
|
+
return `${s}`;
|
|
22
|
+
}(n, r, a)), i = new Date(s, Number(n) - 1, Number(r));
|
|
23
|
+
return e.isValid(i) ? i : void 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** Formats a valid date as an ISO calendar date. */ function formatDateISO(t) {
|
|
27
|
+
if (e.isValid(t)) return e.formatISO(t, {
|
|
28
|
+
representation: "date"
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** Formats a date for an accessible day label. */ function formatDateFull(t) {
|
|
33
|
+
if (e.isValid(t)) return new Intl.DateTimeFormat("en-US", {
|
|
34
|
+
month: "long",
|
|
35
|
+
day: "numeric",
|
|
36
|
+
year: "numeric",
|
|
37
|
+
weekday: "long",
|
|
38
|
+
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
39
|
+
}).format(t);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/** Returns localized abbreviated day names beginning with Sunday. */ function getDays() {
|
|
43
|
+
return [ t("tecton.element.calendar.days.short.Sunday"), t("tecton.element.calendar.days.short.Monday"), t("tecton.element.calendar.days.short.Tuesday"), t("tecton.element.calendar.days.short.Wednesday"), t("tecton.element.calendar.days.short.Thursday"), t("tecton.element.calendar.days.short.Friday"), t("tecton.element.calendar.days.short.Saturday") ];
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** Returns localized full day names beginning with Sunday. */ function getDaysOfWeek() {
|
|
47
|
+
return [ t("tecton.element.calendar.days.Sunday"), t("tecton.element.calendar.days.Monday"), t("tecton.element.calendar.days.Tuesday"), t("tecton.element.calendar.days.Wednesday"), t("tecton.element.calendar.days.Thursday"), t("tecton.element.calendar.days.Friday"), t("tecton.element.calendar.days.Saturday") ];
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/** Parses the date picker's public ISO-only value contract. */ function parseDatePickerValue(e) {
|
|
51
|
+
if (!e || !o.test(e)) return;
|
|
52
|
+
const [t, a, n] = e.split("-").map(Number);
|
|
53
|
+
return dateFromParts(t, a, n);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** Normalizes a legacy string or Moment-like value for the date picker's ISO-only calendar. */ function normalizeDatePickerValue(t) {
|
|
57
|
+
if (!t) return;
|
|
58
|
+
let a;
|
|
59
|
+
if (t instanceof Date) a = t; else if (function(e) {
|
|
60
|
+
return "string" != typeof e && "function" == typeof (null == e ? void 0 : e.toDate);
|
|
61
|
+
}
|
|
62
|
+
/** Formats a date using one of the date picker's supported numeric display formats. */ (t)) try {
|
|
63
|
+
a = t.toDate();
|
|
64
|
+
} catch (e) {
|
|
65
|
+
return;
|
|
66
|
+
} else {
|
|
67
|
+
const n = t.trim();
|
|
68
|
+
if (!n) return;
|
|
69
|
+
if (a = parseDatePickerValue(n), !a) {
|
|
70
|
+
const t = n.match(s), r = n.match(i);
|
|
71
|
+
if (t) a = dateFromParts(Number(t[1]), Number(t[2]), Number(t[3])); else if (r) {
|
|
72
|
+
const e = Number(r[3]);
|
|
73
|
+
a = dateFromParts(e < 100 ? (e >= 69 ? 1900 : 2e3) + e : e, Number(r[1]), Number(r[2]));
|
|
74
|
+
} else {
|
|
75
|
+
const t = new Date(n);
|
|
76
|
+
a = e.isValid(t) ? dateFromParts(t.getFullYear(), t.getMonth() + 1, t.getDate()) : void 0;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return formatDateISO(a);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/** Returns the month and year used to initialize the date picker grid. */ function setupMonthYear(e = new Date) {
|
|
84
|
+
return {
|
|
85
|
+
monthIndex: e.getMonth(),
|
|
86
|
+
selectedYear: e.getFullYear()
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/** Returns the enabled day indexes represented by a calendar checksum. */
|
|
91
|
+
/** Determines whether a date is present in a whitelist. */
|
|
92
|
+
function validateAgainstWhitelist(t, a) {
|
|
93
|
+
return t.some((t => e.isSameDay(t, a)));
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
function parseDatePickerValues(e) {
|
|
97
|
+
return (e || []).map(parseDatePickerValue).filter((e => !!e));
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function dateFromParts(e, t, a) {
|
|
101
|
+
const n = new Date(0);
|
|
102
|
+
if (n.setFullYear(e, t - 1, a), n.setHours(0, 0, 0, 0), n.getFullYear() === e && n.getMonth() === t - 1 && n.getDate() === a) return n;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
function formatDisplayDate(e, t) {
|
|
106
|
+
const a = t.includes("-") ? "-" : "/", n = `${e.getMonth() + 1}`.padStart(2, "0"), r = `${e.getDate()}`.padStart(2, "0"), o = `${e.getFullYear()}`;
|
|
107
|
+
return (t.startsWith("YYYY") ? [ o, n, r ] : t.startsWith("DD") ? [ r, n, o ] : [ n, r, o ]).join(a);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/** Formats a date using the legacy Moment-style tokens accepted by q2-calendar. */ function formatLegacyDisplayDate(t, a) {
|
|
111
|
+
const n = a.replace(/[d]/g, "E").replace(/[D]/g, "d").replace(/[Y]/g, "y").replace(/[l]/g, "P").replace(/[W]/g, "I");
|
|
112
|
+
return e.format(t, n);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/** Determines whether a date satisfies every configured selection constraint. */ function isDateSelectable(t, a) {
|
|
116
|
+
const n = new Date(a.cutoffTime || ""), r =
|
|
117
|
+
/** Determines whether a date satisfies the configured bounds and cutoff. */
|
|
118
|
+
function(t, a, n) {
|
|
119
|
+
const r = e.isAfter(null == t ? void 0 : t.startDate, n), o = e.isBefore(null == t ? void 0 : t.endDate, n), s = e.isSameDay(a, n) && e.isAfter(a, null == t ? void 0 : t.cutOffTime);
|
|
120
|
+
return !(r || s || o);
|
|
121
|
+
}
|
|
122
|
+
/** Determines whether a date's weekday is enabled. */ ({
|
|
123
|
+
startDate: parseDatePickerValue(a.startDate),
|
|
124
|
+
endDate: parseDatePickerValue(a.endDate),
|
|
125
|
+
cutOffTime: e.isValid(n) ? n : void 0
|
|
126
|
+
}, new Date, t), o = parseDatePickerValues(a.validDates), s = (null == o ? void 0 : o.length) ? validateAgainstWhitelist(o, t) : function(e, t) {
|
|
127
|
+
return e.includes(t.getDay());
|
|
128
|
+
}
|
|
129
|
+
/** Determines whether a date is absent from a blacklist. */ (function(e = 127) {
|
|
130
|
+
const t = [];
|
|
131
|
+
for (let a = 0; a < 7; a++) e & 1 << a && t.push(a);
|
|
132
|
+
return e > 0 ? t : [];
|
|
133
|
+
}(a.daysOfWeekChecksum), t);
|
|
134
|
+
return r && s && function(e, t) {
|
|
135
|
+
return !validateAgainstWhitelist(e, t);
|
|
136
|
+
}(parseDatePickerValues(a.invalidDates), t);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/** Determines whether every date in an inclusive range is selectable. */ function isRangeSelectable(t, a, n) {
|
|
140
|
+
for (let r = t; r.getTime() <= a.getTime(); r = e.addDays(r, 1)) if (!isDateSelectable(r, n)) return !1;
|
|
141
|
+
return !0;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/** Resolves a date-picker localization key or mapped default string. */ function localizeDatePickerString(e, a = {}) {
|
|
145
|
+
return e ? t(r[e] || e, a) : "";
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/** Returns a supported display format, falling back to the date-picker default. */ function normalizeDisplayFormat(e) {
|
|
149
|
+
const t = null == e ? void 0 : e.toUpperCase();
|
|
150
|
+
return n.includes(t) ? t : a;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export { getDaysOfWeek as a, formatDisplayDate as b, isRangeSelectable as c, formatDateFull as d, normalizeDatePickerValue as e, formatDateISO as f, getDays as g, formatLegacyDisplayDate as h, isDateSelectable as i, buildInputDate as j, localizeDatePickerString as l, normalizeDisplayFormat as n, parseDatePickerValue as p, setupMonthYear as s }
|
|
@@ -248,7 +248,7 @@ const resizeIframe = () => {
|
|
|
248
248
|
var e, n;
|
|
249
249
|
return null === (n = null === (e = window.TectonElements) || void 0 === e ? void 0 : e.resizeIframe) || void 0 === n ? void 0 : n.call(e);
|
|
250
250
|
}, handleColor = e => {
|
|
251
|
-
!e.intent && [ "primary", "secondary" ].includes(e.color) && (e.intent =
|
|
251
|
+
!e.intent && [ "primary", "secondary" ].includes(e.color) && (e.intent = e.color,
|
|
252
252
|
e.color = void 0);
|
|
253
253
|
}, getAllText = async (e, n = {}) => {
|
|
254
254
|
if (!e) return "";
|
|
@@ -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 }
|