q2-tecton-elements 1.72.0 → 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 +38990 -33801
- package/dist/cjs/{charting-ClN1ldqv.js → charting-CdNTrVBe.js} +80 -0
- package/dist/cjs/click-elsewhere_3.cjs.entry.js +81 -14
- package/dist/cjs/{dataSample-BYR-wrOn.js → dataSample-B4blhlH4.js} +1 -1
- package/dist/cjs/date-picker-helpers-UYvPn98R.js +257 -0
- package/dist/cjs/{index-BY3aao8R.js → index-BqyWHpNu.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/q2-action-group.cjs.entry.js +1 -1
- package/dist/cjs/q2-action-sheet.cjs.entry.js +98 -18
- package/dist/cjs/q2-avatar.cjs.entry.js +1 -1
- package/dist/cjs/q2-badge_2.cjs.entry.js +2 -2
- package/dist/cjs/q2-btn_2.cjs.entry.js +2 -2
- package/dist/cjs/q2-calendar.cjs.entry.js +9 -4
- package/dist/cjs/q2-card-image.cjs.entry.js +3 -3
- package/dist/cjs/q2-card.cjs.entry.js +1 -1
- package/dist/cjs/q2-carousel-pane.cjs.entry.js +3 -3
- package/dist/cjs/q2-carousel.cjs.entry.js +20 -6
- package/dist/cjs/q2-chart-area.cjs.entry.js +38 -7
- package/dist/cjs/q2-chart-bar.cjs.entry.js +39 -8
- package/dist/cjs/q2-chart-donut.cjs.entry.js +31 -13
- package/dist/cjs/q2-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/q2-checkbox_2.cjs.entry.js +8 -5
- package/dist/cjs/q2-context.cjs.entry.js +4 -4
- package/dist/cjs/q2-currency.cjs.entry.js +1 -1
- package/dist/cjs/q2-data-table.cjs.entry.js +7 -7
- package/dist/cjs/q2-date-calendar.cjs.entry.js +452 -0
- package/dist/cjs/q2-date-picker_2.cjs.entry.js +968 -0
- package/dist/cjs/q2-detail.cjs.entry.js +2 -2
- package/dist/cjs/q2-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/q2-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/q2-editable-field.cjs.entry.js +20 -7
- package/dist/cjs/q2-example.cjs.entry.js +1 -1
- package/dist/cjs/q2-file-picker.cjs.entry.js +2 -2
- package/dist/cjs/q2-form.cjs.entry.js +1 -1
- package/dist/cjs/q2-formatted-text.cjs.entry.js +1 -1
- package/dist/cjs/q2-icon.cjs.entry.js +1 -1
- package/dist/cjs/q2-item.cjs.entry.js +20 -2
- package/dist/cjs/q2-legend.cjs.entry.js +1 -1
- package/dist/cjs/q2-link_2.cjs.entry.js +2 -2
- package/dist/cjs/q2-loc.cjs.entry.js +1 -1
- package/dist/cjs/q2-message.cjs.entry.js +2 -2
- package/dist/cjs/q2-meter.cjs.entry.js +2 -2
- package/dist/cjs/q2-modal.cjs.entry.js +2 -2
- package/dist/cjs/q2-month-picker.cjs.entry.js +3 -3
- package/dist/cjs/q2-mutation-observer.cjs.entry.js +1 -1
- package/dist/cjs/q2-option.cjs.entry.js +1 -1
- package/dist/cjs/q2-otp.cjs.entry.js +5 -5
- package/dist/cjs/q2-pagination.cjs.entry.js +4 -4
- package/dist/cjs/q2-pill.cjs.entry.js +7 -4
- package/dist/cjs/q2-radio-group.cjs.entry.js +2 -2
- package/dist/cjs/q2-radio.cjs.entry.js +2 -2
- package/dist/cjs/q2-relative-time.cjs.entry.js +2 -2
- package/dist/cjs/q2-resize-observer.cjs.entry.js +1 -1
- package/dist/cjs/q2-search.cjs.entry.js +3 -3
- package/dist/cjs/q2-section.cjs.entry.js +3 -3
- package/dist/cjs/q2-select.cjs.entry.js +8 -4
- package/dist/cjs/q2-stepper-pane.cjs.entry.js +2 -2
- package/dist/cjs/q2-stepper-vertical.cjs.entry.js +2 -2
- package/dist/cjs/q2-stepper.cjs.entry.js +2 -2
- package/dist/cjs/q2-surface.cjs.entry.js +1 -1
- package/dist/cjs/q2-tab-container.cjs.entry.js +2 -2
- package/dist/cjs/q2-tab-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
- package/dist/cjs/q2-textarea.cjs.entry.js +2 -2
- package/dist/cjs/q2-toast.cjs.entry.js +1 -1
- package/dist/cjs/q2-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/{sectorHelper-9TWL-3dw.js → sectorHelper-CxhDl5ql.js} +1 -1
- package/dist/cjs/tecton-tab-pane.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/q2-action-sheet/q2-action-sheet.css +52 -0
- package/dist/collection/components/q2-action-sheet/q2-action-sheet.js +98 -18
- package/dist/collection/components/q2-action-sheet/test/q2-action-sheet-test.vr.js +124 -0
- package/dist/collection/components/q2-avatar/q2-avatar.js +1 -1
- package/dist/collection/components/q2-btn/q2-btn.css +84 -136
- package/dist/collection/components/q2-btn/q2-btn.js +10 -4
- package/dist/collection/components/q2-btn/test/q2-btn-test.vr.js +99 -43
- package/dist/collection/components/q2-calendar/q2-calendar.js +16 -5
- package/dist/collection/components/q2-calendar/q2-month-picker.js +2 -2
- package/dist/collection/components/q2-calendar/test/q2-calendar-test.vr.js +3 -13
- package/dist/collection/components/q2-card-image/q2-card-image.js +2 -2
- package/dist/collection/components/q2-carousel/q2-carousel.js +19 -5
- package/dist/collection/components/q2-carousel/test/q2-carousel-test.vr.js +32 -0
- package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.js +2 -2
- package/dist/collection/components/q2-chart-area/q2-chart-area.css +11 -0
- package/dist/collection/components/q2-chart-area/q2-chart-area.js +53 -7
- package/dist/collection/components/q2-chart-area/test/q2-chart-area-test.vr.js +14 -0
- package/dist/collection/components/q2-chart-bar/q2-chart-bar.css +11 -0
- package/dist/collection/components/q2-chart-bar/q2-chart-bar.js +50 -4
- package/dist/collection/components/q2-chart-bar/test/q2-chart-bar-test.vr.js +14 -0
- package/dist/collection/components/q2-chart-donut/q2-chart-donut.js +30 -10
- package/dist/collection/components/q2-chart-donut/test/q2-chart-donut-test.vr.js +25 -0
- package/dist/collection/components/q2-checkbox/q2-checkbox.js +6 -3
- package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.js +6 -3
- package/dist/collection/components/q2-context/q2-context.js +3 -3
- package/dist/collection/components/q2-context/test/q2-context-test.vr.js +3 -3
- package/dist/collection/components/q2-currency/q2-currency.js +1 -1
- package/dist/collection/components/q2-data-table/q2-data-table.css +3 -0
- package/dist/collection/components/q2-data-table/q2-data-table.js +5 -5
- package/dist/collection/components/q2-data-table/test/q2-data-table-test.vr.js +47 -0
- package/dist/collection/components/q2-date-calendar/q2-date-calendar.css +393 -0
- package/dist/collection/components/q2-date-calendar/q2-date-calendar.js +1022 -0
- package/dist/collection/components/q2-date-calendar/test/q2-date-calendar-test.vr.js +111 -0
- package/dist/collection/components/q2-date-picker/q2-date-picker.css +138 -0
- package/dist/collection/components/q2-date-picker/q2-date-picker.js +2010 -0
- package/dist/collection/components/q2-date-picker/test/q2-date-picker-test.vr.js +179 -0
- package/dist/collection/components/q2-detail/q2-detail.js +1 -1
- package/dist/collection/components/q2-dropdown/q2-dropdown.js +5 -5
- package/dist/collection/components/q2-editable-field/q2-editable-field.js +27 -8
- package/dist/collection/components/q2-example/q2-example.js +1 -1
- package/dist/collection/components/q2-file-picker/q2-file-picker.js +1 -1
- package/dist/collection/components/q2-form/q2-form.js +1 -1
- package/dist/collection/components/q2-formatted-text/q2-formatted-text.js +1 -1
- package/dist/collection/components/q2-input/q2-input.js +6 -3
- package/dist/collection/components/q2-item/q2-item.js +19 -1
- package/dist/collection/components/q2-item/test/q2-item-test.vr.js +2 -2
- package/dist/collection/components/q2-legend/q2-legend.js +1 -1
- package/dist/collection/components/q2-list/q2-list.js +1 -1
- package/dist/collection/components/q2-message/q2-message.js +1 -1
- package/dist/collection/components/q2-meter/q2-meter.js +1 -1
- package/dist/collection/components/q2-modal/q2-modal.js +1 -1
- package/dist/collection/components/q2-modal/test/q2-modal-test.vr.js +7 -7
- package/dist/collection/components/q2-mutation-observer/q2-mutation-observer.js +1 -1
- package/dist/collection/components/q2-optgroup/q2-optgroup.js +1 -1
- package/dist/collection/components/q2-option-list/q2-option-list.js +36 -4
- package/dist/collection/components/q2-otp/q2-otp.js +4 -4
- package/dist/collection/components/q2-pagination/q2-pagination.js +3 -3
- package/dist/collection/components/q2-pill/q2-pill.js +6 -3
- package/dist/collection/components/q2-popover/q2-popover.css +1 -0
- package/dist/collection/components/q2-popover/q2-popover.js +43 -8
- package/dist/collection/components/q2-radio/q2-radio.js +5 -2
- package/dist/collection/components/q2-radio-group/q2-radio-group.js +6 -3
- package/dist/collection/components/q2-relative-time/q2-relative-time.js +1 -1
- package/dist/collection/components/q2-resize-observer/q2-resize-observer.js +1 -1
- package/dist/collection/components/q2-search/q2-search.js +6 -3
- package/dist/collection/components/q2-section/q2-section.js +2 -2
- package/dist/collection/components/q2-select/q2-select.js +12 -5
- package/dist/collection/components/q2-stepper/q2-stepper.js +1 -1
- package/dist/collection/components/q2-stepper-pane/q2-stepper-pane.js +1 -1
- package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js +1 -1
- package/dist/collection/components/q2-surface/q2-surface.js +1 -1
- package/dist/collection/components/q2-surface/test/q2-surface-test.vr.js +2 -2
- package/dist/collection/components/q2-tab-container/q2-tab-container.js +1 -1
- package/dist/collection/components/q2-tab-pane/q2-tab-pane.js +1 -1
- package/dist/collection/components/q2-tag/q2-tag.js +6 -3
- package/dist/collection/components/q2-textarea/q2-textarea.js +6 -3
- package/dist/collection/components/q2-tooltip/test/q2-tooltip-test.vr.js +1 -1
- package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.js +2 -2
- package/dist/collection/utils/chart-keyboard.js +76 -0
- package/dist/collection/utils/date-picker/date-picker-helpers.js +239 -0
- package/dist/collection/utils/date-picker/date-picker-types.js +1 -0
- package/dist/collection/utils/index.js +1 -1
- package/dist/components/charting.js +1603 -1532
- package/dist/components/dataSample.js +7 -7
- package/dist/components/index.js +57 -53
- package/dist/components/index2.js +2 -2
- package/dist/components/q2-action-sheet.js +224 -103
- package/dist/components/q2-avatar2.js +8 -8
- package/dist/components/q2-btn2.js +2 -2
- package/dist/components/q2-calendar.js +6 -3
- package/dist/components/q2-card-image.js +2 -2
- package/dist/components/q2-carousel-pane2.js +3 -3
- package/dist/components/q2-carousel.js +37 -24
- package/dist/components/q2-chart-area.js +415 -369
- package/dist/components/q2-chart-bar.js +193 -148
- package/dist/components/q2-chart-donut.js +185 -158
- package/dist/components/q2-checkbox-group.js +6 -6
- package/dist/components/q2-checkbox2.js +11 -11
- package/dist/components/q2-context.js +20 -20
- package/dist/components/q2-currency.js +9 -9
- package/dist/components/q2-data-table.js +111 -111
- package/dist/components/q2-date-calendar.d.ts +11 -0
- package/dist/components/q2-date-calendar.js +5 -0
- package/dist/components/q2-date-calendar2.js +678 -0
- package/dist/components/q2-date-picker.d.ts +11 -0
- package/dist/components/q2-date-picker.js +5 -0
- package/dist/components/q2-date-picker2.js +875 -0
- package/dist/components/q2-detail.js +3 -3
- package/dist/components/q2-dropdown.js +17 -17
- package/dist/components/q2-editable-field.js +16 -5
- package/dist/components/q2-example.js +11 -11
- package/dist/components/q2-file-picker.js +1 -1
- package/dist/components/q2-form.js +6 -6
- package/dist/components/q2-formatted-text.js +2 -2
- package/dist/components/q2-input2.js +5 -5
- package/dist/components/q2-item2.js +32 -22
- package/dist/components/q2-legend2.js +7 -7
- package/dist/components/q2-list2.js +6 -6
- package/dist/components/q2-message2.js +9 -9
- package/dist/components/q2-meter.js +7 -7
- package/dist/components/q2-modal.js +22 -22
- package/dist/components/q2-month-picker.js +17 -17
- package/dist/components/q2-mutation-observer.js +1 -1
- package/dist/components/q2-optgroup2.js +7 -7
- package/dist/components/q2-option-list2.js +55 -34
- package/dist/components/q2-otp.js +8 -8
- package/dist/components/q2-pagination.js +67 -67
- package/dist/components/q2-pill.js +16 -14
- package/dist/components/q2-popover2.js +70 -49
- package/dist/components/q2-radio-group.js +7 -7
- package/dist/components/q2-radio.js +6 -6
- package/dist/components/q2-relative-time.js +1 -1
- package/dist/components/q2-resize-observer2.js +23 -23
- package/dist/components/q2-search.js +5 -5
- package/dist/components/q2-section.js +19 -19
- package/dist/components/q2-select2.js +2 -2
- package/dist/components/q2-stepper-pane.js +9 -9
- 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 +17 -17
- 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 +10 -10
- package/dist/esm/{charting-DOZct-UB.js → charting-DFXJklqs.js} +79 -1
- package/dist/esm/click-elsewhere_3.entry.js +81 -14
- package/dist/esm/{dataSample-Dm1zpQNi.js → dataSample-CP_VKNqt.js} +1 -1
- package/dist/esm/date-picker-helpers-D8QnN_AS.js +242 -0
- package/dist/esm/{index-DJw6Feh0.js → index-CP8pXJ-l.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/q2-action-group.entry.js +1 -1
- package/dist/esm/q2-action-sheet.entry.js +99 -19
- package/dist/esm/q2-avatar.entry.js +1 -1
- package/dist/esm/q2-badge_2.entry.js +2 -2
- package/dist/esm/q2-btn_2.entry.js +2 -2
- package/dist/esm/q2-calendar.entry.js +9 -4
- package/dist/esm/q2-card-image.entry.js +3 -3
- package/dist/esm/q2-card.entry.js +1 -1
- package/dist/esm/q2-carousel-pane.entry.js +3 -3
- package/dist/esm/q2-carousel.entry.js +20 -6
- package/dist/esm/q2-chart-area.entry.js +38 -7
- package/dist/esm/q2-chart-bar.entry.js +39 -8
- package/dist/esm/q2-chart-donut.entry.js +31 -13
- package/dist/esm/q2-checkbox-group.entry.js +2 -2
- package/dist/esm/q2-checkbox_2.entry.js +8 -5
- package/dist/esm/q2-context.entry.js +4 -4
- package/dist/esm/q2-currency.entry.js +1 -1
- package/dist/esm/q2-data-table.entry.js +7 -7
- package/dist/esm/q2-date-calendar.entry.js +450 -0
- package/dist/esm/q2-date-picker_2.entry.js +965 -0
- package/dist/esm/q2-detail.entry.js +2 -2
- package/dist/esm/q2-dropdown-item.entry.js +1 -1
- package/dist/esm/q2-dropdown.entry.js +3 -3
- package/dist/esm/q2-editable-field.entry.js +20 -7
- package/dist/esm/q2-example.entry.js +1 -1
- package/dist/esm/q2-file-picker.entry.js +2 -2
- package/dist/esm/q2-form.entry.js +1 -1
- package/dist/esm/q2-formatted-text.entry.js +1 -1
- package/dist/esm/q2-icon.entry.js +1 -1
- package/dist/esm/q2-item.entry.js +20 -2
- package/dist/esm/q2-legend.entry.js +1 -1
- package/dist/esm/q2-link_2.entry.js +2 -2
- package/dist/esm/q2-loc.entry.js +1 -1
- package/dist/esm/q2-message.entry.js +2 -2
- package/dist/esm/q2-meter.entry.js +2 -2
- package/dist/esm/q2-modal.entry.js +2 -2
- package/dist/esm/q2-month-picker.entry.js +3 -3
- package/dist/esm/q2-mutation-observer.entry.js +1 -1
- package/dist/esm/q2-option.entry.js +1 -1
- package/dist/esm/q2-otp.entry.js +5 -5
- package/dist/esm/q2-pagination.entry.js +4 -4
- package/dist/esm/q2-pill.entry.js +7 -4
- package/dist/esm/q2-radio-group.entry.js +2 -2
- package/dist/esm/q2-radio.entry.js +2 -2
- package/dist/esm/q2-relative-time.entry.js +2 -2
- package/dist/esm/q2-resize-observer.entry.js +1 -1
- package/dist/esm/q2-search.entry.js +3 -3
- package/dist/esm/q2-section.entry.js +3 -3
- package/dist/esm/q2-select.entry.js +8 -4
- package/dist/esm/q2-stepper-pane.entry.js +2 -2
- package/dist/esm/q2-stepper-vertical.entry.js +2 -2
- package/dist/esm/q2-stepper.entry.js +2 -2
- package/dist/esm/q2-surface.entry.js +1 -1
- package/dist/esm/q2-tab-container.entry.js +2 -2
- package/dist/esm/q2-tab-pane.entry.js +1 -1
- package/dist/esm/q2-tecton-elements.js +1 -1
- package/dist/esm/q2-textarea.entry.js +2 -2
- package/dist/esm/q2-toast.entry.js +1 -1
- package/dist/esm/q2-tooltip.entry.js +1 -1
- package/dist/esm/{sectorHelper--RMGWGAy.js → sectorHelper-DBtkWtpl.js} +1 -1
- package/dist/esm/tecton-tab-pane.entry.js +2 -2
- package/dist/q2-tecton-elements/{charting-DOZct-UB.js → charting-DFXJklqs.js} +1625 -1554
- package/dist/q2-tecton-elements/click-elsewhere_3.entry.js +85 -43
- package/dist/q2-tecton-elements/{dataSample-Dm1zpQNi.js → dataSample-CP_VKNqt.js} +33 -33
- package/dist/q2-tecton-elements/date-picker-helpers-D8QnN_AS.js +153 -0
- package/dist/q2-tecton-elements/{index-DJw6Feh0.js → index-CP8pXJ-l.js} +1 -1
- package/dist/q2-tecton-elements/q2-action-group.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-action-sheet.entry.js +169 -84
- package/dist/q2-tecton-elements/q2-avatar.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-badge_2.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-btn_2.entry.js +23 -23
- package/dist/q2-tecton-elements/q2-calendar.entry.js +7 -4
- package/dist/q2-tecton-elements/q2-card-image.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-card.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-carousel-pane.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-carousel.entry.js +24 -11
- package/dist/q2-tecton-elements/q2-chart-area.entry.js +187 -141
- package/dist/q2-tecton-elements/q2-chart-bar.entry.js +377 -333
- package/dist/q2-tecton-elements/q2-chart-donut.entry.js +184 -158
- package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-checkbox_2.entry.js +20 -18
- package/dist/q2-tecton-elements/q2-context.entry.js +21 -21
- package/dist/q2-tecton-elements/q2-currency.entry.js +9 -9
- package/dist/q2-tecton-elements/q2-data-table.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-date-calendar.entry.js +438 -0
- package/dist/q2-tecton-elements/q2-date-picker_2.entry.js +792 -0
- package/dist/q2-tecton-elements/q2-detail.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-dropdown-item.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-dropdown.entry.js +16 -16
- package/dist/q2-tecton-elements/q2-editable-field.entry.js +17 -6
- package/dist/q2-tecton-elements/q2-example.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-file-picker.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-form.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-formatted-text.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-icon.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-item.entry.js +26 -16
- package/dist/q2-tecton-elements/q2-legend.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-link_2.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-loc.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-message.entry.js +28 -28
- package/dist/q2-tecton-elements/q2-meter.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-modal.entry.js +18 -18
- package/dist/q2-tecton-elements/q2-month-picker.entry.js +14 -14
- package/dist/q2-tecton-elements/q2-mutation-observer.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-option.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-otp.entry.js +9 -9
- package/dist/q2-tecton-elements/q2-pagination.entry.js +20 -20
- package/dist/q2-tecton-elements/q2-pill.entry.js +42 -40
- package/dist/q2-tecton-elements/q2-radio-group.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-radio.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-relative-time.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-resize-observer.entry.js +13 -13
- package/dist/q2-tecton-elements/q2-search.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-section.entry.js +20 -20
- package/dist/q2-tecton-elements/q2-select.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-stepper-pane.entry.js +13 -13
- 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 +20 -20
- package/dist/q2-tecton-elements/q2-tab-pane.entry.js +7 -7
- 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 +6 -6
- 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-carousel/q2-carousel.d.ts +5 -0
- package/dist/types/components/q2-chart-area/q2-chart-area.d.ts +11 -2
- package/dist/types/components/q2-chart-bar/q2-chart-bar.d.ts +9 -0
- package/dist/types/components/q2-chart-donut/q2-chart-donut.d.ts +1 -0
- package/dist/types/components/q2-checkbox/q2-checkbox.d.ts +4 -3
- package/dist/types/components/q2-checkbox-group/q2-checkbox-group.d.ts +4 -2
- package/dist/types/components/q2-date-calendar/q2-date-calendar.d.ts +122 -0
- package/dist/types/components/q2-date-calendar/test/q2-date-calendar-test.vr.d.ts +1 -0
- package/dist/types/components/q2-date-picker/q2-date-picker.d.ts +304 -0
- package/dist/types/components/q2-date-picker/test/q2-date-picker-test.vr.d.ts +1 -0
- package/dist/types/components/q2-dropdown/q2-dropdown.d.ts +3 -3
- package/dist/types/components/q2-editable-field/q2-editable-field.d.ts +14 -1
- package/dist/types/components/q2-input/q2-input.d.ts +4 -2
- package/dist/types/components/q2-item/q2-item.d.ts +3 -0
- package/dist/types/components/q2-option-list/q2-option-list.d.ts +1 -0
- package/dist/types/components/q2-popover/q2-popover.d.ts +4 -0
- package/dist/types/components/q2-radio/q2-radio.d.ts +3 -2
- package/dist/types/components/q2-radio-group/q2-radio-group.d.ts +4 -2
- package/dist/types/components/q2-search/q2-search.d.ts +3 -1
- package/dist/types/components/q2-select/q2-select.d.ts +4 -2
- package/dist/types/components/q2-textarea/q2-textarea.d.ts +4 -2
- package/dist/types/components.d.ts +858 -49
- package/dist/types/global.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/utils/chart-keyboard.d.ts +16 -0
- package/dist/types/utils/date-picker/date-picker-helpers.d.ts +47 -0
- package/dist/types/utils/date-picker/date-picker-types.d.ts +42 -0
- package/package.json +3 -3
- package/dist/cjs/q2-optgroup.cjs.entry.js +0 -70
- package/dist/esm/q2-optgroup.entry.js +0 -68
- package/dist/q2-tecton-elements/q2-optgroup.entry.js +0 -88
package/dist/types/global.d.ts
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export * from './components';
|
|
2
2
|
export * from 'q2-tecton-common/lib/types/elements';
|
|
3
|
+
export type { DatePickerChangeDetail, DatePickerCloseDetail, DatePickerDay, DatePickerDisplayFormat, DatePickerErrorDetail, DatePickerMode, DatePickerMomentLike, DatePickerNavigationAction, DatePickerSuccessDetail, DatePickerValidationError, DatePickerValue, } from './utils/date-picker/date-picker-types';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ECharts } from 'echarts/core';
|
|
2
|
+
import type { ChartData } from 'q2-tecton-common/lib/types/elements';
|
|
3
|
+
/** Localized feedback shared by chart keyboard controls. */
|
|
4
|
+
export declare function chartPointDescription(name: string, value: string, index: number, count: number): string;
|
|
5
|
+
/** Coordinates keyboard exploration with ECharts emphasis without changing chart data. */
|
|
6
|
+
export declare function createChartKeyboardNavigation(options: {
|
|
7
|
+
getChart: () => ECharts;
|
|
8
|
+
getData: () => ChartData[];
|
|
9
|
+
onChange: (index: number | null) => void;
|
|
10
|
+
getOrder?: () => number[];
|
|
11
|
+
}): {
|
|
12
|
+
onFocus: () => void;
|
|
13
|
+
onBlur: () => void;
|
|
14
|
+
onKeyDown: (event: KeyboardEvent) => void;
|
|
15
|
+
refresh: () => void;
|
|
16
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { DatePickerDateValidators, DatePickerDisplayFormat, DatePickerSelectedMonthYear, DatePickerValue } from './date-picker-types';
|
|
2
|
+
export interface DatePickerConstraints {
|
|
3
|
+
cutoffTime?: string;
|
|
4
|
+
daysOfWeekChecksum?: number;
|
|
5
|
+
endDate?: string;
|
|
6
|
+
invalidDates?: string[];
|
|
7
|
+
startDate?: string;
|
|
8
|
+
validDates?: string[];
|
|
9
|
+
}
|
|
10
|
+
/** Determines a year for a month and day when typeable input omits the year. */
|
|
11
|
+
export declare function buildInputDate(input: string, assume: 'current' | 'future' | 'past'): Date | undefined;
|
|
12
|
+
/** Formats a valid date as an ISO calendar date. */
|
|
13
|
+
export declare function formatDateISO(value: Date): string | undefined;
|
|
14
|
+
/** Formats a date for an accessible day label. */
|
|
15
|
+
export declare function formatDateFull(value: Date): string | undefined;
|
|
16
|
+
/** Returns localized abbreviated day names beginning with Sunday. */
|
|
17
|
+
export declare function getDays(): string[];
|
|
18
|
+
/** Returns localized full day names beginning with Sunday. */
|
|
19
|
+
export declare function getDaysOfWeek(): string[];
|
|
20
|
+
/** Parses the date picker's public ISO-only value contract. */
|
|
21
|
+
export declare function parseDatePickerValue(value?: string | null): Date | undefined;
|
|
22
|
+
/** Normalizes a legacy string or Moment-like value for the date picker's ISO-only calendar. */
|
|
23
|
+
export declare function normalizeDatePickerValue(value?: DatePickerValue | Date | null): string | undefined;
|
|
24
|
+
/** Returns the month and year used to initialize the date picker grid. */
|
|
25
|
+
export declare function setupMonthYear(value?: Date): DatePickerSelectedMonthYear;
|
|
26
|
+
/** Returns the enabled day indexes represented by a calendar checksum. */
|
|
27
|
+
export declare function getValidDaysOfWeek(checksum?: number): number[];
|
|
28
|
+
/** Determines whether a date satisfies the configured bounds and cutoff. */
|
|
29
|
+
export declare function baseValidation(dateValidators: DatePickerDateValidators, now: Date, newDate: Date): boolean;
|
|
30
|
+
/** Determines whether a date's weekday is enabled. */
|
|
31
|
+
export declare function validateAgainstChecksum(validDaysOfWeek: number[], date: Date): boolean;
|
|
32
|
+
/** Determines whether a date is absent from a blacklist. */
|
|
33
|
+
export declare function validateAgainstBlacklist(invalidDates: Date[], date: Date): boolean;
|
|
34
|
+
/** Determines whether a date is present in a whitelist. */
|
|
35
|
+
export declare function validateAgainstWhitelist(validDates: Date[], date: Date): boolean;
|
|
36
|
+
/** Formats a date using one of the date picker's supported numeric display formats. */
|
|
37
|
+
export declare function formatDisplayDate(date: Date, displayFormat: DatePickerDisplayFormat): string;
|
|
38
|
+
/** Formats a date using the legacy Moment-style tokens accepted by q2-calendar. */
|
|
39
|
+
export declare function formatLegacyDisplayDate(date: Date, displayFormat: string): string;
|
|
40
|
+
/** Determines whether a date satisfies every configured selection constraint. */
|
|
41
|
+
export declare function isDateSelectable(date: Date, constraints: DatePickerConstraints): boolean;
|
|
42
|
+
/** Determines whether every date in an inclusive range is selectable. */
|
|
43
|
+
export declare function isRangeSelectable(start: Date, end: Date, constraints: DatePickerConstraints): boolean;
|
|
44
|
+
/** Resolves a date-picker localization key or mapped default string. */
|
|
45
|
+
export declare function localizeDatePickerString(value: string, substitutions?: Record<string, string>): string;
|
|
46
|
+
/** Returns a supported display format, falling back to the date-picker default. */
|
|
47
|
+
export declare function normalizeDisplayFormat(displayFormat?: string): DatePickerDisplayFormat;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export interface DatePickerDay {
|
|
2
|
+
classList: string;
|
|
3
|
+
date: Date;
|
|
4
|
+
isOutside: boolean;
|
|
5
|
+
isSelected: boolean;
|
|
6
|
+
isToday: boolean;
|
|
7
|
+
isValid: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface DatePickerChangeDetail {
|
|
10
|
+
value?: string | null;
|
|
11
|
+
rangeStart?: string | null;
|
|
12
|
+
rangeEnd?: string | null;
|
|
13
|
+
}
|
|
14
|
+
export interface DatePickerCloseDetail {
|
|
15
|
+
error?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface DatePickerErrorDetail {
|
|
18
|
+
errors: DatePickerValidationError[];
|
|
19
|
+
}
|
|
20
|
+
export interface DatePickerSuccessDetail {
|
|
21
|
+
value: string;
|
|
22
|
+
}
|
|
23
|
+
export interface DatePickerValidationError {
|
|
24
|
+
errorCode: string;
|
|
25
|
+
message: string;
|
|
26
|
+
}
|
|
27
|
+
export interface DatePickerDateValidators {
|
|
28
|
+
startDate?: Date;
|
|
29
|
+
endDate?: Date;
|
|
30
|
+
cutOffTime?: Date;
|
|
31
|
+
}
|
|
32
|
+
export interface DatePickerSelectedMonthYear {
|
|
33
|
+
monthIndex: number;
|
|
34
|
+
selectedYear: number;
|
|
35
|
+
}
|
|
36
|
+
export interface DatePickerMomentLike {
|
|
37
|
+
toDate(): Date;
|
|
38
|
+
}
|
|
39
|
+
export type DatePickerDisplayFormat = 'MM/DD/YYYY' | 'DD/MM/YYYY' | 'MM-DD-YYYY' | 'DD-MM-YYYY' | 'YYYY-MM-DD';
|
|
40
|
+
export type DatePickerMode = 'single' | 'range' | 'single-typeable' | 'range-typeable';
|
|
41
|
+
export type DatePickerValue = string | DatePickerMomentLike;
|
|
42
|
+
export type DatePickerNavigationAction = 'previousYear' | 'previousMonth' | 'nextMonth' | 'nextYear';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "q2-tecton-elements",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.73.0",
|
|
4
4
|
"description": "Q2 Tecton Custom Elements",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Q2 Tecton Team",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@stencil/core": "~4.43.0",
|
|
66
|
-
"q2-tecton-common": "1.
|
|
66
|
+
"q2-tecton-common": "1.73.0",
|
|
67
67
|
"swiper": "^12.1.2"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"rollup-plugin-istanbul": "^5.0.0"
|
|
86
86
|
},
|
|
87
87
|
"packageManager": "pnpm@10.27.0",
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "d3616049752e07b046929bd7009e437b924cba84"
|
|
89
89
|
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-DUaTw_1N.js');
|
|
4
|
-
var component = require('./component-iASoq6gx.js');
|
|
5
|
-
var index$1 = require('./index-BY3aao8R.js');
|
|
6
|
-
|
|
7
|
-
const q2OptgroupCss = () => `*{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}.q2-optgroup-header{--comp-header-padding:var(--tct-scale-1, var(--app-scale-1x, 5px)) var(--tct-scale-2, var(--app-scale-2x, 10px));background:var(--tct-optgroup-header-background, var(--tct-optgroup-header-bg, var(--t-optgroup-header-bg, var(--t-base, #FFFFFF))));color:var(--tct-optgroup-header-color, inherit);font-size:var(--tct-optgroup-header-font-size, var(--const-px-14, 14px));font-weight:var(--tct-optgroup-header-font-weight, 600);letter-spacing:var(--tct-optgroup-header-letter-spacing, inherit);position:var(--tct-optgroup-header-position, sticky);padding:var(--tct-optgroup-header-padding, var(--t-optgroup-header-padding, var(--comp-header-padding)));text-transform:var(--tct-optgroup-header-text-transform, var(--t-optgroup-header-text-transform, none));top:calc(var(--comp-popover-top-container-height, 0px) + var(--tct-optgroup-top, var(--t-optgroup-top, 0px)));z-index:5}`;
|
|
8
|
-
|
|
9
|
-
const Q2Optgroup = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
// #region Own Properties
|
|
13
|
-
this.guid = index$1.createGuid();
|
|
14
|
-
// #endregion
|
|
15
|
-
// #region State Properties
|
|
16
|
-
this.hidden = false;
|
|
17
|
-
// #endregion
|
|
18
|
-
// #region Public Property API
|
|
19
|
-
/** Determines whether all nested options are disabled. */
|
|
20
|
-
this.disabled = false;
|
|
21
|
-
this.setHidden = () => {
|
|
22
|
-
this.hidden = this.options.every(opt => opt.hidden || opt._multiSelectHidden);
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
// #endregion
|
|
26
|
-
// #region Component Lifecycle Events
|
|
27
|
-
disconnectedCallback() {
|
|
28
|
-
var _a;
|
|
29
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
30
|
-
this.mutationObserver = null;
|
|
31
|
-
}
|
|
32
|
-
componentWillLoad() {
|
|
33
|
-
component.hasValidAncestor(this.hostElement, 'q2-option-list, q2-select, q2-dropdown, q2-pill');
|
|
34
|
-
const observer = new MutationObserver(this.setHidden);
|
|
35
|
-
observer.observe(this.hostElement, { childList: true, attributes: true, subtree: true });
|
|
36
|
-
this.mutationObserver = observer;
|
|
37
|
-
// set initially
|
|
38
|
-
this.setHidden();
|
|
39
|
-
this.disabledWatcher(this.disabled);
|
|
40
|
-
}
|
|
41
|
-
// #endregion
|
|
42
|
-
// #region Watchers
|
|
43
|
-
disabledWatcher(disabled) {
|
|
44
|
-
this.options.forEach(opt => {
|
|
45
|
-
opt.disabledGroup = !!disabled;
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
// #endregion
|
|
49
|
-
// #region Local Methods
|
|
50
|
-
get headerId() {
|
|
51
|
-
return `q2-optgroup-header-${this.guid}`;
|
|
52
|
-
}
|
|
53
|
-
get options() {
|
|
54
|
-
return Array.from(this.hostElement.querySelectorAll('q2-option'));
|
|
55
|
-
}
|
|
56
|
-
// #endregion
|
|
57
|
-
// #region Render Methods
|
|
58
|
-
render() {
|
|
59
|
-
return (index.h("div", { key: '4271765f1422cd33d73e1ed66b967994395bb4e1', class: "q2-optgroup-container", hidden: this.hidden, "aria-labelledby": this.headerId, role: "group" }, index.h("div", { key: 'f5efb564a7049f7e8d78c0b6fa5749e239ea5133', class: "q2-optgroup-header", id: this.headerId }, (this.label && index$1.loc(this.label)) || ''), index.h("div", { key: '9f932967082554e86e8048bba66a1493258f6d06', class: "q2-optgroup-options" }, index.h("slot", { key: 'd58e647529d66c50b6e0c9a79705128f0ffdf806' }))));
|
|
60
|
-
}
|
|
61
|
-
get hostElement() { return index.getElement(this); }
|
|
62
|
-
static get watchers() { return {
|
|
63
|
-
"disabled": [{
|
|
64
|
-
"disabledWatcher": 0
|
|
65
|
-
}]
|
|
66
|
-
}; }
|
|
67
|
-
};
|
|
68
|
-
Q2Optgroup.style = q2OptgroupCss();
|
|
69
|
-
|
|
70
|
-
exports.q2_optgroup = Q2Optgroup;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-Cqkz7Bnm.js';
|
|
2
|
-
import { b as hasValidAncestor } from './component-DaQM9u3s.js';
|
|
3
|
-
import { c as createGuid, l as loc } from './index-DJw6Feh0.js';
|
|
4
|
-
|
|
5
|
-
const q2OptgroupCss = () => `*{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}.q2-optgroup-header{--comp-header-padding:var(--tct-scale-1, var(--app-scale-1x, 5px)) var(--tct-scale-2, var(--app-scale-2x, 10px));background:var(--tct-optgroup-header-background, var(--tct-optgroup-header-bg, var(--t-optgroup-header-bg, var(--t-base, #FFFFFF))));color:var(--tct-optgroup-header-color, inherit);font-size:var(--tct-optgroup-header-font-size, var(--const-px-14, 14px));font-weight:var(--tct-optgroup-header-font-weight, 600);letter-spacing:var(--tct-optgroup-header-letter-spacing, inherit);position:var(--tct-optgroup-header-position, sticky);padding:var(--tct-optgroup-header-padding, var(--t-optgroup-header-padding, var(--comp-header-padding)));text-transform:var(--tct-optgroup-header-text-transform, var(--t-optgroup-header-text-transform, none));top:calc(var(--comp-popover-top-container-height, 0px) + var(--tct-optgroup-top, var(--t-optgroup-top, 0px)));z-index:5}`;
|
|
6
|
-
|
|
7
|
-
const Q2Optgroup = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
registerInstance(this, hostRef);
|
|
10
|
-
// #region Own Properties
|
|
11
|
-
this.guid = createGuid();
|
|
12
|
-
// #endregion
|
|
13
|
-
// #region State Properties
|
|
14
|
-
this.hidden = false;
|
|
15
|
-
// #endregion
|
|
16
|
-
// #region Public Property API
|
|
17
|
-
/** Determines whether all nested options are disabled. */
|
|
18
|
-
this.disabled = false;
|
|
19
|
-
this.setHidden = () => {
|
|
20
|
-
this.hidden = this.options.every(opt => opt.hidden || opt._multiSelectHidden);
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
// #endregion
|
|
24
|
-
// #region Component Lifecycle Events
|
|
25
|
-
disconnectedCallback() {
|
|
26
|
-
var _a;
|
|
27
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
28
|
-
this.mutationObserver = null;
|
|
29
|
-
}
|
|
30
|
-
componentWillLoad() {
|
|
31
|
-
hasValidAncestor(this.hostElement, 'q2-option-list, q2-select, q2-dropdown, q2-pill');
|
|
32
|
-
const observer = new MutationObserver(this.setHidden);
|
|
33
|
-
observer.observe(this.hostElement, { childList: true, attributes: true, subtree: true });
|
|
34
|
-
this.mutationObserver = observer;
|
|
35
|
-
// set initially
|
|
36
|
-
this.setHidden();
|
|
37
|
-
this.disabledWatcher(this.disabled);
|
|
38
|
-
}
|
|
39
|
-
// #endregion
|
|
40
|
-
// #region Watchers
|
|
41
|
-
disabledWatcher(disabled) {
|
|
42
|
-
this.options.forEach(opt => {
|
|
43
|
-
opt.disabledGroup = !!disabled;
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
// #endregion
|
|
47
|
-
// #region Local Methods
|
|
48
|
-
get headerId() {
|
|
49
|
-
return `q2-optgroup-header-${this.guid}`;
|
|
50
|
-
}
|
|
51
|
-
get options() {
|
|
52
|
-
return Array.from(this.hostElement.querySelectorAll('q2-option'));
|
|
53
|
-
}
|
|
54
|
-
// #endregion
|
|
55
|
-
// #region Render Methods
|
|
56
|
-
render() {
|
|
57
|
-
return (h("div", { key: '4271765f1422cd33d73e1ed66b967994395bb4e1', class: "q2-optgroup-container", hidden: this.hidden, "aria-labelledby": this.headerId, role: "group" }, h("div", { key: 'f5efb564a7049f7e8d78c0b6fa5749e239ea5133', class: "q2-optgroup-header", id: this.headerId }, (this.label && loc(this.label)) || ''), h("div", { key: '9f932967082554e86e8048bba66a1493258f6d06', class: "q2-optgroup-options" }, h("slot", { key: 'd58e647529d66c50b6e0c9a79705128f0ffdf806' }))));
|
|
58
|
-
}
|
|
59
|
-
get hostElement() { return getElement(this); }
|
|
60
|
-
static get watchers() { return {
|
|
61
|
-
"disabled": [{
|
|
62
|
-
"disabledWatcher": 0
|
|
63
|
-
}]
|
|
64
|
-
}; }
|
|
65
|
-
};
|
|
66
|
-
Q2Optgroup.style = q2OptgroupCss();
|
|
67
|
-
|
|
68
|
-
export { Q2Optgroup as q2_optgroup };
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { r as t, h as e, g as o } from "./index-Cqkz7Bnm.js";
|
|
2
|
-
|
|
3
|
-
import { b as r } from "./component-DaQM9u3s.js";
|
|
4
|
-
|
|
5
|
-
import { c as i, l as a } from "./index-DJw6Feh0.js";
|
|
6
|
-
|
|
7
|
-
const n = class {
|
|
8
|
-
constructor(e) {
|
|
9
|
-
t(this, e),
|
|
10
|
-
// #region Own Properties
|
|
11
|
-
this.guid = i(),
|
|
12
|
-
// #endregion
|
|
13
|
-
// #region State Properties
|
|
14
|
-
this.hidden = !1,
|
|
15
|
-
// #endregion
|
|
16
|
-
// #region Public Property API
|
|
17
|
-
/** Determines whether all nested options are disabled. */
|
|
18
|
-
this.disabled = !1, this.setHidden = () => {
|
|
19
|
-
this.hidden = this.options.every((t => t.hidden || t._multiSelectHidden));
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
// #endregion
|
|
23
|
-
// #region Component Lifecycle Events
|
|
24
|
-
disconnectedCallback() {
|
|
25
|
-
var t;
|
|
26
|
-
null === (t = this.mutationObserver) || void 0 === t || t.disconnect(), this.mutationObserver = null;
|
|
27
|
-
}
|
|
28
|
-
componentWillLoad() {
|
|
29
|
-
r(this.hostElement, "q2-option-list, q2-select, q2-dropdown, q2-pill");
|
|
30
|
-
const t = new MutationObserver(this.setHidden);
|
|
31
|
-
t.observe(this.hostElement, {
|
|
32
|
-
childList: !0,
|
|
33
|
-
attributes: !0,
|
|
34
|
-
subtree: !0
|
|
35
|
-
}), this.mutationObserver = t,
|
|
36
|
-
// set initially
|
|
37
|
-
this.setHidden(), this.disabledWatcher(this.disabled);
|
|
38
|
-
}
|
|
39
|
-
// #endregion
|
|
40
|
-
// #region Watchers
|
|
41
|
-
disabledWatcher(t) {
|
|
42
|
-
this.options.forEach((e => {
|
|
43
|
-
e.disabledGroup = !!t;
|
|
44
|
-
}));
|
|
45
|
-
}
|
|
46
|
-
// #endregion
|
|
47
|
-
// #region Local Methods
|
|
48
|
-
get headerId() {
|
|
49
|
-
return `q2-optgroup-header-${this.guid}`;
|
|
50
|
-
}
|
|
51
|
-
get options() {
|
|
52
|
-
return Array.from(this.hostElement.querySelectorAll("q2-option"));
|
|
53
|
-
}
|
|
54
|
-
// #endregion
|
|
55
|
-
// #region Render Methods
|
|
56
|
-
render() {
|
|
57
|
-
return e("div", {
|
|
58
|
-
key: "4271765f1422cd33d73e1ed66b967994395bb4e1",
|
|
59
|
-
class: "q2-optgroup-container",
|
|
60
|
-
hidden: this.hidden,
|
|
61
|
-
"aria-labelledby": this.headerId,
|
|
62
|
-
role: "group"
|
|
63
|
-
}, e("div", {
|
|
64
|
-
key: "f5efb564a7049f7e8d78c0b6fa5749e239ea5133",
|
|
65
|
-
class: "q2-optgroup-header",
|
|
66
|
-
id: this.headerId
|
|
67
|
-
}, this.label && a(this.label) || ""), e("div", {
|
|
68
|
-
key: "9f932967082554e86e8048bba66a1493258f6d06",
|
|
69
|
-
class: "q2-optgroup-options"
|
|
70
|
-
}, e("slot", {
|
|
71
|
-
key: "d58e647529d66c50b6e0c9a79705128f0ffdf806"
|
|
72
|
-
})));
|
|
73
|
-
}
|
|
74
|
-
get hostElement() {
|
|
75
|
-
return o(this);
|
|
76
|
-
}
|
|
77
|
-
static get watchers() {
|
|
78
|
-
return {
|
|
79
|
-
disabled: [ {
|
|
80
|
-
disabledWatcher: 0
|
|
81
|
-
} ]
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
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}.q2-optgroup-header{--comp-header-padding:var(--tct-scale-1, var(--app-scale-1x, 5px)) var(--tct-scale-2, var(--app-scale-2x, 10px));background:var(--tct-optgroup-header-background, var(--tct-optgroup-header-bg, var(--t-optgroup-header-bg, var(--t-base, #FFFFFF))));color:var(--tct-optgroup-header-color, inherit);font-size:var(--tct-optgroup-header-font-size, var(--const-px-14, 14px));font-weight:var(--tct-optgroup-header-font-weight, 600);letter-spacing:var(--tct-optgroup-header-letter-spacing, inherit);position:var(--tct-optgroup-header-position, sticky);padding:var(--tct-optgroup-header-padding, var(--t-optgroup-header-padding, var(--comp-header-padding)));text-transform:var(--tct-optgroup-header-text-transform, var(--t-optgroup-header-text-transform, none));top:calc(var(--comp-popover-top-container-height, 0px) + var(--tct-optgroup-top, var(--t-optgroup-top, 0px)));z-index:5}';
|
|
87
|
-
|
|
88
|
-
export { n as q2_optgroup }
|