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
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { proxyCustomElement as t, HTMLElement as e, h as a, transformTag as r } from "@stencil/core/internal/client";
|
|
2
2
|
|
|
3
|
-
import { o as i,
|
|
3
|
+
import { o as i, i as s, l as n } from "./index2.js";
|
|
4
4
|
|
|
5
|
-
import { _ as
|
|
5
|
+
import { _ as o, J as h, S as d, aj as l, w as c, ak as u, o as p, a1 as f, h as v, i as m, u as g, s as b, I as w, al as y, G as B, m as A, d as S, C as M, U as x, V as k, a as N, g as V, b as U, am as C, t as P, A as D, an as L, ao as z, ap as j, aq as I, aa as O, ah as E, ai as T, ab as R, ac as W, ad as X, ae as Y, af as _, ag as q } from "./charting.js";
|
|
6
6
|
|
|
7
|
-
import { c as
|
|
7
|
+
import { c as F, j as H, i as G, g as J, a as K, e as Q, f as Z, h as $ } from "./dataSample.js";
|
|
8
8
|
|
|
9
|
-
import { g as
|
|
9
|
+
import { g as tt, i as et } from "./sectorHelper.js";
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var at = /** @class */ function(t) {
|
|
12
12
|
function BaseBarSeriesModel() {
|
|
13
13
|
var e = null !== t && t.apply(this, arguments) || this;
|
|
14
14
|
return e.type = BaseBarSeriesModel.type, e;
|
|
15
15
|
}
|
|
16
|
-
return
|
|
17
|
-
return
|
|
16
|
+
return o(BaseBarSeriesModel, t), BaseBarSeriesModel.prototype.getInitialData = function(t, e) {
|
|
17
|
+
return F(null, this, {
|
|
18
18
|
useEncodeDefaulter: !0
|
|
19
19
|
});
|
|
20
20
|
}, BaseBarSeriesModel.prototype.getMarkerPosition = function(t, e, a) {
|
|
@@ -22,7 +22,7 @@ var $ = /** @class */ function(t) {
|
|
|
22
22
|
if (r && r.clampData) {
|
|
23
23
|
// PENDING if clamp ?
|
|
24
24
|
var i = r.clampData(t), s = r.dataToPoint(i);
|
|
25
|
-
if (a)
|
|
25
|
+
if (a) h(r.getAxes(), (function(t, a) {
|
|
26
26
|
// If axis type is category, use tick coords instead
|
|
27
27
|
if ("category" === t.type && null != e) {
|
|
28
28
|
var r = t.getTicksCoords(), n = t.getTickModel().get("alignWithLabel"), o = i[a], h = "x1" === e[a] || "y1" === e[a];
|
|
@@ -61,8 +61,8 @@ var $ = /** @class */ function(t) {
|
|
|
61
61
|
l = r[0].coord), s[a] = t.toGlobalCoord(l);
|
|
62
62
|
}
|
|
63
63
|
})); else {
|
|
64
|
-
var n = this.getData(),
|
|
65
|
-
s[l] +=
|
|
64
|
+
var n = this.getData(), o = n.getLayout("offset"), d = n.getLayout("size"), l = r.getBaseAxis().isHorizontal() ? 0 : 1;
|
|
65
|
+
s[l] += o + d / 2;
|
|
66
66
|
}
|
|
67
67
|
return s;
|
|
68
68
|
}
|
|
@@ -84,17 +84,17 @@ var $ = /** @class */ function(t) {
|
|
|
84
84
|
progressive: 3e3,
|
|
85
85
|
progressiveChunkMode: "mod"
|
|
86
86
|
}, BaseBarSeriesModel;
|
|
87
|
-
}(
|
|
87
|
+
}(d);
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
d.registerClass(at);
|
|
90
90
|
|
|
91
|
-
var
|
|
91
|
+
var rt = /** @class */ function(t) {
|
|
92
92
|
function BarSeriesModel() {
|
|
93
93
|
var e = null !== t && t.apply(this, arguments) || this;
|
|
94
94
|
return e.type = BarSeriesModel.type, e;
|
|
95
95
|
}
|
|
96
|
-
return
|
|
97
|
-
return
|
|
96
|
+
return o(BarSeriesModel, t), BarSeriesModel.prototype.getInitialData = function() {
|
|
97
|
+
return F(null, this, {
|
|
98
98
|
useEncodeDefaulter: !0,
|
|
99
99
|
createInvertedIndices: !!this.get("realtimeSort", !0) || null
|
|
100
100
|
});
|
|
@@ -116,7 +116,7 @@ var tt = /** @class */ function(t) {
|
|
|
116
116
|
}, BarSeriesModel.prototype.brushSelector = function(t, e, a) {
|
|
117
117
|
return a.rect(e.getItemLayout(t));
|
|
118
118
|
}, BarSeriesModel.type = "series.bar", BarSeriesModel.dependencies = [ "grid", "polar" ],
|
|
119
|
-
BarSeriesModel.defaultOption =
|
|
119
|
+
BarSeriesModel.defaultOption = l(at.defaultOption, {
|
|
120
120
|
// If clipped
|
|
121
121
|
// Only available on cartesian2d
|
|
122
122
|
clip: !0,
|
|
@@ -141,15 +141,15 @@ var tt = /** @class */ function(t) {
|
|
|
141
141
|
},
|
|
142
142
|
realtimeSort: !1
|
|
143
143
|
}), BarSeriesModel;
|
|
144
|
-
}(
|
|
144
|
+
}(at), SausageShape = function() {
|
|
145
145
|
this.cx = 0, this.cy = 0, this.r0 = 0, this.r = 0, this.startAngle = 0, this.endAngle = 2 * Math.PI,
|
|
146
146
|
this.clockwise = !0;
|
|
147
|
-
},
|
|
147
|
+
}, it = /** @class */ function(t) {
|
|
148
148
|
function SausagePath(e) {
|
|
149
149
|
var a = t.call(this, e) || this;
|
|
150
150
|
return a.type = "sausage", a;
|
|
151
151
|
}
|
|
152
|
-
return
|
|
152
|
+
return o(SausagePath, t), SausagePath.prototype.getDefaultShape = function() {
|
|
153
153
|
return new SausageShape;
|
|
154
154
|
}, SausagePath.prototype.buildPath = function(t, e) {
|
|
155
155
|
var a = e.cx, r = e.cy, i = Math.max(e.r0 || 0, 0), s = Math.max(e.r, 0), n = .5 * (s - i), o = i + n, h = e.startAngle, d = e.endAngle, l = e.clockwise, c = 2 * Math.PI, u = l ? d - h < c : h - d < c;
|
|
@@ -161,7 +161,7 @@ var tt = /** @class */ function(t) {
|
|
|
161
161
|
t.arc(a, r, s, h, d, !l), t.arc(v * o + a, m * o + r, n, d - 2 * Math.PI, d - Math.PI, !l),
|
|
162
162
|
0 !== i && t.arc(a, r, i, d, h, l);
|
|
163
163
|
}, SausagePath;
|
|
164
|
-
}(
|
|
164
|
+
}(c);
|
|
165
165
|
|
|
166
166
|
/**
|
|
167
167
|
* Sausage: similar to sector, but have half circle on both sides
|
|
@@ -173,14 +173,14 @@ function adjustAngleDistanceY(t, e, a) {
|
|
|
173
173
|
return e * Math.cos(t) * (a ? 1 : -1);
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
var
|
|
176
|
+
var st = Math.max, nt = Math.min;
|
|
177
177
|
|
|
178
|
-
var
|
|
178
|
+
var ot = /** @class */ function(t) {
|
|
179
179
|
function BarView() {
|
|
180
180
|
var e = t.call(this) || this;
|
|
181
181
|
return e.type = BarView.type, e._isFirstFrame = !0, e;
|
|
182
182
|
}
|
|
183
|
-
return
|
|
183
|
+
return o(BarView, t), BarView.prototype.render = function(t, e, a, r) {
|
|
184
184
|
this._model = t, this._removeOnRenderedListener(a), this._updateDrawMode(t);
|
|
185
185
|
var i = t.get("coordinateSystem");
|
|
186
186
|
"cartesian2d" !== i && "polar" !== i || (
|
|
@@ -197,7 +197,7 @@ var it = /** @class */ function(t) {
|
|
|
197
197
|
// Do not support progressive in normal mode.
|
|
198
198
|
this._incrementalRenderLarge(t, e);
|
|
199
199
|
}, BarView.prototype.eachRendered = function(t) {
|
|
200
|
-
|
|
200
|
+
v(this._progressiveEls || this.group, t);
|
|
201
201
|
}, BarView.prototype._updateDrawMode = function(t) {
|
|
202
202
|
var e = t.pipelineContext.large;
|
|
203
203
|
null != this._isLargeDraw && e === this._isLargeDraw || (this._isLargeDraw = e,
|
|
@@ -215,7 +215,7 @@ var it = /** @class */ function(t) {
|
|
|
215
215
|
c && this._enableRealtimeSort(c, n, a);
|
|
216
216
|
var u = t.get("clip", !0) || c, p = function(t, e) {
|
|
217
217
|
var a = t.getArea && t.getArea();
|
|
218
|
-
if (
|
|
218
|
+
if (G(t, "cartesian2d")) {
|
|
219
219
|
var r = t.getBaseAxis();
|
|
220
220
|
// When boundaryGap is false or using time axis. bar may exceed the grid.
|
|
221
221
|
// We should not clip this part.
|
|
@@ -231,10 +231,10 @@ var it = /** @class */ function(t) {
|
|
|
231
231
|
s.removeClipPath();
|
|
232
232
|
// We don't use clipPath in normal mode because we needs a perfect animation
|
|
233
233
|
// And don't want the label are clipped.
|
|
234
|
-
var f = t.get("roundCap", !0),
|
|
234
|
+
var f = t.get("roundCap", !0), v = t.get("showBackground", !0), A = t.getModel("backgroundStyle"), S = A.get("borderRadius") || 0, M = [], N = this._backgroundEls, V = r && r.isInitSort, U = r && "changeAxisOrder" === r.type;
|
|
235
235
|
function createBackground(t) {
|
|
236
|
-
var e =
|
|
237
|
-
var r = "polar" === t.type ?
|
|
236
|
+
var e = pt[h.type](n, t), a = function(t, e, a) {
|
|
237
|
+
var r = "polar" === t.type ? x : k;
|
|
238
238
|
return new r({
|
|
239
239
|
shape: createBackgroundShape(e, a, t),
|
|
240
240
|
silent: !0,
|
|
@@ -243,19 +243,19 @@ var it = /** @class */ function(t) {
|
|
|
243
243
|
}(h, i, e);
|
|
244
244
|
return a.useStyle(A.getItemStyle()),
|
|
245
245
|
// Only cartesian2d support borderRadius.
|
|
246
|
-
"cartesian2d" === h.type ? a.setShape("r", S) : a.setShape("cornerRadius", S),
|
|
246
|
+
"cartesian2d" === h.type ? a.setShape("r", S) : a.setShape("cornerRadius", S), M[t] = a,
|
|
247
247
|
a;
|
|
248
248
|
}
|
|
249
249
|
n.diff(o).add((function(e) {
|
|
250
|
-
var a = n.getItemModel(e), r =
|
|
250
|
+
var a = n.getItemModel(e), r = pt[h.type](n, e, a);
|
|
251
251
|
// If dataZoom in filteMode: 'empty', the baseValue can be set as NaN in "axisProxy".
|
|
252
|
-
if (
|
|
252
|
+
if (v && createBackground(e), n.hasValue(e) && ut[h.type](r)) {
|
|
253
253
|
var o = !1;
|
|
254
254
|
u && (
|
|
255
255
|
// Clip will modify the layout params.
|
|
256
256
|
// And return a boolean to determine if the shape are fully clipped.
|
|
257
|
-
o =
|
|
258
|
-
var
|
|
257
|
+
o = ht[h.type](p, r));
|
|
258
|
+
var g = dt[h.type](t, n, e, r, i, l, d.model, !1, f);
|
|
259
259
|
c && (
|
|
260
260
|
/**
|
|
261
261
|
* Force label animation because even if the element is
|
|
@@ -265,67 +265,67 @@ var it = /** @class */ function(t) {
|
|
|
265
265
|
* the label will be the final value and doesn't have label
|
|
266
266
|
* animation.
|
|
267
267
|
*/
|
|
268
|
-
|
|
269
|
-
V ?
|
|
268
|
+
g.forceLabelAnimation = !0), updateStyle(g, n, e, a, r, t, i, "polar" === h.type),
|
|
269
|
+
V ? g.attr({
|
|
270
270
|
shape: r
|
|
271
|
-
}) : c ? updateRealtimeAnimation(c, l,
|
|
271
|
+
}) : c ? updateRealtimeAnimation(c, l, g, r, e, i, !1, !1) : m(g, {
|
|
272
272
|
shape: r
|
|
273
|
-
}, t, e), n.setItemGraphicEl(e,
|
|
273
|
+
}, t, e), n.setItemGraphicEl(e, g), s.add(g), g.ignore = o;
|
|
274
274
|
}
|
|
275
275
|
})).update((function(e, a) {
|
|
276
|
-
var r = n.getItemModel(e),
|
|
277
|
-
if (
|
|
278
|
-
var
|
|
279
|
-
0 === N.length ?
|
|
276
|
+
var r = n.getItemModel(e), m = pt[h.type](n, e, r);
|
|
277
|
+
if (v) {
|
|
278
|
+
var y = void 0;
|
|
279
|
+
0 === N.length ? y = createBackground(a) : ((y = N[a]).useStyle(A.getItemStyle()),
|
|
280
280
|
// Only cartesian2d support borderRadius.
|
|
281
|
-
"cartesian2d" === h.type ?
|
|
282
|
-
var
|
|
283
|
-
|
|
284
|
-
shape:
|
|
281
|
+
"cartesian2d" === h.type ? y.setShape("r", S) : y.setShape("cornerRadius", S), M[e] = y);
|
|
282
|
+
var B = pt[h.type](n, e), x = createBackgroundShape(i, B, h);
|
|
283
|
+
g(y, {
|
|
284
|
+
shape: x
|
|
285
285
|
}, l, e);
|
|
286
286
|
}
|
|
287
|
-
var
|
|
288
|
-
if (n.hasValue(e) &&
|
|
287
|
+
var k = o.getItemGraphicEl(a);
|
|
288
|
+
if (n.hasValue(e) && ut[h.type](m)) {
|
|
289
289
|
var C = !1;
|
|
290
|
-
if (u && (C =
|
|
291
|
-
c && (
|
|
292
|
-
var P =
|
|
290
|
+
if (u && (C = ht[h.type](p, m)) && s.remove(k), k ? b(k) : k = dt[h.type](t, n, e, m, i, l, d.model, !!k, f),
|
|
291
|
+
c && (k.forceLabelAnimation = !0), U) {
|
|
292
|
+
var P = k.getTextContent();
|
|
293
293
|
if (P) {
|
|
294
|
-
var
|
|
295
|
-
null !=
|
|
294
|
+
var D = w(P);
|
|
295
|
+
null != D.prevValue && (
|
|
296
296
|
/**
|
|
297
297
|
* Set preValue to be value so that no new label
|
|
298
298
|
* should be started, otherwise, it will take a full
|
|
299
299
|
* `animationDurationUpdate` time to finish the
|
|
300
300
|
* animation, which is not expected.
|
|
301
301
|
*/
|
|
302
|
-
|
|
302
|
+
D.prevValue = D.value);
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
305
|
// Not change anything if only order changed.
|
|
306
306
|
// Especially not change label.
|
|
307
|
-
else updateStyle(
|
|
308
|
-
V ?
|
|
309
|
-
shape:
|
|
310
|
-
}) : c ? updateRealtimeAnimation(c, l,
|
|
311
|
-
shape:
|
|
312
|
-
}, t, e, null), n.setItemGraphicEl(e,
|
|
313
|
-
} else s.remove(
|
|
307
|
+
else updateStyle(k, n, e, r, m, t, i, "polar" === h.type);
|
|
308
|
+
V ? k.attr({
|
|
309
|
+
shape: m
|
|
310
|
+
}) : c ? updateRealtimeAnimation(c, l, k, m, e, i, !0, U) : g(k, {
|
|
311
|
+
shape: m
|
|
312
|
+
}, t, e, null), n.setItemGraphicEl(e, k), k.ignore = C, s.add(k);
|
|
313
|
+
} else s.remove(k);
|
|
314
314
|
})).remove((function(e) {
|
|
315
315
|
var a = o.getItemGraphicEl(e);
|
|
316
|
-
a &&
|
|
316
|
+
a && y(a, t, e);
|
|
317
317
|
})).execute();
|
|
318
|
-
var C = this._backgroundGroup || (this._backgroundGroup = new
|
|
318
|
+
var C = this._backgroundGroup || (this._backgroundGroup = new B);
|
|
319
319
|
C.removeAll();
|
|
320
|
-
for (var P = 0; P <
|
|
321
|
-
s.add(C), this._backgroundEls =
|
|
320
|
+
for (var P = 0; P < M.length; ++P) C.add(M[P]);
|
|
321
|
+
s.add(C), this._backgroundEls = M, this._data = n;
|
|
322
322
|
}, BarView.prototype._renderLarge = function(t, e, a) {
|
|
323
323
|
this._clear(), createLarge(t, this.group), this._updateLargeClip(t);
|
|
324
324
|
}, BarView.prototype._incrementalRenderLarge = function(t, e) {
|
|
325
325
|
this._removeBackground(), createLarge(e, this.group, this._progressiveEls, !0);
|
|
326
326
|
}, BarView.prototype._updateLargeClip = function(t) {
|
|
327
327
|
// Use clipPath in large mode.
|
|
328
|
-
var e = t.get("clip", !0) &&
|
|
328
|
+
var e = t.get("clip", !0) && H(t.coordinateSystem, !1, t), a = this.group;
|
|
329
329
|
e ? a.setClipPath(e) : a.removeClipPath();
|
|
330
330
|
}, BarView.prototype._enableRealtimeSort = function(t, e, a) {
|
|
331
331
|
var r = this;
|
|
@@ -358,7 +358,7 @@ var it = /** @class */ function(t) {
|
|
|
358
358
|
// If NaN, it will be treated as min val.
|
|
359
359
|
return e.mappedValue - t.mappedValue;
|
|
360
360
|
})), {
|
|
361
|
-
ordinalNumbers:
|
|
361
|
+
ordinalNumbers: A(r, (function(t) {
|
|
362
362
|
return t.ordinalNumber;
|
|
363
363
|
}))
|
|
364
364
|
};
|
|
@@ -408,17 +408,17 @@ var it = /** @class */ function(t) {
|
|
|
408
408
|
var e = this.group, a = this._data;
|
|
409
409
|
t && t.isAnimationEnabled() && a && !this._isLargeDraw ? (this._removeBackground(),
|
|
410
410
|
this._backgroundEls = [], a.eachItemGraphicEl((function(e) {
|
|
411
|
-
|
|
411
|
+
y(e, t, S(e).dataIndex);
|
|
412
412
|
}))) : e.removeAll(), this._data = null, this._isFirstFrame = !0;
|
|
413
413
|
}, BarView.prototype._removeBackground = function() {
|
|
414
414
|
this.group.remove(this._backgroundGroup), this._backgroundGroup = null;
|
|
415
415
|
}, BarView.type = "bar", BarView;
|
|
416
|
-
}(
|
|
416
|
+
}(M), ht = {
|
|
417
417
|
cartesian2d: function(t, e) {
|
|
418
418
|
var a = e.width < 0 ? -1 : 1, r = e.height < 0 ? -1 : 1;
|
|
419
419
|
// Needs positive width and height
|
|
420
420
|
a < 0 && (e.x += e.width, e.width = -e.width), r < 0 && (e.y += e.height, e.height = -e.height);
|
|
421
|
-
var i = t.x + t.width, s = t.y + t.height, n =
|
|
421
|
+
var i = t.x + t.width, s = t.y + t.height, n = st(e.x, t.x), o = nt(e.x + e.width, i), h = st(e.y, t.y), d = nt(e.y + e.height, s), l = o < n, c = d < h;
|
|
422
422
|
// When xClipped or yClipped, the element will be marked as `ignore`.
|
|
423
423
|
// But we should also place the element at the edge of the coord sys bounding rect.
|
|
424
424
|
// Because if data changed and the bar shows again, its transition animation
|
|
@@ -436,7 +436,7 @@ var it = /** @class */ function(t) {
|
|
|
436
436
|
var r = e.r;
|
|
437
437
|
e.r = e.r0, e.r0 = r;
|
|
438
438
|
}
|
|
439
|
-
var i =
|
|
439
|
+
var i = nt(e.r, t.r), s = st(e.r0, t.r0);
|
|
440
440
|
e.r = i, e.r0 = s;
|
|
441
441
|
var n = i - s < 0;
|
|
442
442
|
// Reverse back
|
|
@@ -446,29 +446,29 @@ var it = /** @class */ function(t) {
|
|
|
446
446
|
}
|
|
447
447
|
return n;
|
|
448
448
|
}
|
|
449
|
-
},
|
|
449
|
+
}, dt = {
|
|
450
450
|
cartesian2d: function(t, e, a, r, i, s, n, o, h) {
|
|
451
|
-
var d = new
|
|
452
|
-
shape:
|
|
451
|
+
var d = new k({
|
|
452
|
+
shape: N({}, r),
|
|
453
453
|
z2: 1
|
|
454
454
|
});
|
|
455
455
|
(d.__dataIndex = a, d.name = "item", s) && (d.shape[i ? "height" : "width"] = 0);
|
|
456
456
|
return d;
|
|
457
457
|
},
|
|
458
458
|
polar: function(t, e, a, r, i, s, n, o, h) {
|
|
459
|
-
var d = !i && h ?
|
|
459
|
+
var d = !i && h ? it : x, l = new d({
|
|
460
460
|
shape: r,
|
|
461
461
|
z2: 1
|
|
462
462
|
});
|
|
463
463
|
l.name = "item";
|
|
464
|
-
var
|
|
464
|
+
var c = createPolarPositionMapping(i);
|
|
465
465
|
// Animation
|
|
466
466
|
if (l.calculateTextPosition = function(t, e) {
|
|
467
467
|
var a = (e = e || {}).isRoundCap;
|
|
468
468
|
return function(e, r, i) {
|
|
469
469
|
var s = r.position;
|
|
470
|
-
if (!s || s instanceof Array) return
|
|
471
|
-
var n = t(s), o = null != r.distance ? r.distance : 5, h = this.shape, d = h.cx, l = h.cy,
|
|
470
|
+
if (!s || s instanceof Array) return u(e, r, i);
|
|
471
|
+
var n = t(s), o = null != r.distance ? r.distance : 5, h = this.shape, d = h.cx, l = h.cy, c = h.r, p = h.r0, f = (c + p) / 2, v = h.startAngle, m = h.endAngle, g = (v + m) / 2, b = a ? Math.abs(c - p) / 2 : 0, w = Math.cos, y = Math.sin, B = d + c * w(v), A = l + c * y(v), S = "left", M = "top";
|
|
472
472
|
switch (n) {
|
|
473
473
|
case "startArc":
|
|
474
474
|
B = d + (p - o) * w(g), A = l + (p - o) * y(g), S = "center", M = "top";
|
|
@@ -493,11 +493,11 @@ var it = /** @class */ function(t) {
|
|
|
493
493
|
break;
|
|
494
494
|
|
|
495
495
|
case "endArc":
|
|
496
|
-
B = d + (
|
|
496
|
+
B = d + (c + o) * w(g), A = l + (c + o) * y(g), S = "center", M = "bottom";
|
|
497
497
|
break;
|
|
498
498
|
|
|
499
499
|
case "insideEndArc":
|
|
500
|
-
B = d + (
|
|
500
|
+
B = d + (c - o) * w(g), A = l + (c - o) * y(g), S = "center", M = "top";
|
|
501
501
|
break;
|
|
502
502
|
|
|
503
503
|
case "endAngle":
|
|
@@ -511,15 +511,15 @@ var it = /** @class */ function(t) {
|
|
|
511
511
|
break;
|
|
512
512
|
|
|
513
513
|
default:
|
|
514
|
-
return
|
|
514
|
+
return u(e, r, i);
|
|
515
515
|
}
|
|
516
516
|
return (e = e || {}).x = B, e.y = A, e.align = S, e.verticalAlign = M, e;
|
|
517
517
|
};
|
|
518
|
-
}(
|
|
519
|
-
isRoundCap: d ===
|
|
518
|
+
}(c, {
|
|
519
|
+
isRoundCap: d === it
|
|
520
520
|
}), s) {
|
|
521
521
|
var p = i ? "r" : "endAngle", f = {};
|
|
522
|
-
l.shape[p] = i ? r.r0 : r.startAngle, f[p] = r[p], (o ?
|
|
522
|
+
l.shape[p] = i ? r.r0 : r.startAngle, f[p] = r[p], (o ? g : m)(l, {
|
|
523
523
|
shape: f
|
|
524
524
|
}, s);
|
|
525
525
|
}
|
|
@@ -544,11 +544,11 @@ function updateRealtimeAnimation(t, e, a, r, i, s, n, o) {
|
|
|
544
544
|
}), o ||
|
|
545
545
|
// Keep the original growth animation if only axis order changed.
|
|
546
546
|
// Not start a new animation.
|
|
547
|
-
(n ?
|
|
547
|
+
(n ? g : m)(a, {
|
|
548
548
|
shape: h
|
|
549
549
|
}, e, i, null);
|
|
550
550
|
var l = e ? t.baseAxis.model : null;
|
|
551
|
-
(n ?
|
|
551
|
+
(n ? g : m)(a, {
|
|
552
552
|
shape: d
|
|
553
553
|
}, l, i);
|
|
554
554
|
}
|
|
@@ -558,14 +558,14 @@ function checkPropertiesNotValid(t, e) {
|
|
|
558
558
|
return !1;
|
|
559
559
|
}
|
|
560
560
|
|
|
561
|
-
var
|
|
561
|
+
var lt = [ "x", "y", "width", "height" ], ct = [ "cx", "cy", "r", "startAngle", "endAngle" ], ut = {
|
|
562
562
|
cartesian2d: function(t) {
|
|
563
|
-
return !checkPropertiesNotValid(t,
|
|
563
|
+
return !checkPropertiesNotValid(t, lt);
|
|
564
564
|
},
|
|
565
565
|
polar: function(t) {
|
|
566
|
-
return !checkPropertiesNotValid(t,
|
|
566
|
+
return !checkPropertiesNotValid(t, ct);
|
|
567
567
|
}
|
|
568
|
-
},
|
|
568
|
+
}, pt = {
|
|
569
569
|
// itemModel is only used to get borderWidth, which is not needed
|
|
570
570
|
// when calculating bar background layout.
|
|
571
571
|
cartesian2d: function(t, e, a) {
|
|
@@ -618,38 +618,38 @@ function createPolarPositionMapping(t) {
|
|
|
618
618
|
}(t);
|
|
619
619
|
}
|
|
620
620
|
|
|
621
|
-
function updateStyle(t, e, a, r, i, s, n,
|
|
621
|
+
function updateStyle(t, e, a, r, i, s, n, o) {
|
|
622
622
|
var d = e.getItemVisual(a, "style");
|
|
623
|
-
if (
|
|
623
|
+
if (o) {
|
|
624
624
|
if (!s.get("roundCap")) {
|
|
625
|
-
var l = t.shape, c =
|
|
626
|
-
|
|
625
|
+
var l = t.shape, c = tt(r.getModel("itemStyle"), l, !0);
|
|
626
|
+
N(l, c), t.setShape(l);
|
|
627
627
|
}
|
|
628
628
|
} else {
|
|
629
|
-
var
|
|
630
|
-
t.setShape("r",
|
|
629
|
+
var u = r.get([ "itemStyle", "borderRadius" ]) || 0;
|
|
630
|
+
t.setShape("r", u);
|
|
631
631
|
}
|
|
632
632
|
t.useStyle(d);
|
|
633
633
|
var v = r.getShallow("cursor");
|
|
634
634
|
v && t.attr("cursor", v);
|
|
635
|
-
var m =
|
|
636
|
-
|
|
635
|
+
var m = o ? n ? i.r >= i.r0 ? "endArc" : "startArc" : i.endAngle >= i.startAngle ? "endAngle" : "startAngle" : n ? i.height >= 0 ? "bottom" : "top" : i.width >= 0 ? "right" : "left", g = V(r);
|
|
636
|
+
U(t, g, {
|
|
637
637
|
labelFetcher: s,
|
|
638
638
|
labelDataIndex: a,
|
|
639
|
-
defaultText:
|
|
639
|
+
defaultText: J(s.getData(), a),
|
|
640
640
|
inheritColor: d.fill,
|
|
641
641
|
defaultOpacity: d.opacity,
|
|
642
642
|
defaultOutsidePosition: m
|
|
643
643
|
});
|
|
644
644
|
var b = t.getTextContent();
|
|
645
|
-
if (
|
|
645
|
+
if (o && b) {
|
|
646
646
|
var w = r.get([ "label", "position" ]);
|
|
647
647
|
t.textConfig.inside = "middle" === w || null, function(t, e, a, r) {
|
|
648
|
-
if (
|
|
648
|
+
if (p(r))
|
|
649
649
|
// user-set rotation
|
|
650
650
|
t.setTextConfig({
|
|
651
651
|
rotation: r
|
|
652
|
-
}); else if (
|
|
652
|
+
}); else if (f(e))
|
|
653
653
|
// user-set position, use 0 as auto rotation
|
|
654
654
|
t.setTextConfig({
|
|
655
655
|
rotation: 0
|
|
@@ -692,23 +692,23 @@ function updateStyle(t, e, a, r, i, s, n, h) {
|
|
|
692
692
|
}
|
|
693
693
|
}(t, "outside" === w ? m : w, createPolarPositionMapping(n), r.get([ "label", "rotate" ]));
|
|
694
694
|
}
|
|
695
|
-
|
|
696
|
-
return
|
|
695
|
+
C(b, g, s.getRawValue(a), (function(t) {
|
|
696
|
+
return K(e, t);
|
|
697
697
|
}));
|
|
698
698
|
var y = r.getModel([ "emphasis" ]);
|
|
699
|
-
|
|
699
|
+
P(t, y.get("focus"), y.get("blurScope"), y.get("disabled")), D(t, r), function(t) {
|
|
700
700
|
return null != t.startAngle && null != t.endAngle && t.startAngle === t.endAngle;
|
|
701
|
-
}(i) && (t.style.fill = "none", t.style.stroke = "none",
|
|
701
|
+
}(i) && (t.style.fill = "none", t.style.stroke = "none", h(t.states, (function(t) {
|
|
702
702
|
t.style && (t.style.fill = t.style.stroke = "none");
|
|
703
703
|
})));
|
|
704
704
|
}
|
|
705
705
|
|
|
706
|
-
var LagePathShape = function() {},
|
|
706
|
+
var LagePathShape = function() {}, ft = /** @class */ function(t) {
|
|
707
707
|
function LargePath(e) {
|
|
708
708
|
var a = t.call(this, e) || this;
|
|
709
709
|
return a.type = "largeBar", a;
|
|
710
710
|
}
|
|
711
|
-
return
|
|
711
|
+
return o(LargePath, t), LargePath.prototype.getDefaultShape = function() {
|
|
712
712
|
return new LagePathShape;
|
|
713
713
|
}, LargePath.prototype.buildPath = function(t, e) {
|
|
714
714
|
for (
|
|
@@ -717,13 +717,13 @@ var LagePathShape = function() {}, ct = /** @class */ function(t) {
|
|
|
717
717
|
var a = e.points, r = this.baseDimIdx, i = 1 - this.baseDimIdx, s = [], n = [], o = this.barWidth, h = 0; h < a.length; h += 3) n[r] = o,
|
|
718
718
|
n[i] = a[h + 2], s[r] = a[h + r], s[i] = a[h + i], t.rect(s[0], s[1], n[0], n[1]);
|
|
719
719
|
}, LargePath;
|
|
720
|
-
}(
|
|
720
|
+
}(c);
|
|
721
721
|
|
|
722
722
|
function createLarge(t, e, a, r) {
|
|
723
723
|
// TODO support polar
|
|
724
724
|
var i = t.getData(), s = i.getLayout("valueAxisHorizontal") ? 1 : 0, n = i.getLayout("largeDataIndices"), o = i.getLayout("size"), h = t.getModel("backgroundStyle"), d = i.getLayout("largeBackgroundPoints");
|
|
725
725
|
if (d) {
|
|
726
|
-
var l = new
|
|
726
|
+
var l = new ft({
|
|
727
727
|
shape: {
|
|
728
728
|
points: d
|
|
729
729
|
},
|
|
@@ -734,7 +734,7 @@ function createLarge(t, e, a, r) {
|
|
|
734
734
|
l.baseDimIdx = s, l.largeDataIndices = n, l.barWidth = o, l.useStyle(h.getItemStyle()),
|
|
735
735
|
e.add(l), a && a.push(l);
|
|
736
736
|
}
|
|
737
|
-
var c = new
|
|
737
|
+
var c = new ft({
|
|
738
738
|
shape: {
|
|
739
739
|
points: i.getLayout("largePoints")
|
|
740
740
|
},
|
|
@@ -746,12 +746,12 @@ function createLarge(t, e, a, r) {
|
|
|
746
746
|
// Stroke is rendered first to avoid overlapping with fill
|
|
747
747
|
c.style.stroke = null,
|
|
748
748
|
// Enable tooltip and user mouse/touch event handlers.
|
|
749
|
-
|
|
749
|
+
S(c).seriesIndex = t.seriesIndex, t.get("silent") || (c.on("mousedown", vt), c.on("mousemove", vt)),
|
|
750
750
|
a && a.push(c);
|
|
751
751
|
}
|
|
752
752
|
|
|
753
753
|
// Use throttle to avoid frequently traverse to find dataIndex.
|
|
754
|
-
var
|
|
754
|
+
var vt = L((function(t) {
|
|
755
755
|
var e = function(t, e, a) {
|
|
756
756
|
for (var r = t.baseDimIdx, i = 1 - r, s = t.shape.points, n = t.largeDataIndices, o = [], h = [], d = t.barWidth, l = 0, c = s.length / 3; l < c; l++) {
|
|
757
757
|
var u = 3 * l;
|
|
@@ -760,11 +760,11 @@ var ut = L((function(t) {
|
|
|
760
760
|
}
|
|
761
761
|
return -1;
|
|
762
762
|
}(this, t.offsetX, t.offsetY);
|
|
763
|
-
|
|
763
|
+
S(this).dataIndex = e >= 0 ? e : null;
|
|
764
764
|
}), 30, !1);
|
|
765
765
|
|
|
766
766
|
function createBackgroundShape(t, e, a) {
|
|
767
|
-
if (
|
|
767
|
+
if (G(a, "cartesian2d")) {
|
|
768
768
|
var r = e, i = a.getArea();
|
|
769
769
|
return {
|
|
770
770
|
x: t ? r.x : i.x,
|
|
@@ -784,12 +784,12 @@ function createBackgroundShape(t, e, a) {
|
|
|
784
784
|
};
|
|
785
785
|
}
|
|
786
786
|
|
|
787
|
-
|
|
788
|
-
t.registerChartView(
|
|
787
|
+
O([ E, function(t) {
|
|
788
|
+
t.registerChartView(ot), t.registerSeriesModel(rt), t.registerLayout(t.PRIORITY.VISUAL.LAYOUT, z(j, "bar")),
|
|
789
789
|
// Do layout after other overall layout, which can prepare some information.
|
|
790
|
-
t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,
|
|
790
|
+
t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT, I("bar")),
|
|
791
791
|
// Down sample after filter
|
|
792
|
-
t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,
|
|
792
|
+
t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC, Q("bar")),
|
|
793
793
|
/**
|
|
794
794
|
* @payload
|
|
795
795
|
* @property {string} [componentType=series]
|
|
@@ -812,11 +812,22 @@ E([ O, function(t) {
|
|
|
812
812
|
t.sortInfo && e.axis.setCategorySortInfo(t.sortInfo);
|
|
813
813
|
}));
|
|
814
814
|
}));
|
|
815
|
-
}, T,
|
|
815
|
+
}, T, et, Z, $ ]);
|
|
816
816
|
|
|
817
|
-
const
|
|
817
|
+
const mt = t(class extends e {
|
|
818
818
|
constructor(t) {
|
|
819
|
-
super(), !1 !== t && this.__registerHost(), this.__attachShadow(),
|
|
819
|
+
super(), !1 !== t && this.__registerHost(), this.__attachShadow(), this.keyboard = R({
|
|
820
|
+
getChart: () => this.chart,
|
|
821
|
+
getData: () => this.data,
|
|
822
|
+
onChange: t => this.keyboardIndex = t,
|
|
823
|
+
getOrder: () => {
|
|
824
|
+
const t = this.data.map(((t, e) => e));
|
|
825
|
+
return this.sort ? t.sort(((t, e) => this.data[e].value - this.data[t].value)) : t;
|
|
826
|
+
}
|
|
827
|
+
}),
|
|
828
|
+
// #endregion
|
|
829
|
+
// #region State Properties
|
|
830
|
+
this.keyboardIndex = null,
|
|
820
831
|
/** An array of objects that contain the data to be displayed. */
|
|
821
832
|
this.data = [],
|
|
822
833
|
/** Controls visibility of labels on the name axis. */
|
|
@@ -844,6 +855,7 @@ const pt = t(class extends e {
|
|
|
844
855
|
// #endregion
|
|
845
856
|
// #region Component Lifecycle Events
|
|
846
857
|
disconnectedCallback() {
|
|
858
|
+
this.keyboard.onBlur(),
|
|
847
859
|
// Remove event listeners
|
|
848
860
|
window.removeEventListener("resize", this.resizeEventListener),
|
|
849
861
|
// Clean up chart instance
|
|
@@ -855,23 +867,39 @@ const pt = t(class extends e {
|
|
|
855
867
|
this.chartContainer = null, this.resizeEventListener = null, this.chartFinishedListener = null;
|
|
856
868
|
}
|
|
857
869
|
componentDidLoad() {
|
|
858
|
-
const t =
|
|
870
|
+
const t = W(this.chartContainer);
|
|
859
871
|
this.chart = t, this.resizeEventListener = () => this.resizeChart(), window.addEventListener("resize", this.resizeEventListener),
|
|
860
872
|
this.cacheComputedStyles(), this.updateChart(t), this.setupChartEvents(t), i(this.hostElement);
|
|
861
873
|
}
|
|
862
874
|
// #endregion
|
|
875
|
+
// #region Listeners
|
|
876
|
+
delegateFocus(t) {
|
|
877
|
+
var e;
|
|
878
|
+
s(t, this.hostElement) && this.data.length && (null === (e = this.chartContainer) || void 0 === e || e.focus());
|
|
879
|
+
}
|
|
880
|
+
// #endregion
|
|
863
881
|
// #region Watchers
|
|
864
882
|
propsUpdates() {
|
|
865
|
-
this.chart && this.updateChart(this.chart);
|
|
883
|
+
this.chart && (this.updateChart(this.chart), this.keyboard.refresh());
|
|
866
884
|
}
|
|
867
885
|
// #endregion
|
|
868
886
|
// #region Local Methods
|
|
887
|
+
get keyboardDescription() {
|
|
888
|
+
var t;
|
|
889
|
+
const e = this.data[this.keyboardIndex];
|
|
890
|
+
if (null === this.keyboardIndex || !e) return "";
|
|
891
|
+
const a = (null === (t = this.formatModifier) || void 0 === t ? void 0 : t.includes("dec")) ? this.formatModifier.replace("dec", "") : 0;
|
|
892
|
+
return X(e.name, Y(e.value || 0, {
|
|
893
|
+
type: this.format,
|
|
894
|
+
decimals: a
|
|
895
|
+
}), this.sort ? [ ...this.data ].sort(((t, e) => e.value - t.value)).indexOf(e) : this.keyboardIndex, this.data.length);
|
|
896
|
+
}
|
|
869
897
|
cacheComputedStyles() {
|
|
870
898
|
this.chartContainerStyles = getComputedStyle(this.chartContainer), this.hostElementStyles = getComputedStyle(this.hostElement);
|
|
871
899
|
}
|
|
872
900
|
getColor(t) {
|
|
873
|
-
const e =
|
|
874
|
-
return r || (
|
|
901
|
+
const e = _("var(--t-primary)", this.chartContainerStyles, this.hostElementStyles), a = _(this.color, this.chartContainerStyles, this.hostElementStyles), r = _(t, this.chartContainerStyles, this.hostElementStyles);
|
|
902
|
+
return r || (q(t) ? t : a || (q(this.color) ? this.color : e));
|
|
875
903
|
}
|
|
876
904
|
processData(t) {
|
|
877
905
|
return t.map((t => ({
|
|
@@ -892,21 +920,21 @@ const pt = t(class extends e {
|
|
|
892
920
|
}, t.on("finished", this.chartFinishedListener);
|
|
893
921
|
}
|
|
894
922
|
updateChart(t) {
|
|
895
|
-
var e;
|
|
896
|
-
const
|
|
923
|
+
var e, a;
|
|
924
|
+
const r = (null === (e = this.formatModifier) || void 0 === e ? void 0 : e.includes("dec")) ? this.formatModifier.replace("dec", "") : 0, i = {
|
|
897
925
|
type: "value",
|
|
898
926
|
axisLabel: {
|
|
899
|
-
formatter: t =>
|
|
927
|
+
formatter: t => Y(t, {
|
|
900
928
|
type: this.format,
|
|
901
|
-
decimals:
|
|
929
|
+
decimals: r
|
|
902
930
|
}),
|
|
903
931
|
rotate: this.offsetDataValues ? 45 : 0,
|
|
904
932
|
margin: this.offsetDataValues ? 15 : 8,
|
|
905
933
|
show: !this.hideValueAxisLabels
|
|
906
934
|
}
|
|
907
|
-
},
|
|
935
|
+
}, s = {
|
|
908
936
|
type: "category",
|
|
909
|
-
data: this.data.map((t =>
|
|
937
|
+
data: this.data.map((t => n(t.name) || "")),
|
|
910
938
|
axisLabel: {
|
|
911
939
|
rotate: this.offsetDataNames ? 45 : 0,
|
|
912
940
|
margin: this.offsetDataNames ? 15 : 8,
|
|
@@ -919,12 +947,12 @@ const pt = t(class extends e {
|
|
|
919
947
|
alignWithLabel: this.offsetDataNames
|
|
920
948
|
}
|
|
921
949
|
};
|
|
922
|
-
|
|
950
|
+
t.setOption({
|
|
923
951
|
aria: {
|
|
924
952
|
enabled: !0
|
|
925
953
|
},
|
|
926
954
|
title: {
|
|
927
|
-
text:
|
|
955
|
+
text: n(this.chartName),
|
|
928
956
|
show: this.showChartName,
|
|
929
957
|
left: this.alignChartName,
|
|
930
958
|
subtext: this.chartSubTitle
|
|
@@ -933,8 +961,8 @@ const pt = t(class extends e {
|
|
|
933
961
|
containLabel: !0,
|
|
934
962
|
...this.gridPadding
|
|
935
963
|
},
|
|
936
|
-
xAxis: "horizontal" === this.orientation ?
|
|
937
|
-
yAxis: "horizontal" === this.orientation ?
|
|
964
|
+
xAxis: "horizontal" === this.orientation ? i : s,
|
|
965
|
+
yAxis: "horizontal" === this.orientation ? s : i,
|
|
938
966
|
series: [ {
|
|
939
967
|
data: this.processData(this.data),
|
|
940
968
|
id: "bar",
|
|
@@ -943,28 +971,44 @@ const pt = t(class extends e {
|
|
|
943
971
|
show: !this.hideBarLabels,
|
|
944
972
|
position: "top",
|
|
945
973
|
fontWeight: "bold",
|
|
946
|
-
formatter: t =>
|
|
974
|
+
formatter: t => Y(t.value, {
|
|
947
975
|
type: this.format,
|
|
948
|
-
decimals:
|
|
976
|
+
decimals: r
|
|
949
977
|
})
|
|
950
978
|
},
|
|
951
979
|
realtimeSort: this.sort
|
|
952
980
|
} ]
|
|
953
|
-
})
|
|
981
|
+
}),
|
|
982
|
+
// ECharts ARIA sets role="img" when options change; retain the keyboard interaction role.
|
|
983
|
+
null === (a = this.chartContainer) || void 0 === a || a.setAttribute("role", "application");
|
|
954
984
|
}
|
|
955
985
|
// #endregion
|
|
956
986
|
// #region Render Methods
|
|
957
987
|
render() {
|
|
958
988
|
return a("div", {
|
|
959
|
-
key: "
|
|
989
|
+
key: "2764d138c5aee7d65df3361a7d4720e00ba13368",
|
|
960
990
|
class: "container"
|
|
961
991
|
}, a("div", {
|
|
962
|
-
key: "
|
|
992
|
+
key: "864b3f1d5987a101ab008e37e99c874cc411c143",
|
|
963
993
|
ref: t => this.chartContainer = t,
|
|
964
994
|
class: "chart-container",
|
|
965
|
-
role: "
|
|
995
|
+
role: "application",
|
|
996
|
+
tabIndex: this.data.length ? 0 : -1,
|
|
997
|
+
"aria-describedby": "chart-keyboard-instructions",
|
|
998
|
+
onFocus: this.keyboard.onFocus,
|
|
999
|
+
onBlur: this.keyboard.onBlur,
|
|
1000
|
+
onKeyDown: this.keyboard.onKeyDown,
|
|
966
1001
|
"test-id": "barChartContainer"
|
|
967
|
-
})
|
|
1002
|
+
}), a("div", {
|
|
1003
|
+
key: "3b6aa42b27e86f75cd4d1fc3d2efe823b950864c",
|
|
1004
|
+
id: "chart-keyboard-instructions",
|
|
1005
|
+
class: "sr"
|
|
1006
|
+
}, n("tecton.element.chart.keyboardInstructions")), a("div", {
|
|
1007
|
+
key: "5d216b8ccce18ea77f136fd43ab81db335b38d89",
|
|
1008
|
+
class: null === this.keyboardIndex ? "sr" : "chart-keyboard-value",
|
|
1009
|
+
role: "status",
|
|
1010
|
+
"aria-atomic": "true"
|
|
1011
|
+
}, this.keyboardDescription));
|
|
968
1012
|
}
|
|
969
1013
|
get hostElement() {
|
|
970
1014
|
return this;
|
|
@@ -1019,7 +1063,7 @@ const pt = t(class extends e {
|
|
|
1019
1063
|
};
|
|
1020
1064
|
}
|
|
1021
1065
|
static get style() {
|
|
1022
|
-
return '*{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{width:var(--tct-bar-chart-width, 100%);height:var(--tct-bar-chart-height, 100%);display:block}.container{width:100%;height:100%}.chart-container{width:100%;height:100%}';
|
|
1066
|
+
return '*{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{width:var(--tct-bar-chart-width, 100%);height:var(--tct-bar-chart-height, 100%);display:block}.container{position:relative;width:100%;height:100%}.chart-keyboard-value{position:absolute;top:0;right:0;padding:var(--app-scale-1x);background:var(--t-base);color:var(--t-text);pointer-events:none}.chart-container{width:100%;height:100%}';
|
|
1023
1067
|
}
|
|
1024
1068
|
}, [ 1, "q2-chart-bar", {
|
|
1025
1069
|
alignChartName: [ 513, "align-chart-name" ],
|
|
@@ -1038,8 +1082,9 @@ const pt = t(class extends e {
|
|
|
1038
1082
|
offsetDataValues: [ 516, "offset-data-values" ],
|
|
1039
1083
|
orientation: [ 513 ],
|
|
1040
1084
|
showChartName: [ 516, "show-chart-name" ],
|
|
1041
|
-
sort: [ 516 ]
|
|
1042
|
-
|
|
1085
|
+
sort: [ 516 ],
|
|
1086
|
+
keyboardIndex: [ 32 ]
|
|
1087
|
+
}, [ [ 0, "focus", "delegateFocus" ] ], {
|
|
1043
1088
|
chartName: [ {
|
|
1044
1089
|
propsUpdates: 0
|
|
1045
1090
|
} ],
|
|
@@ -1087,11 +1132,11 @@ const pt = t(class extends e {
|
|
|
1087
1132
|
} ]
|
|
1088
1133
|
} ]);
|
|
1089
1134
|
|
|
1090
|
-
const
|
|
1135
|
+
const gt = mt, defineCustomElement = function() {
|
|
1091
1136
|
if ("undefined" == typeof customElements) return;
|
|
1092
1137
|
[ "q2-chart-bar" ].forEach((t => {
|
|
1093
|
-
if ("q2-chart-bar" === t) customElements.get(r(t)) || customElements.define(r(t),
|
|
1138
|
+
if ("q2-chart-bar" === t) customElements.get(r(t)) || customElements.define(r(t), mt);
|
|
1094
1139
|
}));
|
|
1095
1140
|
};
|
|
1096
1141
|
|
|
1097
|
-
export {
|
|
1142
|
+
export { gt as Q2ChartBar, defineCustomElement }
|