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
|
@@ -2,9 +2,9 @@ import { proxyCustomElement as t, HTMLElement as a, createEvent as e, h as i, Fr
|
|
|
2
2
|
|
|
3
3
|
import { c as n, l as s, o as c, i as l } from "./index2.js";
|
|
4
4
|
|
|
5
|
-
import { m as
|
|
5
|
+
import { m as b } from "./mirror-emit.js";
|
|
6
6
|
|
|
7
|
-
import { h as
|
|
7
|
+
import { h as d, f as h } from "./component.js";
|
|
8
8
|
|
|
9
9
|
import { d as v } from "./q2-badge2.js";
|
|
10
10
|
|
|
@@ -103,7 +103,7 @@ const f = t(class extends a {
|
|
|
103
103
|
this.checkScrollState();
|
|
104
104
|
}, this.onTabClick = t => {
|
|
105
105
|
const a = t.target.closest('button[role="tab"]').dataset.value;
|
|
106
|
-
this.value === a ||
|
|
106
|
+
this.value === a || b(this, [ "change", "tctChange" ], {
|
|
107
107
|
value: a
|
|
108
108
|
});
|
|
109
109
|
}, this.onTabKeyDown = t => {
|
|
@@ -139,7 +139,7 @@ const f = t(class extends a {
|
|
|
139
139
|
|
|
140
140
|
case "Space":
|
|
141
141
|
case "Enter":
|
|
142
|
-
t.preventDefault(),
|
|
142
|
+
t.preventDefault(), b(this, [ "change", "tctChange" ], {
|
|
143
143
|
value: a
|
|
144
144
|
});
|
|
145
145
|
}
|
|
@@ -174,7 +174,7 @@ const f = t(class extends a {
|
|
|
174
174
|
this.narrowViewportMedia && this.narrowViewportListener && this.narrowViewportMedia.removeEventListener("change", this.narrowViewportListener);
|
|
175
175
|
}
|
|
176
176
|
componentWillLoad() {
|
|
177
|
-
|
|
177
|
+
d(this.hostElement, [ "q2-tab-pane", "tecton-tab-pane" ]) || h(this.hostElement, [ "q2-tab-pane", "tecton-tab-pane" ]);
|
|
178
178
|
const t = new MutationObserver((() => this.updateTabs()));
|
|
179
179
|
t.observe(this.hostElement, {
|
|
180
180
|
childList: !0,
|
|
@@ -287,50 +287,50 @@ const f = t(class extends a {
|
|
|
287
287
|
render() {
|
|
288
288
|
const t = "vertical" === this.computedOrientation;
|
|
289
289
|
return i(r, {
|
|
290
|
-
key: "
|
|
290
|
+
key: "03d43399332adeda98bb8d9e20053a9c6d49fcce"
|
|
291
291
|
}, i("div", {
|
|
292
|
-
key: "
|
|
292
|
+
key: "e0a8ef7f09a83f703a4b20f54c32522ddb1c5c50",
|
|
293
293
|
class: "tab-container"
|
|
294
294
|
}, this.scrollEnabled && i(r, {
|
|
295
|
-
key: "
|
|
295
|
+
key: "ad75ef49a54bfe0f862e19123e2a4770e17bf4a2"
|
|
296
296
|
}, i("div", {
|
|
297
|
-
key: "
|
|
297
|
+
key: "0a699d7dff2af9e01eb0c9a4727c0aa586068d97",
|
|
298
298
|
class: "gradient-left",
|
|
299
299
|
hidden: !this.showScrollBack
|
|
300
300
|
}), i("div", {
|
|
301
|
-
key: "
|
|
301
|
+
key: "758388b43d96757cd402eac4c8c881b20853e8d2",
|
|
302
302
|
class: "gradient-right",
|
|
303
303
|
hidden: !this.showScrollForward
|
|
304
304
|
}), i("q2-btn", {
|
|
305
|
-
key: "
|
|
305
|
+
key: "0738c515ffc60c9fb82941ce1cb104924c3a85ef",
|
|
306
306
|
class: "btn-left",
|
|
307
307
|
hidden: !this.showScrollBack,
|
|
308
308
|
onTctClick: () => this.onScrollBtnClick("back")
|
|
309
309
|
}, i("q2-icon", {
|
|
310
|
-
key: "
|
|
310
|
+
key: "95820c6bad13d98ad94e4722026b00e1fedb720e",
|
|
311
311
|
type: t ? "chevron-up" : "chevron-left",
|
|
312
312
|
label: t ? "scroll up" : "scroll left"
|
|
313
313
|
})), i("q2-btn", {
|
|
314
|
-
key: "
|
|
314
|
+
key: "2aabca6f28a8acffd6565870b56424c410f4ebae",
|
|
315
315
|
class: "btn-right",
|
|
316
316
|
hidden: !this.showScrollForward,
|
|
317
317
|
onTctClick: () => this.onScrollBtnClick("forward")
|
|
318
318
|
}, i("q2-icon", {
|
|
319
|
-
key: "
|
|
319
|
+
key: "94561888012314b3e3503c7f0b64444f3a7b7c96",
|
|
320
320
|
type: t ? "chevron-down" : "chevron-right",
|
|
321
321
|
label: t ? "scroll down" : "scroll right"
|
|
322
322
|
}))), i("ul", {
|
|
323
|
-
key: "
|
|
323
|
+
key: "d58936a795d74807740d291b93bb739d66fbbe24",
|
|
324
324
|
onScroll: this.checkScrollState,
|
|
325
325
|
ref: t => this.listElement = t,
|
|
326
326
|
class: this.noPrint ? "no-print" : null,
|
|
327
327
|
role: "tablist",
|
|
328
328
|
"aria-orientation": this.computedOrientation
|
|
329
329
|
}, this.tabs.map(((t, a) => this.renderTab(t, a))))), i("div", {
|
|
330
|
-
key: "
|
|
330
|
+
key: "ccd952b3f0ef0e639e0f86957841ad548fe65eb5",
|
|
331
331
|
class: "tab-content"
|
|
332
332
|
}, i("slot", {
|
|
333
|
-
key: "
|
|
333
|
+
key: "24deecd3894184e816d1d8c5e5257aab382ed055",
|
|
334
334
|
onSlotchange: () => this.onSlotChange()
|
|
335
335
|
})));
|
|
336
336
|
}
|
|
@@ -20,7 +20,7 @@ const r = e(class extends t {
|
|
|
20
20
|
// #region Render Methods
|
|
21
21
|
render() {
|
|
22
22
|
return i("div", {
|
|
23
|
-
key: "
|
|
23
|
+
key: "a1ca82c1b98634b33d0ded7c459e151bbcba82ab",
|
|
24
24
|
id: `tab-pane-${this.guid}-${this.index}`,
|
|
25
25
|
class: "tab-pane" + (this.selected ? "" : " hidden"),
|
|
26
26
|
role: "tabpanel",
|
|
@@ -28,7 +28,7 @@ const r = e(class extends t {
|
|
|
28
28
|
"aria-hidden": "" + !this.selected,
|
|
29
29
|
"aria-labelledby": `tab-${this.guid}-${this.index}`
|
|
30
30
|
}, i("slot", {
|
|
31
|
-
key: "
|
|
31
|
+
key: "4893e7153f387cfa726ba354cb53274d8f907b94"
|
|
32
32
|
}));
|
|
33
33
|
}
|
|
34
34
|
get hostElement() {
|
|
@@ -101,7 +101,9 @@ const f = t(class extends o {
|
|
|
101
101
|
c(t, this.hostElement) && this.optionCount && this.dropdownBtn.focus();
|
|
102
102
|
}
|
|
103
103
|
popoverStateHandler({detail: {open: t}}) {
|
|
104
|
-
|
|
104
|
+
var o;
|
|
105
|
+
this.open !== t && (this.open = t, t || (this.optionList.setActiveElement(null),
|
|
106
|
+
null === (o = this.dropdownBtn) || void 0 === o || o.focus()));
|
|
105
107
|
}
|
|
106
108
|
// #endregion
|
|
107
109
|
// #region Public Methods API
|
|
@@ -151,9 +153,9 @@ const f = t(class extends o {
|
|
|
151
153
|
this.optionCount && o.push("has-options");
|
|
152
154
|
const e = this.optionCount > 0;
|
|
153
155
|
return r(i, {
|
|
154
|
-
key: "
|
|
156
|
+
key: "a18af83301ac8bf08d1638b05d4dd8795f11cd46"
|
|
155
157
|
}, r("click-elsewhere", {
|
|
156
|
-
key: "
|
|
158
|
+
key: "130d173a4bf53dd6eec1775944d910c630e704ae",
|
|
157
159
|
onChange: this.onClickElsewhere
|
|
158
160
|
}, e ? r(a, null, r("button", {
|
|
159
161
|
class: "tag-wrapper",
|
|
@@ -180,7 +182,7 @@ const f = t(class extends o {
|
|
|
180
182
|
}, r("slot", {
|
|
181
183
|
name: "decorator"
|
|
182
184
|
}), l(this.label))), e && r("q2-popover", {
|
|
183
|
-
key: "
|
|
185
|
+
key: "07bf52f6b4d8c4bbf42e90e69ff9a9deec82810b",
|
|
184
186
|
ref: t => this.popoverElement = t,
|
|
185
187
|
controlElement: this.dropdownBtn,
|
|
186
188
|
open: this.open,
|
|
@@ -189,7 +191,7 @@ const f = t(class extends o {
|
|
|
189
191
|
direction: this.popoverDirection,
|
|
190
192
|
align: this.popoverAlignment
|
|
191
193
|
}, r("q2-option-list", {
|
|
192
|
-
key: "
|
|
194
|
+
key: "eefdf7202c269194a9753e438b4c6060984ba33e",
|
|
193
195
|
id: "option-list",
|
|
194
196
|
ref: t => this.optionList = t,
|
|
195
197
|
onChange: this.handleChange,
|
|
@@ -198,7 +200,7 @@ const f = t(class extends o {
|
|
|
198
200
|
label: l("tecton.element.optionList.label", [ this.optionListLabel ]),
|
|
199
201
|
"no-select": !0
|
|
200
202
|
}, r("slot", {
|
|
201
|
-
key: "
|
|
203
|
+
key: "3067ac9beee239562c410d7dfe4af04c651ef8ae"
|
|
202
204
|
})))));
|
|
203
205
|
}
|
|
204
206
|
get hostElement() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement as t, HTMLElement as r, createEvent as a, h as e, Fragment as o, transformTag as i } from "@stencil/core/internal/client";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { g as s, c as n, s as c, o as l, i as h, l as d, r as v, j as x } from "./index2.js";
|
|
4
4
|
|
|
5
5
|
import { m as p } from "./mirror-emit.js";
|
|
6
6
|
|
|
@@ -255,10 +255,10 @@ const g = t(class extends r {
|
|
|
255
255
|
}
|
|
256
256
|
render() {
|
|
257
257
|
return e("div", {
|
|
258
|
-
key: "
|
|
258
|
+
key: "21a303feabd0c8fc09d9cc7f0de8b9b50081a56a",
|
|
259
259
|
class: this.wrapperClasses
|
|
260
260
|
}, v(this), e("div", {
|
|
261
|
-
key: "
|
|
261
|
+
key: "58b5be24312fe523d09efe176b1ecf42b884166a",
|
|
262
262
|
class: "content-container",
|
|
263
263
|
ref: t => this.contentContainer = t
|
|
264
264
|
}, this.renderInput(), this.maxlength ? this.renderMaxLength() : "", x(this)));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { X as a,
|
|
1
|
+
import { X as a, b$ as e, ba as t, bV as n, z as r, K as i, $ as o, c0 as s, aO as l, w as c, P as u, c1 as f, c2 as v, c3 as h, a2 as b, W as L, Y as M, E as d, a_ as g, d as p, bE as y, c4 as P, a7 as m, c5 as w, bU as A, c6 as S, J as T, c7 as x, I as R, i as k, aV as j, u as O, c8 as C, a1 as K, m as W, c9 as I } from "./charting.js";
|
|
2
2
|
|
|
3
|
-
var N = 2 * Math.PI,
|
|
3
|
+
var N = 2 * Math.PI, z = u.CMD, X = [ "top", "right", "bottom", "left" ];
|
|
4
4
|
|
|
5
5
|
function getCandidateAnchor(a, e, t, n, r) {
|
|
6
6
|
var i = t.width, o = t.height;
|
|
@@ -54,11 +54,11 @@ function projectPointToRect(a, e, t, n, r, i, o) {
|
|
|
54
54
|
return Math.sqrt((c - r) * (c - r) + (u - i) * (u - i));
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
var
|
|
57
|
+
var Y = [];
|
|
58
58
|
|
|
59
59
|
function nearestPointOnRect(a, e, t) {
|
|
60
|
-
var n = projectPointToRect(e.x, e.y, e.width, e.height, a.x, a.y,
|
|
61
|
-
return t.set(
|
|
60
|
+
var n = projectPointToRect(e.x, e.y, e.width, e.height, a.x, a.y, Y);
|
|
61
|
+
return t.set(Y[0], Y[1]), n;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
/**
|
|
@@ -70,54 +70,54 @@ function nearestPointOnRect(a, e, t) {
|
|
|
70
70
|
1 === L && (s = i = u[L], l = o = u[L + 1]);
|
|
71
71
|
var d = c;
|
|
72
72
|
switch (M) {
|
|
73
|
-
case
|
|
73
|
+
case z.M:
|
|
74
74
|
i =
|
|
75
75
|
// moveTo 命令重新创建一个新的 subpath, 并且更新新的起点
|
|
76
76
|
// 在 closePath 的时候使用
|
|
77
77
|
s = u[L++], o = l = u[L++];
|
|
78
78
|
break;
|
|
79
79
|
|
|
80
|
-
case
|
|
81
|
-
d = projectPointToLine(i, o, u[L], u[L + 1], h, b,
|
|
80
|
+
case z.L:
|
|
81
|
+
d = projectPointToLine(i, o, u[L], u[L + 1], h, b, Y, !0), i = u[L++], o = u[L++];
|
|
82
82
|
break;
|
|
83
83
|
|
|
84
|
-
case
|
|
85
|
-
d = v(i, o, u[L++], u[L++], u[L++], u[L++], u[L], u[L + 1], h, b,
|
|
84
|
+
case z.C:
|
|
85
|
+
d = v(i, o, u[L++], u[L++], u[L++], u[L++], u[L], u[L + 1], h, b, Y), i = u[L++],
|
|
86
86
|
o = u[L++];
|
|
87
87
|
break;
|
|
88
88
|
|
|
89
|
-
case
|
|
90
|
-
d = f(i, o, u[L++], u[L++], u[L], u[L + 1], h, b,
|
|
89
|
+
case z.Q:
|
|
90
|
+
d = f(i, o, u[L++], u[L++], u[L], u[L + 1], h, b, Y), i = u[L++], o = u[L++];
|
|
91
91
|
break;
|
|
92
92
|
|
|
93
|
-
case
|
|
93
|
+
case z.A:
|
|
94
94
|
// TODO Arc 判断的开销比较大
|
|
95
|
-
var g = u[L++], p = u[L++], y = u[L++], P = u[L++], m = u[L++],
|
|
95
|
+
var g = u[L++], p = u[L++], y = u[L++], P = u[L++], m = u[L++], w = u[L++];
|
|
96
96
|
// TODO Arc 旋转
|
|
97
97
|
L += 1;
|
|
98
|
-
var
|
|
98
|
+
var A = !!(1 - u[L++]);
|
|
99
99
|
n = Math.cos(m) * y + g, r = Math.sin(m) * P + p,
|
|
100
100
|
// 不是直接使用 arc 命令
|
|
101
101
|
L <= 1 && (
|
|
102
102
|
// 第一个命令起点还未定义
|
|
103
|
-
s = n, l = r), d = projectPointToArc(g, p, P, m, m +
|
|
104
|
-
i = Math.cos(m +
|
|
103
|
+
s = n, l = r), d = projectPointToArc(g, p, P, m, m + w, A, (h - g) * P / y + g, b, Y),
|
|
104
|
+
i = Math.cos(m + w) * y + g, o = Math.sin(m + w) * P + p;
|
|
105
105
|
break;
|
|
106
106
|
|
|
107
|
-
case
|
|
108
|
-
d = projectPointToRect(s = i = u[L++], l = o = u[L++], u[L++], u[L++], h, b,
|
|
107
|
+
case z.R:
|
|
108
|
+
d = projectPointToRect(s = i = u[L++], l = o = u[L++], u[L++], u[L++], h, b, Y);
|
|
109
109
|
break;
|
|
110
110
|
|
|
111
|
-
case
|
|
112
|
-
d = projectPointToLine(i, o, s, l, h, b,
|
|
111
|
+
case z.Z:
|
|
112
|
+
d = projectPointToLine(i, o, s, l, h, b, Y, !0), i = s, o = l;
|
|
113
113
|
}
|
|
114
|
-
d < c && (c = d, t.set(
|
|
114
|
+
d < c && (c = d, t.set(Y[0], Y[1]));
|
|
115
115
|
}
|
|
116
116
|
return c;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
// Temporal variable for intermediate usage.
|
|
120
|
-
var D = new a,
|
|
120
|
+
var D = new a, E = new a, H = new a, V = new a, $ = new a;
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
123
|
* Calculate a proper guide line based on the label position and graphic element definition
|
|
@@ -131,20 +131,20 @@ function updateLabelLinePoints(e, t) {
|
|
|
131
131
|
var n = e.getTextGuideLine(), r = e.getTextContent();
|
|
132
132
|
// Needs to create text guide in each charts.
|
|
133
133
|
if (r && n) {
|
|
134
|
-
var i = e.textGuideLineConfig || {}, o = [ [ 0, 0 ], [ 0, 0 ], [ 0, 0 ] ], s = i.candidates ||
|
|
134
|
+
var i = e.textGuideLineConfig || {}, o = [ [ 0, 0 ], [ 0, 0 ], [ 0, 0 ] ], s = i.candidates || X, u = r.getBoundingRect().clone();
|
|
135
135
|
u.applyTransform(r.getComputedTransform());
|
|
136
136
|
var f = 1 / 0, v = i.anchor, h = e.getComputedTransform(), b = h && l([], h), L = t.get("length2") || 0;
|
|
137
|
-
v &&
|
|
137
|
+
v && H.copy(v);
|
|
138
138
|
for (var M = 0; M < s.length; M++) {
|
|
139
|
-
getCandidateAnchor(s[M], 0, u, D,
|
|
139
|
+
getCandidateAnchor(s[M], 0, u, D, V), a.scaleAndAdd(E, D, V, L),
|
|
140
140
|
// Transform to target coord space.
|
|
141
|
-
|
|
141
|
+
E.transform(b);
|
|
142
142
|
// Note: getBoundingRect will ensure the `path` being created.
|
|
143
|
-
var d = e.getBoundingRect(), g = v ? v.distance(
|
|
143
|
+
var d = e.getBoundingRect(), g = v ? v.distance(E) : e instanceof c ? nearestPointOnPath(E, e.path, H) : nearestPointOnRect(E, d, H);
|
|
144
144
|
// TODO pt2 is in the path
|
|
145
145
|
g < f && (f = g,
|
|
146
146
|
// Transform back to global space.
|
|
147
|
-
|
|
147
|
+
E.transform(h), H.transform(h), H.toArray(o[0]), E.toArray(o[1]), D.toArray(o[2]));
|
|
148
148
|
}
|
|
149
149
|
limitTurnAngle(o, t.get("minTurnAngle")), n.setShape({
|
|
150
150
|
points: o
|
|
@@ -154,7 +154,7 @@ function updateLabelLinePoints(e, t) {
|
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
// Temporal variable for the limitTurnAngle function
|
|
157
|
-
var
|
|
157
|
+
var G = [], J = new a;
|
|
158
158
|
|
|
159
159
|
/**
|
|
160
160
|
* Reduce the line segment attached to the label to limit the turn angle between two segments.
|
|
@@ -168,22 +168,22 @@ function limitTurnAngle(e, t) {
|
|
|
168
168
|
// /pt1----pt2 (label)
|
|
169
169
|
// /
|
|
170
170
|
// pt0/
|
|
171
|
-
D.fromArray(e[0]),
|
|
172
|
-
var n =
|
|
171
|
+
D.fromArray(e[0]), E.fromArray(e[1]), H.fromArray(e[2]), a.sub(V, D, E), a.sub($, H, E);
|
|
172
|
+
var n = V.len(), r = $.len();
|
|
173
173
|
if (!(n < .001 || r < .001)) {
|
|
174
|
-
|
|
175
|
-
var i =
|
|
174
|
+
V.scale(1 / n), $.scale(1 / r);
|
|
175
|
+
var i = V.dot($);
|
|
176
176
|
if (Math.cos(t) < i) {
|
|
177
177
|
// Smaller than minTurnAngle
|
|
178
178
|
// Calculate project point of pt0 on pt1-pt2
|
|
179
|
-
var o = projectPointToLine(
|
|
180
|
-
|
|
179
|
+
var o = projectPointToLine(E.x, E.y, H.x, H.y, D.x, D.y, G, !1);
|
|
180
|
+
J.fromArray(G),
|
|
181
181
|
// Calculate new projected length with limited minTurnAngle and get the new connect point
|
|
182
|
-
|
|
182
|
+
J.scaleAndAdd($, o / Math.tan(Math.PI - t));
|
|
183
183
|
// Limit the new calculated connect point between pt1 and pt2.
|
|
184
|
-
var s =
|
|
184
|
+
var s = H.x !== E.x ? (J.x - E.x) / (H.x - E.x) : (J.y - E.y) / (H.y - E.y);
|
|
185
185
|
if (isNaN(s)) return;
|
|
186
|
-
s < 0 ? a.copy(
|
|
186
|
+
s < 0 ? a.copy(J, E) : s > 1 && a.copy(J, H), J.toArray(e[1]);
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
}
|
|
@@ -194,25 +194,25 @@ function limitTurnAngle(e, t) {
|
|
|
194
194
|
* @param maxSurfaceAngle Radian of minimum turn angle. 0 - 180. 0 is same direction to normal. 180 is opposite
|
|
195
195
|
*/ function limitSurfaceAngle(e, t, n) {
|
|
196
196
|
if (n <= 180 && n > 0) {
|
|
197
|
-
n = n / 180 * Math.PI, D.fromArray(e[0]),
|
|
198
|
-
a.sub(
|
|
199
|
-
var r =
|
|
200
|
-
if (!(r < .001 || i < .001)) if (
|
|
197
|
+
n = n / 180 * Math.PI, D.fromArray(e[0]), E.fromArray(e[1]), H.fromArray(e[2]),
|
|
198
|
+
a.sub(V, E, D), a.sub($, H, E);
|
|
199
|
+
var r = V.len(), i = $.len();
|
|
200
|
+
if (!(r < .001 || i < .001)) if (V.scale(1 / r), $.scale(1 / i), V.dot(t) < Math.cos(n)) {
|
|
201
201
|
// Calculate project point of pt0 on pt1-pt2
|
|
202
|
-
var o = projectPointToLine(
|
|
203
|
-
|
|
204
|
-
var s = Math.PI / 2, l = s + Math.acos(
|
|
202
|
+
var o = projectPointToLine(E.x, E.y, H.x, H.y, D.x, D.y, G, !1);
|
|
203
|
+
J.fromArray(G);
|
|
204
|
+
var s = Math.PI / 2, l = s + Math.acos($.dot(t)) - n;
|
|
205
205
|
if (l >= s)
|
|
206
206
|
// parallel
|
|
207
|
-
a.copy(
|
|
207
|
+
a.copy(J, H); else {
|
|
208
208
|
// Calculate new projected length with limited minTurnAngle and get the new connect point
|
|
209
|
-
|
|
209
|
+
J.scaleAndAdd($, o / Math.tan(Math.PI / 2 - l));
|
|
210
210
|
// Limit the new calculated connect point between pt1 and pt2.
|
|
211
|
-
var c =
|
|
211
|
+
var c = H.x !== E.x ? (J.x - E.x) / (H.x - E.x) : (J.y - E.y) / (H.y - E.y);
|
|
212
212
|
if (isNaN(c)) return;
|
|
213
|
-
c < 0 ? a.copy(
|
|
213
|
+
c < 0 ? a.copy(J, E) : c > 1 && a.copy(J, H);
|
|
214
214
|
}
|
|
215
|
-
|
|
215
|
+
J.toArray(e[1]);
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
}
|
|
@@ -310,7 +310,7 @@ function prepareLayoutCallbackParams(a, e) {
|
|
|
310
310
|
};
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
var
|
|
313
|
+
var U = [ "align", "verticalAlign", "width", "height", "fontSize" ], _ = new M, q = b(), B = b();
|
|
314
314
|
|
|
315
315
|
function extendWithKeys(a, e, t) {
|
|
316
316
|
for (var n = 0; n < t.length; n++) {
|
|
@@ -319,7 +319,7 @@ function extendWithKeys(a, e, t) {
|
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
-
var
|
|
322
|
+
var F = [ "x", "y", "rotation" ], Q = /** @class */ function() {
|
|
323
323
|
function LabelManager() {
|
|
324
324
|
this._labelList = [], this._chartViewList = [];
|
|
325
325
|
}
|
|
@@ -331,9 +331,9 @@ var Q = [ "x", "y", "rotation" ], U = /** @class */ function() {
|
|
|
331
331
|
*/
|
|
332
332
|
LabelManager.prototype._addLabel = function(a, e, t, n, r) {
|
|
333
333
|
var i = n.style, o = n.__hostTarget.textConfig || {}, s = n.getComputedTransform(), l = n.getBoundingRect().plain();
|
|
334
|
-
L.applyTransform(l, l, s), s ?
|
|
334
|
+
L.applyTransform(l, l, s), s ? _.setLocalTransform(s) : (
|
|
335
335
|
// Identity transform.
|
|
336
|
-
|
|
336
|
+
_.x = _.y = _.rotation = _.originX = _.originY = 0, _.scaleX = _.scaleY = 1), _.rotation = h(_.rotation);
|
|
337
337
|
var c, u = n.__hostTarget;
|
|
338
338
|
if (u) {
|
|
339
339
|
c = u.getBoundingRect().plain();
|
|
@@ -359,11 +359,11 @@ var Q = [ "x", "y", "rotation" ], U = /** @class */ function() {
|
|
|
359
359
|
defaultAttr: {
|
|
360
360
|
ignore: n.ignore,
|
|
361
361
|
labelGuideIgnore: v && v.ignore,
|
|
362
|
-
x:
|
|
363
|
-
y:
|
|
364
|
-
scaleX:
|
|
365
|
-
scaleY:
|
|
366
|
-
rotation:
|
|
362
|
+
x: _.x,
|
|
363
|
+
y: _.y,
|
|
364
|
+
scaleX: _.scaleX,
|
|
365
|
+
scaleY: _.scaleY,
|
|
366
|
+
rotation: _.rotation,
|
|
367
367
|
style: {
|
|
368
368
|
x: i.x,
|
|
369
369
|
y: i.y,
|
|
@@ -432,10 +432,10 @@ var Q = [ "x", "y", "rotation" ], U = /** @class */ function() {
|
|
|
432
432
|
// Not update
|
|
433
433
|
u = !1);
|
|
434
434
|
}
|
|
435
|
-
|
|
435
|
+
q(i).needsUpdateLabelLine = u, i.rotation = null != l.rotate ? l.rotate * c : s.rotation,
|
|
436
436
|
i.scaleX = s.scaleX, i.scaleY = s.scaleY;
|
|
437
|
-
for (var v = 0; v <
|
|
438
|
-
var h =
|
|
437
|
+
for (var v = 0; v < U.length; v++) {
|
|
438
|
+
var h = U[v];
|
|
439
439
|
i.setStyle(h, null != l[h] ? l[h] : s.style[h]);
|
|
440
440
|
}
|
|
441
441
|
if (l.draggable) {
|
|
@@ -454,7 +454,7 @@ var Q = [ "x", "y", "rotation" ], U = /** @class */ function() {
|
|
|
454
454
|
})), i = m(n, (function(a) {
|
|
455
455
|
return "shiftY" === a.layoutOption.moveOverlap;
|
|
456
456
|
}));
|
|
457
|
-
|
|
457
|
+
w(r, 0, e), A(i, 0, t);
|
|
458
458
|
var o = m(n, (function(a) {
|
|
459
459
|
return a.layoutOption.hideOverlap;
|
|
460
460
|
}));
|
|
@@ -465,13 +465,13 @@ var Q = [ "x", "y", "rotation" ], U = /** @class */ function() {
|
|
|
465
465
|
*/
|
|
466
466
|
LabelManager.prototype.processLabelsOverall = function() {
|
|
467
467
|
var a = this;
|
|
468
|
-
|
|
468
|
+
T(this._chartViewList, (function(e) {
|
|
469
469
|
var t = e.__model, n = e.ignoreLabelLineUpdate, r = t.isAnimationEnabled();
|
|
470
470
|
e.group.traverse((function(e) {
|
|
471
471
|
if (e.ignore && !e.forceLabelAnimation) return !0;
|
|
472
472
|
// Stop traverse descendants.
|
|
473
473
|
var i = !n, o = e.getTextContent();
|
|
474
|
-
!i && o && (i =
|
|
474
|
+
!i && o && (i = q(o).needsUpdateLabelLine), i && a._updateLabelLine(e, t), r && a._animateLabels(e, t);
|
|
475
475
|
}));
|
|
476
476
|
}));
|
|
477
477
|
}, LabelManager.prototype._updateLabelLine = function(a, e) {
|
|
@@ -493,7 +493,7 @@ var Q = [ "x", "y", "rotation" ], U = /** @class */ function() {
|
|
|
493
493
|
var n = a.getTextContent(), r = a.getTextGuideLine();
|
|
494
494
|
// Animate
|
|
495
495
|
if (n && (a.forceLabelAnimation || !n.ignore && !n.invisible && !a.disableLabelAnimation && !x(a))) {
|
|
496
|
-
var i = (b =
|
|
496
|
+
var i = (b = q(n)).oldLayout, o = p(a), s = o.dataIndex, l = {
|
|
497
497
|
x: n.x,
|
|
498
498
|
y: n.y,
|
|
499
499
|
rotation: n.rotation
|
|
@@ -503,7 +503,7 @@ var Q = [ "x", "y", "rotation" ], U = /** @class */ function() {
|
|
|
503
503
|
// Make sure the animation from is in the right status.
|
|
504
504
|
var u = a.prevStates;
|
|
505
505
|
u && (j(u, "select") >= 0 && n.attr(b.oldLayoutSelect), j(u, "emphasis") >= 0 && n.attr(b.oldLayoutEmphasis)),
|
|
506
|
-
|
|
506
|
+
O(n, l, e, s);
|
|
507
507
|
} else
|
|
508
508
|
// Disable fade in animation if value animation is enabled.
|
|
509
509
|
if (n.attr(l), !R(n).valueAnimation) {
|
|
@@ -517,22 +517,22 @@ var Q = [ "x", "y", "rotation" ], U = /** @class */ function() {
|
|
|
517
517
|
}
|
|
518
518
|
if (b.oldLayout = l, n.states.select) {
|
|
519
519
|
var v = b.oldLayoutSelect = {};
|
|
520
|
-
extendWithKeys(v, l,
|
|
520
|
+
extendWithKeys(v, l, F), extendWithKeys(v, n.states.select, F);
|
|
521
521
|
}
|
|
522
522
|
if (n.states.emphasis) {
|
|
523
523
|
var h = b.oldLayoutEmphasis = {};
|
|
524
|
-
extendWithKeys(h, l,
|
|
524
|
+
extendWithKeys(h, l, F), extendWithKeys(h, n.states.emphasis, F);
|
|
525
525
|
}
|
|
526
|
-
|
|
526
|
+
C(n, s, c, e, e);
|
|
527
527
|
}
|
|
528
528
|
if (r && !r.ignore && !r.invisible) {
|
|
529
|
-
i = (b =
|
|
529
|
+
i = (b = B(r)).oldLayout;
|
|
530
530
|
var b, L = {
|
|
531
531
|
points: r.shape.points
|
|
532
532
|
};
|
|
533
533
|
i ? (r.attr({
|
|
534
534
|
shape: i
|
|
535
|
-
}),
|
|
535
|
+
}), O(r, {
|
|
536
536
|
shape: L
|
|
537
537
|
}, e)) : (r.setShape(L), r.style.strokePercent = 0, k(r, {
|
|
538
538
|
style: {
|
|
@@ -541,15 +541,15 @@ var Q = [ "x", "y", "rotation" ], U = /** @class */ function() {
|
|
|
541
541
|
}, e)), b.oldLayout = L;
|
|
542
542
|
}
|
|
543
543
|
}, LabelManager;
|
|
544
|
-
}(),
|
|
544
|
+
}(), Z = b();
|
|
545
545
|
|
|
546
546
|
function installLabelLayout(a) {
|
|
547
547
|
a.registerUpdateLifecycle("series:beforeupdate", (function(a, e, t) {
|
|
548
548
|
// TODO api provide an namespace that can save stuff per instance
|
|
549
|
-
var n =
|
|
550
|
-
n || (n =
|
|
549
|
+
var n = Z(e).labelManager;
|
|
550
|
+
n || (n = Z(e).labelManager = new Q), n.clearLabels();
|
|
551
551
|
})), a.registerUpdateLifecycle("series:layoutlabels", (function(a, e, t) {
|
|
552
|
-
var n =
|
|
552
|
+
var n = Z(e).labelManager;
|
|
553
553
|
t.updatedSeries.forEach((function(a) {
|
|
554
554
|
n.addLabelsOfSeries(e.getViewOfSeriesModel(a));
|
|
555
555
|
})), n.updateLayoutConfig(e), n.layout(e), n.processLabelsOverall();
|
|
@@ -561,7 +561,7 @@ function getSectorCornerRadius(a, e, t) {
|
|
|
561
561
|
if (null == n) return t ? {
|
|
562
562
|
cornerRadius: 0
|
|
563
563
|
} : null;
|
|
564
|
-
|
|
564
|
+
K(n) || (n = [ n, n, n, n ]);
|
|
565
565
|
var r = Math.abs(e.r || 0 - e.r0 || 0);
|
|
566
566
|
return {
|
|
567
567
|
cornerRadius: W(n, (function(a) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { proxyCustomElement as e, HTMLElement as t, createEvent as i, h as n, transformTag as
|
|
1
|
+
import { proxyCustomElement as e, HTMLElement as t, createEvent as i, h as n, transformTag as a } from "@stencil/core/internal/client";
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const o = e(class extends t {
|
|
4
4
|
constructor(e) {
|
|
5
5
|
super(), !1 !== e && this.__registerHost(), this.__attachShadow(), this.badge = i(this, "badge", 7),
|
|
6
6
|
this.onIFrameLoad = e => {
|
|
@@ -42,7 +42,7 @@ const a = e(class extends t {
|
|
|
42
42
|
// #region Render Methods
|
|
43
43
|
render() {
|
|
44
44
|
return n("div", {
|
|
45
|
-
key: "
|
|
45
|
+
key: "b55643965ef49af2e41a683686db00b97e1c90b7",
|
|
46
46
|
id: `tab-pane-${this.guid}-${this.index}`,
|
|
47
47
|
class: "tab-pane" + (this.selected ? "" : " hidden"),
|
|
48
48
|
role: "tabpanel",
|
|
@@ -50,12 +50,12 @@ const a = e(class extends t {
|
|
|
50
50
|
"aria-hidden": "" + !this.selected,
|
|
51
51
|
"aria-labelledby": `tab-${this.guid}-${this.index}`
|
|
52
52
|
}, this.selected && void 0 !== this.provided && !this.provided && n("div", {
|
|
53
|
-
key: "
|
|
53
|
+
key: "f04f1594eba66d962d9adbab48bf3559f658c650"
|
|
54
54
|
}, n("slot", {
|
|
55
|
-
key: "
|
|
55
|
+
key: "08804102412a6b57ac9b9db2002d1608f8b22c19",
|
|
56
56
|
name: "loading-wrapper"
|
|
57
57
|
}), n("iframe", {
|
|
58
|
-
key: "
|
|
58
|
+
key: "a2524435de8072fb27ebdcc9762a1f20367df098",
|
|
59
59
|
hidden: !0,
|
|
60
60
|
name: this.moduleId,
|
|
61
61
|
scrolling: "no",
|
|
@@ -78,11 +78,11 @@ const a = e(class extends t {
|
|
|
78
78
|
value: e.value,
|
|
79
79
|
name: e.key
|
|
80
80
|
})))) : ""), n("div", {
|
|
81
|
-
key: "
|
|
81
|
+
key: "59e9d5ddbabadb0e66615d998403d267c259f937",
|
|
82
82
|
class: "slot-wrapper",
|
|
83
83
|
hidden: this.selected && void 0 !== this.provided && !this.provided
|
|
84
84
|
}, n("slot", {
|
|
85
|
-
key: "
|
|
85
|
+
key: "450c5724cf32ba05a2fc93b8adeba83b08e871e4"
|
|
86
86
|
})));
|
|
87
87
|
}
|
|
88
88
|
get hostElement() {
|
|
@@ -146,10 +146,10 @@ const a = e(class extends t {
|
|
|
146
146
|
} ]
|
|
147
147
|
} ]);
|
|
148
148
|
|
|
149
|
-
const s =
|
|
149
|
+
const s = o, defineCustomElement = function() {
|
|
150
150
|
if ("undefined" == typeof customElements) return;
|
|
151
151
|
[ "tecton-tab-pane" ].forEach((e => {
|
|
152
|
-
if ("tecton-tab-pane" === e) customElements.get(
|
|
152
|
+
if ("tecton-tab-pane" === e) customElements.get(a(e)) || customElements.define(a(e), o);
|
|
153
153
|
}));
|
|
154
154
|
};
|
|
155
155
|
|