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
|
@@ -58,9 +58,9 @@ export class Q2Context {
|
|
|
58
58
|
el.setAttribute('size', 'small');
|
|
59
59
|
console.warn('Q2-CONTEXT: action-group slot buttons must be size="small".');
|
|
60
60
|
}
|
|
61
|
-
if (!['neutral', 'workflow-escape'].includes(el.getAttribute('intent'))) {
|
|
61
|
+
if (!['neutral', 'escape', 'workflow-escape'].includes(el.getAttribute('intent'))) {
|
|
62
62
|
el.setAttribute('intent', 'neutral');
|
|
63
|
-
console.warn('Q2-CONTEXT: action-group slot buttons must have intent="neutral" or intent="
|
|
63
|
+
console.warn('Q2-CONTEXT: action-group slot buttons must have intent="neutral" or intent="escape".');
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
});
|
|
@@ -77,6 +77,7 @@ export class Q2Context {
|
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
79
79
|
if (el.tagName === 'Q2-BTN') {
|
|
80
|
+
el.toggleAttribute('data-context-close-affordance', !!el.querySelector('q2-icon[type="close"]'));
|
|
80
81
|
if (!el.getAttribute('label'))
|
|
81
82
|
el.setAttribute('label', 'Dismiss');
|
|
82
83
|
if (!el.getAttribute('hide-label'))
|
|
@@ -129,7 +130,7 @@ export class Q2Context {
|
|
|
129
130
|
// #endregion
|
|
130
131
|
// #region Render Methods
|
|
131
132
|
render() {
|
|
132
|
-
return (h("div", { key: '
|
|
133
|
+
return (h("div", { key: '1ae74fbeea2008a88fc6da47ad45d812d38bfc13', class: "context-wrapper" }, h("q2-item", { key: '4cd13e58084df08ab7c2fc3f89b21bc468314b9c', class: "context-item" }, this.hasDecoratorSlotContent && (h("slot", { key: '0b81a0530f4c323f5fd0111c4ff9d7efec7eb65e', name: "decorator", slot: "decorator" })), h("div", { key: '1965e17a0e289032d1da7201f98e97b709c1b58b', class: "context-body", slot: "body" }, h("slot", { key: 'e52b10d0d494833b28f921d473a8272683973f2b', name: "header" }), h("slot", { key: 'a3e7fd3a2e1bccaa8b722759e2160c4eb7bd4569', name: "description" })), this.hasAffordanceSlotContent && (h("slot", { key: '49c2a3d91b1b74b51ed0f88b66bbad2fd9b7e140', name: "affordance", slot: "action" }))), this.separator && (h("div", { key: 'f3d2839c6cecd264df23f5755ea1fff3340c02f5', class: "separator", role: "separator" })), this.hasActionGroupSlotContent && (h("q2-action-group", { key: '31a30ac415fcbceaffb1afd535a28189f4e41c1d', class: "action-group", orientation: "horizontal" }, h("slot", { key: 'a27b6b16e5d009fad4e7ae408859273e2770bba2', name: "action-group" }))), this.hasFooterSlotContent && h("slot", { key: 'ca997aa3cac59a467af85f2492a221ba06ce30a7', name: "footer" })));
|
|
133
134
|
}
|
|
134
135
|
static get is() { return "q2-context"; }
|
|
135
136
|
static get encapsulation() { return "shadow"; }
|
|
@@ -27,6 +27,15 @@ const VARIANTS = [
|
|
|
27
27
|
<q2-btn slot="affordance" hide-label label="Dismiss"><q2-icon type="close"></q2-icon></q2-btn>
|
|
28
28
|
</q2-context>`,
|
|
29
29
|
},
|
|
30
|
+
{
|
|
31
|
+
name: 'with-non-close-affordance',
|
|
32
|
+
html: `<q2-context>
|
|
33
|
+
<q2-icon slot="decorator" type="lightbulb"></q2-icon>
|
|
34
|
+
<h4 slot="header">Application Status</h4>
|
|
35
|
+
<p slot="description">A brief description of what's happening.</p>
|
|
36
|
+
<q2-btn slot="affordance" hide-label label="Edit"><q2-icon type="pencil"></q2-icon></q2-btn>
|
|
37
|
+
</q2-context>`,
|
|
38
|
+
},
|
|
30
39
|
{
|
|
31
40
|
name: 'with-action-group',
|
|
32
41
|
html: `<q2-context>
|
|
@@ -34,7 +43,7 @@ const VARIANTS = [
|
|
|
34
43
|
<h4 slot="header">Application Status</h4>
|
|
35
44
|
<p slot="description">A brief description of what's happening.</p>
|
|
36
45
|
<q2-btn slot="action-group" intent="neutral" size="small">Confirm</q2-btn>
|
|
37
|
-
<q2-btn slot="action-group" intent="
|
|
46
|
+
<q2-btn slot="action-group" intent="escape" size="small">Go Back</q2-btn>
|
|
38
47
|
</q2-context>`,
|
|
39
48
|
},
|
|
40
49
|
{
|
|
@@ -54,7 +63,7 @@ const VARIANTS = [
|
|
|
54
63
|
<p slot="description">A brief description of what's happening.</p>
|
|
55
64
|
<q2-btn slot="affordance" hide-label label="Dismiss"><q2-icon type="close"></q2-icon></q2-btn>
|
|
56
65
|
<q2-btn slot="action-group" intent="neutral" size="small">Confirm</q2-btn>
|
|
57
|
-
<q2-btn slot="action-group" intent="
|
|
66
|
+
<q2-btn slot="action-group" intent="escape" size="small">Go Back</q2-btn>
|
|
58
67
|
${FOOTER_HTML}
|
|
59
68
|
</q2-context>`,
|
|
60
69
|
},
|
|
@@ -66,7 +75,7 @@ const VARIANTS = [
|
|
|
66
75
|
<p slot="description">A brief description of what's happening.</p>
|
|
67
76
|
<q2-btn slot="affordance" hide-label label="Dismiss"><q2-icon type="close"></q2-icon></q2-btn>
|
|
68
77
|
<q2-btn slot="action-group" intent="neutral" size="small">Confirm</q2-btn>
|
|
69
|
-
<q2-btn slot="action-group" intent="
|
|
78
|
+
<q2-btn slot="action-group" intent="escape" size="small">Go Back</q2-btn>
|
|
70
79
|
${FOOTER_HTML}
|
|
71
80
|
</q2-context>`,
|
|
72
81
|
},
|
|
@@ -82,7 +91,8 @@ const VARIANTS = [
|
|
|
82
91
|
const restingCase = (variant, theme) => {
|
|
83
92
|
test(`q2-context--${variant.name}--resting — ${theme}`, async ({ page }) => {
|
|
84
93
|
await setupPage(page, variant.html, { theme });
|
|
85
|
-
|
|
94
|
+
const maxDiffPixels = variant.name === 'separator' && theme === 'glassmorphism' ? 3 : 0;
|
|
95
|
+
await expect(page).toHaveScreenshot(`q2-context--${variant.name}--resting--${theme}.png`, { maxDiffPixels });
|
|
86
96
|
});
|
|
87
97
|
};
|
|
88
98
|
test.describe('q2-context — variants × themes', () => {
|
|
@@ -140,7 +140,7 @@ export class Q2Currency {
|
|
|
140
140
|
// #region Render Methods
|
|
141
141
|
render() {
|
|
142
142
|
const { hasPlusMinusSign, plusMinusSign, currencyIsFront, currencySymbol, shouldSuperscriptSymbol, amountCore, fraction, shouldSuperscriptFraction, readableCurrency, currencyClasses, signDisplay, isNegativeAmount, } = this;
|
|
143
|
-
return (h(Host, { key: '
|
|
143
|
+
return (h(Host, { key: 'dc225537aa8381682126282c8dea3bf7bc2be7a6', "aria-label": readableCurrency }, h("div", { key: '31ca488c6a335c42b31c951d6ceb3439dc27ce86', "test-id": "q2CurrencyInner", class: currencyClasses }, signDisplay === 'accounting' && isNegativeAmount && h("span", { key: '90a699153c62af8aae0711bd499c05c1f61fb6ee' }, '('), hasPlusMinusSign && h("span", { key: '1dfb9e14cadced2f39554c686a118a875e217774' }, plusMinusSign), currencyIsFront && (h("span", { key: '8a96680d29c2c6bc22b5288f47a796ad9e249ea2', class: shouldSuperscriptSymbol ? 'superscript' : '' }, currencySymbol)), h("span", { key: '227f6cd00c1c78aecc6f81d1d8b14979c2cfe6f4' }, amountCore), h("span", { key: 'ab392edfa8d9937509999e8e2b9505a067187c3e', class: shouldSuperscriptFraction ? 'superscript' : '' }, fraction), !currencyIsFront && (h("span", { key: 'da99205474d1b0a56b99e5ec7e22f5e9de83eb7b', class: shouldSuperscriptSymbol ? 'superscript' : '' }, currencySymbol)), signDisplay === 'accounting' && isNegativeAmount && h("span", { key: '106370ac78e71e829b94b85989bbcab42c356eef' }, ')'))));
|
|
144
144
|
}
|
|
145
145
|
static get is() { return "q2-currency"; }
|
|
146
146
|
static get encapsulation() { return "shadow"; }
|
|
@@ -111,6 +111,7 @@ button {
|
|
|
111
111
|
* @prop --tct-data-table-header-font-size: (<length-percentage>) Controls the font size of data table header cells.
|
|
112
112
|
* @prop --tct-data-table-header-font-weight: (<number>) Controls the font weight of data table header cells.
|
|
113
113
|
* @prop --tct-data-table-header-sortable-icon-size: (<length>) Controls the size of the sort-indicator icon in sortable headers.
|
|
114
|
+
* @prop --tct-data-table-action-icon-size: (<length>) Controls the size of expandable-row and dropdown action icons.
|
|
114
115
|
* @prop --tct-data-table-header-sorted-font-weight: (<number>) Controls the font weight applied to a sorted header column.
|
|
115
116
|
* @prop --tct-data-table-sticky-header-background: (<color>) Controls the background color of the data table header when sticky.
|
|
116
117
|
* @prop --tct-data-table-sticky-header-top?: (<length-percentage>) Controls the optional top offset of the sticky header.
|
|
@@ -209,7 +210,10 @@ thead {
|
|
|
209
210
|
:host([sticky]:not([sticky=false])) thead {
|
|
210
211
|
position: sticky;
|
|
211
212
|
top: var(--tct-data-table-sticky-header-top, 0px);
|
|
213
|
+
z-index: 1;
|
|
214
|
+
border-color: transparent;
|
|
212
215
|
background: var(--tct-data-table-sticky-header-background, var(--tct-table-background, var(--t-base, #ffffff)));
|
|
216
|
+
box-shadow: 0 var(--tct-data-table-sticky-header-border-bottom-width, 1px) 0 var(--tct-data-table-header-border-color, var(--tct-table-header-border-color, var(--t-gray-9, #999999)));
|
|
213
217
|
}
|
|
214
218
|
|
|
215
219
|
col.status-column {
|
|
@@ -425,11 +429,13 @@ td.clamped div {
|
|
|
425
429
|
-webkit-box-orient: vertical;
|
|
426
430
|
}
|
|
427
431
|
td.expandable-row-control-column {
|
|
432
|
+
--tct-icon-size: var(--tct-data-table-action-icon-size, var(--const-px-18, 18px));
|
|
428
433
|
--tct-btn-icon-hover-bg: transparent;
|
|
429
434
|
padding: var(--tct-data-table-expandable-row-control-column-padding, var(--tct-table-expandable-row-control-column-padding, 0 5px));
|
|
430
435
|
text-align: center;
|
|
431
436
|
}
|
|
432
437
|
td.dropdown-column {
|
|
438
|
+
--tct-icon-size: var(--tct-data-table-action-icon-size, var(--const-px-18, 18px));
|
|
433
439
|
padding: var(--tct-data-table-dropdown-column-padding, var(--tct-table-dropdown-column-padding, 0 5px));
|
|
434
440
|
text-align: center;
|
|
435
441
|
}
|
|
@@ -290,7 +290,7 @@ export class Q2DataTable {
|
|
|
290
290
|
};
|
|
291
291
|
// tracks if the select-all checkbox should be visually updated as the `rows` are built
|
|
292
292
|
let isAllSelected = true;
|
|
293
|
-
let
|
|
293
|
+
let hasSelectedRows = false;
|
|
294
294
|
let hasStatusRows = false;
|
|
295
295
|
const serializedRows = rows.map(({ id, cells, selected, expanded, disabled, selectAriaLabel, status }) => {
|
|
296
296
|
const serializedCells = Object.entries(cells).reduce((accum, [cellKey, cellData]) => {
|
|
@@ -315,8 +315,8 @@ export class Q2DataTable {
|
|
|
315
315
|
}, {});
|
|
316
316
|
if (isAllSelected && !selected)
|
|
317
317
|
isAllSelected = false;
|
|
318
|
-
if (!
|
|
319
|
-
|
|
318
|
+
if (!hasSelectedRows && selected)
|
|
319
|
+
hasSelectedRows = true;
|
|
320
320
|
if (!hasStatusRows && status)
|
|
321
321
|
hasStatusRows = true;
|
|
322
322
|
return {
|
|
@@ -335,7 +335,7 @@ export class Q2DataTable {
|
|
|
335
335
|
this.hasRowData = !!rows.length;
|
|
336
336
|
this.hasStatusRows = hasStatusRows;
|
|
337
337
|
this.allRowsSelected = this.hasRowData && isAllSelected;
|
|
338
|
-
this.someRowsSelected = this.hasRowData &&
|
|
338
|
+
this.someRowsSelected = this.hasRowData && hasSelectedRows && !isAllSelected;
|
|
339
339
|
this.serializedRows = !!shouldAutoSort ? this.sortRows(serializedRows, sortedHeader) : serializedRows;
|
|
340
340
|
this.checkSlots();
|
|
341
341
|
}
|
|
@@ -419,7 +419,7 @@ export class Q2DataTable {
|
|
|
419
419
|
// #region Render Methods
|
|
420
420
|
render() {
|
|
421
421
|
const { caption } = this;
|
|
422
|
-
return (h("div", { key: '
|
|
422
|
+
return (h("div", { key: '27c557740e997910e039e20af6d1e889583e798a', class: "container" }, h("table", { key: '54b876b023eab141fa8be8627e2b025590c0026d' }, caption && h("caption", { key: '6e0fdc0524ff1645b6ebd16ada5f86e5197cc475', class: this.hideCaption ? 'sr' : undefined }, caption), this.renderTableColGroup(), this.renderTableHeader(), this.renderEmptyState(), this.renderTableRows())));
|
|
423
423
|
}
|
|
424
424
|
renderCellContent(cell) {
|
|
425
425
|
if (!cell)
|
|
@@ -11,6 +11,13 @@ const ROWS_JSON = JSON.stringify([
|
|
|
11
11
|
{ id: 2, cells: { day: 'Tuesday', sales: 127, revenue: '$6,350' } },
|
|
12
12
|
{ id: 3, cells: { day: 'Wednesday', sales: 121, revenue: '$6,050' } },
|
|
13
13
|
]);
|
|
14
|
+
const STICKY_ROWS_JSON = JSON.stringify([
|
|
15
|
+
{ id: 1, cells: { day: 'Monday', sales: 93, revenue: '$4,650' } },
|
|
16
|
+
{ id: 2, cells: { day: 'Tuesday', sales: 127, revenue: '$6,350' } },
|
|
17
|
+
{ id: 3, cells: { day: 'Wednesday', sales: 121, revenue: '$6,050' } },
|
|
18
|
+
{ id: 4, cells: { day: 'Thursday', sales: 140, revenue: '$7,000' } },
|
|
19
|
+
{ id: 5, cells: { day: 'Friday', sales: 83, revenue: '$4,150' } },
|
|
20
|
+
]);
|
|
14
21
|
const buildHtml = (variant) => {
|
|
15
22
|
var _a, _b;
|
|
16
23
|
return `
|
|
@@ -26,6 +33,19 @@ const buildHtml = (variant) => {
|
|
|
26
33
|
</script>
|
|
27
34
|
`;
|
|
28
35
|
};
|
|
36
|
+
const buildStickyHtml = () => `
|
|
37
|
+
<div id="scroll-container" style="height: 180px; overflow: auto">
|
|
38
|
+
<q2-data-table id="dt" caption="Recent Sales" sticky>
|
|
39
|
+
</q2-data-table>
|
|
40
|
+
</div>
|
|
41
|
+
<script>
|
|
42
|
+
(function () {
|
|
43
|
+
var t = document.getElementById('dt');
|
|
44
|
+
t.headers = ${HEADERS_JSON};
|
|
45
|
+
t.rows = ${STICKY_ROWS_JSON};
|
|
46
|
+
})();
|
|
47
|
+
</script>
|
|
48
|
+
`;
|
|
29
49
|
const VARIANTS = [
|
|
30
50
|
{ name: 'default', attrs: '' },
|
|
31
51
|
{ name: 'bordered-true', attrs: 'bordered' },
|
|
@@ -38,12 +58,27 @@ const VARIANTS = [
|
|
|
38
58
|
{ name: 'clickable', attrs: 'clickable' },
|
|
39
59
|
{ name: 'clickable-hide-clickable', attrs: 'clickable hide-clickable' },
|
|
40
60
|
{ name: 'selectable-multiple-left', attrs: 'selectable select-mode="multiple"' },
|
|
61
|
+
{
|
|
62
|
+
name: 'selectable-multiple-indeterminate',
|
|
63
|
+
attrs: 'selectable select-mode="multiple"',
|
|
64
|
+
rowsJson: JSON.stringify([
|
|
65
|
+
{ id: 1, cells: { day: 'Monday', sales: 93, revenue: '$4,650' }, selected: true },
|
|
66
|
+
{ id: 2, cells: { day: 'Tuesday', sales: 127, revenue: '$6,350' } },
|
|
67
|
+
{ id: 3, cells: { day: 'Wednesday', sales: 121, revenue: '$6,050' } },
|
|
68
|
+
]),
|
|
69
|
+
waitForIndeterminate: true,
|
|
70
|
+
},
|
|
41
71
|
{ name: 'selectable-multiple-right', attrs: 'selectable select-mode="multiple" select-align="right"' },
|
|
42
72
|
{ name: 'selectable-single', attrs: 'selectable select-mode="single"' },
|
|
43
73
|
{ name: 'loading', attrs: 'loading' },
|
|
44
74
|
{ name: 'empty', attrs: '', emptyRows: true },
|
|
45
75
|
{ name: 'hide-caption', attrs: 'hide-caption' },
|
|
46
76
|
{ name: 'combo-stripe-border-shadow', attrs: 'striped bordered shadowed density="compact"' },
|
|
77
|
+
{
|
|
78
|
+
name: 'dropdown-action',
|
|
79
|
+
attrs: '',
|
|
80
|
+
slotContent: '<q2-dropdown slot="row-1-dropdown" type="icon" icon="options" label="More actions" hide-label><q2-option value="view">View details</q2-option></q2-dropdown>',
|
|
81
|
+
},
|
|
47
82
|
{
|
|
48
83
|
name: 'status-rows',
|
|
49
84
|
attrs: '',
|
|
@@ -79,6 +114,12 @@ const SELECTABLE_MULTIPLE_LEFT_VARIANT = VARIANTS.find(v => v.name === 'selectab
|
|
|
79
114
|
const restingCase = (variant, theme) => {
|
|
80
115
|
test(`q2-data-table--${variant.name}--resting — ${theme}`, async ({ page }) => {
|
|
81
116
|
await setupPage(page, buildHtml(variant), { theme, setupLoc: true });
|
|
117
|
+
if (variant.waitForIndeterminate) {
|
|
118
|
+
await page.locator('#dt').evaluate((table, rowsJson) => {
|
|
119
|
+
table.rows = JSON.parse(rowsJson);
|
|
120
|
+
}, variant.rowsJson);
|
|
121
|
+
await expect(page.locator('q2-data-table q2-checkbox[test-id="select-all-rows-control"]')).toHaveAttribute('indeterminate', '');
|
|
122
|
+
}
|
|
82
123
|
await expect(page).toHaveScreenshot(`q2-data-table--${variant.name}--resting--${theme}.png`);
|
|
83
124
|
});
|
|
84
125
|
};
|
|
@@ -120,3 +161,14 @@ test.describe(`q2-data-table — scaled font size × themes`, () => {
|
|
|
120
161
|
});
|
|
121
162
|
}
|
|
122
163
|
});
|
|
164
|
+
test.describe('q2-data-table — sticky header × themes', () => {
|
|
165
|
+
for (const theme of THEMES) {
|
|
166
|
+
test(`q2-data-table--sticky-header--scrolled — ${theme}`, async ({ page }) => {
|
|
167
|
+
await setupPage(page, buildStickyHtml(), { theme, setupLoc: true });
|
|
168
|
+
await page.locator('#scroll-container').evaluate(element => {
|
|
169
|
+
element.scrollTop = 100;
|
|
170
|
+
});
|
|
171
|
+
await expect(page).toHaveScreenshot(`q2-data-table--sticky-header--scrolled--${theme}.png`);
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
});
|
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
* {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
*:active {
|
|
6
|
+
outline: none;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
*:focus-visible {
|
|
10
|
+
outline: none;
|
|
11
|
+
box-shadow: var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host {
|
|
15
|
+
box-shadow: none !important;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
::-moz-focus-inner {
|
|
19
|
+
border: none;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
input,
|
|
23
|
+
textarea,
|
|
24
|
+
button {
|
|
25
|
+
font-family: inherit;
|
|
26
|
+
font-size: inherit;
|
|
27
|
+
font-stretch: inherit;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:host(.sr),
|
|
31
|
+
:host(.sr) button {
|
|
32
|
+
border: 0;
|
|
33
|
+
clip: rect(0 0 0 0);
|
|
34
|
+
height: 1px;
|
|
35
|
+
margin: -1px;
|
|
36
|
+
overflow: hidden;
|
|
37
|
+
padding: 0;
|
|
38
|
+
position: absolute;
|
|
39
|
+
width: 1px;
|
|
40
|
+
white-space: nowrap;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.sr,
|
|
44
|
+
.sr button {
|
|
45
|
+
border: 0;
|
|
46
|
+
clip: rect(0 0 0 0);
|
|
47
|
+
height: 1px;
|
|
48
|
+
margin: -1px;
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
padding: 0;
|
|
51
|
+
position: absolute;
|
|
52
|
+
width: 1px;
|
|
53
|
+
white-space: nowrap;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.hidden {
|
|
57
|
+
display: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:host([hidden]) {
|
|
61
|
+
display: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.invisible {
|
|
65
|
+
visibility: hidden;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@container style(--t-prefers-motion: "reduced") {
|
|
69
|
+
*,
|
|
70
|
+
*::before,
|
|
71
|
+
*::after {
|
|
72
|
+
animation-duration: 0.01ms !important;
|
|
73
|
+
transition-duration: 0.01ms !important;
|
|
74
|
+
animation-delay: 0ms !important;
|
|
75
|
+
transition-delay: 0ms !important;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")) {
|
|
79
|
+
@media (prefers-reduced-motion: reduce) {
|
|
80
|
+
*,
|
|
81
|
+
*::before,
|
|
82
|
+
*::after {
|
|
83
|
+
animation-duration: 0.01ms !important;
|
|
84
|
+
transition-duration: 0.01ms !important;
|
|
85
|
+
animation-delay: 0ms !important;
|
|
86
|
+
transition-delay: 0ms !important;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* @prop --tct-date-calendar-background: (<color>) Controls the calendar panel background and focused day background.
|
|
92
|
+
* @prop --tct-date-calendar-border-radius: (<length-percentage>) Controls the calendar panel corner radius.
|
|
93
|
+
* @prop --tct-date-calendar-box-shadow: (*) Controls the calendar panel shadow.
|
|
94
|
+
* @prop --tct-date-calendar-day-border-radius: (<length-percentage>) Controls day cell and focus ring corner radii.
|
|
95
|
+
* @prop --tct-date-calendar-day-disabled-font-color: (<color>) Controls disabled day text color.
|
|
96
|
+
* @prop --tct-date-calendar-day-focus-ring: (*) Controls the keyboard focus shadow around a day.
|
|
97
|
+
* @prop --tct-date-calendar-day-font-color: (<color>) Controls day text color.
|
|
98
|
+
* @prop --tct-date-calendar-day-font-size: (<length-percentage>) Controls day text size.
|
|
99
|
+
* @prop --tct-date-calendar-day-heading-font-color: (<color>) Controls weekday heading text color.
|
|
100
|
+
* @prop --tct-date-calendar-day-heading-font-size: (<length-percentage>) Controls weekday heading text size.
|
|
101
|
+
* @prop --tct-date-calendar-day-heading-font-weight: (<number>) Controls weekday heading font weight.
|
|
102
|
+
* @prop --tct-date-calendar-day-height: (<length-percentage>) Controls desktop day cell height.
|
|
103
|
+
* @prop --tct-date-calendar-day-hover-background: (<color>) Controls the background of hovered unselected days.
|
|
104
|
+
* @prop --tct-date-calendar-day-outside-font-color: (<color>) Controls text color for days outside the displayed month.
|
|
105
|
+
* @prop --tct-date-calendar-day-selected-background: (<color>) Controls selected day background.
|
|
106
|
+
* @prop --tct-date-calendar-day-selected-border-radius: (<length-percentage>) Controls selected day and range endpoint corner radii.
|
|
107
|
+
* @prop --tct-date-calendar-day-selected-font-color: (<color>) Controls selected day text color.
|
|
108
|
+
* @prop --tct-date-calendar-day-selected-font-weight: (<number>) Controls selected day font weight.
|
|
109
|
+
* @prop --tct-date-calendar-disclaimer-border-color: (<color>) Controls the divider above the disclaimer.
|
|
110
|
+
* @prop --tct-date-calendar-disclaimer-font-color: (<color>) Controls disclaimer text color.
|
|
111
|
+
* @prop --tct-date-calendar-disclaimer-font-size: (<length-percentage>) Controls disclaimer text size.
|
|
112
|
+
* @prop --tct-date-calendar-disclaimer-margin-top: (<length-percentage>) Controls space above the disclaimer divider.
|
|
113
|
+
* @prop --tct-date-calendar-disclaimer-padding-top: (<length-percentage>) Controls space between the disclaimer divider and text.
|
|
114
|
+
* @prop --tct-date-calendar-footer-action-gap: (<length-percentage>) Controls space between footer buttons.
|
|
115
|
+
* @prop --tct-date-calendar-footer-action-padding: (<length-percentage>+) Controls padding around footer buttons and their focus rings.
|
|
116
|
+
* @prop --tct-date-calendar-footer-border-color: (<color>) Controls the divider above the footer.
|
|
117
|
+
* @prop --tct-date-calendar-footer-font-color: (<color>) Controls footer summary text color.
|
|
118
|
+
* @prop --tct-date-calendar-footer-font-size: (<length-percentage>) Controls footer summary text size.
|
|
119
|
+
* @prop --tct-date-calendar-footer-font-weight: (<number>) Controls footer summary font weight.
|
|
120
|
+
* @prop --tct-date-calendar-footer-gap: (<length-percentage>) Controls space between footer summary and actions.
|
|
121
|
+
* @prop --tct-date-calendar-footer-margin-top: (<length-percentage>) Controls space above the footer divider.
|
|
122
|
+
* @prop --tct-date-calendar-footer-padding-top: (<length-percentage>) Controls space below the footer divider.
|
|
123
|
+
* @prop --tct-date-calendar-grid-gap: (<length-percentage>) Controls spacing between calendar rows and columns.
|
|
124
|
+
* @prop --tct-date-calendar-label-font-color: (<color>) Controls calendar label text color.
|
|
125
|
+
* @prop --tct-date-calendar-label-font-size: (<length-percentage>) Controls calendar label text size.
|
|
126
|
+
* @prop --tct-date-calendar-label-font-weight: (<number>) Controls calendar label font weight.
|
|
127
|
+
* @prop --tct-date-calendar-label-margin-bottom: (<length-percentage>) Controls space below the calendar label.
|
|
128
|
+
* @prop --tct-date-calendar-mobile-gutter: (<length-percentage>) Controls the inline gutter on each side of the mobile calendar.
|
|
129
|
+
* @prop --tct-date-calendar-mobile-max-width: (<length-percentage>) Controls the maximum mobile calendar width.
|
|
130
|
+
* @prop --tct-date-calendar-mobile-navigation-button-height: (<length-percentage>) Controls navigation button height on narrow screens.
|
|
131
|
+
* @prop --tct-date-calendar-month-font-color: (<color>) Controls month heading text color.
|
|
132
|
+
* @prop --tct-date-calendar-month-font-size: (<length-percentage>) Controls month heading text size.
|
|
133
|
+
* @prop --tct-date-calendar-month-font-weight: (<number>) Controls month heading font weight.
|
|
134
|
+
* @prop --tct-date-calendar-navigation-button-border-radius: (<length-percentage>) Controls navigation button and focus ring corner radii.
|
|
135
|
+
* @prop --tct-date-calendar-navigation-button-height: (<length-percentage>) Controls navigation button height.
|
|
136
|
+
* @prop --tct-date-calendar-navigation-button-width: (<length-percentage>) Controls navigation button width.
|
|
137
|
+
* @prop --tct-date-calendar-navigation-gap: (<length-percentage>) Controls space between navigation buttons.
|
|
138
|
+
* @prop --tct-date-calendar-navigation-icon-size: (<length-percentage>) Controls navigation icon size.
|
|
139
|
+
* @prop --tct-date-calendar-navigation-margin-bottom: (<length-percentage>) Controls space below navigation in a downward panel.
|
|
140
|
+
* @prop --tct-date-calendar-navigation-margin-top: (<length-percentage>) Controls space above navigation in an upward panel.
|
|
141
|
+
* @prop --tct-date-calendar-padding: (<length-percentage>+) Controls calendar panel padding outside action sheets.
|
|
142
|
+
* @prop --tct-date-calendar-range-background: (<color>) Controls selected range background.
|
|
143
|
+
* @prop --tct-date-calendar-range-disabled-background: (<color>) Controls unavailable dates within a selected range.
|
|
144
|
+
* @prop --tct-date-calendar-range-font-color: (<color>) Controls text color within a selected range.
|
|
145
|
+
* @prop --tct-date-calendar-today-color: (<color>) Controls today's text and inset outline color.
|
|
146
|
+
* @prop --tct-date-calendar-today-font-weight: (<number>) Controls today's font weight.
|
|
147
|
+
* @prop --tct-date-calendar-weekday-padding: (<length-percentage>+) Controls weekday heading padding.
|
|
148
|
+
* @prop --tct-date-calendar-width: (<length-percentage>) Controls standalone desktop calendar width.
|
|
149
|
+
*/
|
|
150
|
+
:host {
|
|
151
|
+
box-sizing: border-box;
|
|
152
|
+
display: block;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
:host[hidden] {
|
|
156
|
+
display: none;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.cal-panel {
|
|
160
|
+
box-sizing: border-box;
|
|
161
|
+
width: var(--comp-date-calendar-width, var(--tct-date-calendar-width, 360px));
|
|
162
|
+
min-width: 0;
|
|
163
|
+
padding: var(--tct-date-calendar-padding, var(--app-scale-4x, 20px));
|
|
164
|
+
border-radius: var(--tct-date-calendar-border-radius, var(--app-border-radius-1, 4px));
|
|
165
|
+
background: var(--tct-date-calendar-background, var(--t-base, #ffffff));
|
|
166
|
+
box-shadow: var(--tct-date-calendar-box-shadow, var(--app-shadow-3));
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.cal-panel.is-action-sheet {
|
|
170
|
+
width: 100%;
|
|
171
|
+
padding: 0;
|
|
172
|
+
border-radius: 0;
|
|
173
|
+
background: transparent;
|
|
174
|
+
box-shadow: none;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.calendar-label {
|
|
178
|
+
margin: 0 0 var(--tct-date-calendar-label-margin-bottom, var(--tct-scale-2, var(--app-scale-2x, 10px)));
|
|
179
|
+
color: var(--tct-date-calendar-label-font-color, var(--tct-text, var(--t-text, #4d4d4d)));
|
|
180
|
+
font-size: var(--tct-date-calendar-label-font-size, var(--tct-font-size, var(--app-font-size, var(--const-px-14, 14px))));
|
|
181
|
+
font-weight: var(--tct-date-calendar-label-font-weight, var(--tct-font-weight-semibold, 600));
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.cal-nav {
|
|
185
|
+
display: grid;
|
|
186
|
+
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
|
|
187
|
+
align-items: center;
|
|
188
|
+
margin-bottom: var(--tct-date-calendar-navigation-margin-bottom, var(--app-scale-3x, 15px));
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.cal-nav-controls {
|
|
192
|
+
display: flex;
|
|
193
|
+
gap: var(--tct-date-calendar-navigation-gap, 2px);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.cal-nav-controls-left {
|
|
197
|
+
justify-self: start;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.cal-nav-controls-right {
|
|
201
|
+
justify-self: end;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.cal-panel.direction-up .cal-nav {
|
|
205
|
+
margin-top: var(--tct-date-calendar-navigation-margin-top, var(--app-scale-3x, 15px));
|
|
206
|
+
margin-bottom: 0;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.cal-nav-btn {
|
|
210
|
+
width: var(--tct-date-calendar-navigation-button-width, 40px);
|
|
211
|
+
height: var(--tct-date-calendar-navigation-button-height, 40px);
|
|
212
|
+
margin: 0;
|
|
213
|
+
--tct-btn-icon-width: var(--tct-date-calendar-navigation-button-width, 40px);
|
|
214
|
+
--tct-btn-icon-height: var(--tct-date-calendar-navigation-button-height, 40px);
|
|
215
|
+
--tct-btn-icon-size: var(--tct-date-calendar-navigation-icon-size, 22px);
|
|
216
|
+
--tct-btn-icon-border-radius: var(--tct-date-calendar-navigation-button-border-radius, var(--app-border-radius-1, 4px));
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.cal-nav-btn q2-icon {
|
|
220
|
+
width: var(--tct-date-calendar-navigation-icon-size, 22px);
|
|
221
|
+
min-width: var(--tct-date-calendar-navigation-icon-size, 22px);
|
|
222
|
+
height: var(--tct-date-calendar-navigation-icon-size, 22px);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.cal-nav-title {
|
|
226
|
+
overflow: hidden;
|
|
227
|
+
color: var(--tct-date-calendar-month-font-color, var(--tct-text, var(--t-text, #4d4d4d)));
|
|
228
|
+
font-size: var(--tct-date-calendar-month-font-size, var(--const-px-15, 15px));
|
|
229
|
+
font-weight: var(--tct-date-calendar-month-font-weight, 700);
|
|
230
|
+
text-align: center;
|
|
231
|
+
text-overflow: ellipsis;
|
|
232
|
+
white-space: nowrap;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.cal-row {
|
|
236
|
+
display: grid;
|
|
237
|
+
grid-template-columns: repeat(7, 44px);
|
|
238
|
+
gap: var(--tct-date-calendar-grid-gap, 2px);
|
|
239
|
+
justify-content: center;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.cal-days {
|
|
243
|
+
display: flex;
|
|
244
|
+
flex-direction: column;
|
|
245
|
+
gap: var(--tct-date-calendar-grid-gap, 2px);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.cal-dow {
|
|
249
|
+
padding: var(--tct-date-calendar-weekday-padding, 6px 0 10px);
|
|
250
|
+
color: var(--tct-date-calendar-day-heading-font-color, var(--tct-gray-8, var(--t-gray-8, #747474)));
|
|
251
|
+
font-size: var(--tct-date-calendar-day-heading-font-size, var(--app-font-size-small, var(--const-px-12, 12px)));
|
|
252
|
+
font-weight: var(--tct-date-calendar-day-heading-font-weight, 600);
|
|
253
|
+
text-align: center;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
[role=gridcell] {
|
|
257
|
+
min-width: 0;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.cal-day {
|
|
261
|
+
box-sizing: border-box;
|
|
262
|
+
display: flex;
|
|
263
|
+
width: 100%;
|
|
264
|
+
height: var(--tct-date-calendar-day-height, 44px);
|
|
265
|
+
padding: 0;
|
|
266
|
+
align-items: center;
|
|
267
|
+
justify-content: center;
|
|
268
|
+
border: 0;
|
|
269
|
+
border-radius: var(--tct-date-calendar-day-border-radius, var(--app-border-radius-2, 8px));
|
|
270
|
+
background: transparent;
|
|
271
|
+
color: var(--tct-date-calendar-day-font-color, var(--t-gray-1, #0d0d0d));
|
|
272
|
+
cursor: pointer;
|
|
273
|
+
font: inherit;
|
|
274
|
+
font-size: var(--tct-date-calendar-day-font-size, var(--app-font-size, var(--const-px-14, 14px)));
|
|
275
|
+
}
|
|
276
|
+
.cal-day:hover:not(:disabled):not(.is-selected) {
|
|
277
|
+
background: var(--tct-date-calendar-day-hover-background, var(--t-gray-14, #f2f2f2));
|
|
278
|
+
}
|
|
279
|
+
.cal-day:focus-visible {
|
|
280
|
+
background: var(--tct-date-calendar-background, var(--t-base, #ffffff));
|
|
281
|
+
outline: 0;
|
|
282
|
+
box-shadow: var(--tct-date-calendar-day-focus-ring, var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc));
|
|
283
|
+
}
|
|
284
|
+
.cal-day.is-outside {
|
|
285
|
+
color: var(--tct-date-calendar-day-outside-font-color, var(--t-gray-8, #747474));
|
|
286
|
+
}
|
|
287
|
+
.cal-day:disabled {
|
|
288
|
+
color: var(--tct-date-calendar-day-disabled-font-color, var(--t-gray-11, #cccccc));
|
|
289
|
+
cursor: not-allowed;
|
|
290
|
+
}
|
|
291
|
+
.cal-day.is-today {
|
|
292
|
+
color: var(--tct-date-calendar-today-color, var(--t-primary, #6a4a9e));
|
|
293
|
+
font-weight: var(--tct-date-calendar-today-font-weight, 600);
|
|
294
|
+
box-shadow: inset 0 0 0 2px var(--tct-date-calendar-today-color, var(--t-primary, #6a4a9e));
|
|
295
|
+
}
|
|
296
|
+
.cal-day.is-selected {
|
|
297
|
+
border-radius: var(--tct-date-calendar-day-selected-border-radius, var(--app-border-radius-1, 4px));
|
|
298
|
+
background: var(--tct-date-calendar-day-selected-background, var(--t-primary, #6a4a9e));
|
|
299
|
+
color: var(--tct-date-calendar-day-selected-font-color, var(--t-primary-text, #ffffff));
|
|
300
|
+
font-weight: var(--tct-date-calendar-day-selected-font-weight, 700);
|
|
301
|
+
box-shadow: none;
|
|
302
|
+
}
|
|
303
|
+
.cal-day.in-range {
|
|
304
|
+
border-radius: 0;
|
|
305
|
+
background: var(--tct-date-calendar-range-background, var(--t-primary-t4, #eee8f5));
|
|
306
|
+
color: var(--tct-date-calendar-range-font-color, var(--t-primary, #6a4a9e));
|
|
307
|
+
}
|
|
308
|
+
.cal-day.in-range.is-disabled {
|
|
309
|
+
background: var(--tct-date-calendar-range-disabled-background, var(--const-stoplight-alert, #d20a0a));
|
|
310
|
+
color: var(--t-base, #ffffff);
|
|
311
|
+
}
|
|
312
|
+
.cal-day.range-start {
|
|
313
|
+
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));
|
|
314
|
+
}
|
|
315
|
+
.cal-day.range-end {
|
|
316
|
+
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;
|
|
317
|
+
}
|
|
318
|
+
.cal-day.range-start.range-end {
|
|
319
|
+
border-radius: var(--tct-date-calendar-day-selected-border-radius, var(--app-border-radius-1, 4px));
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.calendar-disclaimer {
|
|
323
|
+
margin-top: var(--tct-date-calendar-disclaimer-margin-top, var(--app-scale-3x, 15px));
|
|
324
|
+
padding-top: var(--tct-date-calendar-disclaimer-padding-top, var(--app-scale-2x, 10px));
|
|
325
|
+
border-top: 1px solid var(--tct-date-calendar-disclaimer-border-color, var(--t-gray-13, #e6e6e6));
|
|
326
|
+
color: var(--tct-date-calendar-disclaimer-font-color, var(--t-text, #4d4d4d));
|
|
327
|
+
font-size: var(--tct-date-calendar-disclaimer-font-size, var(--app-font-size-small, var(--const-px-12, 12px)));
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.cal-footer {
|
|
331
|
+
display: grid;
|
|
332
|
+
gap: var(--tct-date-calendar-footer-gap, var(--app-scale-2x, 10px));
|
|
333
|
+
margin-top: var(--tct-date-calendar-footer-margin-top, var(--app-scale-3x, 15px));
|
|
334
|
+
padding-top: var(--tct-date-calendar-footer-padding-top, var(--app-scale-3x, 15px));
|
|
335
|
+
border-top: 1px solid var(--tct-date-calendar-footer-border-color, var(--t-gray-13, #e6e6e6));
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.cal-footer-summary {
|
|
339
|
+
display: grid;
|
|
340
|
+
color: var(--tct-date-calendar-footer-font-color, var(--t-primary, #6a4a9e));
|
|
341
|
+
font-size: var(--tct-date-calendar-footer-font-size, var(--app-font-size-small, var(--const-px-12, 12px)));
|
|
342
|
+
font-weight: var(--tct-date-calendar-footer-font-weight, 600);
|
|
343
|
+
}
|
|
344
|
+
.cal-footer-summary > * {
|
|
345
|
+
grid-area: 1/1;
|
|
346
|
+
}
|
|
347
|
+
.cal-footer-summary q2-message {
|
|
348
|
+
color: var(--t-text, #4d4d4d);
|
|
349
|
+
}
|
|
350
|
+
.cal-footer-summary > span {
|
|
351
|
+
display: flex;
|
|
352
|
+
align-items: center;
|
|
353
|
+
}
|
|
354
|
+
.cal-footer-summary q2-message.is-placeholder {
|
|
355
|
+
visibility: hidden;
|
|
356
|
+
pointer-events: none;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.cal-footer-actions {
|
|
360
|
+
display: flex;
|
|
361
|
+
flex-wrap: nowrap;
|
|
362
|
+
align-items: center;
|
|
363
|
+
justify-content: flex-end;
|
|
364
|
+
gap: var(--tct-date-calendar-footer-action-gap, var(--app-scale-1x, 5px));
|
|
365
|
+
padding: var(--tct-date-calendar-footer-action-padding, var(--app-scale-1x, 5px));
|
|
366
|
+
}
|
|
367
|
+
.cal-footer-actions q2-btn {
|
|
368
|
+
flex: 0 0 auto;
|
|
369
|
+
width: auto;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
@media (max-width: 768px) {
|
|
373
|
+
:host {
|
|
374
|
+
max-width: none;
|
|
375
|
+
}
|
|
376
|
+
.cal-panel {
|
|
377
|
+
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)));
|
|
378
|
+
min-width: 0;
|
|
379
|
+
}
|
|
380
|
+
.cal-row {
|
|
381
|
+
grid-template-columns: repeat(7, minmax(44px, 1fr));
|
|
382
|
+
}
|
|
383
|
+
.cal-day {
|
|
384
|
+
height: auto;
|
|
385
|
+
aspect-ratio: 1;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
@media (max-width: 360px) {
|
|
389
|
+
.cal-nav-btn {
|
|
390
|
+
height: var(--tct-date-calendar-mobile-navigation-button-height, 32px);
|
|
391
|
+
--tct-btn-icon-height: var(--tct-date-calendar-mobile-navigation-button-height, 32px);
|
|
392
|
+
}
|
|
393
|
+
}
|