q2-tecton-elements 1.72.0 → 1.73.1
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 +39545 -34361
- 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 +34 -1
- package/dist/cjs/q2-badge_2.cjs.entry.js +3 -3
- 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 +3 -3
- 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 +12 -6
- package/dist/cjs/q2-pill.cjs.entry.js +8 -5
- 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 +34 -1
- package/dist/collection/components/q2-avatar/test/q2-avatar-test.vr.js +79 -4
- 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/formatting/phone-number-formats.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.css +1 -1
- package/dist/collection/components/q2-message/q2-message.js +1 -1
- package/dist/collection/components/q2-message/test/q2-message-test.vr.js +11 -2
- 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.css +17 -0
- package/dist/collection/components/q2-pagination/q2-pagination.js +10 -4
- package/dist/collection/components/q2-pagination/test/q2-pagination-test.vr.js +39 -0
- package/dist/collection/components/q2-pill/q2-pill.css +14 -10
- package/dist/collection/components/q2-pill/q2-pill.js +6 -3
- package/dist/collection/components/q2-pill/test/q2-pill-test.vr.js +25 -0
- 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 +41 -27
- 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 +6 -6
- 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 +10 -10
- 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 +70 -68
- package/dist/components/q2-pill.js +51 -46
- 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 +1 -1
- package/dist/components/q2-search.js +5 -5
- package/dist/components/q2-section.js +17 -17
- package/dist/components/q2-select2.js +2 -2
- package/dist/components/q2-stepper-pane.js +29 -29
- 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 +21 -21
- package/dist/components/q2-tab-pane.js +6 -6
- 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 +34 -1
- package/dist/esm/q2-badge_2.entry.js +3 -3
- 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 +3 -3
- 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 +12 -6
- package/dist/esm/q2-pill.entry.js +8 -5
- 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 +24 -10
- package/dist/q2-tecton-elements/q2-badge_2.entry.js +6 -6
- 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 +29 -29
- 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 +51 -49
- package/dist/q2-tecton-elements/q2-pill.entry.js +22 -17
- 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 +6 -6
- package/dist/q2-tecton-elements/q2-resize-observer.entry.js +13 -13
- package/dist/q2-tecton-elements/q2-search.entry.js +31 -31
- 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 +10 -10
- 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 +15 -15
- package/dist/q2-tecton-elements/q2-tab-container.entry.js +20 -20
- package/dist/q2-tecton-elements/q2-tab-pane.entry.js +9 -9
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
- package/dist/q2-tecton-elements/q2-textarea.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-toast.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-tooltip.entry.js +1 -1
- package/dist/q2-tecton-elements/{sectorHelper--RMGWGAy.js → sectorHelper-DBtkWtpl.js} +56 -56
- package/dist/q2-tecton-elements/tecton-tab-pane.entry.js +9 -9
- 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-avatar/q2-avatar.d.ts +5 -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,42 +1,42 @@
|
|
|
1
|
-
import { r as t, h as e, g as
|
|
1
|
+
import { r as t, h as e, g as a } from "./index-Cqkz7Bnm.js";
|
|
2
2
|
|
|
3
|
-
import { o as
|
|
3
|
+
import { o as r, i, l as s } from "./index-CP8pXJ-l.js";
|
|
4
4
|
|
|
5
|
-
import { _ as n, v as
|
|
5
|
+
import { _ as n, v as o, H as h, I as d, c as l, J as c, K as u, E as f, L as p, y as v, A as g, M as b, x as m, N as w, O as y, F as B, h as A, Q as S, R as M, U as x, V as k, W as V, X as C, Y as N, Z as P, $ as D, a0 as z, a1 as L, a2 as U, a3 as j, a4 as I, a5 as O, a6 as E, a7 as R, a8 as T, a9 as X, aa as _, ab as W, ac as Y } from "./charting-DFXJklqs.js";
|
|
6
6
|
|
|
7
|
-
import { c as
|
|
7
|
+
import { c as F, a as q, i as H, g as J, b as K, d as Q, e as Z, f as $ } from "./dataSample-CP_VKNqt.js";
|
|
8
8
|
|
|
9
|
-
import { g as
|
|
9
|
+
import { g as G, i as tt } from "./sectorHelper-DBtkWtpl.js";
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var et = /** @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
16
|
return n(BaseBarSeriesModel, t), BaseBarSeriesModel.prototype.getInitialData = function(t, e) {
|
|
17
|
-
return
|
|
17
|
+
return F(null, this, {
|
|
18
18
|
useEncodeDefaulter: !0
|
|
19
19
|
});
|
|
20
|
-
}, BaseBarSeriesModel.prototype.getMarkerPosition = function(t, e,
|
|
21
|
-
var
|
|
22
|
-
if (
|
|
20
|
+
}, BaseBarSeriesModel.prototype.getMarkerPosition = function(t, e, a) {
|
|
21
|
+
var r = this.coordinateSystem;
|
|
22
|
+
if (r && r.clampData) {
|
|
23
23
|
// PENDING if clamp ?
|
|
24
|
-
var i =
|
|
25
|
-
if (
|
|
24
|
+
var i = r.clampData(t), s = r.dataToPoint(i);
|
|
25
|
+
if (a) o(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
|
-
var
|
|
28
|
+
var r = t.getTicksCoords(), n = t.getTickModel().get("alignWithLabel"), o = i[a], h = "x1" === e[a] || "y1" === e[a];
|
|
29
29
|
// The only contains one tick, tickCoords is
|
|
30
30
|
// like [{coord: 0, tickValue: 0}, {coord: 0}]
|
|
31
31
|
// to the length should always be larger than 1
|
|
32
|
-
if (h && !
|
|
33
|
-
if (2 ===
|
|
32
|
+
if (h && !n && (o += 1), r.length < 2) return;
|
|
33
|
+
if (2 === r.length)
|
|
34
34
|
// The left value and right value of the axis are
|
|
35
35
|
// the same. coord is 0 in both items. Use the max
|
|
36
36
|
// value of the axis as the coord
|
|
37
|
-
return void (
|
|
38
|
-
for (var d = void 0, l = void 0, c = 1, u = 0; u <
|
|
39
|
-
var f =
|
|
37
|
+
return void (s[a] = t.toGlobalCoord(t.getExtent()[h ? 1 : 0]));
|
|
38
|
+
for (var d = void 0, l = void 0, c = 1, u = 0; u < r.length; u++) {
|
|
39
|
+
var f = r[u].coord, p = u === r.length - 1 ? r[u - 1].tickValue + c : r[u].tickValue;
|
|
40
40
|
// The last item of tickCoords doesn't contain
|
|
41
41
|
// tickValue
|
|
42
42
|
if (p === o) {
|
|
@@ -50,21 +50,21 @@ var K = /** @class */ function(t) {
|
|
|
50
50
|
1 === u && (
|
|
51
51
|
// Here we assume the step of category axes is
|
|
52
52
|
// the same
|
|
53
|
-
c = p -
|
|
53
|
+
c = p - r[0].tickValue);
|
|
54
54
|
}
|
|
55
55
|
null == l && (d ? d && (
|
|
56
56
|
// targetTickId is larger than all tick ids in the
|
|
57
57
|
// visible area, use the rightmost tick coord
|
|
58
|
-
l =
|
|
58
|
+
l = r[r.length - 1].coord) :
|
|
59
59
|
// targetTickId is smaller than all tick ids in the
|
|
60
60
|
// visible area, use the leftmost tick coord
|
|
61
|
-
l =
|
|
61
|
+
l = r[0].coord), s[a] = t.toGlobalCoord(l);
|
|
62
62
|
}
|
|
63
63
|
})); else {
|
|
64
|
-
var
|
|
65
|
-
|
|
64
|
+
var n = this.getData(), h = n.getLayout("offset"), d = n.getLayout("size"), l = r.getBaseAxis().isHorizontal() ? 0 : 1;
|
|
65
|
+
s[l] += h + d / 2;
|
|
66
66
|
}
|
|
67
|
-
return
|
|
67
|
+
return s;
|
|
68
68
|
}
|
|
69
69
|
return [ NaN, NaN ];
|
|
70
70
|
}, BaseBarSeriesModel.type = "series.__base_bar__", BaseBarSeriesModel.defaultOption = {
|
|
@@ -84,17 +84,17 @@ var K = /** @class */ function(t) {
|
|
|
84
84
|
progressive: 3e3,
|
|
85
85
|
progressiveChunkMode: "mod"
|
|
86
86
|
}, BaseBarSeriesModel;
|
|
87
|
-
}(
|
|
87
|
+
}(h);
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
h.registerClass(et);
|
|
90
90
|
|
|
91
|
-
var
|
|
91
|
+
var at = /** @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
96
|
return n(BarSeriesModel, t), BarSeriesModel.prototype.getInitialData = function() {
|
|
97
|
-
return
|
|
97
|
+
return F(null, this, {
|
|
98
98
|
useEncodeDefaulter: !0,
|
|
99
99
|
createInvertedIndices: !!this.get("realtimeSort", !0) || null
|
|
100
100
|
});
|
|
@@ -113,10 +113,10 @@ var $ = /** @class */ function(t) {
|
|
|
113
113
|
// Do not support progressive in normal mode.
|
|
114
114
|
var t = this.get("progressiveThreshold"), e = this.get("largeThreshold");
|
|
115
115
|
return e > t && (t = e), t;
|
|
116
|
-
}, BarSeriesModel.prototype.brushSelector = function(t, e,
|
|
117
|
-
return
|
|
116
|
+
}, BarSeriesModel.prototype.brushSelector = function(t, e, a) {
|
|
117
|
+
return a.rect(e.getItemLayout(t));
|
|
118
118
|
}, BarSeriesModel.type = "series.bar", BarSeriesModel.dependencies = [ "grid", "polar" ],
|
|
119
|
-
BarSeriesModel.defaultOption =
|
|
119
|
+
BarSeriesModel.defaultOption = d(et.defaultOption, {
|
|
120
120
|
// If clipped
|
|
121
121
|
// Only available on cartesian2d
|
|
122
122
|
clip: !0,
|
|
@@ -141,51 +141,51 @@ var $ = /** @class */ function(t) {
|
|
|
141
141
|
},
|
|
142
142
|
realtimeSort: !1
|
|
143
143
|
}), BarSeriesModel;
|
|
144
|
-
}(
|
|
144
|
+
}(et), 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
|
+
}, rt = /** @class */ function(t) {
|
|
148
148
|
function SausagePath(e) {
|
|
149
|
-
var
|
|
150
|
-
return
|
|
149
|
+
var a = t.call(this, e) || this;
|
|
150
|
+
return a.type = "sausage", a;
|
|
151
151
|
}
|
|
152
152
|
return n(SausagePath, t), SausagePath.prototype.getDefaultShape = function() {
|
|
153
153
|
return new SausageShape;
|
|
154
154
|
}, SausagePath.prototype.buildPath = function(t, e) {
|
|
155
|
-
var
|
|
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;
|
|
156
156
|
u || (
|
|
157
157
|
// Normalize angles
|
|
158
158
|
h = d - (l ? c : -c));
|
|
159
159
|
var f = Math.cos(h), p = Math.sin(h), v = Math.cos(d), g = Math.sin(d);
|
|
160
|
-
u ? (t.moveTo(f * i +
|
|
161
|
-
t.arc(
|
|
162
|
-
0 !== i && t.arc(
|
|
160
|
+
u ? (t.moveTo(f * i + a, p * i + r), t.arc(f * o + a, p * o + r, n, -Math.PI + h, h, !l)) : t.moveTo(f * s + a, p * s + r),
|
|
161
|
+
t.arc(a, r, s, h, d, !l), t.arc(v * o + a, g * o + r, n, d - 2 * Math.PI, d - Math.PI, !l),
|
|
162
|
+
0 !== i && t.arc(a, r, i, d, h, l);
|
|
163
163
|
}, SausagePath;
|
|
164
|
-
}(
|
|
164
|
+
}(l);
|
|
165
165
|
|
|
166
166
|
/**
|
|
167
167
|
* Sausage: similar to sector, but have half circle on both sides
|
|
168
|
-
*/ function adjustAngleDistanceX(t, e,
|
|
169
|
-
return e * Math.sin(t) * (
|
|
168
|
+
*/ function adjustAngleDistanceX(t, e, a) {
|
|
169
|
+
return e * Math.sin(t) * (a ? -1 : 1);
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
function adjustAngleDistanceY(t, e,
|
|
173
|
-
return e * Math.cos(t) * (
|
|
172
|
+
function adjustAngleDistanceY(t, e, a) {
|
|
173
|
+
return e * Math.cos(t) * (a ? 1 : -1);
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
var
|
|
176
|
+
var it = Math.max, st = Math.min;
|
|
177
177
|
|
|
178
|
-
var
|
|
178
|
+
var nt = /** @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 n(BarView, t), BarView.prototype.render = function(t, e,
|
|
184
|
-
this._model = t, this._removeOnRenderedListener(
|
|
183
|
+
return n(BarView, t), BarView.prototype.render = function(t, e, a, r) {
|
|
184
|
+
this._model = t, this._removeOnRenderedListener(a), this._updateDrawMode(t);
|
|
185
185
|
var i = t.get("coordinateSystem");
|
|
186
186
|
"cartesian2d" !== i && "polar" !== i || (
|
|
187
187
|
// Clear previously rendered progressive elements.
|
|
188
|
-
this._progressiveEls = null, this._isLargeDraw ? this._renderLarge(t, e,
|
|
188
|
+
this._progressiveEls = null, this._isLargeDraw ? this._renderLarge(t, e, a) : this._renderNormal(t, e, a, r));
|
|
189
189
|
}, BarView.prototype.incrementalPrepareRender = function(t) {
|
|
190
190
|
this._clear(), this._updateDrawMode(t),
|
|
191
191
|
// incremental also need to clip, otherwise might be overlow.
|
|
@@ -197,65 +197,65 @@ var at = /** @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
|
+
p(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,
|
|
204
204
|
this._clear());
|
|
205
|
-
}, BarView.prototype._renderNormal = function(t, e,
|
|
206
|
-
var i,
|
|
205
|
+
}, BarView.prototype._renderNormal = function(t, e, a, r) {
|
|
206
|
+
var i, s = this.group, n = t.getData(), o = this._data, h = t.coordinateSystem, d = h.getBaseAxis();
|
|
207
207
|
"cartesian2d" === h.type ? i = d.isHorizontal() : "polar" === h.type && (i = "angle" === d.dim);
|
|
208
208
|
var l = t.isAnimationEnabled() ? t : null, c = function(t, e) {
|
|
209
|
-
var
|
|
210
|
-
if (
|
|
211
|
-
baseAxis:
|
|
212
|
-
otherAxis: e.getOtherAxis(
|
|
209
|
+
var a = t.get("realtimeSort", !0), r = e.getBaseAxis();
|
|
210
|
+
if (a && "category" === r.type && "cartesian2d" === e.type) return {
|
|
211
|
+
baseAxis: r,
|
|
212
|
+
otherAxis: e.getOtherAxis(r)
|
|
213
213
|
};
|
|
214
214
|
}(t, h);
|
|
215
|
-
c && this._enableRealtimeSort(c,
|
|
215
|
+
c && this._enableRealtimeSort(c, n, a);
|
|
216
216
|
var u = t.get("clip", !0) || c, f = function(t, e) {
|
|
217
|
-
var
|
|
218
|
-
if (
|
|
219
|
-
var
|
|
217
|
+
var a = t.getArea && t.getArea();
|
|
218
|
+
if (H(t, "cartesian2d")) {
|
|
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.
|
|
222
222
|
// See test/bar2.html
|
|
223
|
-
if ("category" !==
|
|
223
|
+
if ("category" !== r.type || !r.onBand) {
|
|
224
224
|
var i = e.getLayout("bandWidth");
|
|
225
|
-
|
|
225
|
+
r.isHorizontal() ? (a.x -= i, a.width += 2 * i) : (a.y -= i, a.height += 2 * i);
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
|
-
return
|
|
229
|
-
}(h,
|
|
228
|
+
return a;
|
|
229
|
+
}(h, n);
|
|
230
230
|
// If there is clipPath created in large mode. Remove it.
|
|
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
|
|
234
|
+
var p = t.get("roundCap", !0), B = t.get("showBackground", !0), A = t.getModel("backgroundStyle"), S = A.get("borderRadius") || 0, k = [], V = this._backgroundEls, C = r && r.isInitSort, N = r && "changeAxisOrder" === r.type;
|
|
235
235
|
function createBackground(t) {
|
|
236
|
-
var e =
|
|
237
|
-
var
|
|
238
|
-
return new
|
|
239
|
-
shape: createBackgroundShape(e,
|
|
236
|
+
var e = ut[h.type](n, t), a = function(t, e, a) {
|
|
237
|
+
var r = "polar" === t.type ? M : x;
|
|
238
|
+
return new r({
|
|
239
|
+
shape: createBackgroundShape(e, a, t),
|
|
240
240
|
silent: !0,
|
|
241
241
|
z2: 0
|
|
242
242
|
});
|
|
243
243
|
}(h, i, e);
|
|
244
|
-
return
|
|
244
|
+
return a.useStyle(A.getItemStyle()),
|
|
245
245
|
// Only cartesian2d support borderRadius.
|
|
246
|
-
"cartesian2d" === h.type ?
|
|
247
|
-
|
|
246
|
+
"cartesian2d" === h.type ? a.setShape("r", S) : a.setShape("cornerRadius", S), k[t] = a,
|
|
247
|
+
a;
|
|
248
248
|
}
|
|
249
|
-
|
|
250
|
-
var
|
|
249
|
+
n.diff(o).add((function(e) {
|
|
250
|
+
var a = n.getItemModel(e), r = ut[h.type](n, e, a);
|
|
251
251
|
// If dataZoom in filteMode: 'empty', the baseValue can be set as NaN in "axisProxy".
|
|
252
|
-
if (B && createBackground(e),
|
|
252
|
+
if (B && createBackground(e), n.hasValue(e) && ct[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 = ot[h.type](f, r));
|
|
258
|
+
var g = ht[h.type](t, n, e, r, i, l, d.model, !1, p);
|
|
259
259
|
c && (
|
|
260
260
|
/**
|
|
261
261
|
* Force label animation because even if the element is
|
|
@@ -265,31 +265,31 @@ var at = /** @class */ function(t) {
|
|
|
265
265
|
* the label will be the final value and doesn't have label
|
|
266
266
|
* animation.
|
|
267
267
|
*/
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
shape:
|
|
271
|
-
}) : c ? updateRealtimeAnimation(c, l,
|
|
272
|
-
shape:
|
|
273
|
-
}, t, e),
|
|
268
|
+
g.forceLabelAnimation = !0), updateStyle(g, n, e, a, r, t, i, "polar" === h.type),
|
|
269
|
+
C ? g.attr({
|
|
270
|
+
shape: r
|
|
271
|
+
}) : c ? updateRealtimeAnimation(c, l, g, r, e, i, !1, !1) : v(g, {
|
|
272
|
+
shape: r
|
|
273
|
+
}, t, e), n.setItemGraphicEl(e, g), s.add(g), g.ignore = o;
|
|
274
274
|
}
|
|
275
|
-
})).update((function(e,
|
|
276
|
-
var
|
|
275
|
+
})).update((function(e, a) {
|
|
276
|
+
var r = n.getItemModel(e), v = ut[h.type](n, e, r);
|
|
277
277
|
if (B) {
|
|
278
|
-
var
|
|
279
|
-
0 === V.length ?
|
|
278
|
+
var w = void 0;
|
|
279
|
+
0 === V.length ? w = createBackground(a) : ((w = V[a]).useStyle(A.getItemStyle()),
|
|
280
280
|
// Only cartesian2d support borderRadius.
|
|
281
|
-
"cartesian2d" === h.type ?
|
|
282
|
-
var
|
|
283
|
-
|
|
281
|
+
"cartesian2d" === h.type ? w.setShape("r", S) : w.setShape("cornerRadius", S), k[e] = w);
|
|
282
|
+
var y = ut[h.type](n, e), M = createBackgroundShape(i, y, h);
|
|
283
|
+
g(w, {
|
|
284
284
|
shape: M
|
|
285
285
|
}, l, e);
|
|
286
286
|
}
|
|
287
|
-
var
|
|
288
|
-
if (
|
|
287
|
+
var x = o.getItemGraphicEl(a);
|
|
288
|
+
if (n.hasValue(e) && ct[h.type](v)) {
|
|
289
289
|
var P = !1;
|
|
290
|
-
if (u && (P =
|
|
291
|
-
c && (
|
|
292
|
-
var D =
|
|
290
|
+
if (u && (P = ot[h.type](f, v)) && s.remove(x), x ? b(x) : x = ht[h.type](t, n, e, v, i, l, d.model, !!x, p),
|
|
291
|
+
c && (x.forceLabelAnimation = !0), N) {
|
|
292
|
+
var D = x.getTextContent();
|
|
293
293
|
if (D) {
|
|
294
294
|
var z = m(D);
|
|
295
295
|
null != z.prevValue && (
|
|
@@ -304,69 +304,69 @@ var at = /** @class */ function(t) {
|
|
|
304
304
|
}
|
|
305
305
|
// Not change anything if only order changed.
|
|
306
306
|
// Especially not change label.
|
|
307
|
-
else updateStyle(
|
|
308
|
-
|
|
309
|
-
shape:
|
|
310
|
-
}) : c ? updateRealtimeAnimation(c, l,
|
|
311
|
-
shape:
|
|
312
|
-
}, t, e, null),
|
|
313
|
-
} else
|
|
307
|
+
else updateStyle(x, n, e, r, v, t, i, "polar" === h.type);
|
|
308
|
+
C ? x.attr({
|
|
309
|
+
shape: v
|
|
310
|
+
}) : c ? updateRealtimeAnimation(c, l, x, v, e, i, !0, N) : g(x, {
|
|
311
|
+
shape: v
|
|
312
|
+
}, t, e, null), n.setItemGraphicEl(e, x), x.ignore = P, s.add(x);
|
|
313
|
+
} else s.remove(x);
|
|
314
314
|
})).remove((function(e) {
|
|
315
|
-
var
|
|
316
|
-
|
|
315
|
+
var a = o.getItemGraphicEl(e);
|
|
316
|
+
a && w(a, t, e);
|
|
317
317
|
})).execute();
|
|
318
|
-
var P = this._backgroundGroup || (this._backgroundGroup = new
|
|
318
|
+
var P = this._backgroundGroup || (this._backgroundGroup = new y);
|
|
319
319
|
P.removeAll();
|
|
320
320
|
for (var D = 0; D < k.length; ++D) P.add(k[D]);
|
|
321
|
-
|
|
322
|
-
}, BarView.prototype._renderLarge = function(t, e,
|
|
321
|
+
s.add(P), this._backgroundEls = k, this._data = n;
|
|
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) &&
|
|
329
|
-
e ?
|
|
330
|
-
}, BarView.prototype._enableRealtimeSort = function(t, e,
|
|
331
|
-
var
|
|
328
|
+
var e = t.get("clip", !0) && q(t.coordinateSystem, !1, t), a = this.group;
|
|
329
|
+
e ? a.setClipPath(e) : a.removeClipPath();
|
|
330
|
+
}, BarView.prototype._enableRealtimeSort = function(t, e, a) {
|
|
331
|
+
var r = this;
|
|
332
332
|
// If no data in the first frame, wait for data to initSort
|
|
333
333
|
if (e.count()) {
|
|
334
334
|
var i = t.baseAxis;
|
|
335
|
-
if (this._isFirstFrame) this._dispatchInitSort(e, t,
|
|
335
|
+
if (this._isFirstFrame) this._dispatchInitSort(e, t, a), this._isFirstFrame = !1; else {
|
|
336
336
|
var orderMapping_1 = function(t) {
|
|
337
|
-
var
|
|
338
|
-
return
|
|
337
|
+
var a = e.getItemGraphicEl(t), r = a && a.shape;
|
|
338
|
+
return r &&
|
|
339
339
|
// The result should be consistent with the initial sort by data value.
|
|
340
340
|
// Do not support the case that both positive and negative exist.
|
|
341
|
-
Math.abs(i.isHorizontal() ?
|
|
341
|
+
Math.abs(i.isHorizontal() ? r.height : r.width) || 0;
|
|
342
342
|
};
|
|
343
343
|
this._onRendered = function() {
|
|
344
|
-
|
|
345
|
-
},
|
|
344
|
+
r._updateSortWithinSameData(e, orderMapping_1, i, a);
|
|
345
|
+
}, a.getZr().on("rendered", this._onRendered);
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
}, BarView.prototype._dataSort = function(t, e,
|
|
349
|
-
var
|
|
348
|
+
}, BarView.prototype._dataSort = function(t, e, a) {
|
|
349
|
+
var r = [];
|
|
350
350
|
return t.each(t.mapDimension(e.dim), (function(t, e) {
|
|
351
|
-
var i =
|
|
352
|
-
i = null == i ? NaN : i,
|
|
351
|
+
var i = a(e);
|
|
352
|
+
i = null == i ? NaN : i, r.push({
|
|
353
353
|
dataIndex: e,
|
|
354
354
|
mappedValue: i,
|
|
355
355
|
ordinalNumber: t
|
|
356
356
|
});
|
|
357
|
-
})),
|
|
357
|
+
})), r.sort((function(t, e) {
|
|
358
358
|
// If NaN, it will be treated as min val.
|
|
359
359
|
return e.mappedValue - t.mappedValue;
|
|
360
360
|
})), {
|
|
361
|
-
ordinalNumbers:
|
|
361
|
+
ordinalNumbers: B(r, (function(t) {
|
|
362
362
|
return t.ordinalNumber;
|
|
363
363
|
}))
|
|
364
364
|
};
|
|
365
|
-
}, BarView.prototype._isOrderChangedWithinSameData = function(t, e,
|
|
366
|
-
for (var
|
|
367
|
-
var h = t.rawIndexOf(i,
|
|
368
|
-
if (d >
|
|
369
|
-
|
|
365
|
+
}, BarView.prototype._isOrderChangedWithinSameData = function(t, e, a) {
|
|
366
|
+
for (var r = a.scale, i = t.mapDimension(a.dim), s = Number.MAX_VALUE, n = 0, o = r.getOrdinalMeta().categories.length; n < o; ++n) {
|
|
367
|
+
var h = t.rawIndexOf(i, r.getRawOrdinalNumber(n)), d = h < 0 ? Number.MIN_VALUE : e(t.indexOfRawIndex(h));
|
|
368
|
+
if (d > s) return !0;
|
|
369
|
+
s = d;
|
|
370
370
|
}
|
|
371
371
|
return !1;
|
|
372
372
|
},
|
|
@@ -376,26 +376,26 @@ var at = /** @class */ function(t) {
|
|
|
376
376
|
* as long as the order in the view doesn't change.
|
|
377
377
|
*/
|
|
378
378
|
BarView.prototype._isOrderDifferentInView = function(t, e) {
|
|
379
|
-
for (var
|
|
380
|
-
}, BarView.prototype._updateSortWithinSameData = function(t, e,
|
|
381
|
-
if (this._isOrderChangedWithinSameData(t, e,
|
|
382
|
-
var i = this._dataSort(t,
|
|
383
|
-
this._isOrderDifferentInView(i,
|
|
379
|
+
for (var a = e.scale, r = a.getExtent(), i = Math.max(0, r[0]), s = Math.min(r[1], a.getOrdinalMeta().categories.length - 1); i <= s; ++i) if (t.ordinalNumbers[i] !== a.getRawOrdinalNumber(i)) return !0;
|
|
380
|
+
}, BarView.prototype._updateSortWithinSameData = function(t, e, a, r) {
|
|
381
|
+
if (this._isOrderChangedWithinSameData(t, e, a)) {
|
|
382
|
+
var i = this._dataSort(t, a, e);
|
|
383
|
+
this._isOrderDifferentInView(i, a) && (this._removeOnRenderedListener(r), r.dispatchAction({
|
|
384
384
|
type: "changeAxisOrder",
|
|
385
|
-
componentType:
|
|
386
|
-
axisId:
|
|
385
|
+
componentType: a.dim + "Axis",
|
|
386
|
+
axisId: a.index,
|
|
387
387
|
sortInfo: i
|
|
388
388
|
}));
|
|
389
389
|
}
|
|
390
|
-
}, BarView.prototype._dispatchInitSort = function(t, e,
|
|
391
|
-
var
|
|
392
|
-
return t.get(t.mapDimension(e.otherAxis.dim),
|
|
390
|
+
}, BarView.prototype._dispatchInitSort = function(t, e, a) {
|
|
391
|
+
var r = e.baseAxis, i = this._dataSort(t, r, (function(a) {
|
|
392
|
+
return t.get(t.mapDimension(e.otherAxis.dim), a);
|
|
393
393
|
}));
|
|
394
|
-
|
|
394
|
+
a.dispatchAction({
|
|
395
395
|
type: "changeAxisOrder",
|
|
396
|
-
componentType:
|
|
396
|
+
componentType: r.dim + "Axis",
|
|
397
397
|
isInitSort: !0,
|
|
398
|
-
axisId:
|
|
398
|
+
axisId: r.index,
|
|
399
399
|
sortInfo: i
|
|
400
400
|
});
|
|
401
401
|
}, BarView.prototype.remove = function(t, e) {
|
|
@@ -405,194 +405,194 @@ var at = /** @class */ function(t) {
|
|
|
405
405
|
}, BarView.prototype._removeOnRenderedListener = function(t) {
|
|
406
406
|
this._onRendered && (t.getZr().off("rendered", this._onRendered), this._onRendered = null);
|
|
407
407
|
}, BarView.prototype._clear = function(t) {
|
|
408
|
-
var e = this.group,
|
|
409
|
-
t && t.isAnimationEnabled() &&
|
|
410
|
-
this._backgroundEls = [],
|
|
411
|
-
|
|
408
|
+
var e = this.group, a = this._data;
|
|
409
|
+
t && t.isAnimationEnabled() && a && !this._isLargeDraw ? (this._removeBackground(),
|
|
410
|
+
this._backgroundEls = [], a.eachItemGraphicEl((function(e) {
|
|
411
|
+
w(e, t, A(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
|
+
}(S), ot = {
|
|
417
417
|
cartesian2d: function(t, e) {
|
|
418
|
-
var
|
|
418
|
+
var a = e.width < 0 ? -1 : 1, r = e.height < 0 ? -1 : 1;
|
|
419
419
|
// Needs positive width and height
|
|
420
|
-
|
|
421
|
-
var i = t.x + t.width,
|
|
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 = it(e.x, t.x), o = st(e.x + e.width, i), h = it(e.y, t.y), d = st(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
|
|
425
425
|
// will begin at this place.
|
|
426
|
-
return e.x = l &&
|
|
426
|
+
return e.x = l && n > i ? o : n, e.y = c && h > s ? d : h, e.width = l ? 0 : o - n,
|
|
427
427
|
e.height = c ? 0 : d - h,
|
|
428
428
|
// Reverse back
|
|
429
|
-
|
|
429
|
+
a < 0 && (e.x += e.width, e.width = -e.width), r < 0 && (e.y += e.height, e.height = -e.height),
|
|
430
430
|
l || c;
|
|
431
431
|
},
|
|
432
432
|
polar: function(t, e) {
|
|
433
|
-
var
|
|
433
|
+
var a = e.r0 <= e.r ? 1 : -1;
|
|
434
434
|
// Make sure r is larger than r0
|
|
435
|
-
if (
|
|
436
|
-
var
|
|
437
|
-
e.r = e.r0, e.r0 =
|
|
435
|
+
if (a < 0) {
|
|
436
|
+
var r = e.r;
|
|
437
|
+
e.r = e.r0, e.r0 = r;
|
|
438
438
|
}
|
|
439
|
-
var i =
|
|
440
|
-
e.r = i, e.r0 =
|
|
441
|
-
var
|
|
439
|
+
var i = st(e.r, t.r), s = it(e.r0, t.r0);
|
|
440
|
+
e.r = i, e.r0 = s;
|
|
441
|
+
var n = i - s < 0;
|
|
442
442
|
// Reverse back
|
|
443
|
-
if (
|
|
444
|
-
|
|
445
|
-
e.r = e.r0, e.r0 =
|
|
443
|
+
if (a < 0) {
|
|
444
|
+
r = e.r;
|
|
445
|
+
e.r = e.r0, e.r0 = r;
|
|
446
446
|
}
|
|
447
|
-
return
|
|
447
|
+
return n;
|
|
448
448
|
}
|
|
449
|
-
},
|
|
450
|
-
cartesian2d: function(t, e,
|
|
451
|
-
var d = new
|
|
452
|
-
shape:
|
|
449
|
+
}, ht = {
|
|
450
|
+
cartesian2d: function(t, e, a, r, i, s, n, o, h) {
|
|
451
|
+
var d = new x({
|
|
452
|
+
shape: k({}, r),
|
|
453
453
|
z2: 1
|
|
454
454
|
});
|
|
455
|
-
(d.__dataIndex =
|
|
455
|
+
(d.__dataIndex = a, d.name = "item", s) && (d.shape[i ? "height" : "width"] = 0);
|
|
456
456
|
return d;
|
|
457
457
|
},
|
|
458
|
-
polar: function(t, e,
|
|
459
|
-
var d = !i && h ?
|
|
460
|
-
shape:
|
|
458
|
+
polar: function(t, e, a, r, i, s, n, o, h) {
|
|
459
|
+
var d = !i && h ? rt : M, l = new d({
|
|
460
|
+
shape: r,
|
|
461
461
|
z2: 1
|
|
462
462
|
});
|
|
463
|
-
|
|
464
|
-
var u, f,
|
|
463
|
+
l.name = "item";
|
|
464
|
+
var u, f, p = createPolarPositionMapping(i);
|
|
465
465
|
// Animation
|
|
466
|
-
if (
|
|
467
|
-
isRoundCap: d ===
|
|
468
|
-
} || {}).isRoundCap, function(t, e,
|
|
469
|
-
var
|
|
470
|
-
if (!
|
|
471
|
-
var i = u(
|
|
466
|
+
if (l.calculateTextPosition = (u = p, f = ({
|
|
467
|
+
isRoundCap: d === rt
|
|
468
|
+
} || {}).isRoundCap, function(t, e, a) {
|
|
469
|
+
var r = e.position;
|
|
470
|
+
if (!r || r instanceof Array) return c(t, e, a);
|
|
471
|
+
var i = u(r), s = null != e.distance ? e.distance : 5, n = this.shape, o = n.cx, h = n.cy, d = n.r, l = n.r0, p = (d + l) / 2, v = n.startAngle, g = n.endAngle, b = (v + g) / 2, m = f ? Math.abs(d - l) / 2 : 0, w = Math.cos, y = Math.sin, B = o + d * w(v), A = h + d * y(v), S = "left", M = "top";
|
|
472
472
|
switch (i) {
|
|
473
473
|
case "startArc":
|
|
474
|
-
B = o + (
|
|
474
|
+
B = o + (l - s) * w(b), A = h + (l - s) * y(b), S = "center", M = "top";
|
|
475
475
|
break;
|
|
476
476
|
|
|
477
477
|
case "insideStartArc":
|
|
478
|
-
B = o + (
|
|
478
|
+
B = o + (l + s) * w(b), A = h + (l + s) * y(b), S = "center", M = "bottom";
|
|
479
479
|
break;
|
|
480
480
|
|
|
481
481
|
case "startAngle":
|
|
482
|
-
B = o + p * w(v) + adjustAngleDistanceX(v,
|
|
483
|
-
|
|
482
|
+
B = o + p * w(v) + adjustAngleDistanceX(v, s + m, !1), A = h + p * y(v) + adjustAngleDistanceY(v, s + m, !1),
|
|
483
|
+
S = "right", M = "middle";
|
|
484
484
|
break;
|
|
485
485
|
|
|
486
486
|
case "insideStartAngle":
|
|
487
|
-
B = o + p * w(v) + adjustAngleDistanceX(v, -
|
|
488
|
-
|
|
487
|
+
B = o + p * w(v) + adjustAngleDistanceX(v, -s + m, !1), A = h + p * y(v) + adjustAngleDistanceY(v, -s + m, !1),
|
|
488
|
+
S = "left", M = "middle";
|
|
489
489
|
break;
|
|
490
490
|
|
|
491
491
|
case "middle":
|
|
492
|
-
B = o + p * w(
|
|
492
|
+
B = o + p * w(b), A = h + p * y(b), S = "center", M = "middle";
|
|
493
493
|
break;
|
|
494
494
|
|
|
495
495
|
case "endArc":
|
|
496
|
-
B = o + (d +
|
|
496
|
+
B = o + (d + s) * w(b), A = h + (d + s) * y(b), S = "center", M = "bottom";
|
|
497
497
|
break;
|
|
498
498
|
|
|
499
499
|
case "insideEndArc":
|
|
500
|
-
B = o + (d -
|
|
500
|
+
B = o + (d - s) * w(b), A = h + (d - s) * y(b), S = "center", M = "top";
|
|
501
501
|
break;
|
|
502
502
|
|
|
503
503
|
case "endAngle":
|
|
504
|
-
B = o + p * w(g) + adjustAngleDistanceX(g,
|
|
505
|
-
|
|
504
|
+
B = o + p * w(g) + adjustAngleDistanceX(g, s + m, !0), A = h + p * y(g) + adjustAngleDistanceY(g, s + m, !0),
|
|
505
|
+
S = "left", M = "middle";
|
|
506
506
|
break;
|
|
507
507
|
|
|
508
508
|
case "insideEndAngle":
|
|
509
|
-
B = o + p * w(g) + adjustAngleDistanceX(g, -
|
|
510
|
-
|
|
509
|
+
B = o + p * w(g) + adjustAngleDistanceX(g, -s + m, !0), A = h + p * y(g) + adjustAngleDistanceY(g, -s + m, !0),
|
|
510
|
+
S = "right", M = "middle";
|
|
511
511
|
break;
|
|
512
512
|
|
|
513
513
|
default:
|
|
514
|
-
return
|
|
514
|
+
return c(t, e, a);
|
|
515
515
|
}
|
|
516
|
-
return (t = t || {}).x = B, t.y = A, t.align =
|
|
517
|
-
}),
|
|
518
|
-
var
|
|
519
|
-
|
|
520
|
-
shape:
|
|
521
|
-
},
|
|
516
|
+
return (t = t || {}).x = B, t.y = A, t.align = S, t.verticalAlign = M, t;
|
|
517
|
+
}), s) {
|
|
518
|
+
var b = i ? "r" : "endAngle", m = {};
|
|
519
|
+
l.shape[b] = i ? r.r0 : r.startAngle, m[b] = r[b], (o ? g : v)(l, {
|
|
520
|
+
shape: m
|
|
521
|
+
}, s);
|
|
522
522
|
}
|
|
523
|
-
return
|
|
523
|
+
return l;
|
|
524
524
|
}
|
|
525
525
|
};
|
|
526
526
|
|
|
527
|
-
function updateRealtimeAnimation(t, e,
|
|
527
|
+
function updateRealtimeAnimation(t, e, a, r, i, s, n, o) {
|
|
528
528
|
var h, d;
|
|
529
|
-
|
|
530
|
-
x:
|
|
531
|
-
width:
|
|
529
|
+
s ? (d = {
|
|
530
|
+
x: r.x,
|
|
531
|
+
width: r.width
|
|
532
532
|
}, h = {
|
|
533
|
-
y:
|
|
534
|
-
height:
|
|
533
|
+
y: r.y,
|
|
534
|
+
height: r.height
|
|
535
535
|
}) : (d = {
|
|
536
|
-
y:
|
|
537
|
-
height:
|
|
536
|
+
y: r.y,
|
|
537
|
+
height: r.height
|
|
538
538
|
}, h = {
|
|
539
|
-
x:
|
|
540
|
-
width:
|
|
539
|
+
x: r.x,
|
|
540
|
+
width: r.width
|
|
541
541
|
}), o ||
|
|
542
542
|
// Keep the original growth animation if only axis order changed.
|
|
543
543
|
// Not start a new animation.
|
|
544
|
-
(
|
|
544
|
+
(n ? g : v)(a, {
|
|
545
545
|
shape: h
|
|
546
546
|
}, e, i, null);
|
|
547
547
|
var l = e ? t.baseAxis.model : null;
|
|
548
|
-
(
|
|
548
|
+
(n ? g : v)(a, {
|
|
549
549
|
shape: d
|
|
550
550
|
}, l, i);
|
|
551
551
|
}
|
|
552
552
|
|
|
553
553
|
function checkPropertiesNotValid(t, e) {
|
|
554
|
-
for (var
|
|
554
|
+
for (var a = 0; a < e.length; a++) if (!isFinite(t[e[a]])) return !0;
|
|
555
555
|
return !1;
|
|
556
556
|
}
|
|
557
557
|
|
|
558
|
-
var
|
|
558
|
+
var dt = [ "x", "y", "width", "height" ], lt = [ "cx", "cy", "r", "startAngle", "endAngle" ], ct = {
|
|
559
559
|
cartesian2d: function(t) {
|
|
560
|
-
return !checkPropertiesNotValid(t,
|
|
560
|
+
return !checkPropertiesNotValid(t, dt);
|
|
561
561
|
},
|
|
562
562
|
polar: function(t) {
|
|
563
|
-
return !checkPropertiesNotValid(t,
|
|
563
|
+
return !checkPropertiesNotValid(t, lt);
|
|
564
564
|
}
|
|
565
|
-
},
|
|
565
|
+
}, ut = {
|
|
566
566
|
// itemModel is only used to get borderWidth, which is not needed
|
|
567
567
|
// when calculating bar background layout.
|
|
568
|
-
cartesian2d: function(t, e,
|
|
569
|
-
var
|
|
568
|
+
cartesian2d: function(t, e, a) {
|
|
569
|
+
var r = t.getItemLayout(e), i = a ?
|
|
570
570
|
// In case width or height are too small.
|
|
571
571
|
function(t, e) {
|
|
572
572
|
// Has no border.
|
|
573
|
-
var
|
|
574
|
-
if (!
|
|
575
|
-
var
|
|
573
|
+
var a = t.get([ "itemStyle", "borderColor" ]);
|
|
574
|
+
if (!a || "none" === a) return 0;
|
|
575
|
+
var r = t.get([ "itemStyle", "borderWidth" ]) || 0, i = isNaN(e.width) ? Number.MAX_VALUE : Math.abs(e.width), s = isNaN(e.height) ? Number.MAX_VALUE : Math.abs(e.height);
|
|
576
576
|
// width or height may be NaN for empty data
|
|
577
|
-
return Math.min(
|
|
578
|
-
}(
|
|
577
|
+
return Math.min(r, i, s);
|
|
578
|
+
}(a, r) : 0, s = r.width > 0 ? 1 : -1, n = r.height > 0 ? 1 : -1;
|
|
579
579
|
return {
|
|
580
|
-
x:
|
|
581
|
-
y:
|
|
582
|
-
width:
|
|
583
|
-
height:
|
|
580
|
+
x: r.x + s * i / 2,
|
|
581
|
+
y: r.y + n * i / 2,
|
|
582
|
+
width: r.width - s * i,
|
|
583
|
+
height: r.height - n * i
|
|
584
584
|
};
|
|
585
585
|
},
|
|
586
|
-
polar: function(t, e,
|
|
587
|
-
var
|
|
586
|
+
polar: function(t, e, a) {
|
|
587
|
+
var r = t.getItemLayout(e);
|
|
588
588
|
return {
|
|
589
|
-
cx:
|
|
590
|
-
cy:
|
|
591
|
-
r0:
|
|
592
|
-
r:
|
|
593
|
-
startAngle:
|
|
594
|
-
endAngle:
|
|
595
|
-
clockwise:
|
|
589
|
+
cx: r.cx,
|
|
590
|
+
cy: r.cy,
|
|
591
|
+
r0: r.r0,
|
|
592
|
+
r: r.r,
|
|
593
|
+
startAngle: r.startAngle,
|
|
594
|
+
endAngle: r.endAngle,
|
|
595
|
+
clockwise: r.clockwise
|
|
596
596
|
};
|
|
597
597
|
}
|
|
598
598
|
};
|
|
@@ -615,43 +615,43 @@ function createPolarPositionMapping(t) {
|
|
|
615
615
|
}(t);
|
|
616
616
|
}
|
|
617
617
|
|
|
618
|
-
function updateStyle(t, e,
|
|
619
|
-
var d = e.getItemVisual(
|
|
618
|
+
function updateStyle(t, e, a, r, i, s, n, h) {
|
|
619
|
+
var d = e.getItemVisual(a, "style");
|
|
620
620
|
if (h) {
|
|
621
|
-
if (!
|
|
622
|
-
var l = t.shape,
|
|
623
|
-
|
|
621
|
+
if (!s.get("roundCap")) {
|
|
622
|
+
var l = t.shape, c = G(r.getModel("itemStyle"), l, !0);
|
|
623
|
+
k(l, c), t.setShape(l);
|
|
624
624
|
}
|
|
625
625
|
} else {
|
|
626
|
-
var p =
|
|
626
|
+
var p = r.get([ "itemStyle", "borderRadius" ]) || 0;
|
|
627
627
|
t.setShape("r", p);
|
|
628
628
|
}
|
|
629
629
|
t.useStyle(d);
|
|
630
|
-
var v =
|
|
630
|
+
var v = r.getShallow("cursor");
|
|
631
631
|
v && t.attr("cursor", v);
|
|
632
|
-
var g = h ?
|
|
633
|
-
|
|
634
|
-
labelFetcher:
|
|
635
|
-
labelDataIndex:
|
|
636
|
-
defaultText:
|
|
632
|
+
var g = h ? n ? i.r >= i.r0 ? "endArc" : "startArc" : i.endAngle >= i.startAngle ? "endAngle" : "startAngle" : n ? i.height >= 0 ? "bottom" : "top" : i.width >= 0 ? "right" : "left", b = V(r);
|
|
633
|
+
C(t, b, {
|
|
634
|
+
labelFetcher: s,
|
|
635
|
+
labelDataIndex: a,
|
|
636
|
+
defaultText: J(s.getData(), a),
|
|
637
637
|
inheritColor: d.fill,
|
|
638
638
|
defaultOpacity: d.opacity,
|
|
639
639
|
defaultOutsidePosition: g
|
|
640
640
|
});
|
|
641
|
-
var
|
|
642
|
-
if (h &&
|
|
643
|
-
var w =
|
|
644
|
-
t.textConfig.inside = "middle" === w || null, function(t, e,
|
|
645
|
-
if (
|
|
641
|
+
var m = t.getTextContent();
|
|
642
|
+
if (h && m) {
|
|
643
|
+
var w = r.get([ "label", "position" ]);
|
|
644
|
+
t.textConfig.inside = "middle" === w || null, function(t, e, a, r) {
|
|
645
|
+
if (u(r))
|
|
646
646
|
// user-set rotation
|
|
647
647
|
t.setTextConfig({
|
|
648
|
-
rotation:
|
|
649
|
-
}); else if (
|
|
648
|
+
rotation: r
|
|
649
|
+
}); else if (f(e))
|
|
650
650
|
// user-set position, use 0 as auto rotation
|
|
651
651
|
t.setTextConfig({
|
|
652
652
|
rotation: 0
|
|
653
653
|
}); else {
|
|
654
|
-
var i,
|
|
654
|
+
var i, s = t.shape, n = s.clockwise ? s.startAngle : s.endAngle, o = s.clockwise ? s.endAngle : s.startAngle, h = (n + o) / 2, d = a(e);
|
|
655
655
|
switch (d) {
|
|
656
656
|
case "startArc":
|
|
657
657
|
case "insideStartArc":
|
|
@@ -663,7 +663,7 @@ function updateStyle(t, e, r, a, i, n, o, h) {
|
|
|
663
663
|
|
|
664
664
|
case "startAngle":
|
|
665
665
|
case "insideStartAngle":
|
|
666
|
-
i =
|
|
666
|
+
i = n;
|
|
667
667
|
break;
|
|
668
668
|
|
|
669
669
|
case "endAngle":
|
|
@@ -687,23 +687,23 @@ function updateStyle(t, e, r, a, i, n, o, h) {
|
|
|
687
687
|
rotation: l
|
|
688
688
|
});
|
|
689
689
|
}
|
|
690
|
-
}(t, "outside" === w ? g : w, createPolarPositionMapping(
|
|
690
|
+
}(t, "outside" === w ? g : w, createPolarPositionMapping(n), r.get([ "label", "rotate" ]));
|
|
691
691
|
}
|
|
692
|
-
N(
|
|
693
|
-
return
|
|
692
|
+
N(m, b, s.getRawValue(a), (function(t) {
|
|
693
|
+
return K(e, t);
|
|
694
694
|
}));
|
|
695
|
-
var y =
|
|
696
|
-
|
|
695
|
+
var y = r.getModel([ "emphasis" ]);
|
|
696
|
+
P(t, y.get("focus"), y.get("blurScope"), y.get("disabled")), D(t, r), function(t) {
|
|
697
697
|
return null != t.startAngle && null != t.endAngle && t.startAngle === t.endAngle;
|
|
698
|
-
}(i) && (t.style.fill = "none", t.style.stroke = "none",
|
|
698
|
+
}(i) && (t.style.fill = "none", t.style.stroke = "none", o(t.states, (function(t) {
|
|
699
699
|
t.style && (t.style.fill = t.style.stroke = "none");
|
|
700
700
|
})));
|
|
701
701
|
}
|
|
702
702
|
|
|
703
|
-
var LagePathShape = function() {},
|
|
703
|
+
var LagePathShape = function() {}, ft = /** @class */ function(t) {
|
|
704
704
|
function LargePath(e) {
|
|
705
|
-
var
|
|
706
|
-
return
|
|
705
|
+
var a = t.call(this, e) || this;
|
|
706
|
+
return a.type = "largeBar", a;
|
|
707
707
|
}
|
|
708
708
|
return n(LargePath, t), LargePath.prototype.getDefaultShape = function() {
|
|
709
709
|
return new LagePathShape;
|
|
@@ -711,82 +711,82 @@ var LagePathShape = function() {}, lt = /** @class */ function(t) {
|
|
|
711
711
|
for (
|
|
712
712
|
// Drawing lines is more efficient than drawing
|
|
713
713
|
// a whole line or drawing rects.
|
|
714
|
-
var
|
|
715
|
-
|
|
714
|
+
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,
|
|
715
|
+
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]);
|
|
716
716
|
}, LargePath;
|
|
717
|
-
}(
|
|
717
|
+
}(l);
|
|
718
718
|
|
|
719
|
-
function createLarge(t, e,
|
|
719
|
+
function createLarge(t, e, a, r) {
|
|
720
720
|
// TODO support polar
|
|
721
|
-
var i = t.getData(),
|
|
721
|
+
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");
|
|
722
722
|
if (d) {
|
|
723
|
-
var l = new
|
|
723
|
+
var l = new ft({
|
|
724
724
|
shape: {
|
|
725
725
|
points: d
|
|
726
726
|
},
|
|
727
|
-
incremental: !!
|
|
727
|
+
incremental: !!r,
|
|
728
728
|
silent: !0,
|
|
729
729
|
z2: 0
|
|
730
730
|
});
|
|
731
|
-
l.baseDimIdx =
|
|
732
|
-
e.add(l),
|
|
731
|
+
l.baseDimIdx = s, l.largeDataIndices = n, l.barWidth = o, l.useStyle(h.getItemStyle()),
|
|
732
|
+
e.add(l), a && a.push(l);
|
|
733
733
|
}
|
|
734
|
-
var c = new
|
|
734
|
+
var c = new ft({
|
|
735
735
|
shape: {
|
|
736
736
|
points: i.getLayout("largePoints")
|
|
737
737
|
},
|
|
738
|
-
incremental: !!
|
|
738
|
+
incremental: !!r,
|
|
739
739
|
ignoreCoarsePointer: !0,
|
|
740
740
|
z2: 1
|
|
741
741
|
});
|
|
742
|
-
c.baseDimIdx =
|
|
742
|
+
c.baseDimIdx = s, c.largeDataIndices = n, c.barWidth = o, e.add(c), c.useStyle(i.getVisual("style")),
|
|
743
743
|
// Stroke is rendered first to avoid overlapping with fill
|
|
744
744
|
c.style.stroke = null,
|
|
745
745
|
// Enable tooltip and user mouse/touch event handlers.
|
|
746
|
-
|
|
747
|
-
|
|
746
|
+
A(c).seriesIndex = t.seriesIndex, t.get("silent") || (c.on("mousedown", pt), c.on("mousemove", pt)),
|
|
747
|
+
a && a.push(c);
|
|
748
748
|
}
|
|
749
749
|
|
|
750
750
|
// Use throttle to avoid frequently traverse to find dataIndex.
|
|
751
|
-
var
|
|
752
|
-
var e = function(t, e,
|
|
753
|
-
for (var
|
|
751
|
+
var pt = z((function(t) {
|
|
752
|
+
var e = function(t, e, a) {
|
|
753
|
+
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++) {
|
|
754
754
|
var u = 3 * l;
|
|
755
|
-
if (h[
|
|
756
|
-
h[i] = -h[i]), e >= o[0] && e <= o[0] + h[0] &&
|
|
755
|
+
if (h[r] = d, h[i] = s[u + 2], o[r] = s[u + r], o[i] = s[u + i], h[i] < 0 && (o[i] += h[i],
|
|
756
|
+
h[i] = -h[i]), e >= o[0] && e <= o[0] + h[0] && a >= o[1] && a <= o[1] + h[1]) return n[l];
|
|
757
757
|
}
|
|
758
758
|
return -1;
|
|
759
759
|
}(this, t.offsetX, t.offsetY);
|
|
760
|
-
|
|
760
|
+
A(this).dataIndex = e >= 0 ? e : null;
|
|
761
761
|
}), 30, !1);
|
|
762
762
|
|
|
763
|
-
function createBackgroundShape(t, e,
|
|
764
|
-
if (
|
|
765
|
-
var
|
|
763
|
+
function createBackgroundShape(t, e, a) {
|
|
764
|
+
if (H(a, "cartesian2d")) {
|
|
765
|
+
var r = e, i = a.getArea();
|
|
766
766
|
return {
|
|
767
|
-
x: t ?
|
|
768
|
-
y: t ? i.y :
|
|
769
|
-
width: t ?
|
|
770
|
-
height: t ? i.height :
|
|
767
|
+
x: t ? r.x : i.x,
|
|
768
|
+
y: t ? i.y : r.y,
|
|
769
|
+
width: t ? r.width : i.width,
|
|
770
|
+
height: t ? i.height : r.height
|
|
771
771
|
};
|
|
772
772
|
}
|
|
773
|
-
var
|
|
773
|
+
var s = e;
|
|
774
774
|
return {
|
|
775
|
-
cx: (i =
|
|
775
|
+
cx: (i = a.getArea()).cx,
|
|
776
776
|
cy: i.cy,
|
|
777
|
-
r0: t ? i.r0 :
|
|
778
|
-
r: t ? i.r :
|
|
779
|
-
startAngle: t ?
|
|
780
|
-
endAngle: t ?
|
|
777
|
+
r0: t ? i.r0 : s.r0,
|
|
778
|
+
r: t ? i.r : s.r,
|
|
779
|
+
startAngle: t ? s.startAngle : 0,
|
|
780
|
+
endAngle: t ? s.endAngle : 2 * Math.PI
|
|
781
781
|
};
|
|
782
782
|
}
|
|
783
783
|
|
|
784
|
-
|
|
785
|
-
t.registerChartView(
|
|
784
|
+
I([ O, function(t) {
|
|
785
|
+
t.registerChartView(nt), t.registerSeriesModel(at), t.registerLayout(t.PRIORITY.VISUAL.LAYOUT, L(U, "bar")),
|
|
786
786
|
// Do layout after other overall layout, which can prepare some information.
|
|
787
|
-
t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,
|
|
787
|
+
t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT, j("bar")),
|
|
788
788
|
// Down sample after filter
|
|
789
|
-
t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,
|
|
789
|
+
t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC, Q("bar")),
|
|
790
790
|
/**
|
|
791
791
|
* @payload
|
|
792
792
|
* @property {string} [componentType=series]
|
|
@@ -801,19 +801,30 @@ j([ O, function(t) {
|
|
|
801
801
|
event: "changeAxisOrder",
|
|
802
802
|
update: "update"
|
|
803
803
|
}, (function(t, e) {
|
|
804
|
-
var
|
|
804
|
+
var a = t.componentType || "series";
|
|
805
805
|
e.eachComponent({
|
|
806
|
-
mainType:
|
|
806
|
+
mainType: a,
|
|
807
807
|
query: t
|
|
808
808
|
}, (function(e) {
|
|
809
809
|
t.sortInfo && e.axis.setCategorySortInfo(t.sortInfo);
|
|
810
810
|
}));
|
|
811
811
|
}));
|
|
812
|
-
},
|
|
812
|
+
}, E, tt, Z, $ ]);
|
|
813
813
|
|
|
814
|
-
const
|
|
814
|
+
const vt = class {
|
|
815
815
|
constructor(e) {
|
|
816
|
-
t(this, e),
|
|
816
|
+
t(this, e), this.keyboard = R({
|
|
817
|
+
getChart: () => this.chart,
|
|
818
|
+
getData: () => this.data,
|
|
819
|
+
onChange: t => this.keyboardIndex = t,
|
|
820
|
+
getOrder: () => {
|
|
821
|
+
const t = this.data.map(((t, e) => e));
|
|
822
|
+
return this.sort ? t.sort(((t, e) => this.data[e].value - this.data[t].value)) : t;
|
|
823
|
+
}
|
|
824
|
+
}),
|
|
825
|
+
// #endregion
|
|
826
|
+
// #region State Properties
|
|
827
|
+
this.keyboardIndex = null,
|
|
817
828
|
/** An array of objects that contain the data to be displayed. */
|
|
818
829
|
this.data = [],
|
|
819
830
|
/** Controls visibility of labels on the name axis. */
|
|
@@ -841,6 +852,7 @@ const ut = class {
|
|
|
841
852
|
// #endregion
|
|
842
853
|
// #region Component Lifecycle Events
|
|
843
854
|
disconnectedCallback() {
|
|
855
|
+
this.keyboard.onBlur(),
|
|
844
856
|
// Remove event listeners
|
|
845
857
|
window.removeEventListener("resize", this.resizeEventListener),
|
|
846
858
|
// Clean up chart instance
|
|
@@ -852,23 +864,39 @@ const ut = class {
|
|
|
852
864
|
this.chartContainer = null, this.resizeEventListener = null, this.chartFinishedListener = null;
|
|
853
865
|
}
|
|
854
866
|
componentDidLoad() {
|
|
855
|
-
const t =
|
|
867
|
+
const t = T(this.chartContainer);
|
|
856
868
|
this.chart = t, this.resizeEventListener = () => this.resizeChart(), window.addEventListener("resize", this.resizeEventListener),
|
|
857
|
-
this.cacheComputedStyles(), this.updateChart(t), this.setupChartEvents(t),
|
|
869
|
+
this.cacheComputedStyles(), this.updateChart(t), this.setupChartEvents(t), r(this.hostElement);
|
|
870
|
+
}
|
|
871
|
+
// #endregion
|
|
872
|
+
// #region Listeners
|
|
873
|
+
delegateFocus(t) {
|
|
874
|
+
var e;
|
|
875
|
+
i(t, this.hostElement) && this.data.length && (null === (e = this.chartContainer) || void 0 === e || e.focus());
|
|
858
876
|
}
|
|
859
877
|
// #endregion
|
|
860
878
|
// #region Watchers
|
|
861
879
|
propsUpdates() {
|
|
862
|
-
this.chart && this.updateChart(this.chart);
|
|
880
|
+
this.chart && (this.updateChart(this.chart), this.keyboard.refresh());
|
|
863
881
|
}
|
|
864
882
|
// #endregion
|
|
865
883
|
// #region Local Methods
|
|
884
|
+
get keyboardDescription() {
|
|
885
|
+
var t;
|
|
886
|
+
const e = this.data[this.keyboardIndex];
|
|
887
|
+
if (null === this.keyboardIndex || !e) return "";
|
|
888
|
+
const a = (null === (t = this.formatModifier) || void 0 === t ? void 0 : t.includes("dec")) ? this.formatModifier.replace("dec", "") : 0;
|
|
889
|
+
return X(e.name, _(e.value || 0, {
|
|
890
|
+
type: this.format,
|
|
891
|
+
decimals: a
|
|
892
|
+
}), this.sort ? [ ...this.data ].sort(((t, e) => e.value - t.value)).indexOf(e) : this.keyboardIndex, this.data.length);
|
|
893
|
+
}
|
|
866
894
|
cacheComputedStyles() {
|
|
867
895
|
this.chartContainerStyles = getComputedStyle(this.chartContainer), this.hostElementStyles = getComputedStyle(this.hostElement);
|
|
868
896
|
}
|
|
869
897
|
getColor(t) {
|
|
870
|
-
const e =
|
|
871
|
-
return
|
|
898
|
+
const e = W("var(--t-primary)", this.chartContainerStyles, this.hostElementStyles), a = W(this.color, this.chartContainerStyles, this.hostElementStyles), r = W(t, this.chartContainerStyles, this.hostElementStyles);
|
|
899
|
+
return r || (Y(t) ? t : a || (Y(this.color) ? this.color : e));
|
|
872
900
|
}
|
|
873
901
|
processData(t) {
|
|
874
902
|
return t.map((t => ({
|
|
@@ -884,16 +912,16 @@ const ut = class {
|
|
|
884
912
|
setupChartEvents(t) {
|
|
885
913
|
this.chartFinishedListener = () => {
|
|
886
914
|
var e;
|
|
887
|
-
const
|
|
888
|
-
null !== (e = null ==
|
|
915
|
+
const a = t.getDom().querySelector("canvas");
|
|
916
|
+
null !== (e = null == a ? void 0 : a.hasAttribute("aria-hidden")) && void 0 !== e && e || a.setAttribute("aria-hidden", "true");
|
|
889
917
|
}, t.on("finished", this.chartFinishedListener);
|
|
890
918
|
}
|
|
891
919
|
updateChart(t) {
|
|
892
|
-
var e;
|
|
893
|
-
const r = (null === (e = this.formatModifier) || void 0 === e ? void 0 : e.includes("dec")) ? this.formatModifier.replace("dec", "") : 0,
|
|
920
|
+
var e, a;
|
|
921
|
+
const r = (null === (e = this.formatModifier) || void 0 === e ? void 0 : e.includes("dec")) ? this.formatModifier.replace("dec", "") : 0, i = {
|
|
894
922
|
type: "value",
|
|
895
923
|
axisLabel: {
|
|
896
|
-
formatter: t =>
|
|
924
|
+
formatter: t => _(t, {
|
|
897
925
|
type: this.format,
|
|
898
926
|
decimals: r
|
|
899
927
|
}),
|
|
@@ -903,7 +931,7 @@ const ut = class {
|
|
|
903
931
|
}
|
|
904
932
|
}, n = {
|
|
905
933
|
type: "category",
|
|
906
|
-
data: this.data.map((t =>
|
|
934
|
+
data: this.data.map((t => s(t.name) || "")),
|
|
907
935
|
axisLabel: {
|
|
908
936
|
rotate: this.offsetDataNames ? 45 : 0,
|
|
909
937
|
margin: this.offsetDataNames ? 15 : 8,
|
|
@@ -916,12 +944,12 @@ const ut = class {
|
|
|
916
944
|
alignWithLabel: this.offsetDataNames
|
|
917
945
|
}
|
|
918
946
|
};
|
|
919
|
-
|
|
947
|
+
t.setOption({
|
|
920
948
|
aria: {
|
|
921
949
|
enabled: !0
|
|
922
950
|
},
|
|
923
951
|
title: {
|
|
924
|
-
text:
|
|
952
|
+
text: s(this.chartName),
|
|
925
953
|
show: this.showChartName,
|
|
926
954
|
left: this.alignChartName,
|
|
927
955
|
subtext: this.chartSubTitle
|
|
@@ -930,8 +958,8 @@ const ut = class {
|
|
|
930
958
|
containLabel: !0,
|
|
931
959
|
...this.gridPadding
|
|
932
960
|
},
|
|
933
|
-
xAxis: "horizontal" === this.orientation ?
|
|
934
|
-
yAxis: "horizontal" === this.orientation ? n :
|
|
961
|
+
xAxis: "horizontal" === this.orientation ? i : n,
|
|
962
|
+
yAxis: "horizontal" === this.orientation ? n : i,
|
|
935
963
|
series: [ {
|
|
936
964
|
data: this.processData(this.data),
|
|
937
965
|
id: "bar",
|
|
@@ -940,31 +968,47 @@ const ut = class {
|
|
|
940
968
|
show: !this.hideBarLabels,
|
|
941
969
|
position: "top",
|
|
942
970
|
fontWeight: "bold",
|
|
943
|
-
formatter: t =>
|
|
971
|
+
formatter: t => _(t.value, {
|
|
944
972
|
type: this.format,
|
|
945
973
|
decimals: r
|
|
946
974
|
})
|
|
947
975
|
},
|
|
948
976
|
realtimeSort: this.sort
|
|
949
977
|
} ]
|
|
950
|
-
})
|
|
978
|
+
}),
|
|
979
|
+
// ECharts ARIA sets role="img" when options change; retain the keyboard interaction role.
|
|
980
|
+
null === (a = this.chartContainer) || void 0 === a || a.setAttribute("role", "application");
|
|
951
981
|
}
|
|
952
982
|
// #endregion
|
|
953
983
|
// #region Render Methods
|
|
954
984
|
render() {
|
|
955
985
|
return e("div", {
|
|
956
|
-
key: "
|
|
986
|
+
key: "2764d138c5aee7d65df3361a7d4720e00ba13368",
|
|
957
987
|
class: "container"
|
|
958
988
|
}, e("div", {
|
|
959
|
-
key: "
|
|
989
|
+
key: "864b3f1d5987a101ab008e37e99c874cc411c143",
|
|
960
990
|
ref: t => this.chartContainer = t,
|
|
961
991
|
class: "chart-container",
|
|
962
|
-
role: "
|
|
992
|
+
role: "application",
|
|
993
|
+
tabIndex: this.data.length ? 0 : -1,
|
|
994
|
+
"aria-describedby": "chart-keyboard-instructions",
|
|
995
|
+
onFocus: this.keyboard.onFocus,
|
|
996
|
+
onBlur: this.keyboard.onBlur,
|
|
997
|
+
onKeyDown: this.keyboard.onKeyDown,
|
|
963
998
|
"test-id": "barChartContainer"
|
|
964
|
-
})
|
|
999
|
+
}), e("div", {
|
|
1000
|
+
key: "3b6aa42b27e86f75cd4d1fc3d2efe823b950864c",
|
|
1001
|
+
id: "chart-keyboard-instructions",
|
|
1002
|
+
class: "sr"
|
|
1003
|
+
}, s("tecton.element.chart.keyboardInstructions")), e("div", {
|
|
1004
|
+
key: "5d216b8ccce18ea77f136fd43ab81db335b38d89",
|
|
1005
|
+
class: null === this.keyboardIndex ? "sr" : "chart-keyboard-value",
|
|
1006
|
+
role: "status",
|
|
1007
|
+
"aria-atomic": "true"
|
|
1008
|
+
}, this.keyboardDescription));
|
|
965
1009
|
}
|
|
966
1010
|
get hostElement() {
|
|
967
|
-
return
|
|
1011
|
+
return a(this);
|
|
968
1012
|
}
|
|
969
1013
|
static get watchers() {
|
|
970
1014
|
return {
|
|
@@ -1017,6 +1061,6 @@ const ut = class {
|
|
|
1017
1061
|
}
|
|
1018
1062
|
};
|
|
1019
1063
|
|
|
1020
|
-
|
|
1064
|
+
vt.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{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%}';
|
|
1021
1065
|
|
|
1022
|
-
export {
|
|
1066
|
+
export { vt as q2_chart_bar }
|