q2-tecton-elements 1.71.4 → 1.73.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle-report.json +32564 -26687
- package/dist/cjs/{charting-ClN1ldqv.js → charting-CdNTrVBe.js} +80 -0
- package/dist/cjs/click-elsewhere_3.cjs.entry.js +85 -20
- package/dist/cjs/{dataSample-BYR-wrOn.js → dataSample-B4blhlH4.js} +1 -1
- package/dist/cjs/date-picker-helpers-UYvPn98R.js +257 -0
- package/dist/cjs/{index-SpDCZABA.js → index-BqyWHpNu.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{q2-action-group_2.cjs.entry.js → q2-action-group.cjs.entry.js} +1 -89
- package/dist/cjs/q2-action-sheet.cjs.entry.js +98 -18
- package/dist/cjs/q2-avatar.cjs.entry.js +1 -1
- package/dist/cjs/q2-badge_2.cjs.entry.js +113 -12
- package/dist/cjs/q2-btn_2.cjs.entry.js +2 -2
- package/dist/cjs/q2-calendar.cjs.entry.js +14 -7
- package/dist/cjs/q2-card-image.cjs.entry.js +4 -4
- package/dist/cjs/q2-card.cjs.entry.js +1 -1
- package/dist/cjs/q2-carousel-pane.cjs.entry.js +3 -3
- package/dist/cjs/q2-carousel.cjs.entry.js +20 -6
- package/dist/cjs/q2-chart-area.cjs.entry.js +38 -7
- package/dist/cjs/q2-chart-bar.cjs.entry.js +39 -8
- package/dist/cjs/q2-chart-donut.cjs.entry.js +31 -13
- package/dist/cjs/q2-checkbox-group.cjs.entry.js +3 -3
- package/dist/cjs/q2-checkbox_2.cjs.entry.js +9 -6
- package/dist/cjs/q2-context.cjs.entry.js +6 -5
- package/dist/cjs/q2-currency.cjs.entry.js +1 -1
- package/dist/cjs/q2-data-table.cjs.entry.js +7 -7
- package/dist/cjs/q2-date-calendar.cjs.entry.js +452 -0
- package/dist/cjs/q2-date-picker_2.cjs.entry.js +968 -0
- package/dist/cjs/q2-detail.cjs.entry.js +2 -2
- package/dist/cjs/q2-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/q2-dropdown.cjs.entry.js +4 -4
- package/dist/cjs/q2-editable-field.cjs.entry.js +51 -37
- package/dist/cjs/q2-example.cjs.entry.js +1 -1
- package/dist/cjs/q2-file-picker.cjs.entry.js +60 -4
- package/dist/cjs/q2-form.cjs.entry.js +1 -1
- package/dist/cjs/q2-formatted-text.cjs.entry.js +1 -1
- package/dist/cjs/q2-icon.cjs.entry.js +1 -1
- package/dist/cjs/q2-item.cjs.entry.js +21 -3
- package/dist/cjs/q2-legend.cjs.entry.js +1 -1
- package/dist/cjs/q2-link_2.cjs.entry.js +2 -2
- package/dist/cjs/q2-loc.cjs.entry.js +1 -1
- package/dist/cjs/q2-message.cjs.entry.js +3 -3
- package/dist/cjs/q2-meter.cjs.entry.js +2 -2
- package/dist/cjs/q2-modal.cjs.entry.js +59 -17
- package/dist/cjs/q2-month-picker.cjs.entry.js +3 -3
- package/dist/cjs/q2-mutation-observer.cjs.entry.js +1 -1
- package/dist/cjs/q2-option.cjs.entry.js +1 -1
- package/dist/cjs/q2-otp.cjs.entry.js +5 -5
- package/dist/cjs/q2-pagination.cjs.entry.js +4 -4
- package/dist/cjs/q2-pill.cjs.entry.js +8 -5
- package/dist/cjs/q2-radio-group.cjs.entry.js +22 -4
- package/dist/cjs/q2-radio.cjs.entry.js +3 -3
- package/dist/cjs/q2-relative-time.cjs.entry.js +3 -3
- package/dist/cjs/q2-resize-observer.cjs.entry.js +92 -0
- package/dist/cjs/q2-search.cjs.entry.js +4 -4
- package/dist/cjs/q2-section.cjs.entry.js +7 -7
- package/dist/cjs/q2-select.cjs.entry.js +41 -21
- package/dist/cjs/q2-stepper-pane.cjs.entry.js +2 -2
- package/dist/cjs/q2-stepper-vertical.cjs.entry.js +2 -2
- package/dist/cjs/q2-stepper.cjs.entry.js +2 -2
- package/dist/cjs/q2-surface.cjs.entry.js +1 -1
- package/dist/cjs/q2-tab-container.cjs.entry.js +2 -2
- package/dist/cjs/q2-tab-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
- package/dist/cjs/q2-textarea.cjs.entry.js +2 -2
- package/dist/cjs/q2-toast.cjs.entry.js +1 -1
- package/dist/cjs/q2-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/{sectorHelper-9TWL-3dw.js → sectorHelper-CxhDl5ql.js} +1 -1
- package/dist/cjs/tecton-tab-pane.cjs.entry.js +5 -3
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/q2-action-sheet/q2-action-sheet.css +52 -0
- package/dist/collection/components/q2-action-sheet/q2-action-sheet.js +98 -18
- package/dist/collection/components/q2-action-sheet/test/q2-action-sheet-test.vr.js +124 -0
- package/dist/collection/components/q2-avatar/q2-avatar.js +1 -1
- package/dist/collection/components/q2-btn/q2-btn.css +152 -146
- package/dist/collection/components/q2-btn/q2-btn.js +10 -4
- package/dist/collection/components/q2-btn/test/q2-btn-test.vr.js +229 -20
- package/dist/collection/components/q2-calendar/q2-calendar.css +3 -0
- package/dist/collection/components/q2-calendar/q2-calendar.js +20 -7
- package/dist/collection/components/q2-calendar/q2-month-picker.js +2 -2
- package/dist/collection/components/q2-calendar/test/q2-calendar-test.vr.js +26 -15
- package/dist/collection/components/q2-card/test/q2-card-test.vr.js +4 -0
- package/dist/collection/components/q2-card-image/q2-card-image.css +89 -134
- package/dist/collection/components/q2-card-image/q2-card-image.js +4 -4
- package/dist/collection/components/q2-card-image/test/q2-card-image-test.vr.js +4 -0
- package/dist/collection/components/q2-carousel/q2-carousel.js +19 -5
- package/dist/collection/components/q2-carousel/test/q2-carousel-test.vr.js +45 -0
- package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.js +2 -2
- package/dist/collection/components/q2-chart-area/q2-chart-area.css +11 -0
- package/dist/collection/components/q2-chart-area/q2-chart-area.js +53 -7
- package/dist/collection/components/q2-chart-area/test/q2-chart-area-test.vr.js +14 -0
- package/dist/collection/components/q2-chart-bar/q2-chart-bar.css +11 -0
- package/dist/collection/components/q2-chart-bar/q2-chart-bar.js +50 -4
- package/dist/collection/components/q2-chart-bar/test/q2-chart-bar-test.vr.js +14 -0
- package/dist/collection/components/q2-chart-donut/q2-chart-donut.js +30 -10
- package/dist/collection/components/q2-chart-donut/test/q2-chart-donut-test.vr.js +25 -0
- package/dist/collection/components/q2-checkbox/q2-checkbox.css +2 -2
- package/dist/collection/components/q2-checkbox/q2-checkbox.js +6 -3
- package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.css +2 -0
- package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.js +6 -3
- package/dist/collection/components/q2-context/q2-context.css +5 -0
- package/dist/collection/components/q2-context/q2-context.js +4 -3
- package/dist/collection/components/q2-context/test/q2-context-test.vr.js +14 -4
- package/dist/collection/components/q2-currency/q2-currency.js +1 -1
- package/dist/collection/components/q2-data-table/q2-data-table.css +6 -0
- package/dist/collection/components/q2-data-table/q2-data-table.js +5 -5
- package/dist/collection/components/q2-data-table/test/q2-data-table-test.vr.js +52 -0
- package/dist/collection/components/q2-date-calendar/q2-date-calendar.css +393 -0
- package/dist/collection/components/q2-date-calendar/q2-date-calendar.js +1022 -0
- package/dist/collection/components/q2-date-calendar/test/q2-date-calendar-test.vr.js +111 -0
- package/dist/collection/components/q2-date-picker/q2-date-picker.css +138 -0
- package/dist/collection/components/q2-date-picker/q2-date-picker.js +2010 -0
- package/dist/collection/components/q2-date-picker/test/q2-date-picker-test.vr.js +179 -0
- package/dist/collection/components/q2-detail/q2-detail.js +1 -1
- package/dist/collection/components/q2-dropdown/q2-dropdown.css +2 -0
- package/dist/collection/components/q2-dropdown/q2-dropdown.js +5 -5
- package/dist/collection/components/q2-dropdown/test/q2-dropdown-test.vr.js +30 -0
- package/dist/collection/components/q2-editable-field/q2-editable-field.css +2 -0
- package/dist/collection/components/q2-editable-field/q2-editable-field.js +59 -45
- package/dist/collection/components/q2-example/q2-example.js +1 -1
- package/dist/collection/components/q2-file-picker/q2-file-picker.css +27 -0
- package/dist/collection/components/q2-file-picker/q2-file-picker.js +98 -2
- package/dist/collection/components/q2-file-picker/test/q2-file-picker-test.vr.js +22 -0
- package/dist/collection/components/q2-form/q2-form.js +1 -1
- package/dist/collection/components/q2-formatted-text/q2-formatted-text.js +1 -1
- package/dist/collection/components/q2-input/q2-input.css +67 -1
- package/dist/collection/components/q2-input/q2-input.js +160 -15
- package/dist/collection/components/q2-input/test/q2-input-test.vr.js +35 -0
- package/dist/collection/components/q2-item/q2-item.css +3 -1
- package/dist/collection/components/q2-item/q2-item.js +19 -1
- package/dist/collection/components/q2-item/test/q2-item-test.vr.js +8 -2
- package/dist/collection/components/q2-legend/q2-legend.js +1 -1
- package/dist/collection/components/q2-list/q2-list.js +1 -1
- package/dist/collection/components/q2-message/q2-message.css +5 -5
- package/dist/collection/components/q2-message/q2-message.js +1 -1
- package/dist/collection/components/q2-meter/q2-meter.js +1 -1
- package/dist/collection/components/q2-modal/q2-modal.css +40 -3
- package/dist/collection/components/q2-modal/q2-modal.js +100 -16
- package/dist/collection/components/q2-modal/test/q2-modal-test.vr.js +32 -7
- package/dist/collection/components/q2-mutation-observer/q2-mutation-observer.js +1 -1
- package/dist/collection/components/q2-optgroup/q2-optgroup.js +1 -1
- package/dist/collection/components/q2-option-list/q2-option-list.js +33 -4
- package/dist/collection/components/q2-otp/q2-otp.js +4 -4
- package/dist/collection/components/q2-pagination/q2-pagination.js +3 -3
- package/dist/collection/components/q2-pill/q2-pill.css +2 -2
- package/dist/collection/components/q2-pill/q2-pill.js +6 -3
- package/dist/collection/components/q2-popover/q2-popover.css +4 -2
- package/dist/collection/components/q2-popover/q2-popover.js +50 -14
- package/dist/collection/components/q2-radio/q2-radio.css +158 -104
- package/dist/collection/components/q2-radio/q2-radio.js +5 -2
- package/dist/collection/components/q2-radio/test/q2-radio-test.vr.js +25 -2
- package/dist/collection/components/q2-radio-group/q2-radio-group.css +39 -2
- package/dist/collection/components/q2-radio-group/q2-radio-group.js +73 -4
- package/dist/collection/components/q2-radio-group/test/q2-radio-group-test.vr.js +43 -1
- package/dist/collection/components/q2-relative-time/q2-relative-time.js +2 -2
- package/dist/collection/components/q2-resize-observer/q2-resize-observer.js +1 -1
- package/dist/collection/components/q2-search/q2-search.css +2 -0
- package/dist/collection/components/q2-search/q2-search.js +6 -3
- package/dist/collection/components/q2-section/q2-section.css +2 -0
- package/dist/collection/components/q2-section/q2-section.js +6 -6
- package/dist/collection/components/q2-select/q2-select.css +3 -0
- package/dist/collection/components/q2-select/q2-select.js +48 -22
- package/dist/collection/components/q2-select/test/q2-select-test.vr.js +13 -0
- package/dist/collection/components/q2-stepper/q2-stepper.js +1 -1
- package/dist/collection/components/q2-stepper-pane/q2-stepper-pane.js +1 -1
- package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js +1 -1
- package/dist/collection/components/q2-surface/q2-surface.js +1 -1
- package/dist/collection/components/q2-surface/test/q2-surface-test.vr.js +2 -2
- package/dist/collection/components/q2-tab-container/q2-tab-container.js +1 -1
- package/dist/collection/components/q2-tab-pane/q2-tab-pane.js +1 -1
- package/dist/collection/components/q2-tag/q2-tag.js +6 -3
- package/dist/collection/components/q2-textarea/q2-textarea.js +6 -3
- package/dist/collection/components/q2-tooltip/test/q2-tooltip-test.vr.js +1 -1
- package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.js +5 -3
- package/dist/collection/utils/chart-keyboard.js +76 -0
- package/dist/collection/utils/date-picker/date-picker-helpers.js +239 -0
- package/dist/collection/utils/date-picker/date-picker-types.js +1 -0
- package/dist/collection/utils/index.js +2 -2
- package/dist/collection/utils/test/vr-helpers.js +16 -2
- package/dist/components/charting.js +1603 -1532
- package/dist/components/dataSample.js +7 -7
- package/dist/components/index.js +57 -53
- package/dist/components/index2.js +3 -3
- package/dist/components/q2-action-sheet.js +224 -103
- package/dist/components/q2-avatar2.js +8 -8
- package/dist/components/q2-btn2.js +2 -2
- package/dist/components/q2-calendar.js +15 -10
- package/dist/components/q2-card-image.js +24 -24
- package/dist/components/q2-carousel-pane2.js +3 -3
- package/dist/components/q2-carousel.js +37 -24
- package/dist/components/q2-chart-area.js +415 -369
- package/dist/components/q2-chart-bar.js +193 -148
- package/dist/components/q2-chart-donut.js +185 -158
- package/dist/components/q2-checkbox-group.js +12 -12
- package/dist/components/q2-checkbox2.js +12 -12
- package/dist/components/q2-context.js +30 -29
- package/dist/components/q2-currency.js +9 -9
- package/dist/components/q2-data-table.js +111 -111
- package/dist/components/q2-date-calendar.d.ts +11 -0
- package/dist/components/q2-date-calendar.js +5 -0
- package/dist/components/q2-date-calendar2.js +678 -0
- package/dist/components/q2-date-picker.d.ts +11 -0
- package/dist/components/q2-date-picker.js +5 -0
- package/dist/components/q2-date-picker2.js +875 -0
- package/dist/components/q2-detail.js +3 -3
- package/dist/components/q2-dropdown.js +13 -13
- package/dist/components/q2-editable-field.js +45 -36
- package/dist/components/q2-example.js +11 -11
- package/dist/components/q2-file-picker.js +71 -11
- package/dist/components/q2-form.js +6 -6
- package/dist/components/q2-formatted-text.js +2 -2
- package/dist/components/q2-input2.js +268 -163
- package/dist/components/q2-item2.js +33 -23
- package/dist/components/q2-legend2.js +7 -7
- package/dist/components/q2-list2.js +6 -6
- package/dist/components/q2-message2.js +29 -29
- package/dist/components/q2-meter.js +7 -7
- package/dist/components/q2-modal.js +94 -76
- package/dist/components/q2-month-picker.js +17 -17
- package/dist/components/q2-mutation-observer.js +1 -1
- package/dist/components/q2-optgroup2.js +7 -7
- package/dist/components/q2-option-list2.js +52 -32
- package/dist/components/q2-otp.js +8 -8
- package/dist/components/q2-pagination.js +67 -67
- package/dist/components/q2-pill.js +17 -15
- package/dist/components/q2-popover2.js +77 -53
- package/dist/components/q2-radio-group.js +70 -40
- package/dist/components/q2-radio.js +40 -55
- package/dist/components/q2-relative-time.js +5 -5
- package/dist/components/q2-resize-observer2.js +23 -23
- package/dist/components/q2-search.js +6 -6
- package/dist/components/q2-section.js +33 -33
- package/dist/components/q2-select2.js +47 -40
- package/dist/components/q2-stepper-pane.js +17 -13
- package/dist/components/q2-stepper-vertical.js +4 -4
- package/dist/components/q2-stepper.js +57 -57
- package/dist/components/q2-surface.js +3 -3
- package/dist/components/q2-tab-container.js +18 -18
- package/dist/components/q2-tab-pane.js +2 -2
- package/dist/components/q2-tag2.js +8 -6
- package/dist/components/q2-textarea.js +3 -3
- package/dist/components/sectorHelper.js +78 -78
- package/dist/components/tecton-tab-pane.js +12 -11
- package/dist/esm/{charting-DOZct-UB.js → charting-DFXJklqs.js} +79 -1
- package/dist/esm/click-elsewhere_3.entry.js +85 -20
- package/dist/esm/{dataSample-Dm1zpQNi.js → dataSample-CP_VKNqt.js} +1 -1
- package/dist/esm/date-picker-helpers-D8QnN_AS.js +242 -0
- package/dist/esm/{index-Cps4jSQM.js → index-CP8pXJ-l.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{q2-action-group_2.entry.js → q2-action-group.entry.js} +3 -90
- package/dist/esm/q2-action-sheet.entry.js +99 -19
- package/dist/esm/q2-avatar.entry.js +1 -1
- package/dist/esm/q2-badge_2.entry.js +113 -12
- package/dist/esm/q2-btn_2.entry.js +2 -2
- package/dist/esm/q2-calendar.entry.js +14 -7
- package/dist/esm/q2-card-image.entry.js +4 -4
- package/dist/esm/q2-card.entry.js +1 -1
- package/dist/esm/q2-carousel-pane.entry.js +3 -3
- package/dist/esm/q2-carousel.entry.js +20 -6
- package/dist/esm/q2-chart-area.entry.js +38 -7
- package/dist/esm/q2-chart-bar.entry.js +39 -8
- package/dist/esm/q2-chart-donut.entry.js +31 -13
- package/dist/esm/q2-checkbox-group.entry.js +3 -3
- package/dist/esm/q2-checkbox_2.entry.js +9 -6
- package/dist/esm/q2-context.entry.js +6 -5
- package/dist/esm/q2-currency.entry.js +1 -1
- package/dist/esm/q2-data-table.entry.js +7 -7
- package/dist/esm/q2-date-calendar.entry.js +450 -0
- package/dist/esm/q2-date-picker_2.entry.js +965 -0
- package/dist/esm/q2-detail.entry.js +2 -2
- package/dist/esm/q2-dropdown-item.entry.js +1 -1
- package/dist/esm/q2-dropdown.entry.js +4 -4
- package/dist/esm/q2-editable-field.entry.js +51 -37
- package/dist/esm/q2-example.entry.js +1 -1
- package/dist/esm/q2-file-picker.entry.js +60 -4
- package/dist/esm/q2-form.entry.js +1 -1
- package/dist/esm/q2-formatted-text.entry.js +1 -1
- package/dist/esm/q2-icon.entry.js +1 -1
- package/dist/esm/q2-item.entry.js +21 -3
- package/dist/esm/q2-legend.entry.js +1 -1
- package/dist/esm/q2-link_2.entry.js +2 -2
- package/dist/esm/q2-loc.entry.js +1 -1
- package/dist/esm/q2-message.entry.js +3 -3
- package/dist/esm/q2-meter.entry.js +2 -2
- package/dist/esm/q2-modal.entry.js +59 -17
- package/dist/esm/q2-month-picker.entry.js +3 -3
- package/dist/esm/q2-mutation-observer.entry.js +1 -1
- package/dist/esm/q2-option.entry.js +1 -1
- package/dist/esm/q2-otp.entry.js +5 -5
- package/dist/esm/q2-pagination.entry.js +4 -4
- package/dist/esm/q2-pill.entry.js +8 -5
- package/dist/esm/q2-radio-group.entry.js +22 -4
- package/dist/esm/q2-radio.entry.js +3 -3
- package/dist/esm/q2-relative-time.entry.js +3 -3
- package/dist/esm/q2-resize-observer.entry.js +90 -0
- package/dist/esm/q2-search.entry.js +4 -4
- package/dist/esm/q2-section.entry.js +7 -7
- package/dist/esm/q2-select.entry.js +41 -21
- package/dist/esm/q2-stepper-pane.entry.js +2 -2
- package/dist/esm/q2-stepper-vertical.entry.js +2 -2
- package/dist/esm/q2-stepper.entry.js +2 -2
- package/dist/esm/q2-surface.entry.js +1 -1
- package/dist/esm/q2-tab-container.entry.js +2 -2
- package/dist/esm/q2-tab-pane.entry.js +1 -1
- package/dist/esm/q2-tecton-elements.js +1 -1
- package/dist/esm/q2-textarea.entry.js +2 -2
- package/dist/esm/q2-toast.entry.js +1 -1
- package/dist/esm/q2-tooltip.entry.js +1 -1
- package/dist/esm/{sectorHelper--RMGWGAy.js → sectorHelper-DBtkWtpl.js} +1 -1
- package/dist/esm/tecton-tab-pane.entry.js +5 -3
- package/dist/q2-tecton-elements/{charting-DOZct-UB.js → charting-DFXJklqs.js} +1625 -1554
- package/dist/q2-tecton-elements/click-elsewhere_3.entry.js +98 -54
- package/dist/q2-tecton-elements/{dataSample-Dm1zpQNi.js → dataSample-CP_VKNqt.js} +33 -33
- package/dist/q2-tecton-elements/date-picker-helpers-D8QnN_AS.js +153 -0
- package/dist/q2-tecton-elements/{index-Cps4jSQM.js → index-CP8pXJ-l.js} +2 -2
- package/dist/q2-tecton-elements/{q2-action-group_2.entry.js → q2-action-group.entry.js} +35 -113
- package/dist/q2-tecton-elements/q2-action-sheet.entry.js +169 -84
- package/dist/q2-tecton-elements/q2-avatar.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-badge_2.entry.js +240 -140
- package/dist/q2-tecton-elements/q2-btn_2.entry.js +23 -23
- package/dist/q2-tecton-elements/q2-calendar.entry.js +18 -13
- package/dist/q2-tecton-elements/q2-card-image.entry.js +9 -9
- package/dist/q2-tecton-elements/q2-card.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-carousel-pane.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-carousel.entry.js +24 -11
- package/dist/q2-tecton-elements/q2-chart-area.entry.js +190 -144
- package/dist/q2-tecton-elements/q2-chart-bar.entry.js +382 -338
- package/dist/q2-tecton-elements/q2-chart-donut.entry.js +186 -160
- package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-checkbox_2.entry.js +21 -19
- package/dist/q2-tecton-elements/q2-context.entry.js +18 -17
- package/dist/q2-tecton-elements/q2-currency.entry.js +9 -9
- package/dist/q2-tecton-elements/q2-data-table.entry.js +38 -38
- package/dist/q2-tecton-elements/q2-date-calendar.entry.js +438 -0
- package/dist/q2-tecton-elements/q2-date-picker_2.entry.js +792 -0
- package/dist/q2-tecton-elements/q2-detail.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-dropdown-item.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-dropdown.entry.js +10 -10
- package/dist/q2-tecton-elements/q2-editable-field.entry.js +50 -41
- package/dist/q2-tecton-elements/q2-example.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-file-picker.entry.js +62 -7
- package/dist/q2-tecton-elements/q2-form.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-formatted-text.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-icon.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-item.entry.js +27 -17
- package/dist/q2-tecton-elements/q2-legend.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-link_2.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-loc.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-message.entry.js +30 -30
- package/dist/q2-tecton-elements/q2-meter.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-modal.entry.js +61 -45
- package/dist/q2-tecton-elements/q2-month-picker.entry.js +14 -14
- package/dist/q2-tecton-elements/q2-mutation-observer.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-option.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-otp.entry.js +9 -9
- package/dist/q2-tecton-elements/q2-pagination.entry.js +20 -20
- package/dist/q2-tecton-elements/q2-pill.entry.js +43 -41
- package/dist/q2-tecton-elements/q2-radio-group.entry.js +55 -34
- package/dist/q2-tecton-elements/q2-radio.entry.js +38 -53
- package/dist/q2-tecton-elements/q2-relative-time.entry.js +11 -11
- package/dist/q2-tecton-elements/q2-resize-observer.entry.js +81 -0
- package/dist/q2-tecton-elements/q2-search.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-section.entry.js +25 -25
- package/dist/q2-tecton-elements/q2-select.entry.js +28 -21
- package/dist/q2-tecton-elements/q2-stepper-pane.entry.js +19 -15
- package/dist/q2-tecton-elements/q2-stepper-vertical.entry.js +9 -9
- package/dist/q2-tecton-elements/q2-stepper.entry.js +45 -45
- package/dist/q2-tecton-elements/q2-surface.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-tab-container.entry.js +15 -15
- package/dist/q2-tecton-elements/q2-tab-pane.entry.js +9 -9
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
- package/dist/q2-tecton-elements/q2-textarea.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-toast.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-tooltip.entry.js +1 -1
- package/dist/q2-tecton-elements/{sectorHelper--RMGWGAy.js → sectorHelper-DBtkWtpl.js} +56 -56
- package/dist/q2-tecton-elements/tecton-tab-pane.entry.js +8 -7
- package/dist/types/components/q2-action-sheet/q2-action-sheet.d.ts +21 -1
- package/dist/types/components/q2-action-sheet/test/q2-action-sheet-test.vr.d.ts +1 -0
- package/dist/types/components/q2-btn/q2-btn.d.ts +7 -3
- package/dist/types/components/q2-calendar/q2-calendar.d.ts +10 -2
- package/dist/types/components/q2-card-image/q2-card-image.d.ts +1 -1
- package/dist/types/components/q2-carousel/q2-carousel.d.ts +5 -0
- package/dist/types/components/q2-chart-area/q2-chart-area.d.ts +11 -2
- package/dist/types/components/q2-chart-bar/q2-chart-bar.d.ts +9 -0
- package/dist/types/components/q2-chart-donut/q2-chart-donut.d.ts +1 -0
- package/dist/types/components/q2-checkbox/q2-checkbox.d.ts +4 -3
- package/dist/types/components/q2-checkbox-group/q2-checkbox-group.d.ts +4 -2
- package/dist/types/components/q2-date-calendar/q2-date-calendar.d.ts +122 -0
- package/dist/types/components/q2-date-calendar/test/q2-date-calendar-test.vr.d.ts +1 -0
- package/dist/types/components/q2-date-picker/q2-date-picker.d.ts +304 -0
- package/dist/types/components/q2-date-picker/test/q2-date-picker-test.vr.d.ts +1 -0
- package/dist/types/components/q2-dropdown/q2-dropdown.d.ts +3 -3
- package/dist/types/components/q2-dropdown/test/q2-dropdown-test.vr.d.ts +1 -0
- package/dist/types/components/q2-editable-field/q2-editable-field.d.ts +20 -2
- package/dist/types/components/q2-file-picker/q2-file-picker.d.ts +20 -0
- package/dist/types/components/q2-input/q2-input.d.ts +32 -4
- package/dist/types/components/q2-item/q2-item.d.ts +3 -0
- package/dist/types/components/q2-modal/q2-modal.d.ts +10 -1
- package/dist/types/components/q2-option-list/q2-option-list.d.ts +1 -0
- package/dist/types/components/q2-popover/q2-popover.d.ts +4 -0
- package/dist/types/components/q2-radio/q2-radio.d.ts +3 -2
- package/dist/types/components/q2-radio-group/q2-radio-group.d.ts +18 -2
- package/dist/types/components/q2-search/q2-search.d.ts +3 -1
- package/dist/types/components/q2-select/q2-select.d.ts +12 -4
- package/dist/types/components/q2-textarea/q2-textarea.d.ts +4 -2
- package/dist/types/components.d.ts +1112 -195
- package/dist/types/global.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/utils/chart-keyboard.d.ts +16 -0
- package/dist/types/utils/date-picker/date-picker-helpers.d.ts +47 -0
- package/dist/types/utils/date-picker/date-picker-types.d.ts +42 -0
- package/dist/types/utils/test/vr-helpers.d.ts +2 -0
- package/package.json +3 -3
- package/dist/cjs/q2-optgroup.cjs.entry.js +0 -70
- package/dist/esm/q2-optgroup.entry.js +0 -68
- package/dist/q2-tecton-elements/q2-optgroup.entry.js +0 -88
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as t, h as e, g as o } from "./index-Cqkz7Bnm.js";
|
|
2
2
|
|
|
3
|
-
import { o as i, h as a } from "./index-
|
|
3
|
+
import { o as i, h as a } from "./index-CP8pXJ-l.js";
|
|
4
4
|
|
|
5
5
|
const r = class {
|
|
6
6
|
constructor(e) {
|
|
@@ -9,7 +9,12 @@ const r = class {
|
|
|
9
9
|
// #region State Properties
|
|
10
10
|
this.renderTrigger = 0,
|
|
11
11
|
/** Controls the vertical alignment of the item decorator and single content slot. */
|
|
12
|
-
this.verticalAlign = "top"
|
|
12
|
+
this.verticalAlign = "top", this.handleKeydown = t => {
|
|
13
|
+
this.clickable && t.target === this.itemElement && ("Enter" === t.key || this.isSpaceKey(t)) && t.preventDefault();
|
|
14
|
+
}, this.handleKeyup = t => {
|
|
15
|
+
this.clickable && t.target === this.itemElement && ("Enter" === t.key || this.isSpaceKey(t)) && (t.preventDefault(),
|
|
16
|
+
this.itemElement.click());
|
|
17
|
+
};
|
|
13
18
|
}
|
|
14
19
|
// #endregion
|
|
15
20
|
// #region Component Lifecycle Events
|
|
@@ -79,52 +84,57 @@ const r = class {
|
|
|
79
84
|
const t = [ this.hasHeaderSlotContent, this.hasBodySlotContent, this.hasFooterSlotContent ].filter(Boolean).length;
|
|
80
85
|
return "top" !== this.verticalAlign && 1 === t;
|
|
81
86
|
}
|
|
87
|
+
isSpaceKey(t) {
|
|
88
|
+
return "Space" === t.code || " " === t.key || "Space" === t.key || "Spacebar" === t.key;
|
|
89
|
+
}
|
|
82
90
|
// #endregion
|
|
83
91
|
// #region Render Methods
|
|
84
92
|
render() {
|
|
85
93
|
const {clickable: t} = this;
|
|
86
94
|
return e("div", {
|
|
87
|
-
key: "
|
|
95
|
+
key: "42ea022dfbebe50fc94e275c95f83f7cc3bbc3fd",
|
|
88
96
|
"test-id": "itemContainer",
|
|
89
97
|
class: this.itemClasses,
|
|
90
98
|
ref: t => this.itemElement = t,
|
|
91
99
|
role: t ? "button" : void 0,
|
|
92
|
-
tabIndex: t ? 0 : void 0
|
|
100
|
+
tabIndex: t ? 0 : void 0,
|
|
101
|
+
onKeyDown: this.handleKeydown,
|
|
102
|
+
onKeyUp: this.handleKeyup
|
|
93
103
|
}, this.hasDecoratorSlotContent && e("div", {
|
|
94
|
-
key: "
|
|
104
|
+
key: "5ea5749d40d3fe53b28278272160e093cab9a7f6",
|
|
95
105
|
class: this.decoratorClasses
|
|
96
106
|
}, e("slot", {
|
|
97
|
-
key: "
|
|
107
|
+
key: "f69f67d5fd71dc36fab1e9a7014dd05c89a4250f",
|
|
98
108
|
name: "decorator"
|
|
99
109
|
}, e("slot", {
|
|
100
|
-
key: "
|
|
110
|
+
key: "12e97e5492803c40e7e56785f69e18e8d27aa099",
|
|
101
111
|
name: "bullet"
|
|
102
112
|
}))), e("div", {
|
|
103
|
-
key: "
|
|
113
|
+
key: "6a58cdcfba08332b36317fa072be51f90a24b03b",
|
|
104
114
|
class: this.mainClasses
|
|
105
115
|
}, this.hasHeaderSlotContent && e("div", {
|
|
106
|
-
key: "
|
|
116
|
+
key: "557085b4064d2ef20db3cb0f91388feb5737f83a",
|
|
107
117
|
class: "header"
|
|
108
118
|
}, e("slot", {
|
|
109
|
-
key: "
|
|
119
|
+
key: "455ae71c71174ff1591e7ce5e83c1c6104261e81",
|
|
110
120
|
name: "header"
|
|
111
121
|
})), this.hasBodySlotContent && e("div", {
|
|
112
|
-
key: "
|
|
122
|
+
key: "e003fa668b6640cebd7c0faaca2eb740a77944fc",
|
|
113
123
|
class: "body"
|
|
114
124
|
}, e("slot", {
|
|
115
|
-
key: "
|
|
125
|
+
key: "aa0d5b552db0d4e3ca1692c7798feade76e0e89d",
|
|
116
126
|
name: "body"
|
|
117
127
|
}))), this.hasActionSlotContent && e("div", {
|
|
118
|
-
key: "
|
|
128
|
+
key: "7c606e2cb0593b03844e2ddb48cbd9c4225f4d8d",
|
|
119
129
|
class: this.actionClasses
|
|
120
130
|
}, e("slot", {
|
|
121
|
-
key: "
|
|
131
|
+
key: "9fb61fea2a775d011c3185d403a19877e8b558ba",
|
|
122
132
|
name: "action"
|
|
123
133
|
})), this.hasFooterSlotContent && e("div", {
|
|
124
|
-
key: "
|
|
134
|
+
key: "2cab76f4d546f73365dcc7e1a5ea773b933e355e",
|
|
125
135
|
class: this.footerClasses
|
|
126
136
|
}, e("slot", {
|
|
127
|
-
key: "
|
|
137
|
+
key: "c7b603097d0272199604ec53dce5c99caf37a3d5",
|
|
128
138
|
name: "footer"
|
|
129
139
|
})));
|
|
130
140
|
}
|
|
@@ -133,6 +143,6 @@ const r = class {
|
|
|
133
143
|
}
|
|
134
144
|
};
|
|
135
145
|
|
|
136
|
-
r.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}}}*{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{display:block}:host .item{--comp-border-radius:var(--tct-item-border-radius, var(--app-border-radius-0, 0))}:host([clickable]){cursor:pointer;--comp-background:var(--tct-btn-primary-background, var(--tct-btn-primary-bg, var(--t-a11y-active-gray-color-AA, #404040)))}:host([clickable]) .item{--comp-border-radius:var(--tct-item-border-radius, var(--app-border-radius-1, 4px));--comp-btn-tween:var(--tct-btn-tween, var(--t-btn-tween, var(--tct-tween-1, var(--app-tween-1, 0.2s ease))));--comp-btn-fallback-box-shadow:0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);--comp-active-box-shadow:var(--tct-btn-primary-active-background, #0063a0);--comp-font-color:var(--tct-btn-primary-font-color, var(--app-white, #ffffff));--comp-hover-outer-ring-color:var(--tct-btn-primary-hover-outer-ring-color, var(--comp-background));--comp-hover-inner-ring-color:var(--tct-btn-primary-hover-inner-ring-color, var(--comp-font-color));--comp-hover-box-shadow:var( --tct-btn-primary-hover-box-shadow, 0 0 0 2px var(--comp-hover-inner-ring-color), 0 0 0 4px var(--comp-hover-outer-ring-color) )}:host([clickable]) .item:active{box-shadow:var(--comp-active-box-shadow)}:host([clickable]) .item:focus-visible{box-shadow:var(--const-double-focus-ring)}:host([clickable]:is(:not([disabled]),[disabled=false]):is(:not([aria-disabled]),[aria-disabled=false])) .item:hover{background-color:var(--tct-item-hover-background, var(--t-base-hover))}.action{--tct-radio-label-hidden-columns:18px;--tct-radio-label-margin-right:0
|
|
146
|
+
r.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}}}*{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{display:block}:host .item{--comp-border-radius:var(--tct-item-border-radius, var(--app-border-radius-0, 0))}:host([clickable]){cursor:pointer;--comp-background:var(--tct-btn-primary-background, var(--tct-btn-primary-bg, var(--t-a11y-active-gray-color-AA, #404040)))}:host([clickable]) .item{--comp-border-radius:var(--tct-item-border-radius, var(--app-border-radius-1, 4px));--comp-btn-tween:var(--tct-btn-tween, var(--t-btn-tween, var(--tct-tween-1, var(--app-tween-1, 0.2s ease))));--comp-btn-fallback-box-shadow:0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);--comp-active-box-shadow:var(--tct-btn-primary-active-background, #0063a0);--comp-font-color:var(--tct-btn-primary-font-color, var(--app-white, #ffffff));--comp-hover-outer-ring-color:var(--tct-btn-primary-hover-outer-ring-color, var(--comp-background));--comp-hover-inner-ring-color:var(--tct-btn-primary-hover-inner-ring-color, var(--comp-font-color));--comp-hover-box-shadow:var( --tct-btn-primary-hover-box-shadow, 0 0 0 2px var(--comp-hover-inner-ring-color), 0 0 0 4px var(--comp-hover-outer-ring-color) )}:host([clickable]) .item:active{box-shadow:var(--comp-active-box-shadow)}:host([clickable]) .item:focus-visible{box-shadow:var(--const-double-focus-ring)}:host([clickable]:is(:not([disabled]),[disabled=false]):is(:not([aria-disabled]),[aria-disabled=false])) .item:hover{background-color:var(--tct-item-hover-background, var(--t-base-hover))}.action{--tct-radio-label-hidden-columns:18px;--tct-radio-label-margin-right:0;align-items:var(--tct-item-action-align-items, center);display:flex;grid-row:1;justify-content:center}.action-no-bullet{grid-column:2}.action ::slotted(q2-dropdown[type=icon]),.action ::slotted(q2-btn:not([intent])){--tct-btn-icon-height:var(--tct-item-action-icon-height, var(--app-scale-6x, 30px));--tct-btn-icon-width:var(--tct-item-action-icon-width, var(--app-scale-6x, 30px));--tct-icon-size:var(--tct-item-action-icon-size, var(--app-scale-6x, 30px));--tct-btn-icon-padding:var(--tct-item-action-btn-icon-padding, 0)}.action ::slotted(q2-icon){--tct-icon-size:var(--const-px-18, 18px)}.body{color:var(--tct-item-body-color, inherit);font-size:var(--tct-item-body-font-size, var(--app-font-size, var(--const-px-14, 14px)));font-weight:var(--tct-item-body-font-weight, 400);font-style:var(--tct-item-body-font-style, inherit)}.bullet{--tct-avatar-fallback-height:var(--tct-item-avatar-height, var(--app-scale-7x, 35px));--tct-avatar-fallback-width:var(--tct-item-avatar-width, var(--app-scale-7x, 35px));--tct-avatar-height:var(--tct-item-avatar-height, var(--app-scale-7x, 35px));--tct-avatar-width:var(--tct-item-avatar-width, var(--app-scale-7x, 35px));grid-column:1;grid-row-start:1;grid-row-end:3;padding-top:var(--tct-item-bullet-padding-top, var(--app-scale-1x, 5px));text-align:center}.bullet-no-footer{grid-row-end:2}.vertical-align-center{align-self:center;padding-top:0}.vertical-align-bottom{align-self:end;padding-top:0}.vertical-align-single-content{grid-row-end:2}.footer{color:var(--tct-item-footer-color, inherit);font-size:var(--tct-item-footer-font-size, inherit);font-weight:var(--tct-item-footer-font-weight, inherit);font-style:var(--tct-item-footer-font-style, inherit);grid-column-start:2;grid-column-end:4;grid-row:2}.footer-no-action-nor-bullet{grid-column-start:1;grid-column-end:2}.footer-no-action{grid-column-start:2;grid-column-end:3}.footer-no-bullet{grid-column-start:1;grid-column-end:3}.vertical-align-footer-center{align-self:center;grid-row:1}.vertical-align-footer-bottom{align-self:end;grid-row:1}.header{color:var(--tct-item-header-color, inherit);font-size:var(--tct-item-header-font-size, var(--const-px-16, 16px));font-style:var(--tct-item-header-font-style, inherit);font-weight:var(--tct-item-header-font-weight, 600);line-height:var(--tct-item-header-line-height, 1.5)}.item{font-style:var(--tct-item-font-style, inherit);border:var(--tct-item-border);border-radius:var(--comp-border-radius);transition:box-shadow var(--comp-btn-tween), background-color var(--t-tween-time-out-1, 100ms) var(--t-tween-ease-out);column-gap:var(--tct-item-horizontal-spacing, var(--app-scale-3x, 15px));display:grid;grid-template-columns:minmax(var(--app-scale-7x, 35px), auto) minmax(0, 1fr) minmax(var(--app-scale-5x, 25px), auto);grid-template-rows:auto auto;padding:var(--tct-item-padding, 0);row-gap:var(--tct-item-vertical-spacing, var(--app-scale-2x, 10px))}.item-no-action-nor-bullet{grid-template-columns:auto}.item-no-action{grid-template-columns:minmax(var(--app-scale-7x, 35px), auto) minmax(0, 1fr)}.item-no-footer{grid-template-rows:auto}.item-no-bullet{grid-template-columns:minmax(0, 1fr) minmax(var(--app-scale-5x, 25px), auto)}.item-single-content{grid-template-rows:auto}.main{grid-column:2;grid-row:1}.main-no-action-nor-bullet{grid-column:1}.main-no-bullet{grid-column:1}.vertical-align-main-center{align-self:center}.vertical-align-main-bottom{align-self:end}';
|
|
137
147
|
|
|
138
148
|
export { r as q2_item }
|
|
@@ -90,10 +90,10 @@ const s = class {
|
|
|
90
90
|
// #region Render Methods
|
|
91
91
|
render() {
|
|
92
92
|
return i("click-elsewhere", {
|
|
93
|
-
key: "
|
|
93
|
+
key: "4072c6510e6d0820051d31eb2e031f05b6f4b71e",
|
|
94
94
|
onChange: () => this.onClickElsewhere(this)
|
|
95
95
|
}, i("ul", {
|
|
96
|
-
key: "
|
|
96
|
+
key: "d823017f42f22efe3fdedbb1484b0a7f749022ae"
|
|
97
97
|
}, this.dataWithClasses.map((t => i("li", {
|
|
98
98
|
class: "item"
|
|
99
99
|
}, i("button", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as t, c as i, h as e, g as o } from "./index-Cqkz7Bnm.js";
|
|
2
2
|
|
|
3
|
-
import { h as n } from "./index-
|
|
3
|
+
import { h as n } from "./index-CP8pXJ-l.js";
|
|
4
4
|
|
|
5
5
|
const r = class {
|
|
6
6
|
constructor(e) {
|
|
@@ -132,23 +132,23 @@ const a = class {
|
|
|
132
132
|
// #region Render Methods
|
|
133
133
|
render() {
|
|
134
134
|
return e("div", {
|
|
135
|
-
key: "
|
|
135
|
+
key: "83755626545a0f51c29343772b4ac3bfe3affb44",
|
|
136
136
|
class: this.listClasses,
|
|
137
137
|
ref: t => this.listElement = t
|
|
138
138
|
}, (this.hasFilterSlot || this.hasLabelContent) && e("div", {
|
|
139
|
-
key: "
|
|
139
|
+
key: "ac297dfd9016aa8c7e3ee7664cf82bfbdbb1a18c",
|
|
140
140
|
class: this.headerClasses
|
|
141
141
|
}, e("div", {
|
|
142
|
-
key: "
|
|
142
|
+
key: "bce3d15f585ce2ab6d1db0d1e17d95018dc237cd",
|
|
143
143
|
class: "label"
|
|
144
144
|
}, this.label), this.hasFilterSlot && e("slot", {
|
|
145
|
-
key: "
|
|
145
|
+
key: "373811d46b5adbc711017b816147c12008f142d4",
|
|
146
146
|
name: "filter"
|
|
147
147
|
})), e("div", {
|
|
148
|
-
key: "
|
|
148
|
+
key: "47818e442a69e5d3af55730b51c8aa2d73cc26b8",
|
|
149
149
|
role: "list"
|
|
150
150
|
}, e("slot", {
|
|
151
|
-
key: "
|
|
151
|
+
key: "b0061fb86511665ecf5217f817135bc1533608ae"
|
|
152
152
|
})));
|
|
153
153
|
}
|
|
154
154
|
get hostElement() {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as a, h as
|
|
1
|
+
import { r as a, h as e, g as o } from "./index-Cqkz7Bnm.js";
|
|
2
2
|
|
|
3
|
-
import { o, i as
|
|
3
|
+
import { o as t, i as r, n as s, p as i, l as c } from "./index-CP8pXJ-l.js";
|
|
4
4
|
|
|
5
5
|
const n = class {
|
|
6
|
-
constructor(
|
|
7
|
-
a(this,
|
|
6
|
+
constructor(e) {
|
|
7
|
+
a(this, e),
|
|
8
8
|
// #endregion
|
|
9
9
|
// #region Public Property API
|
|
10
10
|
/** The visual style of the message. The minimal style is for use cases where you have less space to display information. */
|
|
@@ -17,12 +17,12 @@ const n = class {
|
|
|
17
17
|
// #endregion
|
|
18
18
|
// #region Component Lifecycle Events
|
|
19
19
|
componentDidLoad() {
|
|
20
|
-
|
|
20
|
+
t(this.hostElement);
|
|
21
21
|
}
|
|
22
22
|
// #endregion
|
|
23
23
|
// #region Listeners
|
|
24
24
|
delegateFocus(a) {
|
|
25
|
-
|
|
25
|
+
r(a, this.hostElement) && this.hostElement.shadowRoot.querySelector(".message").focus();
|
|
26
26
|
}
|
|
27
27
|
// #endregion
|
|
28
28
|
// #region Public Methods API
|
|
@@ -31,7 +31,7 @@ const n = class {
|
|
|
31
31
|
*/
|
|
32
32
|
async present() {
|
|
33
33
|
const {isFirefox: a} = this;
|
|
34
|
-
this.presentToggle = !this.presentToggle, a &&
|
|
34
|
+
this.presentToggle = !this.presentToggle, a && s((() => {
|
|
35
35
|
this.presentToggle = !1;
|
|
36
36
|
}));
|
|
37
37
|
}
|
|
@@ -41,54 +41,54 @@ const n = class {
|
|
|
41
41
|
return i();
|
|
42
42
|
}
|
|
43
43
|
messageIcon(a) {
|
|
44
|
-
const
|
|
44
|
+
const o = {
|
|
45
45
|
success: "success-filled",
|
|
46
46
|
warning: "warning-filled",
|
|
47
47
|
danger: "error-filled",
|
|
48
48
|
error: "error-filled",
|
|
49
49
|
info: "info-filled"
|
|
50
50
|
};
|
|
51
|
-
return
|
|
52
|
-
type:
|
|
51
|
+
return e("q2-icon", {
|
|
52
|
+
type: o[a] || o.info,
|
|
53
53
|
class: "message-icon"
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
// #endregion
|
|
57
57
|
// #region Render Methods
|
|
58
58
|
render() {
|
|
59
|
-
const {isFirefox: a} = this,
|
|
60
|
-
return
|
|
61
|
-
key: "
|
|
59
|
+
const {isFirefox: a} = this, o = a && this.presentToggle, t = !a && this.presentToggle, {description: r} = this, s = c(`tecton.element.message.type.${this.type ? this.type : "info"}`);
|
|
60
|
+
return e("div", {
|
|
61
|
+
key: "eb6b6c3d9ae10d3f87a9c7be63780f582216ded1",
|
|
62
62
|
tabindex: "-1",
|
|
63
63
|
class: "message",
|
|
64
|
-
role:
|
|
65
|
-
"aria-live":
|
|
66
|
-
"aria-atomic":
|
|
67
|
-
"aria-relevant":
|
|
64
|
+
role: r ? void 0 : "alert",
|
|
65
|
+
"aria-live": r ? void 0 : "assertive",
|
|
66
|
+
"aria-atomic": r ? void 0 : "true",
|
|
67
|
+
"aria-relevant": r && o ? void 0 : "all",
|
|
68
68
|
"test-id": "messageContainer"
|
|
69
|
-
},
|
|
70
|
-
key: "
|
|
69
|
+
}, e("div", {
|
|
70
|
+
key: "e2dc68dc1da013553997ee459dede038f773a5e6",
|
|
71
71
|
class: "bar",
|
|
72
72
|
"test-id": "bar"
|
|
73
|
-
}), "standard" === this.appearance ? this.messageIcon(this.type) : "",
|
|
74
|
-
key: "
|
|
73
|
+
}), "standard" === this.appearance ? this.messageIcon(this.type) : "", t && e("div", {
|
|
74
|
+
key: "cc73afe11cda6117a222a15f3977152e2d22228e",
|
|
75
75
|
class: "sr"
|
|
76
|
-
}),
|
|
77
|
-
key: "
|
|
76
|
+
}), e("div", {
|
|
77
|
+
key: "e92d1fff9c917176b2aded0fc9198fe819e4496c",
|
|
78
78
|
class: "sr message-label"
|
|
79
|
-
},
|
|
80
|
-
key: "
|
|
79
|
+
}, s), e("div", {
|
|
80
|
+
key: "f5ee65aa207ccf68b7cb3abda8ffed78b39937f8",
|
|
81
81
|
class: "message-content",
|
|
82
|
-
"aria-hidden":
|
|
83
|
-
},
|
|
84
|
-
key: "
|
|
82
|
+
"aria-hidden": o ? "true" : void 0
|
|
83
|
+
}, e("slot", {
|
|
84
|
+
key: "493608040edc25dbccfe63c2907a42dc43c023a9"
|
|
85
85
|
})));
|
|
86
86
|
}
|
|
87
87
|
get hostElement() {
|
|
88
|
-
return
|
|
88
|
+
return o(this);
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
91
|
|
|
92
|
-
n.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{display:block}:host([hidden]){display:none}.message{--comp-line-height:var(--tct-message-line-height, var(--t-message-line-height, var(--app-line-height, 1.428571429em)));border-width:var(--tct-message-border-width, 0);border-style:var(--tct-message-border-style, solid);border-color:var(--tct-message-border-color, transparent);position:relative;display:grid;gap:var(--tct-message-gap, 8px);align-items:flex-start;background:var(--comp-message-background
|
|
92
|
+
n.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{display:block}:host([hidden]){display:none}.message{--comp-line-height:var(--tct-message-line-height, var(--t-message-line-height, var(--app-line-height, 1.428571429em)));border-width:var(--tct-message-border-width, 0);border-style:var(--tct-message-border-style, solid);border-color:var(--tct-message-border-color, transparent);position:relative;display:grid;gap:var(--tct-message-gap, 8px);align-items:flex-start;background:var(--comp-message-background);color:var(--tct-message-font-color, var(--t-message-font-color, inherit));box-shadow:var(--tct-message-box-shadow, var(--t-message-box-shadow, var(--app-shadow-1, inherit)));border-radius:var(--tct-message-border-radius, var(--t-message-border-radius, var(--app-border-radius-1, inherit)))}.message:focus{box-shadow:var(--const-global-focus)}.bar{position:absolute;left:0;top:0;bottom:0;height:100%;background:var(--comp-bar-color);width:var(--tct-message-bar-width, var(--t-message-bar-width, 4px));border-radius:var(--tct-message-bar-border-radius, var(--app-border-radius-1) 0 0 var(--app-border-radius-1))}.message-icon{--comp-top-offset:calc(calc(var(--comp-line-height) - var(--comp-icon-size)) / 2);--tct-icon-size:var(--comp-icon-size);top:var(--comp-top-offset);margin-bottom:calc(var(--comp-top-offset) * -1)}.message-content{flex:1;line-height:var(--comp-line-height);font-size:var(--tct-message-font-size, inherit)}::slotted(ul){--comp-list-default-padding:0 0 0 var(--app-scale-3x, 15px);padding:var(--tct-message-list-padding, var(--comp-list-default-padding))}:host(:not([appearance])),:host([appearance=standard]){--comp-default-margin:var(--app-scale-3x, 5px) 0;margin:var(--tct-message-margin, var(--comp-default-margin))}:host(:not([appearance])) .message,:host([appearance=standard]) .message{--comp-icon-size:var(--tct-message-icon-size, var(--t-message-icon-size, 24px));--comp-padding:var(--tct-message-padding, var(--t-message-padding, var(--app-scale-3x, 15px)));grid-template-columns:var(--comp-icon-size) 1fr;padding:var(--comp-padding);padding-bottom:calc(var(--comp-padding) - var(--tct-scale-1, var(--app-scale-1x, 5px)))}:host(:not([appearance])) ::slotted(ul),:host([appearance=standard]) ::slotted(ul){--comp-list-default-margin:var(--app-scale-3x, 15px) 0;margin:var(--tct-message-list-margin, var(--comp-list-default-margin))}:host([appearance=minimal]){margin:0}:host([appearance=minimal]) .message{padding:var(--tct-message-minimal-padding, var(--t-message-minimal-padding, var(--app-scale-2x, 10px)));grid-template-columns:1fr}:host([appearance=minimal]) ::slotted(ul){margin:var(--tct-scale-1, var(--app-scale-1x, 5px)) 0}:host(:not([type])),:host([type=info]){--comp-info-color:#0079c1;--comp-bar-color:var(--tct-message-info-bar-color, var(--const-stoplight-info, var(--comp-info-color)));--comp-message-background:var(--tct-message-info-background, var(--tct-message-background, color-mix(in srgb, var(--t-base, #FFFFFF), var(--comp-bar-color) 10%)))}:host(:not([type])) .message-icon,:host([type=info]) .message-icon{--tct-icon-stroke-primary:var(--tct-stoplight-info, var(--const-stoplight-info, var(--comp-info-color)));--tct-icon-stroke-secondary:var(--tct-stoplight-info, var(--const-stoplight-info, var(--comp-info-color)))}:host([type=success]){--comp-success-color:#0e8a00;--comp-bar-color:var(--tct-message-success-bar-color, var(--const-stoplight-success, var(--comp-success-color)));--comp-message-background:var(--tct-message-success-background, var(--tct-message-background, color-mix(in srgb, var(--t-base, #FFFFFF), var(--comp-bar-color) 10%)))}:host([type=success]) .message-icon{--tct-icon-stroke-primary:var(--tct-stoplight-success, var(--const-stoplight-success, var(--comp-success-color)));--tct-icon-stroke-secondary:var(--tct-stoplight-success, var(--const-stoplight-success, var(--comp-success-color)))}:host([type=warning]){--comp-warning-color:#c35500;--comp-bar-color:var(--tct-message-warning-bar-color, var(--const-stoplight-warning, var(--comp-warning-color)));--comp-message-background:var(--tct-message-warning-background, var(--tct-message-background, color-mix(in srgb, var(--t-base, #FFFFFF), var(--comp-bar-color) 10%)))}:host([type=warning]) .message-icon{--tct-icon-stroke-primary:var(--tct-stoplight-warning, var(--const-stoplight-warning, var(--comp-warning-color)));--tct-icon-stroke-secondary:var(--tct-stoplight-warning, var(--const-stoplight-warning, var(--comp-warning-color)))}:host([type=error]),:host([type=danger]){--comp-error-color:#d20a0a;--comp-bar-color:var(--tct-message-error-bar-color, var(--const-stoplight-alert, var(--comp-error-color)));--comp-message-background:var(--tct-message-error-background, var(--tct-message-background, color-mix(in srgb, var(--t-base, #FFFFFF), var(--comp-bar-color) 10%)))}:host([type=error]) .message-icon,:host([type=danger]) .message-icon{--tct-icon-stroke-primary:var(--tct-stoplight-error, var(--const-stoplight-alert, var(--comp-error-color)));--tct-icon-stroke-secondary:var(--tct-stoplight-error, var(--const-stoplight-alert, var(--comp-error-color)))}';
|
|
93
93
|
|
|
94
94
|
export { n as q2_message }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as t, h as e, g as r } from "./index-Cqkz7Bnm.js";
|
|
2
2
|
|
|
3
|
-
import { l as i } from "./index-
|
|
3
|
+
import { l as i } from "./index-CP8pXJ-l.js";
|
|
4
4
|
|
|
5
5
|
const o = class {
|
|
6
6
|
constructor(e) {
|
|
@@ -110,23 +110,23 @@ const o = class {
|
|
|
110
110
|
render() {
|
|
111
111
|
const [t, r] = this.convertToPercentage(this.completedValue, this.suggestedValue, this.maxValue);
|
|
112
112
|
return e("div", {
|
|
113
|
-
key: "
|
|
113
|
+
key: "046777b3fb3bbfe58ad5ff97878d9c37008dd68d",
|
|
114
114
|
class: "meter-container",
|
|
115
115
|
"aria-label": this.ariaLabel,
|
|
116
116
|
role: "group"
|
|
117
117
|
}, this.label && e("div", {
|
|
118
|
-
key: "
|
|
118
|
+
key: "8b4b84a18e9b91b72cf0b5135136f09e6327fa27",
|
|
119
119
|
class: "label",
|
|
120
120
|
"aria-label": i(this.label)
|
|
121
121
|
}, i(this.label)), this.description && e("div", {
|
|
122
|
-
key: "
|
|
122
|
+
key: "85019eed37e6f346846e71bab7351460f5549bd0",
|
|
123
123
|
class: "description",
|
|
124
124
|
"aria-label": i(this.description)
|
|
125
125
|
}, i(this.description)), this.renderBar(t, r), e("div", {
|
|
126
|
-
key: "
|
|
126
|
+
key: "c6f111962764a49032e645cab917f11ccc2b3cea",
|
|
127
127
|
class: "legends"
|
|
128
128
|
}, e("div", {
|
|
129
|
-
key: "
|
|
129
|
+
key: "c63885e8690d61355867a6d9dc64575dc43bd22b",
|
|
130
130
|
class: "left"
|
|
131
131
|
}, this.completedValue || this.completedLabel ? e("div", {
|
|
132
132
|
class: "completed"
|
|
@@ -141,10 +141,10 @@ const o = class {
|
|
|
141
141
|
}), e("div", {
|
|
142
142
|
class: "legend-label"
|
|
143
143
|
}, this.suggestedValue, " ", i(this.suggestedLabel))) : ""), e("div", {
|
|
144
|
-
key: "
|
|
144
|
+
key: "fd33a6d780d62b72081006d2bc81bce5942cfac7",
|
|
145
145
|
class: "right"
|
|
146
146
|
}, e("div", {
|
|
147
|
-
key: "
|
|
147
|
+
key: "02fa74993895707294400edf76cc9a4882c9b55d",
|
|
148
148
|
class: "max"
|
|
149
149
|
}, this.maxValue, " ", i(this.maxLabel)))));
|
|
150
150
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as t, c as a, h as o, g as i } from "./index-Cqkz7Bnm.js";
|
|
2
2
|
|
|
3
|
-
import { e, w as
|
|
3
|
+
import { e as r, w as e, h as s } from "./index-CP8pXJ-l.js";
|
|
4
4
|
|
|
5
5
|
import { s as n } from "./sanitize-html-string-DPHNpMWE.js";
|
|
6
6
|
|
|
7
|
-
const
|
|
7
|
+
const c = class {
|
|
8
8
|
constructor(o) {
|
|
9
|
-
t(this, o), this.
|
|
10
|
-
this.tctOpen = a(this, "tctOpen", 7), this.tctReady = a(this, "tctReady", 3),
|
|
9
|
+
t(this, o), this.tctBackdropClick = a(this, "tctBackdropClick", 7), this.tctClick = a(this, "tctClick", 7),
|
|
10
|
+
this.tctClose = a(this, "tctClose", 7), this.tctOpen = a(this, "tctOpen", 7), this.tctReady = a(this, "tctReady", 3),
|
|
11
11
|
// #region Own Properties
|
|
12
12
|
// to prevent background scroll when modal scrolls
|
|
13
13
|
this.bodyOverflow = "", this.scheduledAfterRender = [],
|
|
@@ -17,11 +17,16 @@ const d = class {
|
|
|
17
17
|
// #endregion
|
|
18
18
|
// #region Public Property API
|
|
19
19
|
/**
|
|
20
|
-
* Controls visibility of the close button
|
|
20
|
+
* Controls visibility of the close button and whether the modal can be dismissed with the backdrop or Escape key.
|
|
21
21
|
*/
|
|
22
22
|
this.closable = !0,
|
|
23
|
+
/**
|
|
24
|
+
* Whether the action buttons should take up the full width of the modal footer.
|
|
25
|
+
*/
|
|
26
|
+
this.fullWidthButton = !0,
|
|
23
27
|
// #endregion
|
|
24
28
|
// #region Local Methods
|
|
29
|
+
this.hasDialogTransition = () => (getComputedStyle(this.dialogElement).transitionDuration || "0s").split(",").some((t => parseFloat(t) > 0)),
|
|
25
30
|
this.initializeModal = () => {
|
|
26
31
|
// limits 4 buttons in action slot
|
|
27
32
|
this.hostElement.querySelectorAll('[slot="action"]').forEach(((t, a) => {
|
|
@@ -31,15 +36,16 @@ const d = class {
|
|
|
31
36
|
top: 0
|
|
32
37
|
}), this.debouncedScroll();
|
|
33
38
|
}, this.onCancel = t => {
|
|
34
|
-
t.preventDefault(), this.closeModal();
|
|
39
|
+
t.preventDefault(), this.closable && this.closeModal();
|
|
35
40
|
}, this.onClick = t => {
|
|
36
41
|
t.stopPropagation();
|
|
37
42
|
const a = t.target;
|
|
38
43
|
if (!(a instanceof HTMLElement)) return;
|
|
39
44
|
if ("action" === a.getAttribute("slot")) this.tctClick.emit({
|
|
40
45
|
value: a.dataset.value
|
|
41
|
-
}), this.
|
|
46
|
+
}), t.preventDefault(), this.closeModal(); else {
|
|
42
47
|
if (!!a.closest(".interior , q2-modal")) return;
|
|
48
|
+
if (this.tctBackdropClick.emit(), !this.closable) return;
|
|
43
49
|
this.onCancel(t);
|
|
44
50
|
}
|
|
45
51
|
}, this.onContentScroll = () => {
|
|
@@ -53,103 +59,113 @@ const d = class {
|
|
|
53
59
|
// #region Component Lifecycle Events
|
|
54
60
|
disconnectedCallback() {
|
|
55
61
|
var t;
|
|
56
|
-
|
|
62
|
+
null === (t = this.contentElement) || void 0 === t || t.removeEventListener("scroll", this.debouncedScroll);
|
|
57
63
|
}
|
|
58
64
|
componentDidLoad() {
|
|
59
|
-
this.
|
|
60
|
-
this.bodyOverflow = document.body.style.overflow, this.debouncedScroll = e(this.onContentScroll, 100),
|
|
65
|
+
this.tctReady.emit(), this.bodyOverflow = document.body.style.overflow, this.debouncedScroll = r(this.onContentScroll, 100),
|
|
61
66
|
this.contentElement.addEventListener("scroll", this.debouncedScroll);
|
|
62
67
|
}
|
|
63
68
|
componentDidRender() {
|
|
64
|
-
var t;
|
|
65
|
-
null === (t = this.
|
|
69
|
+
var t, a;
|
|
70
|
+
null === (t = this.dialogElement) || void 0 === t || t.setAttribute("closedby", this.closable ? "closerequest" : "none"),
|
|
71
|
+
null === (a = this.scheduledAfterRender) || void 0 === a || a.forEach((t => t())),
|
|
66
72
|
this.scheduledAfterRender = [];
|
|
67
73
|
}
|
|
68
74
|
// #endregion
|
|
69
75
|
// #region Public Methods API
|
|
70
76
|
async closeModal(t) {
|
|
71
|
-
|
|
72
|
-
this.dialogElement.
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
+
var a;
|
|
78
|
+
if (!(null === (a = this.dialogElement) || void 0 === a ? void 0 : a.open)) return;
|
|
79
|
+
const o = "is-open" === this.renderStatus && this.hasDialogTransition();
|
|
80
|
+
document.body.style.overflow = this.bodyOverflow;
|
|
81
|
+
const completeClose = () => {
|
|
82
|
+
"is-closing" === this.renderStatus && (this.dialogElement.removeEventListener("transitionend", onTransitionComplete),
|
|
83
|
+
this.dialogElement.removeEventListener("transitioncancel", onTransitionComplete),
|
|
84
|
+
this.dialogElement.close(), this.renderStatus = null, this.tctClose.emit(t));
|
|
85
|
+
}, onTransitionComplete = t => {
|
|
86
|
+
t.target === this.dialogElement && "transform" === t.propertyName && completeClose();
|
|
87
|
+
};
|
|
88
|
+
o && (this.dialogElement.addEventListener("transitionend", onTransitionComplete),
|
|
89
|
+
this.dialogElement.addEventListener("transitioncancel", onTransitionComplete)),
|
|
90
|
+
this.renderStatus = "is-closing", o || completeClose();
|
|
77
91
|
}
|
|
78
92
|
async openModal(t) {
|
|
79
93
|
var a;
|
|
80
|
-
(null === (a = this.dialogElement) || void 0 === a ? void 0 : a.open)
|
|
81
|
-
await
|
|
94
|
+
if (null === (a = this.dialogElement) || void 0 === a ? void 0 : a.open) return;
|
|
95
|
+
if (this.tctOpen.emit(t), await e(),
|
|
82
96
|
// overwrite the properties if option provided
|
|
83
97
|
t && (this.title = (null == t ? void 0 : t.title) || this.title, this.description = (null == t ? void 0 : t.description) || this.description,
|
|
84
98
|
this.imageSrc = (null == t ? void 0 : t.imageSrc) || this.imageSrc, this.icon = (null == t ? void 0 : t.icon) || this.icon,
|
|
85
99
|
this.description = (null == t ? void 0 : t.description) || this.description), this.dialogElement.showModal(),
|
|
86
100
|
this.dialogElement.open = !0, document.body.style.overflow = "hidden", this.initializeModal(),
|
|
87
|
-
this.renderStatus = "is-opening", this.
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
101
|
+
this.renderStatus = "is-opening", !this.hasDialogTransition()) return void (this.renderStatus = "is-open");
|
|
102
|
+
const completeOpen = t => {
|
|
103
|
+
t.target === this.dialogElement && "transform" === t.propertyName && (this.dialogElement.removeEventListener("transitionend", completeOpen),
|
|
104
|
+
this.dialogElement.removeEventListener("transitioncancel", completeOpen), "is-opening" === this.renderStatus && (this.renderStatus = "is-open"));
|
|
105
|
+
};
|
|
106
|
+
this.dialogElement.addEventListener("transitionend", completeOpen), this.dialogElement.addEventListener("transitioncancel", completeOpen);
|
|
92
107
|
}
|
|
93
108
|
// #endregion
|
|
94
109
|
// #region Render Methods
|
|
95
110
|
render() {
|
|
96
111
|
const t = `${this.renderStatus || ""}`;
|
|
97
112
|
return o("dialog", {
|
|
98
|
-
key: "
|
|
113
|
+
key: "67c724b2e94aa823893cc3477ffa364bc07f3c91",
|
|
99
114
|
ref: t => this.dialogElement = t,
|
|
100
115
|
class: t,
|
|
116
|
+
onCancel: this.onCancel,
|
|
101
117
|
onClick: this.onClick
|
|
102
118
|
}, o("div", {
|
|
103
|
-
key: "
|
|
119
|
+
key: "67b97fe323985b56db793d1cf939192bbfbd424e",
|
|
104
120
|
class: "interior"
|
|
105
121
|
}, this.title && o("header", {
|
|
106
|
-
key: "
|
|
122
|
+
key: "ec0c82831007887e2baeddc50f2b8c0ec24b0d97"
|
|
107
123
|
}, this.title && o("h2", {
|
|
108
|
-
key: "
|
|
124
|
+
key: "10bbd7f9216ce221616acc4c77984aca582eba10",
|
|
109
125
|
class: "title"
|
|
110
126
|
}, this.title), !!this.closable && o("q2-btn", {
|
|
111
|
-
key: "
|
|
127
|
+
key: "8f801bf013c9015c3ae50543067393b26941d3d4",
|
|
112
128
|
class: "btn-close",
|
|
113
129
|
"test-id": "btnClose",
|
|
114
130
|
onClick: this.onCancel,
|
|
115
131
|
label: "tecton.element.modal.close",
|
|
116
132
|
"hide-label": !0
|
|
117
133
|
}, o("q2-icon", {
|
|
118
|
-
key: "
|
|
134
|
+
key: "b546a86894aa6b5dd3576a33eadfa63e21a13590",
|
|
119
135
|
type: "close"
|
|
120
136
|
}))), o("div", {
|
|
121
|
-
key: "
|
|
137
|
+
key: "cdc674c3cee4bca6bda0c60ca2c9f08f83ab4440",
|
|
122
138
|
class: "content",
|
|
123
139
|
ref: t => this.contentElement = t
|
|
124
140
|
}, this.icon && o("div", {
|
|
125
|
-
key: "
|
|
141
|
+
key: "8b8ffc983cecd2ddf1f912db7f00a6ed198a6b16",
|
|
126
142
|
class: "icon"
|
|
127
143
|
}, o("q2-icon", {
|
|
128
|
-
key: "
|
|
144
|
+
key: "cb3430c9216268ed7e8eeea85a83168b2d72ceb1",
|
|
129
145
|
type: this.icon
|
|
130
146
|
})), this.imageSrc && o("div", {
|
|
131
|
-
key: "
|
|
147
|
+
key: "eab34ebad157a6c81a0e24bc726505e3541eac05",
|
|
132
148
|
class: "image"
|
|
133
149
|
}, o("img", {
|
|
134
|
-
key: "
|
|
150
|
+
key: "cdf8e7a1c381a099d811241a410998e16405bda4",
|
|
135
151
|
src: this.imageSrc
|
|
136
152
|
})), s(this.hostElement, "content") && o("slot", {
|
|
137
|
-
key: "
|
|
153
|
+
key: "2674f81de64e3d6069e043f4c0a0db39d70f466a",
|
|
138
154
|
name: "content"
|
|
139
155
|
}), this.description && o("p", {
|
|
140
|
-
key: "
|
|
156
|
+
key: "8dc2a0b031812a6e65012df8d78e5ff3373c117e",
|
|
141
157
|
class: "description"
|
|
142
158
|
}, this.description), this.customMarkup && o("p", {
|
|
143
|
-
key: "
|
|
159
|
+
key: "218d120d1109cff6a1aa79e5b76befbca0ca5857",
|
|
144
160
|
class: "customMarkup",
|
|
145
161
|
innerHTML: n(this.customMarkup)
|
|
146
162
|
})), o("footer", {
|
|
147
|
-
key: "
|
|
163
|
+
key: "ffc5c49fbaabde579fda002a25ac893e798c07de"
|
|
148
164
|
}, o("q2-action-group", {
|
|
149
|
-
key: "
|
|
150
|
-
"full-width":
|
|
165
|
+
key: "295cde61c6e9851aab36f3903f892a5775aca76c",
|
|
166
|
+
"full-width": this.fullWidthButton
|
|
151
167
|
}, o("slot", {
|
|
152
|
-
key: "
|
|
168
|
+
key: "e8ece0f36c2647515d82e3cd21b9c36faf731fd2",
|
|
153
169
|
name: "action"
|
|
154
170
|
})))));
|
|
155
171
|
}
|
|
@@ -158,6 +174,6 @@ const d = class {
|
|
|
158
174
|
}
|
|
159
175
|
};
|
|
160
176
|
|
|
161
|
-
|
|
177
|
+
c.style = '*{box-sizing:border-box}*:active{outline:none}*:focus-visible{outline:none;box-shadow:var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit;font-stretch:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}@container style(--t-prefers-motion: "reduced"){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")){@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}}@keyframes showBackdrop{from{opacity:0}}@keyframes hideBackdrop{to{opacity:0}}dialog{--comp-border-radius-default:var(--app-scale-3x, 15px);--comp-border-radius:var(--tct-modal-border-radius, var(--comp-border-radius-default));--comp-desktop-border-radius:var(--tct-modal-border-radius, var(--app-scale-3x, 15px));--comp-close-button-size:var(--tct-modal-close-button-size, var(--t-a11y-min-size, 44px));--comp-header-height:var(--tct-modal-header-height, var(--t-a11y-min-size, 44px));--comp-dialog-background:var(--tct-modal-background, var(--t-base, #ffffff));--comp-dialog-color:var(--tct-modal-color, inherit);--comp-dialog-padding:var(--tct-modal-padding, var(--app-scale-3x, 15px));--comp-content-gradient-height:var(--tct-modal-content-gradient-height, var(--app-scale-2x, 10px));--comp-dialog-gap:var(--tct-modal-gap, var(--app-scale-2x, 10px));--comp-dialog-max-width:var(--tct-modal-max-width, 600px);--comp-dialog-max-height:var(--tct-modal-max-height, 100vh);--comp-dialog-min-height:var(--tct-modal-min-height, inherit);--comp-dialog-box-shadow:var(--tct-modal-box-shadow, var(--app-shadow-2, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 4px 8px rgba(0, 0, 0, 0.14)));position:fixed;top:100%;bottom:unset;color:var(--comp-dialog-color);background:var(--comp-dialog-background);transition:transform var(--tct-modal-tween, var(--app-tween-2, 0.4s ease)), opacity var(--tct-modal-tween, var(--app-tween-2, 0.4s ease));width:100%;max-width:var(--comp-dialog-max-width);max-height:var(--comp-dialog-max-height);border:0;border-radius:var(--comp-border-radius);box-shadow:var(--comp-dialog-box-shadow);padding:0;height:auto;overflow:hidden}dialog::backdrop{opacity:0;background:var(--tct-modal-backdrop-background, var(--t-top-a2, rgba(13, 13, 13, 0.6)))}dialog[open]{border-radius:var(--comp-desktop-border-radius);top:0px;bottom:0px;height:fit-content;transform:translateY(10%);opacity:1}dialog[open].is-opening,dialog[open].is-open{opacity:1;transform:translateY(0)}dialog[open].is-opening::backdrop,dialog[open].is-open::backdrop{opacity:1;animation:showBackdrop var(--tct-modal-tween, var(--app-tween-2, 0.4s ease))}dialog[open].is-closing{transform:translateY(10%)}dialog[open].is-closing::backdrop{animation:hideBackdrop var(--tct-modal-tween, var(--app-tween-2, 0.4s ease))}.content{overflow-y:auto;--comp-scrollbar-size:var(--tct-scrollbar-size, var(--t-scrollbar-size, var(--app-scale-1x, 5px)));--comp-scrollbar-border-radius:var(--tct-scrollbar-border-radius, var(--t-scrollbar-border-radius, var(--app-border-radius-1, 4px)));--comp-scrollbar-color:var(--tct-scrollbar-color, var(--t-scrollbar-color, var(--t-a11y-gray-color, #747474)));scrollbar-width:thin;scrollbar-color:var(--comp-scrollbar-color) transparent}.content::-webkit-scrollbar{width:var(--comp-scrollbar-size);height:var(--comp-scrollbar-size);margin:5px}.content::-webkit-scrollbar-thumb{background:var(--comp-scrollbar-color);border-radius:var(--comp-scrollbar-border-radius)}.content::-webkit-scrollbar-track{background:transparent;border-radius:var(--comp-scrollbar-border-radius)}.content .icon{height:var(--tct-modal-icon-size, var(--app-scale-9x, 45px));margin:var(--tct-modal-icon-margin, var(--app-scale-2x, 10px));display:flex;justify-content:center}.content .icon q2-icon{width:var(--tct-modal-icon-size, var(--app-scale-9x, 45px))}.content .image{display:flex;justify-content:center}.content .image img{width:100%;border-radius:var(--tct-modal-image-border-radius, var(--app-border-radius-2, 8px))}.content .description{font-size:var(--tct-modal-description-font-size, var(--const-px-14, 14px))}.content.more-gradient{-webkit-mask-image:linear-gradient(to bottom, red 85%, transparent 100%);mask-image:linear-gradient(to bottom, red 85%, transparent 100%)}.interior{box-sizing:border-box;display:grid;min-height:var(--comp-dialog-min-height);grid-template-rows:auto minmax(0, 1fr) auto;gap:var(--comp-dialog-gap);max-height:min(var(--comp-dialog-max-height), 100vh - 2 * var(--comp-dialog-padding));padding:var(--comp-dialog-padding)}.interior.is-list header,.interior.is-list footer{position:relative}.interior.is-list header:before,.interior.is-list footer:before{content:"";display:block;position:absolute;left:0;height:var(--comp-content-gradient-height);width:100%;z-index:1}header{display:flex;justify-content:space-between;align-items:center}header .title{text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;text-align:left;font-weight:var(--tct-modal-title-font-weight, 400);margin:0}header .btn-close{grid-area:close;width:var(--comp-close-button-size);height:var(--comp-close-button-size)}footer{--tct-action-group-margin:var(--app-scale-2x, 10px) 0 0;align-self:end}@media screen and (max-height: 400px){.content{-webkit-mask-image:none;mask-image:none;overflow-y:visible}.interior{grid-template-rows:auto auto auto;overflow-y:auto;--comp-scrollbar-size:var(--tct-scrollbar-size, var(--t-scrollbar-size, var(--app-scale-1x, 5px)));--comp-scrollbar-border-radius:var(--tct-scrollbar-border-radius, var(--t-scrollbar-border-radius, var(--app-border-radius-1, 4px)));--comp-scrollbar-color:var(--tct-scrollbar-color, var(--t-scrollbar-color, var(--t-a11y-gray-color, #747474)));scrollbar-width:thin;scrollbar-color:var(--comp-scrollbar-color) transparent}.interior::-webkit-scrollbar{width:var(--comp-scrollbar-size);height:var(--comp-scrollbar-size);margin:5px}.interior::-webkit-scrollbar-thumb{background:var(--comp-scrollbar-color);border-radius:var(--comp-scrollbar-border-radius)}.interior::-webkit-scrollbar-track{background:transparent;border-radius:var(--comp-scrollbar-border-radius)}}';
|
|
162
178
|
|
|
163
|
-
export {
|
|
179
|
+
export { c as q2_modal }
|