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
|
@@ -0,0 +1,438 @@
|
|
|
1
|
+
import { r as a, c as t, h as e, g as r } from "./index-Cqkz7Bnm.js";
|
|
2
|
+
|
|
3
|
+
import { d as i } from "./index-O1A-ZSZs.js";
|
|
4
|
+
|
|
5
|
+
import { l as n } from "./index-CP8pXJ-l.js";
|
|
6
|
+
|
|
7
|
+
import { g as d, a as s, p as o, f as c, n as l, l as h, b as p, i as v, c as g, s as f, d as b } from "./date-picker-helpers-D8QnN_AS.js";
|
|
8
|
+
|
|
9
|
+
const u = class {
|
|
10
|
+
constructor(e) {
|
|
11
|
+
a(this, e), this.tctCalendarCancel = t(this, "tctCalendarCancel", 1), this.tctCalendarCommit = t(this, "tctCalendarCommit", 1),
|
|
12
|
+
this.tctCalendarDismiss = t(this, "tctCalendarDismiss", 1), this.tctCalendarError = t(this, "tctCalendarError", 1),
|
|
13
|
+
this.tctChange = t(this, "tctChange", 1),
|
|
14
|
+
// #region Own Properties
|
|
15
|
+
this.dayAbbrStrings = d(), this.dayStrings = s(), this.rangeError = "",
|
|
16
|
+
/** Uses the action-sheet calendar presentation. */
|
|
17
|
+
this.actionSheet = !1,
|
|
18
|
+
/** Controls whether navigation appears above or below the date grid. */
|
|
19
|
+
this.direction = "down",
|
|
20
|
+
/** Disables calendar interaction. */
|
|
21
|
+
this.disabled = !1,
|
|
22
|
+
/** Formats calendar and range labels using the provided locale. */
|
|
23
|
+
this.locale = document.documentElement.lang || "en-US",
|
|
24
|
+
/** Selects single-date or range calendar behavior. */
|
|
25
|
+
this.mode = "single",
|
|
26
|
+
/** Indicates that a new calendar session has opened. */
|
|
27
|
+
this.open = !1,
|
|
28
|
+
/** Prevents calendar selection while retaining calendar visibility. */
|
|
29
|
+
this.readonly = !1, this.onDateHover = a => {
|
|
30
|
+
const t = a.currentTarget;
|
|
31
|
+
if (t.disabled || !this.isRangeMode || !this.rangeDraftStart || this.rangeDraftEnd) return;
|
|
32
|
+
const e = o(t.dataset.date);
|
|
33
|
+
this.rangeHoverDate = i.isValid(e) && this.isDateValid(e) ? e : void 0;
|
|
34
|
+
}, this.onDateHoverEnd = () => {
|
|
35
|
+
this.rangeHoverDate = void 0;
|
|
36
|
+
}, this.onDateKeydown = a => {
|
|
37
|
+
const t = a.target.closest("button[data-date]");
|
|
38
|
+
if (!t) return;
|
|
39
|
+
const e = o(t.dataset.date);
|
|
40
|
+
let r, n;
|
|
41
|
+
switch (a.key) {
|
|
42
|
+
case "Escape":
|
|
43
|
+
return a.preventDefault(), this.resetRangeDraft(), void this.tctCalendarDismiss.emit();
|
|
44
|
+
|
|
45
|
+
case "ArrowUp":
|
|
46
|
+
r = i.addDays(e, -7), n = -1;
|
|
47
|
+
break;
|
|
48
|
+
|
|
49
|
+
case "ArrowDown":
|
|
50
|
+
r = i.addDays(e, 7), n = 1;
|
|
51
|
+
break;
|
|
52
|
+
|
|
53
|
+
case "ArrowLeft":
|
|
54
|
+
r = i.addDays(e, -1), n = -1;
|
|
55
|
+
break;
|
|
56
|
+
|
|
57
|
+
case "ArrowRight":
|
|
58
|
+
r = i.addDays(e, 1), n = 1;
|
|
59
|
+
break;
|
|
60
|
+
|
|
61
|
+
case "Home":
|
|
62
|
+
r = i.addDays(e, -e.getDay()), n = 1;
|
|
63
|
+
break;
|
|
64
|
+
|
|
65
|
+
case "End":
|
|
66
|
+
r = i.addDays(e, 6 - e.getDay()), n = -1;
|
|
67
|
+
break;
|
|
68
|
+
|
|
69
|
+
case "PageUp":
|
|
70
|
+
r = new Date(e.getFullYear() - (a.shiftKey ? 1 : 0), e.getMonth() - (a.shiftKey ? 0 : 1), e.getDate()),
|
|
71
|
+
n = -1;
|
|
72
|
+
break;
|
|
73
|
+
|
|
74
|
+
case "PageDown":
|
|
75
|
+
r = new Date(e.getFullYear() + (a.shiftKey ? 1 : 0), e.getMonth() + (a.shiftKey ? 0 : 1), e.getDate()),
|
|
76
|
+
n = 1;
|
|
77
|
+
break;
|
|
78
|
+
|
|
79
|
+
default:
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
a.preventDefault();
|
|
83
|
+
const d = this.findValidNavigationDate(r, n);
|
|
84
|
+
d && this.activateDate(d);
|
|
85
|
+
}, this.onDateSelection = a => {
|
|
86
|
+
const t = a.target.closest("button[data-date]");
|
|
87
|
+
!t || t.disabled || this.disabled || this.readonly || this.selectDate(o(t.dataset.date));
|
|
88
|
+
}, this.onRangeCancel = () => {
|
|
89
|
+
this.resetRangeDraft(), this.tctCalendarCancel.emit();
|
|
90
|
+
}, this.onRangeCommit = () => {
|
|
91
|
+
!this.disabled && !this.readonly && this.rangeDraftStart && this.rangeDraftEnd && (this.isRangeValid(this.rangeDraftStart, this.rangeDraftEnd) ? (this.setRangeError(""),
|
|
92
|
+
this.emitCommit({
|
|
93
|
+
rangeStart: c(this.rangeDraftStart),
|
|
94
|
+
rangeEnd: c(this.rangeDraftEnd)
|
|
95
|
+
})) : this.setRangeError(this.rangeValidationError));
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
// #endregion
|
|
99
|
+
// #region Component Lifecycle Events
|
|
100
|
+
connectedCallback() {
|
|
101
|
+
this.resetCalendarSession();
|
|
102
|
+
}
|
|
103
|
+
// #endregion
|
|
104
|
+
// #region Listeners
|
|
105
|
+
focusHandler(a) {
|
|
106
|
+
var t;
|
|
107
|
+
a.target === a.currentTarget && this.focusDate((null === (t = a.detail) || void 0 === t ? void 0 : t.value) || this.rovingDate);
|
|
108
|
+
}
|
|
109
|
+
// #endregion
|
|
110
|
+
// #region Public Methods API
|
|
111
|
+
/** Moves the visible month to the provided date and focuses that day. */
|
|
112
|
+
async focusDate(a) {
|
|
113
|
+
const t = "string" == typeof a ? o(a) : a;
|
|
114
|
+
i.isValid(t) && (this.activeDate = t, this.goToMonthYear(t.getMonth(), t.getFullYear()),
|
|
115
|
+
requestAnimationFrame((() => this.focusRenderedDate(t))));
|
|
116
|
+
}
|
|
117
|
+
/** Selects the provided date when it satisfies the calendar constraints. */ async setValue(a) {
|
|
118
|
+
const t = "string" == typeof a ? o(a) : a;
|
|
119
|
+
i.isValid(t) && this.isDateValid(t) && this.selectDate(t);
|
|
120
|
+
}
|
|
121
|
+
// #endregion
|
|
122
|
+
// #region Watchers
|
|
123
|
+
constraintsChanged() {
|
|
124
|
+
this.setRangeError("");
|
|
125
|
+
}
|
|
126
|
+
modeChanged() {
|
|
127
|
+
this.resetCalendarSession();
|
|
128
|
+
}
|
|
129
|
+
openChanged(a) {
|
|
130
|
+
a && this.resetCalendarSession();
|
|
131
|
+
}
|
|
132
|
+
rangeChanged() {
|
|
133
|
+
this.isRangeMode && this.resetCalendarSession();
|
|
134
|
+
}
|
|
135
|
+
valueChanged() {
|
|
136
|
+
this.isRangeMode || this.resetCalendarSession();
|
|
137
|
+
}
|
|
138
|
+
// #endregion
|
|
139
|
+
// #region Local Methods
|
|
140
|
+
get constraints() {
|
|
141
|
+
return {
|
|
142
|
+
cutoffTime: this.cutoffTime,
|
|
143
|
+
daysOfWeekChecksum: this.daysOfWeekChecksum,
|
|
144
|
+
endDate: this.endDate,
|
|
145
|
+
invalidDates: this.invalidDates,
|
|
146
|
+
startDate: this.startDate,
|
|
147
|
+
validDates: this.validDates
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
get currentWeeks() {
|
|
151
|
+
return this.dateList.reduce(((a, t, e) => {
|
|
152
|
+
const r = Math.floor(e / 7);
|
|
153
|
+
return a[r] || (a[r] = []), a[r].push(t), a;
|
|
154
|
+
}), []);
|
|
155
|
+
}
|
|
156
|
+
get dateList() {
|
|
157
|
+
const {monthIndex: a, selectedYear: t} = this.selectedMonthYear, e = new Date(t, a, 1), r = new Date(t, a + 1, 0).getDate(), n = 7 * Math.ceil((e.getDay() + r) / 7), d = this.actionSheet ? 42 : n, s = new Date(t, a, 1 - e.getDay());
|
|
158
|
+
return Array.from({
|
|
159
|
+
length: d
|
|
160
|
+
}, ((t, e) => {
|
|
161
|
+
const r = i.addDays(s, e), n = r.getMonth() !== a, d = this.rangeDraftStart, o = this.rangeDraftEnd || this.rangeHoverDate, c = d && o && d.getTime() > o.getTime() ? o : d, l = d && o && d.getTime() > o.getTime() ? d : o, h = this.isRangeMode && !!c && i.isSameDay(r, c), p = this.isRangeMode && !!l && i.isSameDay(r, l), v = this.isRangeMode ? h || p : !!this.selectedDate && i.isSameDay(r, this.selectedDate), g = this.isRangeMode && !!c && !!l && r.getTime() > c.getTime() && r.getTime() < l.getTime(), f = i.isSameDay(r, new Date), b = this.isDateValid(r), u = [ "cal-day" ];
|
|
162
|
+
return n && u.push("is-outside"), g && u.push("in-range"), v && u.push("is-selected"),
|
|
163
|
+
h && u.push("range-start"), (p || h && !l) && u.push("range-end"), f && u.push("is-today"),
|
|
164
|
+
b || u.push("is-disabled"), {
|
|
165
|
+
classList: u.join(" "),
|
|
166
|
+
date: r,
|
|
167
|
+
isOutside: n,
|
|
168
|
+
isSelected: v,
|
|
169
|
+
isToday: f,
|
|
170
|
+
isValid: b
|
|
171
|
+
};
|
|
172
|
+
}));
|
|
173
|
+
}
|
|
174
|
+
get isRangeMode() {
|
|
175
|
+
return "range" === this.mode || "range-typeable" === this.mode;
|
|
176
|
+
}
|
|
177
|
+
get normalizedDisplayFormat() {
|
|
178
|
+
return l(this.displayFormat);
|
|
179
|
+
}
|
|
180
|
+
get rangeConfirmDisabled() {
|
|
181
|
+
return !this.rangeDraftStart || !this.rangeDraftEnd;
|
|
182
|
+
}
|
|
183
|
+
get rangeEndDate() {
|
|
184
|
+
const a = o(this.rangeEnd);
|
|
185
|
+
return i.isValid(a) ? a : void 0;
|
|
186
|
+
}
|
|
187
|
+
get rangeSummary() {
|
|
188
|
+
return this.rangeDraftStart && this.rangeDraftEnd ? `${this.formatRangeDate(this.rangeDraftStart)} – ${this.formatRangeDate(this.rangeDraftEnd)}` : this.rangeDraftStart ? `${this.formatRangeDate(this.rangeDraftStart)} – ${h("tecton.element.datePicker.range.selectEnd")}` : h("tecton.element.datePicker.range.selectStart");
|
|
189
|
+
}
|
|
190
|
+
get rangeValidationError() {
|
|
191
|
+
return h("tecton.element.datePicker.validation.rangeUnavailable");
|
|
192
|
+
}
|
|
193
|
+
get rovingDate() {
|
|
194
|
+
const {monthIndex: a, selectedYear: t} = this.selectedMonthYear, e = [ this.activeDate, this.isRangeMode ? this.rangeDraftStart : this.selectedDate ];
|
|
195
|
+
for (const r of e) if ((null == r ? void 0 : r.getMonth()) === a && (null == r ? void 0 : r.getFullYear()) === t) return r;
|
|
196
|
+
const r = new Date;
|
|
197
|
+
return r.getMonth() === a && r.getFullYear() === t ? r : new Date(t, a, 1);
|
|
198
|
+
}
|
|
199
|
+
get selectedDate() {
|
|
200
|
+
const a = o(this.isRangeMode ? this.rangeStart : this.value);
|
|
201
|
+
return i.isValid(a) ? a : void 0;
|
|
202
|
+
}
|
|
203
|
+
get title() {
|
|
204
|
+
const {monthIndex: a, selectedYear: t} = this.selectedMonthYear;
|
|
205
|
+
return new Intl.DateTimeFormat(this.locale, {
|
|
206
|
+
month: "long",
|
|
207
|
+
year: "numeric"
|
|
208
|
+
}).format(new Date(t, a, 1));
|
|
209
|
+
}
|
|
210
|
+
activateDate(a) {
|
|
211
|
+
this.activeDate = a, this.goToMonthYear(a.getMonth(), a.getFullYear()), requestAnimationFrame((() => this.focusRenderedDate(a)));
|
|
212
|
+
}
|
|
213
|
+
emitCommit(a) {
|
|
214
|
+
this.tctCalendarCommit.emit(a), this.tctChange.emit(a);
|
|
215
|
+
}
|
|
216
|
+
findValidNavigationDate(a, t) {
|
|
217
|
+
let e = a;
|
|
218
|
+
for (let a = 0; a < 366; a++) {
|
|
219
|
+
if (this.isDateValid(e)) return e;
|
|
220
|
+
e = i.addDays(e, t);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
focusRenderedDate(a) {
|
|
224
|
+
var t, e, r;
|
|
225
|
+
null === (r = null === (e = null === (t = this.hostElement) || void 0 === t ? void 0 : t.shadowRoot) || void 0 === e ? void 0 : e.querySelector(`button[data-date="${c(a)}"]`)) || void 0 === r || r.focus();
|
|
226
|
+
}
|
|
227
|
+
formatRangeDate(a) {
|
|
228
|
+
return this.displayFormat ? p(a, this.normalizedDisplayFormat) : new Intl.DateTimeFormat(this.locale, {
|
|
229
|
+
year: "numeric",
|
|
230
|
+
month: "2-digit",
|
|
231
|
+
day: "2-digit"
|
|
232
|
+
}).format(a);
|
|
233
|
+
}
|
|
234
|
+
goToMonthYear(a, t) {
|
|
235
|
+
const e = new Date(t, a, 1);
|
|
236
|
+
this.selectedMonthYear = {
|
|
237
|
+
monthIndex: e.getMonth(),
|
|
238
|
+
selectedYear: e.getFullYear()
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
isDateValid(a) {
|
|
242
|
+
return v(a, this.constraints);
|
|
243
|
+
}
|
|
244
|
+
isRangeValid(a, t) {
|
|
245
|
+
return g(a, t, this.constraints);
|
|
246
|
+
}
|
|
247
|
+
onNavigate(a) {
|
|
248
|
+
const {monthIndex: t, selectedYear: e} = this.selectedMonthYear, r = {
|
|
249
|
+
previousYear: [ t, e - 1 ],
|
|
250
|
+
previousMonth: [ t - 1, e ],
|
|
251
|
+
nextMonth: [ t + 1, e ],
|
|
252
|
+
nextYear: [ t, e + 1 ]
|
|
253
|
+
};
|
|
254
|
+
this.goToMonthYear(...r[a]);
|
|
255
|
+
}
|
|
256
|
+
resetCalendarSession() {
|
|
257
|
+
const a = this.selectedDate;
|
|
258
|
+
this.activeDate = a, this.selectedMonthYear = f(a), this.resetRangeDraft();
|
|
259
|
+
}
|
|
260
|
+
resetRangeDraft() {
|
|
261
|
+
if (this.setRangeError(""), this.rangeHoverDate = void 0, !this.selectedDate || !this.rangeEndDate) return this.rangeDraftStart = void 0,
|
|
262
|
+
void (this.rangeDraftEnd = void 0);
|
|
263
|
+
[this.rangeDraftStart, this.rangeDraftEnd] = [ this.selectedDate, this.rangeEndDate ].sort(((a, t) => a.getTime() - t.getTime()));
|
|
264
|
+
}
|
|
265
|
+
selectDate(a) {
|
|
266
|
+
if (this.isDateValid(a)) {
|
|
267
|
+
if (this.activeDate = a, this.isRangeMode) return this.setRangeError(""), !this.rangeDraftStart || this.rangeDraftEnd ? (this.rangeDraftStart = a,
|
|
268
|
+
this.rangeDraftEnd = void 0) : a.getTime() < this.rangeDraftStart.getTime() ? (this.rangeDraftEnd = this.rangeDraftStart,
|
|
269
|
+
this.rangeDraftStart = a) : this.rangeDraftEnd = a, this.rangeHoverDate = void 0,
|
|
270
|
+
this.goToMonthYear(a.getMonth(), a.getFullYear()), void requestAnimationFrame((() => this.focusRenderedDate(a)));
|
|
271
|
+
this.goToMonthYear(a.getMonth(), a.getFullYear()), this.emitCommit({
|
|
272
|
+
value: c(a)
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
setRangeError(a) {
|
|
277
|
+
this.rangeError !== a && (this.rangeError = a, this.tctCalendarError.emit(a));
|
|
278
|
+
}
|
|
279
|
+
// #endregion
|
|
280
|
+
// #region Render Methods
|
|
281
|
+
renderNavigation() {
|
|
282
|
+
return [ e("div", {
|
|
283
|
+
class: "cal-nav-controls cal-nav-controls-left"
|
|
284
|
+
}, this.renderNavigationButton("previousYear"), this.renderNavigationButton("previousMonth")), e("div", {
|
|
285
|
+
class: "cal-nav-title",
|
|
286
|
+
id: "date-picker-label",
|
|
287
|
+
"aria-live": "polite"
|
|
288
|
+
}, this.title), e("div", {
|
|
289
|
+
class: "cal-nav-controls cal-nav-controls-right"
|
|
290
|
+
}, this.renderNavigationButton("nextMonth"), this.renderNavigationButton("nextYear")) ];
|
|
291
|
+
}
|
|
292
|
+
renderNavigationButton(a) {
|
|
293
|
+
const t = "previousYear" === a || "nextYear" === a, r = "previousYear" === a || "previousMonth" === a;
|
|
294
|
+
return e("q2-btn", {
|
|
295
|
+
class: `cal-nav-btn ${a}`,
|
|
296
|
+
"hide-label": !0,
|
|
297
|
+
label: n(`tecton.element.calendar.${a}`),
|
|
298
|
+
onTctClick: () => this.onNavigate(a),
|
|
299
|
+
"test-id": `${a}Button`
|
|
300
|
+
}, e("q2-icon", {
|
|
301
|
+
type: `chevron-${t ? "double-" : ""}${r ? "left" : "right"}`
|
|
302
|
+
}));
|
|
303
|
+
}
|
|
304
|
+
render() {
|
|
305
|
+
const a = !this.actionSheet && "up" === this.direction, t = this.rovingDate, r = this.rangeValidationError;
|
|
306
|
+
return e("div", {
|
|
307
|
+
key: "84c278bd6817625fcf5f70528000edcc84d116a6",
|
|
308
|
+
class: `cal-panel direction-${a ? "up" : "down"}${this.actionSheet ? " is-action-sheet" : ""}`,
|
|
309
|
+
role: this.actionSheet ? void 0 : "dialog",
|
|
310
|
+
"aria-label": this.actionSheet ? void 0 : h(this.accessibleLabel || this.calendarLabel || "Choose a date")
|
|
311
|
+
}, this.calendarLabel && !this.actionSheet && e("p", {
|
|
312
|
+
key: "9a466d3509ed7ce45949039cfa11ce8485c4e278",
|
|
313
|
+
class: "calendar-label"
|
|
314
|
+
}, h(this.calendarLabel)), !a && e("div", {
|
|
315
|
+
key: "a8c6ef4c4098c81bb79cd2ca450f38c56c99c51d",
|
|
316
|
+
class: "cal-nav"
|
|
317
|
+
}, this.renderNavigation()), e("div", {
|
|
318
|
+
key: "45e7f43ee502ea2c19049112860b3690313f53d5",
|
|
319
|
+
class: "cal-grid",
|
|
320
|
+
role: "grid",
|
|
321
|
+
"aria-labelledby": "date-picker-label"
|
|
322
|
+
}, e("div", {
|
|
323
|
+
key: "2a1a4caebfb72b601b9dd282550b519a3f610329",
|
|
324
|
+
role: "rowgroup"
|
|
325
|
+
}, e("div", {
|
|
326
|
+
key: "6187b5b5b7391e389a4af9403a2b8c63f9606e35",
|
|
327
|
+
class: "cal-row cal-weekdays",
|
|
328
|
+
role: "row"
|
|
329
|
+
}, this.dayAbbrStrings.map(((a, t) => e("div", {
|
|
330
|
+
class: "cal-dow",
|
|
331
|
+
role: "columnheader",
|
|
332
|
+
"aria-label": this.dayStrings[t]
|
|
333
|
+
}, a))))), e("div", {
|
|
334
|
+
key: "f2c274adc93798dd8c20762a09fcc95bcb77992f",
|
|
335
|
+
class: "cal-days",
|
|
336
|
+
role: "rowgroup",
|
|
337
|
+
onClick: this.onDateSelection,
|
|
338
|
+
onKeyDown: this.onDateKeydown,
|
|
339
|
+
onMouseLeave: this.onDateHoverEnd
|
|
340
|
+
}, this.currentWeeks.map((a => e("div", {
|
|
341
|
+
class: "cal-row",
|
|
342
|
+
role: "row"
|
|
343
|
+
}, a.map((a => e("div", {
|
|
344
|
+
role: "gridcell",
|
|
345
|
+
"aria-selected": `${a.isSelected}`
|
|
346
|
+
}, e("button", {
|
|
347
|
+
type: "button",
|
|
348
|
+
class: a.classList,
|
|
349
|
+
"data-date": c(a.date),
|
|
350
|
+
disabled: !a.isValid,
|
|
351
|
+
tabindex: i.isSameDay(a.date, t) ? 0 : -1,
|
|
352
|
+
"aria-disabled": a.isValid ? void 0 : "true",
|
|
353
|
+
"aria-current": a.isToday ? "date" : void 0,
|
|
354
|
+
"aria-label": b(a.date),
|
|
355
|
+
onMouseEnter: this.onDateHover
|
|
356
|
+
}, a.date.getDate()))))))))), a && e("div", {
|
|
357
|
+
key: "14a8abe8669e403c4745eaf256783f37caf7fc43",
|
|
358
|
+
class: "cal-nav"
|
|
359
|
+
}, this.renderNavigation()), this.disclaimer && e("div", {
|
|
360
|
+
key: "f3ab74f66fca52d2499f52d20fdfd8a86cc154bc",
|
|
361
|
+
class: "calendar-disclaimer"
|
|
362
|
+
}, h(this.disclaimer)), this.isRangeMode && e("div", {
|
|
363
|
+
key: "276c870f99275bb582b250ed1a3632f5e95c17c3",
|
|
364
|
+
class: "cal-footer"
|
|
365
|
+
}, e("div", {
|
|
366
|
+
key: "1d753811c31360780fae551cb49c190561e292ed",
|
|
367
|
+
class: "cal-footer-summary"
|
|
368
|
+
}, e("q2-message", {
|
|
369
|
+
key: "9db690009d1efa45b4e852e16a5b47ab0262c751",
|
|
370
|
+
class: "is-placeholder",
|
|
371
|
+
appearance: "minimal",
|
|
372
|
+
type: "error",
|
|
373
|
+
"aria-hidden": "true"
|
|
374
|
+
}, r), e("span", {
|
|
375
|
+
key: "c1b41f3faf70207aa8dc65c8812dc91737cfe590"
|
|
376
|
+
}, this.rangeSummary)), e("div", {
|
|
377
|
+
key: "6af2f2741335e07737e61936cd480e90eb38918b",
|
|
378
|
+
class: "cal-footer-actions"
|
|
379
|
+
}, e("q2-btn", {
|
|
380
|
+
key: "62e02cab1e110559304475a1d0c29d1fc65f1d93",
|
|
381
|
+
intent: "workflow-escape",
|
|
382
|
+
size: "small",
|
|
383
|
+
label: h("tecton.element.datePicker.action.cancel"),
|
|
384
|
+
onTctClick: this.onRangeCancel
|
|
385
|
+
}), e("q2-btn", {
|
|
386
|
+
key: "14f1286e80e92b42168e3e6abe9718d40b4ded59",
|
|
387
|
+
intent: "workflow-primary",
|
|
388
|
+
size: "small",
|
|
389
|
+
label: h("tecton.element.datePicker.action.confirm"),
|
|
390
|
+
disabled: this.rangeConfirmDisabled,
|
|
391
|
+
onTctClick: this.onRangeCommit
|
|
392
|
+
}))));
|
|
393
|
+
}
|
|
394
|
+
get hostElement() {
|
|
395
|
+
return r(this);
|
|
396
|
+
}
|
|
397
|
+
static get watchers() {
|
|
398
|
+
return {
|
|
399
|
+
cutoffTime: [ {
|
|
400
|
+
constraintsChanged: 0
|
|
401
|
+
} ],
|
|
402
|
+
daysOfWeekChecksum: [ {
|
|
403
|
+
constraintsChanged: 0
|
|
404
|
+
} ],
|
|
405
|
+
endDate: [ {
|
|
406
|
+
constraintsChanged: 0
|
|
407
|
+
} ],
|
|
408
|
+
invalidDates: [ {
|
|
409
|
+
constraintsChanged: 0
|
|
410
|
+
} ],
|
|
411
|
+
startDate: [ {
|
|
412
|
+
constraintsChanged: 0
|
|
413
|
+
} ],
|
|
414
|
+
validDates: [ {
|
|
415
|
+
constraintsChanged: 0
|
|
416
|
+
} ],
|
|
417
|
+
mode: [ {
|
|
418
|
+
modeChanged: 0
|
|
419
|
+
} ],
|
|
420
|
+
open: [ {
|
|
421
|
+
openChanged: 0
|
|
422
|
+
} ],
|
|
423
|
+
rangeEnd: [ {
|
|
424
|
+
rangeChanged: 0
|
|
425
|
+
} ],
|
|
426
|
+
rangeStart: [ {
|
|
427
|
+
rangeChanged: 0
|
|
428
|
+
} ],
|
|
429
|
+
value: [ {
|
|
430
|
+
valueChanged: 0
|
|
431
|
+
} ]
|
|
432
|
+
};
|
|
433
|
+
}
|
|
434
|
+
};
|
|
435
|
+
|
|
436
|
+
u.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}}}:host{box-sizing:border-box;display:block}:host[hidden]{display:none}.cal-panel{box-sizing:border-box;width:var(--comp-date-calendar-width, var(--tct-date-calendar-width, 360px));min-width:0;padding:var(--tct-date-calendar-padding, var(--app-scale-4x, 20px));border-radius:var(--tct-date-calendar-border-radius, var(--app-border-radius-1, 4px));background:var(--tct-date-calendar-background, var(--t-base, #ffffff));box-shadow:var(--tct-date-calendar-box-shadow, var(--app-shadow-3))}.cal-panel.is-action-sheet{width:100%;padding:0;border-radius:0;background:transparent;box-shadow:none}.calendar-label{margin:0 0 var(--tct-date-calendar-label-margin-bottom, var(--tct-scale-2, var(--app-scale-2x, 10px)));color:var(--tct-date-calendar-label-font-color, var(--tct-text, var(--t-text, #4d4d4d)));font-size:var(--tct-date-calendar-label-font-size, var(--tct-font-size, var(--app-font-size, var(--const-px-14, 14px))));font-weight:var(--tct-date-calendar-label-font-weight, var(--tct-font-weight-semibold, 600))}.cal-nav{display:grid;grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr);align-items:center;margin-bottom:var(--tct-date-calendar-navigation-margin-bottom, var(--app-scale-3x, 15px))}.cal-nav-controls{display:flex;gap:var(--tct-date-calendar-navigation-gap, 2px)}.cal-nav-controls-left{justify-self:start}.cal-nav-controls-right{justify-self:end}.cal-panel.direction-up .cal-nav{margin-top:var(--tct-date-calendar-navigation-margin-top, var(--app-scale-3x, 15px));margin-bottom:0}.cal-nav-btn{width:var(--tct-date-calendar-navigation-button-width, 40px);height:var(--tct-date-calendar-navigation-button-height, 40px);margin:0;--tct-btn-icon-width:var(--tct-date-calendar-navigation-button-width, 40px);--tct-btn-icon-height:var(--tct-date-calendar-navigation-button-height, 40px);--tct-btn-icon-size:var(--tct-date-calendar-navigation-icon-size, 22px);--tct-btn-icon-border-radius:var(--tct-date-calendar-navigation-button-border-radius, var(--app-border-radius-1, 4px))}.cal-nav-btn q2-icon{width:var(--tct-date-calendar-navigation-icon-size, 22px);min-width:var(--tct-date-calendar-navigation-icon-size, 22px);height:var(--tct-date-calendar-navigation-icon-size, 22px)}.cal-nav-title{overflow:hidden;color:var(--tct-date-calendar-month-font-color, var(--tct-text, var(--t-text, #4d4d4d)));font-size:var(--tct-date-calendar-month-font-size, var(--const-px-15, 15px));font-weight:var(--tct-date-calendar-month-font-weight, 700);text-align:center;text-overflow:ellipsis;white-space:nowrap}.cal-row{display:grid;grid-template-columns:repeat(7, 44px);gap:var(--tct-date-calendar-grid-gap, 2px);justify-content:center}.cal-days{display:flex;flex-direction:column;gap:var(--tct-date-calendar-grid-gap, 2px)}.cal-dow{padding:var(--tct-date-calendar-weekday-padding, 6px 0 10px);color:var(--tct-date-calendar-day-heading-font-color, var(--tct-gray-8, var(--t-gray-8, #747474)));font-size:var(--tct-date-calendar-day-heading-font-size, var(--app-font-size-small, var(--const-px-12, 12px)));font-weight:var(--tct-date-calendar-day-heading-font-weight, 600);text-align:center}[role=gridcell]{min-width:0}.cal-day{box-sizing:border-box;display:flex;width:100%;height:var(--tct-date-calendar-day-height, 44px);padding:0;align-items:center;justify-content:center;border:0;border-radius:var(--tct-date-calendar-day-border-radius, var(--app-border-radius-2, 8px));background:transparent;color:var(--tct-date-calendar-day-font-color, var(--t-gray-1, #0d0d0d));cursor:pointer;font:inherit;font-size:var(--tct-date-calendar-day-font-size, var(--app-font-size, var(--const-px-14, 14px)))}.cal-day:hover:not(:disabled):not(.is-selected){background:var(--tct-date-calendar-day-hover-background, var(--t-gray-14, #f2f2f2))}.cal-day:focus-visible{background:var(--tct-date-calendar-background, var(--t-base, #ffffff));outline:0;box-shadow:var(--tct-date-calendar-day-focus-ring, var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc))}.cal-day.is-outside{color:var(--tct-date-calendar-day-outside-font-color, var(--t-gray-8, #747474))}.cal-day:disabled{color:var(--tct-date-calendar-day-disabled-font-color, var(--t-gray-11, #cccccc));cursor:not-allowed}.cal-day.is-today{color:var(--tct-date-calendar-today-color, var(--t-primary, #6a4a9e));font-weight:var(--tct-date-calendar-today-font-weight, 600);box-shadow:inset 0 0 0 2px var(--tct-date-calendar-today-color, var(--t-primary, #6a4a9e))}.cal-day.is-selected{border-radius:var(--tct-date-calendar-day-selected-border-radius, var(--app-border-radius-1, 4px));background:var(--tct-date-calendar-day-selected-background, var(--t-primary, #6a4a9e));color:var(--tct-date-calendar-day-selected-font-color, var(--t-primary-text, #ffffff));font-weight:var(--tct-date-calendar-day-selected-font-weight, 700);box-shadow:none}.cal-day.in-range{border-radius:0;background:var(--tct-date-calendar-range-background, var(--t-primary-t4, #eee8f5));color:var(--tct-date-calendar-range-font-color, var(--t-primary, #6a4a9e))}.cal-day.in-range.is-disabled{background:var(--tct-date-calendar-range-disabled-background, var(--const-stoplight-alert, #d20a0a));color:var(--t-base, #ffffff)}.cal-day.range-start{border-radius:var(--tct-date-calendar-day-selected-border-radius, var(--app-border-radius-1, 4px)) 0 0 var(--tct-date-calendar-day-selected-border-radius, var(--app-border-radius-1, 4px))}.cal-day.range-end{border-radius:0 var(--tct-date-calendar-day-selected-border-radius, var(--app-border-radius-1, 4px)) var(--tct-date-calendar-day-selected-border-radius, var(--app-border-radius-1, 4px)) 0}.cal-day.range-start.range-end{border-radius:var(--tct-date-calendar-day-selected-border-radius, var(--app-border-radius-1, 4px))}.calendar-disclaimer{margin-top:var(--tct-date-calendar-disclaimer-margin-top, var(--app-scale-3x, 15px));padding-top:var(--tct-date-calendar-disclaimer-padding-top, var(--app-scale-2x, 10px));border-top:1px solid var(--tct-date-calendar-disclaimer-border-color, var(--t-gray-13, #e6e6e6));color:var(--tct-date-calendar-disclaimer-font-color, var(--t-text, #4d4d4d));font-size:var(--tct-date-calendar-disclaimer-font-size, var(--app-font-size-small, var(--const-px-12, 12px)))}.cal-footer{display:grid;gap:var(--tct-date-calendar-footer-gap, var(--app-scale-2x, 10px));margin-top:var(--tct-date-calendar-footer-margin-top, var(--app-scale-3x, 15px));padding-top:var(--tct-date-calendar-footer-padding-top, var(--app-scale-3x, 15px));border-top:1px solid var(--tct-date-calendar-footer-border-color, var(--t-gray-13, #e6e6e6))}.cal-footer-summary{display:grid;color:var(--tct-date-calendar-footer-font-color, var(--t-primary, #6a4a9e));font-size:var(--tct-date-calendar-footer-font-size, var(--app-font-size-small, var(--const-px-12, 12px)));font-weight:var(--tct-date-calendar-footer-font-weight, 600)}.cal-footer-summary>*{grid-area:1/1}.cal-footer-summary q2-message{color:var(--t-text, #4d4d4d)}.cal-footer-summary>span{display:flex;align-items:center}.cal-footer-summary q2-message.is-placeholder{visibility:hidden;pointer-events:none}.cal-footer-actions{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:var(--tct-date-calendar-footer-action-gap, var(--app-scale-1x, 5px));padding:var(--tct-date-calendar-footer-action-padding, var(--app-scale-1x, 5px))}.cal-footer-actions q2-btn{flex:0 0 auto;width:auto}@media (max-width: 768px){:host{max-width:none}.cal-panel{width:var(--comp-date-calendar-width, min(100%, 100vw - var(--tct-date-calendar-mobile-gutter, 24px) - var(--tct-date-calendar-mobile-gutter, 24px), var(--tct-date-calendar-mobile-max-width, 420px)));min-width:0}.cal-row{grid-template-columns:repeat(7, minmax(44px, 1fr))}.cal-day{height:auto;aspect-ratio:1}}@media (max-width: 360px){.cal-nav-btn{height:var(--tct-date-calendar-mobile-navigation-button-height, 32px);--tct-btn-icon-height:var(--tct-date-calendar-mobile-navigation-button-height, 32px)}}';
|
|
437
|
+
|
|
438
|
+
export { u as q2_date_calendar }
|