@awc-ui/core 1.0.0-beta.2 → 1.0.0-beta.3
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/README.md +18 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js +8 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -0
- package/dist/cjs/engine.wasm-9JtXME10.js +12 -0
- package/dist/cjs/engine.wasm-9JtXME10.js.map +1 -0
- package/dist/cjs/{index-DlQ_5_Mv.js → index-Bm07YAg9.js} +4 -15
- package/dist/cjs/index-Bm07YAg9.js.map +1 -0
- package/dist/cjs/loader.cjs.js +3 -2
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/md-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/md-accordion.cjs.entry.js +1 -1
- package/dist/cjs/md-app-bar.cjs.entry.js +1 -1
- package/dist/cjs/md-area-chart.cjs.entry.js +1 -1
- package/dist/cjs/md-autocomplete.cjs.entry.js +2 -2
- package/dist/cjs/md-avatar_2.cjs.entry.js +1 -1
- package/dist/cjs/md-badge.cjs.entry.js +1 -1
- package/dist/cjs/md-bar-chart.cjs.entry.js +1 -1
- package/dist/cjs/md-bottom-sheet.cjs.entry.js +1 -1
- package/dist/cjs/md-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/md-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/md-button-group.cjs.entry.js +1 -1
- package/dist/cjs/md-button_7.cjs.entry.js +1 -1
- package/dist/cjs/md-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/md-chip.cjs.entry.js +1 -1
- package/dist/cjs/md-color-picker.cjs.entry.js +1 -1
- package/dist/cjs/md-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/md-dialog.cjs.entry.js +1 -1
- package/dist/cjs/md-divider.cjs.entry.js +1 -1
- package/dist/cjs/md-fab-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/md-fab-menu.cjs.entry.js +1 -1
- package/dist/cjs/md-fab.cjs.entry.js +1 -1
- package/dist/cjs/md-line-chart.cjs.entry.js +1 -1
- package/dist/cjs/md-list-item.cjs.entry.js +1 -1
- package/dist/cjs/md-list.cjs.entry.js +1 -1
- package/dist/cjs/md-menu-item-group.cjs.entry.js +1 -1
- package/dist/cjs/md-menu_2.cjs.entry.js +1 -1
- package/dist/cjs/md-meter.cjs.entry.js +1 -1
- package/dist/cjs/md-multi-select.cjs.entry.js +2 -2
- package/dist/cjs/md-navigation-bar.cjs.entry.js +1 -1
- package/dist/cjs/md-navigation-rail-tab.cjs.entry.js +1 -1
- package/dist/cjs/md-navigation-rail.cjs.entry.js +1 -1
- package/dist/cjs/md-navigation-tab.cjs.entry.js +1 -1
- package/dist/cjs/md-number-field.cjs.entry.js +1 -1
- package/dist/cjs/md-organization-chart.cjs.entry.js +1 -1
- package/dist/cjs/md-otp-field.cjs.entry.js +1 -1
- package/dist/cjs/md-pie-chart.cjs.entry.js +1 -1
- package/dist/cjs/md-progress-indicator.cjs.entry.js +1 -1
- package/dist/cjs/md-rating.cjs.entry.js +1 -1
- package/dist/cjs/md-search.cjs.entry.js +1 -1
- package/dist/cjs/md-segmented-button-set.cjs.entry.js +1 -1
- package/dist/cjs/md-segmented-button.cjs.entry.js +1 -1
- package/dist/cjs/md-select-option.cjs.entry.js +1 -1
- package/dist/cjs/md-select.cjs.entry.js +2 -2
- package/dist/cjs/md-side-sheet.cjs.entry.js +1 -1
- package/dist/cjs/md-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/md-slider.cjs.entry.js +1 -1
- package/dist/cjs/md-sparkline.cjs.entry.js +1 -1
- package/dist/cjs/md-split-button.cjs.entry.js +1 -1
- package/dist/cjs/md-status-dot.cjs.entry.js +1 -1
- package/dist/cjs/md-step.cjs.entry.js +1 -1
- package/dist/cjs/md-stepper.cjs.entry.js +1 -1
- package/dist/cjs/md-sub-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/md-switch.cjs.entry.js +1 -1
- package/dist/cjs/md-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/md-tab-panels.cjs.entry.js +1 -1
- package/dist/cjs/md-tab.cjs.entry.js +1 -1
- package/dist/cjs/md-table-body.cjs.entry.js +1 -1
- package/dist/cjs/md-table-cell.cjs.entry.js +1 -1
- package/dist/cjs/md-table-container.cjs.entry.js +1 -1
- package/dist/cjs/md-table-expand-toggle.cjs.entry.js +1 -1
- package/dist/cjs/md-table-foot.cjs.entry.js +1 -1
- package/dist/cjs/md-table-head.cjs.entry.js +1 -1
- package/dist/cjs/md-table-pagination.cjs.entry.js +1 -1
- package/dist/cjs/md-table-row.cjs.entry.js +1 -1
- package/dist/cjs/md-table-sort-label.cjs.entry.js +1 -1
- package/dist/cjs/md-table-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/md-table.cjs.entry.js +1 -1
- package/dist/cjs/md-tabs.cjs.entry.js +1 -1
- package/dist/cjs/md-text-field.cjs.entry.js +1 -1
- package/dist/cjs/md-time-picker.cjs.entry.js +1 -1
- package/dist/cjs/md-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/md-transfer-list.cjs.entry.js +1 -1
- package/dist/cjs/md3.cjs.js +3 -2
- package/dist/cjs/md3.cjs.js.map +1 -1
- package/dist/cjs/{virtual-select-controller-CqriaZgm.js → virtual-select-controller-C5cSoKfB.js} +10 -9
- package/dist/cjs/virtual-select-controller-C5cSoKfB.js.map +1 -0
- package/dist/collection/wasm/engine-abi.js +8 -2
- package/dist/collection/wasm/engine-abi.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/md-accordion-item.js +1 -1
- package/dist/components/md-accordion.js +1 -1
- package/dist/components/md-app-bar.js +1 -1
- package/dist/components/md-area-chart.js +1 -1
- package/dist/components/md-area-chart.js.map +1 -1
- package/dist/components/md-autocomplete.js +1 -1
- package/dist/components/md-avatar.js +1 -1
- package/dist/components/md-badge.js +1 -1
- package/dist/components/md-bar-chart.js +1 -1
- package/dist/components/md-bottom-sheet.js +1 -1
- package/dist/components/md-breadcrumb-item.js +1 -1
- package/dist/components/md-breadcrumbs.js +1 -1
- package/dist/components/md-button-group.js +1 -1
- package/dist/components/md-button.js +1 -1
- package/dist/components/md-card.js +1 -1
- package/dist/components/md-checkbox.js +1 -1
- package/dist/components/md-chip.js +1 -1
- package/dist/components/md-color-picker.js +1 -1
- package/dist/components/md-date-picker.js +1 -1
- package/dist/components/md-dialog.js +1 -1
- package/dist/components/md-divider.js +1 -1
- package/dist/components/md-fab-menu-item.js +1 -1
- package/dist/components/md-fab-menu.js +1 -1
- package/dist/components/md-fab.js +1 -1
- package/dist/components/md-icon-button.js +1 -1
- package/dist/components/md-line-chart.js +1 -1
- package/dist/components/md-list-item.js +1 -1
- package/dist/components/md-list.js +1 -1
- package/dist/components/md-loading-indicator.js +1 -1
- package/dist/components/md-menu-item-group.js +1 -1
- package/dist/components/md-menu-item.js +1 -1
- package/dist/components/md-menu.js +1 -1
- package/dist/components/md-meter.js +1 -1
- package/dist/components/md-multi-select.js +1 -1
- package/dist/components/md-navigation-bar.js +1 -1
- package/dist/components/md-navigation-rail-tab.js +1 -1
- package/dist/components/md-navigation-rail.js +1 -1
- package/dist/components/md-navigation-tab.js +1 -1
- package/dist/components/md-number-field.js +1 -1
- package/dist/components/md-organization-chart.js +1 -1
- package/dist/components/md-otp-field.js +1 -1
- package/dist/components/md-pie-chart.js +1 -1
- package/dist/components/md-progress-indicator.js +1 -1
- package/dist/components/md-radio.js +1 -1
- package/dist/components/md-rating.js +1 -1
- package/dist/components/md-ripple.js +1 -1
- package/dist/components/md-search.js +1 -1
- package/dist/components/md-segmented-button-set.js +1 -1
- package/dist/components/md-segmented-button.js +1 -1
- package/dist/components/md-select-option.js +1 -1
- package/dist/components/md-select.js +1 -1
- package/dist/components/md-side-sheet.js +1 -1
- package/dist/components/md-skeleton.js +1 -1
- package/dist/components/md-slider.js +1 -1
- package/dist/components/md-snackbar.js +1 -1
- package/dist/components/md-sparkline.js +1 -1
- package/dist/components/md-split-button.js +1 -1
- package/dist/components/md-status-dot.js +1 -1
- package/dist/components/md-step.js +1 -1
- package/dist/components/md-stepper.js +1 -1
- package/dist/components/md-sub-menu-item.js +1 -1
- package/dist/components/md-switch.js +1 -1
- package/dist/components/md-tab-panel.js +1 -1
- package/dist/components/md-tab-panels.js +1 -1
- package/dist/components/md-tab.js +1 -1
- package/dist/components/md-table-body.js +1 -1
- package/dist/components/md-table-cell.js +1 -1
- package/dist/components/md-table-container.js +1 -1
- package/dist/components/md-table-expand-toggle.js +1 -1
- package/dist/components/md-table-foot.js +1 -1
- package/dist/components/md-table-head.js +1 -1
- package/dist/components/md-table-pagination.js +1 -1
- package/dist/components/md-table-row.js +1 -1
- package/dist/components/md-table-sort-label.js +1 -1
- package/dist/components/md-table-toolbar.js +1 -1
- package/dist/components/md-table.js +1 -1
- package/dist/components/md-tabs.js +1 -1
- package/dist/components/md-text-field.js +1 -1
- package/dist/components/md-time-picker.js +1 -1
- package/dist/components/md-toolbar.js +1 -1
- package/dist/components/md-tooltip.js +1 -1
- package/dist/components/md-transfer-list.js +1 -1
- package/dist/components/p-B-JfuA2g.js +2 -0
- package/dist/components/p-B-JfuA2g.js.map +1 -0
- package/dist/components/p-B-iHDK5h.js +2 -0
- package/dist/components/p-B-iHDK5h.js.map +1 -0
- package/dist/components/p-BA2v4IuG.js +2 -0
- package/dist/components/p-BA2v4IuG.js.map +1 -0
- package/dist/components/p-BADA63mI.js +2 -0
- package/dist/components/p-BADA63mI.js.map +1 -0
- package/dist/components/p-BR6gfOQH.js +2 -0
- package/dist/components/p-BR6gfOQH.js.map +1 -0
- package/dist/components/p-Bz-JaJcA.js +2 -0
- package/dist/components/p-Bz-JaJcA.js.map +1 -0
- package/dist/components/p-CCMritCA.js +2 -0
- package/dist/components/p-CCMritCA.js.map +1 -0
- package/dist/components/p-CTC8XAB6.js +2 -0
- package/dist/components/p-CTC8XAB6.js.map +1 -0
- package/dist/components/p-CfBPnYW7.js +2 -0
- package/dist/components/p-CfBPnYW7.js.map +1 -0
- package/dist/components/p-CtVItLby.js +2 -0
- package/dist/components/p-CtVItLby.js.map +1 -0
- package/dist/components/p-D8oM1Kr3.js +2 -0
- package/dist/components/p-D8oM1Kr3.js.map +1 -0
- package/dist/components/{p-Ddiw2Kjw.js → p-DEzb9xsY.js} +2 -2
- package/dist/components/p-DEzb9xsY.js.map +1 -0
- package/dist/components/p-DYL-8C5C.js +2 -0
- package/dist/components/p-DYL-8C5C.js.map +1 -0
- package/dist/components/p-DfU4xY2F.js +2 -0
- package/dist/components/p-DfU4xY2F.js.map +1 -0
- package/dist/components/p-Eb44PPZa.js +2 -0
- package/dist/components/p-Eb44PPZa.js.map +1 -0
- package/dist/components/{p-UdGDg2oJ.js → p-Lsoo1B-2.js} +2 -2
- package/dist/components/p-Lsoo1B-2.js.map +1 -0
- package/dist/components/p-tSoecrcz.js +2 -0
- package/dist/components/p-tSoecrcz.js.map +1 -0
- package/dist/components-csr/index.js +2 -0
- package/dist/components-csr/index.js.map +1 -0
- package/dist/components-csr/md-accordion-item.js +2 -0
- package/dist/components-csr/md-accordion-item.js.map +1 -0
- package/dist/components-csr/md-accordion.js +2 -0
- package/dist/components-csr/md-accordion.js.map +1 -0
- package/dist/components-csr/md-app-bar.js +2 -0
- package/dist/components-csr/md-app-bar.js.map +1 -0
- package/dist/components-csr/md-area-chart.js +2 -0
- package/dist/components-csr/md-area-chart.js.map +1 -0
- package/dist/components-csr/md-autocomplete.js +2 -0
- package/dist/components-csr/md-autocomplete.js.map +1 -0
- package/dist/components-csr/md-avatar.js +2 -0
- package/dist/components-csr/md-avatar.js.map +1 -0
- package/dist/components-csr/md-badge.js +2 -0
- package/dist/components-csr/md-badge.js.map +1 -0
- package/dist/components-csr/md-bar-chart.js +2 -0
- package/dist/components-csr/md-bar-chart.js.map +1 -0
- package/dist/components-csr/md-bottom-sheet.js +2 -0
- package/dist/components-csr/md-bottom-sheet.js.map +1 -0
- package/dist/components-csr/md-breadcrumb-item.js +2 -0
- package/dist/components-csr/md-breadcrumb-item.js.map +1 -0
- package/dist/components-csr/md-breadcrumbs.js +2 -0
- package/dist/components-csr/md-breadcrumbs.js.map +1 -0
- package/dist/components-csr/md-button-group.js +2 -0
- package/dist/components-csr/md-button-group.js.map +1 -0
- package/dist/components-csr/md-button.js +2 -0
- package/dist/components-csr/md-button.js.map +1 -0
- package/dist/components-csr/md-card.js +2 -0
- package/dist/components-csr/md-card.js.map +1 -0
- package/dist/components-csr/md-checkbox.js +2 -0
- package/dist/components-csr/md-checkbox.js.map +1 -0
- package/dist/components-csr/md-chip.js +2 -0
- package/dist/components-csr/md-chip.js.map +1 -0
- package/dist/components-csr/md-color-picker.js +2 -0
- package/dist/components-csr/md-color-picker.js.map +1 -0
- package/dist/components-csr/md-date-picker.js +2 -0
- package/dist/components-csr/md-date-picker.js.map +1 -0
- package/dist/components-csr/md-dialog.js +2 -0
- package/dist/components-csr/md-dialog.js.map +1 -0
- package/dist/components-csr/md-divider.js +2 -0
- package/dist/components-csr/md-divider.js.map +1 -0
- package/dist/components-csr/md-fab-menu-item.js +2 -0
- package/dist/components-csr/md-fab-menu-item.js.map +1 -0
- package/dist/components-csr/md-fab-menu.js +2 -0
- package/dist/components-csr/md-fab-menu.js.map +1 -0
- package/dist/components-csr/md-fab.js +2 -0
- package/dist/components-csr/md-fab.js.map +1 -0
- package/dist/components-csr/md-icon-button.js +2 -0
- package/dist/components-csr/md-icon-button.js.map +1 -0
- package/dist/components-csr/md-line-chart.js +2 -0
- package/dist/components-csr/md-line-chart.js.map +1 -0
- package/dist/components-csr/md-list-item.js +2 -0
- package/dist/components-csr/md-list-item.js.map +1 -0
- package/dist/components-csr/md-list.js +2 -0
- package/dist/components-csr/md-list.js.map +1 -0
- package/dist/components-csr/md-loading-indicator.js +2 -0
- package/dist/components-csr/md-loading-indicator.js.map +1 -0
- package/dist/components-csr/md-menu-item-group.js +2 -0
- package/dist/components-csr/md-menu-item-group.js.map +1 -0
- package/dist/components-csr/md-menu-item.js +2 -0
- package/dist/components-csr/md-menu-item.js.map +1 -0
- package/dist/components-csr/md-menu.js +2 -0
- package/dist/components-csr/md-menu.js.map +1 -0
- package/dist/components-csr/md-meter.js +2 -0
- package/dist/components-csr/md-meter.js.map +1 -0
- package/dist/components-csr/md-multi-select.js +2 -0
- package/dist/components-csr/md-multi-select.js.map +1 -0
- package/dist/components-csr/md-navigation-bar.js +2 -0
- package/dist/components-csr/md-navigation-bar.js.map +1 -0
- package/dist/components-csr/md-navigation-rail-tab.js +2 -0
- package/dist/components-csr/md-navigation-rail-tab.js.map +1 -0
- package/dist/components-csr/md-navigation-rail.js +2 -0
- package/dist/components-csr/md-navigation-rail.js.map +1 -0
- package/dist/components-csr/md-navigation-tab.js +2 -0
- package/dist/components-csr/md-navigation-tab.js.map +1 -0
- package/dist/components-csr/md-number-field.js +2 -0
- package/dist/components-csr/md-number-field.js.map +1 -0
- package/dist/components-csr/md-organization-chart.js +2 -0
- package/dist/components-csr/md-organization-chart.js.map +1 -0
- package/dist/components-csr/md-otp-field.js +2 -0
- package/dist/components-csr/md-otp-field.js.map +1 -0
- package/dist/components-csr/md-pie-chart.js +2 -0
- package/dist/components-csr/md-pie-chart.js.map +1 -0
- package/dist/components-csr/md-progress-indicator.js +2 -0
- package/dist/components-csr/md-progress-indicator.js.map +1 -0
- package/dist/components-csr/md-radio.js +2 -0
- package/dist/components-csr/md-radio.js.map +1 -0
- package/dist/components-csr/md-rating.js +2 -0
- package/dist/components-csr/md-rating.js.map +1 -0
- package/dist/components-csr/md-ripple.js +2 -0
- package/dist/components-csr/md-ripple.js.map +1 -0
- package/dist/components-csr/md-search.js +2 -0
- package/dist/components-csr/md-search.js.map +1 -0
- package/dist/components-csr/md-segmented-button-set.js +2 -0
- package/dist/components-csr/md-segmented-button-set.js.map +1 -0
- package/dist/components-csr/md-segmented-button.js +2 -0
- package/dist/components-csr/md-segmented-button.js.map +1 -0
- package/dist/components-csr/md-select-option.js +2 -0
- package/dist/components-csr/md-select-option.js.map +1 -0
- package/dist/components-csr/md-select.js +2 -0
- package/dist/components-csr/md-select.js.map +1 -0
- package/dist/components-csr/md-side-sheet.js +2 -0
- package/dist/components-csr/md-side-sheet.js.map +1 -0
- package/dist/components-csr/md-skeleton.js +2 -0
- package/dist/components-csr/md-skeleton.js.map +1 -0
- package/dist/components-csr/md-slider.js +2 -0
- package/dist/components-csr/md-slider.js.map +1 -0
- package/dist/components-csr/md-snackbar.js +2 -0
- package/dist/components-csr/md-snackbar.js.map +1 -0
- package/dist/components-csr/md-sparkline.js +2 -0
- package/dist/components-csr/md-sparkline.js.map +1 -0
- package/dist/components-csr/md-split-button.js +2 -0
- package/dist/components-csr/md-split-button.js.map +1 -0
- package/dist/components-csr/md-status-dot.js +2 -0
- package/dist/components-csr/md-status-dot.js.map +1 -0
- package/dist/components-csr/md-step.js +2 -0
- package/dist/components-csr/md-step.js.map +1 -0
- package/dist/components-csr/md-stepper.js +2 -0
- package/dist/components-csr/md-stepper.js.map +1 -0
- package/dist/components-csr/md-sub-menu-item.js +2 -0
- package/dist/components-csr/md-sub-menu-item.js.map +1 -0
- package/dist/components-csr/md-switch.js +2 -0
- package/dist/components-csr/md-switch.js.map +1 -0
- package/dist/components-csr/md-tab-panel.js +2 -0
- package/dist/components-csr/md-tab-panel.js.map +1 -0
- package/dist/components-csr/md-tab-panels.js +2 -0
- package/dist/components-csr/md-tab-panels.js.map +1 -0
- package/dist/components-csr/md-tab.js +2 -0
- package/dist/components-csr/md-tab.js.map +1 -0
- package/dist/components-csr/md-table-body.js +2 -0
- package/dist/components-csr/md-table-body.js.map +1 -0
- package/dist/components-csr/md-table-cell.js +2 -0
- package/dist/components-csr/md-table-cell.js.map +1 -0
- package/dist/components-csr/md-table-container.js +2 -0
- package/dist/components-csr/md-table-container.js.map +1 -0
- package/dist/components-csr/md-table-expand-toggle.js +2 -0
- package/dist/components-csr/md-table-expand-toggle.js.map +1 -0
- package/dist/components-csr/md-table-foot.js +2 -0
- package/dist/components-csr/md-table-foot.js.map +1 -0
- package/dist/components-csr/md-table-head.js +2 -0
- package/dist/components-csr/md-table-head.js.map +1 -0
- package/dist/components-csr/md-table-pagination.js +2 -0
- package/dist/components-csr/md-table-pagination.js.map +1 -0
- package/dist/components-csr/md-table-row.js +2 -0
- package/dist/components-csr/md-table-row.js.map +1 -0
- package/dist/components-csr/md-table-sort-label.js +2 -0
- package/dist/components-csr/md-table-sort-label.js.map +1 -0
- package/dist/components-csr/md-table-toolbar.js +2 -0
- package/dist/components-csr/md-table-toolbar.js.map +1 -0
- package/dist/components-csr/md-table.js +2 -0
- package/dist/components-csr/md-table.js.map +1 -0
- package/dist/components-csr/md-tabs.js +2 -0
- package/dist/components-csr/md-tabs.js.map +1 -0
- package/dist/components-csr/md-text-field.js +2 -0
- package/dist/components-csr/md-text-field.js.map +1 -0
- package/dist/components-csr/md-time-picker.js +2 -0
- package/dist/components-csr/md-time-picker.js.map +1 -0
- package/dist/components-csr/md-toolbar.js +2 -0
- package/dist/components-csr/md-toolbar.js.map +1 -0
- package/dist/components-csr/md-tooltip.js +2 -0
- package/dist/components-csr/md-tooltip.js.map +1 -0
- package/dist/components-csr/md-transfer-list.js +2 -0
- package/dist/components-csr/md-transfer-list.js.map +1 -0
- package/dist/{components/p-DXXUoRSH.js → components-csr/p--OUYjgKN.js} +2 -2
- package/dist/{components/p-Dp-w93ot.js → components-csr/p--TCJgZnE.js} +2 -2
- package/dist/components-csr/p-BdEoSBtL.js +2 -0
- package/dist/components-csr/p-BdEoSBtL.js.map +1 -0
- package/dist/components-csr/p-Bmu7RqHM.js +2 -0
- package/dist/components-csr/p-Bx6--dQF.js +2 -0
- package/dist/components-csr/p-Bx6--dQF.js.map +1 -0
- package/dist/components-csr/p-Bz-JaJcA.js +2 -0
- package/dist/components-csr/p-Bz-JaJcA.js.map +1 -0
- package/dist/{components/p-uTEkf0sE.js → components-csr/p-C0DlKmRg.js} +2 -2
- package/dist/{components/p-Ch2-tttM.js → components-csr/p-C4_7YnHT.js} +2 -2
- package/dist/{components/p-BwXpiUsu.js → components-csr/p-CG6FaRlt.js} +2 -2
- package/dist/{components/p-B0Opn6dK.js → components-csr/p-CSrxeWwL.js} +2 -2
- package/dist/components-csr/p-C_ogF68H.js +2 -0
- package/dist/components-csr/p-C_ogF68H.js.map +1 -0
- package/dist/components-csr/p-Cch_V1vi.js +2 -0
- package/dist/components-csr/p-Cch_V1vi.js.map +1 -0
- package/dist/components-csr/p-CfBPnYW7.js +2 -0
- package/dist/components-csr/p-CfBPnYW7.js.map +1 -0
- package/dist/{components/p-B3MWYEEJ.js → components-csr/p-CrbzXk64.js} +2 -2
- package/dist/components-csr/p-CxhZdOPw.js +2 -0
- package/dist/components-csr/p-CxhZdOPw.js.map +1 -0
- package/dist/{components/p-7fN_yCXW.js → components-csr/p-DF19mmLl.js} +2 -2
- package/dist/components-csr/p-DWxN44zD.js +2 -0
- package/dist/components-csr/p-DWxN44zD.js.map +1 -0
- package/dist/components-csr/p-DYBUr7K_.js +2 -0
- package/dist/components-csr/p-DYBUr7K_.js.map +1 -0
- package/dist/{components/p-e2HRV63Y.js → components-csr/p-DfcpeJAu.js} +2 -2
- package/dist/components-csr/p-DvOKnoqK.js +2 -0
- package/dist/components-csr/p-DvOKnoqK.js.map +1 -0
- package/dist/{components/p-C8EP4S21.js → components-csr/p-DvXQXhgu.js} +2 -2
- package/dist/components-csr/p-DzPKu-Ma.js +2 -0
- package/dist/components-csr/p-DzPKu-Ma.js.map +1 -0
- package/dist/{components/p-stybaFzj.js → components-csr/p-Hm3X1iai.js} +2 -2
- package/dist/{components/p-6wZSqm_2.js → components-csr/p-IWA0yIjJ.js} +2 -2
- package/dist/components-csr/p-RLxbNqRv.js +2 -0
- package/dist/components-csr/p-RLxbNqRv.js.map +1 -0
- package/dist/components-csr/p-bSpXNc5J.js +2 -0
- package/dist/components-csr/p-bSpXNc5J.js.map +1 -0
- package/dist/components-csr/p-uZbtHo-A.js +2 -0
- package/dist/components-csr/package.json +3 -0
- package/dist/esm/app-globals-DQuL1Twl.js +6 -0
- package/dist/esm/app-globals-DQuL1Twl.js.map +1 -0
- package/dist/esm/engine.wasm-CfBPnYW7.js +10 -0
- package/dist/esm/engine.wasm-CfBPnYW7.js.map +1 -0
- package/dist/esm/{index-DTaX19_O.js → index-WmvQpZnM.js} +5 -15
- package/dist/esm/index-WmvQpZnM.js.map +1 -0
- package/dist/esm/loader.js +3 -2
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/md-accordion-item.entry.js +1 -1
- package/dist/esm/md-accordion.entry.js +1 -1
- package/dist/esm/md-app-bar.entry.js +1 -1
- package/dist/esm/md-area-chart.entry.js +1 -1
- package/dist/esm/md-autocomplete.entry.js +2 -2
- package/dist/esm/md-avatar_2.entry.js +1 -1
- package/dist/esm/md-badge.entry.js +1 -1
- package/dist/esm/md-bar-chart.entry.js +1 -1
- package/dist/esm/md-bottom-sheet.entry.js +1 -1
- package/dist/esm/md-breadcrumb-item.entry.js +1 -1
- package/dist/esm/md-breadcrumbs.entry.js +1 -1
- package/dist/esm/md-button-group.entry.js +1 -1
- package/dist/esm/md-button_7.entry.js +1 -1
- package/dist/esm/md-checkbox.entry.js +1 -1
- package/dist/esm/md-chip.entry.js +1 -1
- package/dist/esm/md-color-picker.entry.js +1 -1
- package/dist/esm/md-date-picker.entry.js +1 -1
- package/dist/esm/md-dialog.entry.js +1 -1
- package/dist/esm/md-divider.entry.js +1 -1
- package/dist/esm/md-fab-menu-item.entry.js +1 -1
- package/dist/esm/md-fab-menu.entry.js +1 -1
- package/dist/esm/md-fab.entry.js +1 -1
- package/dist/esm/md-line-chart.entry.js +1 -1
- package/dist/esm/md-list-item.entry.js +1 -1
- package/dist/esm/md-list.entry.js +1 -1
- package/dist/esm/md-menu-item-group.entry.js +1 -1
- package/dist/esm/md-menu_2.entry.js +1 -1
- package/dist/esm/md-meter.entry.js +1 -1
- package/dist/esm/md-multi-select.entry.js +2 -2
- package/dist/esm/md-navigation-bar.entry.js +1 -1
- package/dist/esm/md-navigation-rail-tab.entry.js +1 -1
- package/dist/esm/md-navigation-rail.entry.js +1 -1
- package/dist/esm/md-navigation-tab.entry.js +1 -1
- package/dist/esm/md-number-field.entry.js +1 -1
- package/dist/esm/md-organization-chart.entry.js +1 -1
- package/dist/esm/md-otp-field.entry.js +1 -1
- package/dist/esm/md-pie-chart.entry.js +1 -1
- package/dist/esm/md-progress-indicator.entry.js +1 -1
- package/dist/esm/md-rating.entry.js +1 -1
- package/dist/esm/md-search.entry.js +1 -1
- package/dist/esm/md-segmented-button-set.entry.js +1 -1
- package/dist/esm/md-segmented-button.entry.js +1 -1
- package/dist/esm/md-select-option.entry.js +1 -1
- package/dist/esm/md-select.entry.js +2 -2
- package/dist/esm/md-side-sheet.entry.js +1 -1
- package/dist/esm/md-skeleton.entry.js +1 -1
- package/dist/esm/md-slider.entry.js +1 -1
- package/dist/esm/md-sparkline.entry.js +1 -1
- package/dist/esm/md-split-button.entry.js +1 -1
- package/dist/esm/md-status-dot.entry.js +1 -1
- package/dist/esm/md-step.entry.js +1 -1
- package/dist/esm/md-stepper.entry.js +1 -1
- package/dist/esm/md-sub-menu-item.entry.js +1 -1
- package/dist/esm/md-switch.entry.js +1 -1
- package/dist/esm/md-tab-panel.entry.js +1 -1
- package/dist/esm/md-tab-panels.entry.js +1 -1
- package/dist/esm/md-tab.entry.js +1 -1
- package/dist/esm/md-table-body.entry.js +1 -1
- package/dist/esm/md-table-cell.entry.js +1 -1
- package/dist/esm/md-table-container.entry.js +1 -1
- package/dist/esm/md-table-expand-toggle.entry.js +1 -1
- package/dist/esm/md-table-foot.entry.js +1 -1
- package/dist/esm/md-table-head.entry.js +1 -1
- package/dist/esm/md-table-pagination.entry.js +1 -1
- package/dist/esm/md-table-row.entry.js +1 -1
- package/dist/esm/md-table-sort-label.entry.js +1 -1
- package/dist/esm/md-table-toolbar.entry.js +1 -1
- package/dist/esm/md-table.entry.js +1 -1
- package/dist/esm/md-tabs.entry.js +1 -1
- package/dist/esm/md-text-field.entry.js +1 -1
- package/dist/esm/md-time-picker.entry.js +1 -1
- package/dist/esm/md-toolbar.entry.js +1 -1
- package/dist/esm/md-transfer-list.entry.js +1 -1
- package/dist/esm/md3.js +3 -2
- package/dist/esm/md3.js.map +1 -1
- package/dist/esm/{virtual-select-controller-BEWIC0pC.js → virtual-select-controller-CR60w6DO.js} +10 -9
- package/dist/esm/virtual-select-controller-CR60w6DO.js.map +1 -0
- package/dist/md3/md3.css +1 -1
- package/dist/md3/md3.esm.js +1 -1
- package/dist/md3/md3.esm.js.map +1 -1
- package/dist/md3/{p-2e9503d7.entry.js → p-0a599351.entry.js} +2 -2
- package/dist/md3/p-1d7e0203.entry.js +2 -0
- package/dist/md3/{p-fb61868c.entry.js.map → p-1d7e0203.entry.js.map} +1 -1
- package/dist/md3/p-1e85b8a8.entry.js +2 -0
- package/dist/md3/{p-aaec2698.entry.js.map → p-1e85b8a8.entry.js.map} +1 -1
- package/dist/md3/{p-396089fd.entry.js → p-1edb5a0d.entry.js} +2 -2
- package/dist/md3/{p-c00f7514.entry.js → p-21c89d1d.entry.js} +2 -2
- package/dist/md3/p-22633b2d.entry.js +2 -0
- package/dist/md3/{p-6b2871a0.entry.js.map → p-22633b2d.entry.js.map} +1 -1
- package/dist/md3/{p-2e09a7b7.entry.js → p-27135a6b.entry.js} +2 -2
- package/dist/md3/{p-c063c823.entry.js → p-2befc42c.entry.js} +2 -2
- package/dist/md3/p-2dda08b2.entry.js +2 -0
- package/dist/md3/{p-21772851.entry.js.map → p-2dda08b2.entry.js.map} +1 -1
- package/dist/md3/p-3508d0e0.entry.js +2 -0
- package/dist/md3/{p-f31ab454.entry.js.map → p-3508d0e0.entry.js.map} +1 -1
- package/dist/md3/{p-b34d385b.entry.js → p-35b05b45.entry.js} +2 -2
- package/dist/md3/{p-c2dd8c8c.entry.js → p-38e9a583.entry.js} +2 -2
- package/dist/md3/{p-3cce1de3.entry.js → p-38f82d34.entry.js} +2 -2
- package/dist/md3/p-3a4bd4eb.entry.js +2 -0
- package/dist/md3/{p-72457a85.entry.js.map → p-3a4bd4eb.entry.js.map} +1 -1
- package/dist/md3/{p-be02624e.entry.js → p-3c0469aa.entry.js} +2 -2
- package/dist/md3/{p-63b8c8d1.entry.js → p-408ee4be.entry.js} +2 -2
- package/dist/md3/{p-3015c7e3.entry.js → p-4770b534.entry.js} +2 -2
- package/dist/md3/p-4aed552f.entry.js +2 -0
- package/dist/md3/{p-6c44cf13.entry.js.map → p-4aed552f.entry.js.map} +1 -1
- package/dist/md3/{p-c5af701b.entry.js → p-4ba3623e.entry.js} +2 -2
- package/dist/md3/{p-7b463fbe.entry.js → p-4f2e82cb.entry.js} +2 -2
- package/dist/md3/{p-be412e3f.entry.js → p-501bf161.entry.js} +2 -2
- package/dist/md3/{p-81843ff7.entry.js → p-5929e59c.entry.js} +2 -2
- package/dist/md3/{p-32bdd439.entry.js → p-5c35f916.entry.js} +2 -2
- package/dist/md3/{p-ac35ac5f.entry.js → p-5db87a9d.entry.js} +2 -2
- package/dist/md3/{p-6038b907.entry.js → p-5f39b49d.entry.js} +2 -2
- package/dist/md3/p-637baee1.entry.js +2 -0
- package/dist/md3/{p-47af9819.entry.js.map → p-637baee1.entry.js.map} +1 -1
- package/dist/md3/{p-05ae91b6.entry.js → p-6bf632c7.entry.js} +2 -2
- package/dist/md3/{p-4e3d6e40.entry.js → p-6ea7117d.entry.js} +2 -2
- package/dist/md3/{p-9ddbf247.entry.js → p-7112374d.entry.js} +2 -2
- package/dist/md3/{p-1a8ec5bc.entry.js → p-7858833e.entry.js} +2 -2
- package/dist/md3/p-7c8842bf.entry.js +2 -0
- package/dist/md3/{p-ba2ebde1.entry.js.map → p-7c8842bf.entry.js.map} +1 -1
- package/dist/md3/{p-4d82132d.entry.js → p-7f53a423.entry.js} +2 -2
- package/dist/md3/{p-b0431a5c.entry.js → p-8135c606.entry.js} +2 -2
- package/dist/md3/{p-4dda4cb0.entry.js → p-845ca9cc.entry.js} +2 -2
- package/dist/md3/{p-5b74694e.entry.js → p-89d47130.entry.js} +2 -2
- package/dist/md3/p-8a6fed13.entry.js +2 -0
- package/dist/md3/{p-a803da99.entry.js.map → p-8a6fed13.entry.js.map} +1 -1
- package/dist/md3/{p-e3124e1e.entry.js → p-8b1ea5dc.entry.js} +2 -2
- package/dist/md3/{p-c10a33c2.entry.js → p-8e7df348.entry.js} +2 -2
- package/dist/md3/{p-65195996.entry.js → p-925768ac.entry.js} +2 -2
- package/dist/md3/p-944e69e0.entry.js +2 -0
- package/dist/md3/{p-a3308c40.entry.js.map → p-944e69e0.entry.js.map} +1 -1
- package/dist/md3/{p-ac8762e5.entry.js → p-96c06b24.entry.js} +2 -2
- package/dist/md3/p-9b9677cc.entry.js +2 -0
- package/dist/md3/{p-e7dc5a32.entry.js.map → p-9b9677cc.entry.js.map} +1 -1
- package/dist/md3/p-Bz-JaJcA.js +2 -0
- package/dist/md3/p-Bz-JaJcA.js.map +1 -0
- package/dist/md3/p-CfBPnYW7.js +2 -0
- package/dist/md3/p-CfBPnYW7.js.map +1 -0
- package/dist/md3/p-DQuL1Twl.js +2 -0
- package/dist/md3/p-DQuL1Twl.js.map +1 -0
- package/dist/md3/p-WmvQpZnM.js +3 -0
- package/dist/md3/p-WmvQpZnM.js.map +1 -0
- package/dist/md3/p-a3623653.entry.js +2 -0
- package/dist/md3/{p-19ee9c33.entry.js.map → p-a3623653.entry.js.map} +1 -1
- package/dist/md3/{p-a5fee424.entry.js → p-a49df43d.entry.js} +2 -2
- package/dist/md3/{p-da4e27d4.entry.js → p-a4d4cfed.entry.js} +2 -2
- package/dist/md3/{p-5394254f.entry.js → p-a976498b.entry.js} +2 -2
- package/dist/md3/{p-bf7842f8.entry.js → p-adf8a415.entry.js} +2 -2
- package/dist/md3/{p-c861d774.entry.js → p-ae360663.entry.js} +2 -2
- package/dist/md3/{p-8eb0b6a4.entry.js → p-b243284b.entry.js} +2 -2
- package/dist/md3/{p-45280bf4.entry.js → p-b2d88292.entry.js} +2 -2
- package/dist/md3/{p-796f79f8.entry.js → p-b3b5247b.entry.js} +2 -2
- package/dist/md3/{p-5b799707.entry.js → p-b4266f6b.entry.js} +2 -2
- package/dist/md3/p-b5586b66.entry.js +2 -0
- package/dist/md3/{p-04e97f5d.entry.js.map → p-b5586b66.entry.js.map} +1 -1
- package/dist/md3/{p-a7ffb779.entry.js → p-b7602557.entry.js} +2 -2
- package/dist/md3/{p-6ba63c73.entry.js → p-bc24f0c9.entry.js} +2 -2
- package/dist/md3/{p-edb34a6d.entry.js → p-bed8dfec.entry.js} +2 -2
- package/dist/md3/{p-50555bb7.entry.js → p-c0476406.entry.js} +2 -2
- package/dist/md3/{p-0c2e824d.entry.js → p-c20fbb9e.entry.js} +2 -2
- package/dist/md3/{p-4e45b2ff.entry.js → p-c58c68d0.entry.js} +2 -2
- package/dist/md3/{p-fc0b325d.entry.js → p-cdcea99f.entry.js} +2 -2
- package/dist/md3/{p-0f764a1e.entry.js → p-d2e39c6e.entry.js} +2 -2
- package/dist/md3/p-d7e99f9e.entry.js +2 -0
- package/dist/md3/{p-cf07e761.entry.js.map → p-d7e99f9e.entry.js.map} +1 -1
- package/dist/md3/{p-c1ca6f6c.entry.js → p-da0c36d9.entry.js} +2 -2
- package/dist/md3/{p-77a01bcc.entry.js → p-e3c37222.entry.js} +2 -2
- package/dist/md3/{p-39cb7c24.entry.js → p-e6b09e71.entry.js} +2 -2
- package/dist/md3/{p-b4631a55.entry.js → p-eddae19a.entry.js} +2 -2
- package/dist/md3/{p-c6a12344.entry.js → p-ef7b1826.entry.js} +2 -2
- package/dist/md3/p-f1b69181.entry.js +2 -0
- package/dist/md3/{p-a986fd24.entry.js.map → p-f1b69181.entry.js.map} +1 -1
- package/dist/md3/{p-e6d7f0ff.entry.js → p-f403ad20.entry.js} +2 -2
- package/dist/md3/{p-708a9313.entry.js → p-f5fd9a0b.entry.js} +2 -2
- package/dist/md3/{p-aa0e7d4d.entry.js → p-f71af38f.entry.js} +2 -2
- package/dist/md3/{p-757e3aaf.entry.js → p-fac6da4c.entry.js} +2 -2
- package/dist/md3/{p-134b670a.entry.js → p-fc864f96.entry.js} +2 -2
- package/dist/types/wasm/engine-abi.d.ts +14 -0
- package/hydrate/index.js +19 -7
- package/hydrate/index.mjs +19 -7
- package/package.json +14 -3
- package/dist/cjs/index-DlQ_5_Mv.js.map +0 -1
- package/dist/cjs/virtual-select-controller-CqriaZgm.js.map +0 -1
- package/dist/components/p-BEWIC0pC.js +0 -2
- package/dist/components/p-BEWIC0pC.js.map +0 -1
- package/dist/components/p-MWBNn6Lj.js +0 -2
- package/dist/components/p-MWBNn6Lj.js.map +0 -1
- package/dist/esm/index-DTaX19_O.js.map +0 -1
- package/dist/esm/virtual-select-controller-BEWIC0pC.js.map +0 -1
- package/dist/md3/p-04e97f5d.entry.js +0 -2
- package/dist/md3/p-19ee9c33.entry.js +0 -2
- package/dist/md3/p-21772851.entry.js +0 -2
- package/dist/md3/p-47af9819.entry.js +0 -2
- package/dist/md3/p-6b2871a0.entry.js +0 -2
- package/dist/md3/p-6c44cf13.entry.js +0 -2
- package/dist/md3/p-72457a85.entry.js +0 -2
- package/dist/md3/p-BEWIC0pC.js +0 -2
- package/dist/md3/p-BEWIC0pC.js.map +0 -1
- package/dist/md3/p-DTaX19_O.js +0 -3
- package/dist/md3/p-DTaX19_O.js.map +0 -1
- package/dist/md3/p-a3308c40.entry.js +0 -2
- package/dist/md3/p-a803da99.entry.js +0 -2
- package/dist/md3/p-a986fd24.entry.js +0 -2
- package/dist/md3/p-aaec2698.entry.js +0 -2
- package/dist/md3/p-ba2ebde1.entry.js +0 -2
- package/dist/md3/p-cf07e761.entry.js +0 -2
- package/dist/md3/p-e7dc5a32.entry.js +0 -2
- package/dist/md3/p-f31ab454.entry.js +0 -2
- package/dist/md3/p-fb61868c.entry.js +0 -2
- /package/dist/{components/p-DXXUoRSH.js.map → components-csr/p--OUYjgKN.js.map} +0 -0
- /package/dist/{components/p-Dp-w93ot.js.map → components-csr/p--TCJgZnE.js.map} +0 -0
- /package/dist/{components/p-UdGDg2oJ.js.map → components-csr/p-Bmu7RqHM.js.map} +0 -0
- /package/dist/{components/p-uTEkf0sE.js.map → components-csr/p-C0DlKmRg.js.map} +0 -0
- /package/dist/{components/p-Ch2-tttM.js.map → components-csr/p-C4_7YnHT.js.map} +0 -0
- /package/dist/{components/p-BwXpiUsu.js.map → components-csr/p-CG6FaRlt.js.map} +0 -0
- /package/dist/{components/p-B0Opn6dK.js.map → components-csr/p-CSrxeWwL.js.map} +0 -0
- /package/dist/{components/p-B3MWYEEJ.js.map → components-csr/p-CrbzXk64.js.map} +0 -0
- /package/dist/{components/p-7fN_yCXW.js.map → components-csr/p-DF19mmLl.js.map} +0 -0
- /package/dist/{components/p-e2HRV63Y.js.map → components-csr/p-DfcpeJAu.js.map} +0 -0
- /package/dist/{components/p-C8EP4S21.js.map → components-csr/p-DvXQXhgu.js.map} +0 -0
- /package/dist/{components/p-stybaFzj.js.map → components-csr/p-Hm3X1iai.js.map} +0 -0
- /package/dist/{components/p-6wZSqm_2.js.map → components-csr/p-IWA0yIjJ.js.map} +0 -0
- /package/dist/{components/p-Ddiw2Kjw.js.map → components-csr/p-uZbtHo-A.js.map} +0 -0
- /package/dist/md3/{p-2e9503d7.entry.js.map → p-0a599351.entry.js.map} +0 -0
- /package/dist/md3/{p-396089fd.entry.js.map → p-1edb5a0d.entry.js.map} +0 -0
- /package/dist/md3/{p-c00f7514.entry.js.map → p-21c89d1d.entry.js.map} +0 -0
- /package/dist/md3/{p-2e09a7b7.entry.js.map → p-27135a6b.entry.js.map} +0 -0
- /package/dist/md3/{p-c063c823.entry.js.map → p-2befc42c.entry.js.map} +0 -0
- /package/dist/md3/{p-b34d385b.entry.js.map → p-35b05b45.entry.js.map} +0 -0
- /package/dist/md3/{p-c2dd8c8c.entry.js.map → p-38e9a583.entry.js.map} +0 -0
- /package/dist/md3/{p-3cce1de3.entry.js.map → p-38f82d34.entry.js.map} +0 -0
- /package/dist/md3/{p-be02624e.entry.js.map → p-3c0469aa.entry.js.map} +0 -0
- /package/dist/md3/{p-63b8c8d1.entry.js.map → p-408ee4be.entry.js.map} +0 -0
- /package/dist/md3/{p-3015c7e3.entry.js.map → p-4770b534.entry.js.map} +0 -0
- /package/dist/md3/{p-c5af701b.entry.js.map → p-4ba3623e.entry.js.map} +0 -0
- /package/dist/md3/{p-7b463fbe.entry.js.map → p-4f2e82cb.entry.js.map} +0 -0
- /package/dist/md3/{p-be412e3f.entry.js.map → p-501bf161.entry.js.map} +0 -0
- /package/dist/md3/{p-81843ff7.entry.js.map → p-5929e59c.entry.js.map} +0 -0
- /package/dist/md3/{p-32bdd439.entry.js.map → p-5c35f916.entry.js.map} +0 -0
- /package/dist/md3/{p-ac35ac5f.entry.js.map → p-5db87a9d.entry.js.map} +0 -0
- /package/dist/md3/{p-6038b907.entry.js.map → p-5f39b49d.entry.js.map} +0 -0
- /package/dist/md3/{p-05ae91b6.entry.js.map → p-6bf632c7.entry.js.map} +0 -0
- /package/dist/md3/{p-4e3d6e40.entry.js.map → p-6ea7117d.entry.js.map} +0 -0
- /package/dist/md3/{p-9ddbf247.entry.js.map → p-7112374d.entry.js.map} +0 -0
- /package/dist/md3/{p-1a8ec5bc.entry.js.map → p-7858833e.entry.js.map} +0 -0
- /package/dist/md3/{p-4d82132d.entry.js.map → p-7f53a423.entry.js.map} +0 -0
- /package/dist/md3/{p-b0431a5c.entry.js.map → p-8135c606.entry.js.map} +0 -0
- /package/dist/md3/{p-4dda4cb0.entry.js.map → p-845ca9cc.entry.js.map} +0 -0
- /package/dist/md3/{p-5b74694e.entry.js.map → p-89d47130.entry.js.map} +0 -0
- /package/dist/md3/{p-e3124e1e.entry.js.map → p-8b1ea5dc.entry.js.map} +0 -0
- /package/dist/md3/{p-c10a33c2.entry.js.map → p-8e7df348.entry.js.map} +0 -0
- /package/dist/md3/{p-65195996.entry.js.map → p-925768ac.entry.js.map} +0 -0
- /package/dist/md3/{p-ac8762e5.entry.js.map → p-96c06b24.entry.js.map} +0 -0
- /package/dist/md3/{p-a5fee424.entry.js.map → p-a49df43d.entry.js.map} +0 -0
- /package/dist/md3/{p-da4e27d4.entry.js.map → p-a4d4cfed.entry.js.map} +0 -0
- /package/dist/md3/{p-5394254f.entry.js.map → p-a976498b.entry.js.map} +0 -0
- /package/dist/md3/{p-bf7842f8.entry.js.map → p-adf8a415.entry.js.map} +0 -0
- /package/dist/md3/{p-c861d774.entry.js.map → p-ae360663.entry.js.map} +0 -0
- /package/dist/md3/{p-8eb0b6a4.entry.js.map → p-b243284b.entry.js.map} +0 -0
- /package/dist/md3/{p-45280bf4.entry.js.map → p-b2d88292.entry.js.map} +0 -0
- /package/dist/md3/{p-796f79f8.entry.js.map → p-b3b5247b.entry.js.map} +0 -0
- /package/dist/md3/{p-5b799707.entry.js.map → p-b4266f6b.entry.js.map} +0 -0
- /package/dist/md3/{p-a7ffb779.entry.js.map → p-b7602557.entry.js.map} +0 -0
- /package/dist/md3/{p-6ba63c73.entry.js.map → p-bc24f0c9.entry.js.map} +0 -0
- /package/dist/md3/{p-edb34a6d.entry.js.map → p-bed8dfec.entry.js.map} +0 -0
- /package/dist/md3/{p-50555bb7.entry.js.map → p-c0476406.entry.js.map} +0 -0
- /package/dist/md3/{p-0c2e824d.entry.js.map → p-c20fbb9e.entry.js.map} +0 -0
- /package/dist/md3/{p-4e45b2ff.entry.js.map → p-c58c68d0.entry.js.map} +0 -0
- /package/dist/md3/{p-fc0b325d.entry.js.map → p-cdcea99f.entry.js.map} +0 -0
- /package/dist/md3/{p-0f764a1e.entry.js.map → p-d2e39c6e.entry.js.map} +0 -0
- /package/dist/md3/{p-c1ca6f6c.entry.js.map → p-da0c36d9.entry.js.map} +0 -0
- /package/dist/md3/{p-77a01bcc.entry.js.map → p-e3c37222.entry.js.map} +0 -0
- /package/dist/md3/{p-39cb7c24.entry.js.map → p-e6b09e71.entry.js.map} +0 -0
- /package/dist/md3/{p-b4631a55.entry.js.map → p-eddae19a.entry.js.map} +0 -0
- /package/dist/md3/{p-c6a12344.entry.js.map → p-ef7b1826.entry.js.map} +0 -0
- /package/dist/md3/{p-e6d7f0ff.entry.js.map → p-f403ad20.entry.js.map} +0 -0
- /package/dist/md3/{p-708a9313.entry.js.map → p-f5fd9a0b.entry.js.map} +0 -0
- /package/dist/md3/{p-aa0e7d4d.entry.js.map → p-f71af38f.entry.js.map} +0 -0
- /package/dist/md3/{p-757e3aaf.entry.js.map → p-fac6da4c.entry.js.map} +0 -0
- /package/dist/md3/{p-134b670a.entry.js.map → p-fc864f96.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as s,c as t,h as o,d as i,t as a}from"./p-MWBNn6Lj.js";import{t as r}from"./p-DYBUr7K_.js";import{s as c,a as n,g as d,c as l,r as h}from"./p-DWxN44zD.js";import{d as m}from"./p-stybaFzj.js";const b=()=>`:host{--_container-color:var(--md-checkbox-container-color, transparent);--_selected-container-color:var(--md-checkbox-selected-container-color, var(--md-sys-color-primary));--_outline-color:var(--md-checkbox-outline-color, var(--md-sys-color-on-surface-variant));--_outline-width:var(--md-checkbox-outline-width, 2px);--_icon-color:var(--md-checkbox-icon-color, var(--md-sys-color-on-primary));--_container-shape:var(--md-checkbox-container-shape, 2px);--_container-size:var(--md-checkbox-container-size, max(14px, calc(18px + var(--md-sys-density-scale, 0) * 1px)));--_icon-size:var(--md-checkbox-icon-size, max(14px, calc(18px + var(--md-sys-density-scale, 0) * 1px)));--_touch-size:max(32px, calc(var(--md-checkbox-touch-target-size, 48px) + var(--md-sys-density-scale, 0) * 4px));--_state-layer-size:var(--md-checkbox-state-layer-size, min(40px, var(--_touch-size)));--_state-layer-color:var(--md-checkbox-state-layer-color, var(--md-sys-color-on-surface));--_selected-state-layer-color:var(--md-checkbox-selected-state-layer-color, var(--md-sys-color-primary));display:inline-flex;align-items:center;justify-content:center;position:relative;inline-size:var(--_touch-size);block-size:var(--_touch-size);cursor:pointer;border-radius:var(--md-sys-shape-corner-full, 50%);overflow:hidden;-webkit-tap-highlight-color:transparent;box-sizing:border-box;flex-shrink:0;vertical-align:middle;outline:none;color:var(--_state-layer-color)}:host(.md-checkbox--selected){color:var(--_selected-state-layer-color)}.md-checkbox__native{position:absolute;opacity:0;inline-size:0;block-size:0;pointer-events:none;margin:0}.md-checkbox__ripple-layer{position:absolute;inline-size:var(--_state-layer-size);block-size:var(--_state-layer-size);border-radius:var(--md-sys-shape-corner-full, 50%);overflow:hidden}:host(.md-checkbox--disabled) .md-checkbox__ripple-layer,:host([soft-disabled]) .md-checkbox__ripple-layer{display:none}.md-checkbox__state-layer{position:absolute;inline-size:var(--_state-layer-size);block-size:var(--_state-layer-size);border-radius:var(--md-sys-shape-corner-full, 50%);background-color:var(--_state-layer-color);opacity:0;transition:opacity var(--md-sys-motion-duration-short1, 100ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1));pointer-events:none}:host(.md-checkbox--unselected:hover) .md-checkbox__state-layer{opacity:var(--md-sys-state-hover-state-layer-opacity, 0.08)}:host(.md-checkbox--unselected:focus-visible) .md-checkbox__state-layer{opacity:var(--md-sys-state-focus-state-layer-opacity, 0.12)}:host(.md-checkbox--unselected:active) .md-checkbox__state-layer{opacity:var(--md-sys-state-pressed-state-layer-opacity, 0.12)}:host(.md-checkbox--selected) .md-checkbox__state-layer{background-color:var(--_selected-state-layer-color)}:host(.md-checkbox--selected:hover) .md-checkbox__state-layer{opacity:var(--md-sys-state-hover-state-layer-opacity, 0.08)}:host(.md-checkbox--selected:focus-visible) .md-checkbox__state-layer{opacity:var(--md-sys-state-focus-state-layer-opacity, 0.12)}:host(.md-checkbox--selected:active) .md-checkbox__state-layer{opacity:var(--md-sys-state-pressed-state-layer-opacity, 0.12)}:host(:focus-visible){outline:2px solid var(--md-sys-color-secondary);outline-offset:calc((var(--_state-layer-size) - var(--_touch-size)) / 2)}.md-checkbox__container{position:relative;display:inline-flex;align-items:center;justify-content:center;inline-size:var(--_container-size);block-size:var(--_container-size);border-radius:var(--_container-shape);border:var(--_outline-width) solid var(--_outline-color);background-color:var(--_container-color);box-sizing:border-box;pointer-events:none;transition:background-color var(--md-sys-motion-duration-short2, 200ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1)), border-color var(--md-sys-motion-duration-short2, 200ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1)), transform var(--md-sys-motion-duration-medium4, 400ms) var(--md-sys-motion-easing-emphasized-decelerate, cubic-bezier(0.05, 0.7, 0.1, 1))}:host(.md-checkbox--selected) .md-checkbox__container{background-color:var(--_selected-container-color);border-color:var(--_selected-container-color)}:host(.md-checkbox--pressed) .md-checkbox__container{transform:scale(0.82);transition:background-color var(--md-sys-motion-duration-short2, 200ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1)), border-color var(--md-sys-motion-duration-short2, 200ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1)), transform var(--md-sys-motion-duration-short4, 200ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1))}:host([aria-invalid="true"]) .md-checkbox__container{border-color:var(--md-sys-color-error)}:host([aria-invalid="true"].md-checkbox--selected) .md-checkbox__container{background-color:var(--md-sys-color-error);border-color:var(--md-sys-color-error)}.md-checkbox__icon{display:inline-flex;align-items:center;justify-content:center;inline-size:var(--_icon-size);block-size:var(--_icon-size);color:var(--_icon-color);overflow:visible}.md-checkbox__icon .material-symbols-outlined{font-family:var(--md-sys-icon-font-family, 'Material Symbols Outlined', 'Material Icons');font-size:var(--_icon-size);line-height:1;font-weight:normal;font-style:normal;letter-spacing:normal;text-transform:none;white-space:nowrap;direction:ltr;-webkit-font-smoothing:antialiased;font-variation-settings:'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24}@keyframes md-checkbox-glyph-in{0%{transform:scale(0);opacity:0}60%{transform:scale(1.18);opacity:1}100%{transform:scale(1);opacity:1}}:host(.md-checkbox--checked) .md-checkbox__icon .material-symbols-outlined,:host(.md-checkbox--indeterminate) .md-checkbox__icon .material-symbols-outlined{animation:md-checkbox-glyph-in var(--md-sys-motion-duration-short2, 200ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1)) both}:host(.md-checkbox--unselected) .md-checkbox__icon{opacity:0}:host(.md-checkbox--selected) .md-checkbox__icon{opacity:1}:host(.md-checkbox--disabled){cursor:default;pointer-events:none}:host(.md-checkbox--disabled.md-checkbox--unselected) .md-checkbox__container{border-color:color-mix(in srgb, var(--md-sys-color-on-surface) calc(var(--md-sys-state-disabled-content-opacity, 0.38) * 100%), transparent);background-color:transparent}:host(.md-checkbox--disabled.md-checkbox--selected) .md-checkbox__container{background-color:color-mix(in srgb, var(--md-sys-color-on-surface) calc(var(--md-sys-state-disabled-content-opacity, 0.38) * 100%), transparent);border-color:transparent}:host(.md-checkbox--disabled.md-checkbox--selected) .md-checkbox__icon{color:var(--md-sys-color-surface)}:host(.md-checkbox--disabled) .md-checkbox__state-layer{display:none}:host([soft-disabled]){cursor:default;pointer-events:auto}:host([soft-disabled].md-checkbox--unselected) .md-checkbox__container{border-color:color-mix(in srgb, var(--md-sys-color-on-surface) calc(var(--md-sys-state-disabled-content-opacity, 0.38) * 100%), transparent);background-color:transparent}:host([soft-disabled].md-checkbox--selected) .md-checkbox__container{background-color:color-mix(in srgb, var(--md-sys-color-on-surface) calc(var(--md-sys-state-disabled-content-opacity, 0.38) * 100%), transparent);border-color:transparent}:host([soft-disabled].md-checkbox--selected) .md-checkbox__icon{color:var(--md-sys-color-surface)}:host([soft-disabled]) .md-checkbox__state-layer{display:none}@media (prefers-reduced-motion: reduce){.md-checkbox__container,.md-checkbox__state-layer{transition:none}.md-checkbox__icon .material-symbols-outlined{animation:none}}@media (forced-colors: active){:host{forced-color-adjust:none}.md-checkbox__container{border-color:ButtonText;background-color:ButtonFace}:host(.md-checkbox--selected) .md-checkbox__container{background-color:Highlight;border-color:Highlight}:host(.md-checkbox--selected) .md-checkbox__icon{color:HighlightText}:host(:focus-visible){outline-color:Highlight}:host(.md-checkbox--disabled) .md-checkbox__container{border-color:GrayText;opacity:1}:host(.md-checkbox--disabled.md-checkbox--selected) .md-checkbox__container{background-color:GrayText;border-color:GrayText}.md-checkbox__state-layer{display:none}}:host([density='-1']){--md-sys-density-scale:-1}:host([density='-2']){--md-sys-density-scale:-2}:host([density='-3']){--md-sys-density-scale:-3}:host([density='-4']){--md-sys-density-scale:-4}.md-checkbox__target{position:relative;display:inline-flex;align-items:center;justify-content:center;inline-size:var(--_touch-size);block-size:var(--_touch-size);border-radius:var(--md-sys-shape-corner-full, 50%);overflow:hidden;flex-shrink:0}:host(.md-checkbox--has-support){display:inline-flex;flex-direction:column;align-items:flex-start;inline-size:var(--_touch-size);block-size:auto;overflow:visible;border-radius:0}.md-checkbox__support{display:block;margin-block-start:2px;margin-inline-start:calc((var(--_touch-size) - var(--_container-size)) / 2);inline-size:max-content;max-inline-size:60ch;font-family:var(--md-sys-typescale-body-small-font-family, Roboto, sans-serif);font-size:max(10px, calc(12px + var(--md-sys-density-scale, 0) * 0.5px));line-height:max(14px, calc(16px + var(--md-sys-density-scale, 0) * 0.5px));color:var(--md-checkbox-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454F))}.md-checkbox__support--error{color:var(--md-checkbox-error-text-color, var(--md-sys-color-error, #B3261E))}`;const y=e(class e extends s{constructor(e){super();if(e!==false){this.__registerHost()}this.__attachShadow();this.mdChange=t(this,"mdChange",7);this.mdValidityChange=t(this,"mdValidityChange",5);this.internals=this.attachInternals();this.valueMissingLabel="Please check this box if you want to proceed.";this.customValidityMessage="";this.uid=`md-checkbox-${Math.random().toString(36).slice(2,7)}`;this.invalid=false;this.error=false;this.errorText="";this.supportingText="";this.checked=false;this.indeterminate=false;this.disabled=false;this.softDisabled=false;this.required=false;this.name="";this.value="on";this.density=0;this.prevChecked=false;this.prevIndeterminate=false;this.pressed=false;this.initialChecked=false;this.initialIndeterminate=false;this.lastValidityKey=null;this.handleClick=()=>{if(this.isDisabled)return;this.prevChecked=this.checked;this.prevIndeterminate=this.indeterminate;if(this.indeterminate){this.indeterminate=false;this.checked=true}else{this.checked=!this.checked}this.mdChange.emit({checked:this.checked,indeterminate:this.indeterminate})};this.handleKeyDown=e=>{if(this.isDisabled)return;if(e.key===" "){e.preventDefault();this.pressed=true;r(this.el);this.handleClick();setTimeout((()=>{this.pressed=false}),150)}};this.handlePointerDown=()=>{if(!this.isDisabled)this.pressed=true};this.handlePointerUp=()=>{this.pressed=false}}get isDisabled(){return this.disabled||this.softDisabled}componentWillLoad(){this.initialChecked=this.checked;this.initialIndeterminate=this.indeterminate;this.syncFormValue()}onStateChange(){this.prevChecked=this.checked;this.prevIndeterminate=this.indeterminate;this.syncFormValue()}onValueChange(){this.syncFormValue()}formResetCallback(){this.checked=this.initialChecked;this.indeterminate=this.initialIndeterminate}syncFormValue(){c(this.internals,this.checked?this.value:null);this.syncValidity()}syncValidity(){this.invalid=this.required&&!this.checked&&!this.customValidityMessage?true:!!this.customValidityMessage;n(this.internals,{missing:this.required&&!this.checked,missingMessage:this.valueMissingLabel,customMessage:this.customValidityMessage});this.emitValidityChange()}async getValidity(){return d(this.internals)}emitValidityChange(){const e=d(this.internals);const s=`${e.valid}|${e.validationMessage}`;if(this.lastValidityKey===s)return;const t=this.lastValidityKey!==null;this.lastValidityKey=s;if(t)this.mdValidityChange.emit(e)}async checkValidity(){return l(this.internals)}async reportValidity(){return h(this.internals)}async setCustomValidity(e){this.customValidityMessage=e;this.syncValidity()}get ariaCheckedValue(){if(this.indeterminate)return"mixed";return String(this.checked)}render(){const e=this.isDisabled;const s=this.checked||this.indeterminate;const t=this.el.getAttribute("aria-hidden")==="true";return o(i,{key:"a0d40b9f78fd0156ee6cdec1366112632f167511",class:{"md-checkbox":true,"md-checkbox--checked":this.checked&&!this.indeterminate,"md-checkbox--indeterminate":this.indeterminate,"md-checkbox--disabled":e,"md-checkbox--selected":s,"md-checkbox--unselected":!s,"md-checkbox--pressed":this.pressed,"md-checkbox--prev-unselected":!this.prevChecked&&!this.prevIndeterminate,"md-checkbox--has-support":!!(this.errorText||this.supportingText)},role:"checkbox","aria-invalid":this.invalid?"true":undefined,"aria-describedby":this.errorText||this.supportingText?`${this.uid}-support`:undefined,"aria-checked":this.ariaCheckedValue,"aria-disabled":e?"true":undefined,"aria-required":this.required?"true":undefined,tabindex:t?null:this.disabled?"-1":"0",onPointerDown:this.handlePointerDown,onPointerUp:this.handlePointerUp,onPointerLeave:this.handlePointerUp,onPointerCancel:this.handlePointerUp,onClick:this.handleClick,onKeyDown:this.handleKeyDown},o("span",{key:"08c18fbbeb24f4b2776e533f9fe5891c7962d68a",class:"md-checkbox__target",part:"target"},o("span",{key:"bd3d4b8aff21d9574ad129ee875d8b673d7365d9",class:"md-checkbox__ripple-layer","aria-hidden":"true"},o("md-ripple",{key:"da2c6869e619d1afa2f209cded502588e5ca2f9a",disabled:e})),o("span",{key:"141b88846ca966456a5d93a71ac8e8c89b638500",class:"md-checkbox__state-layer",part:"state-layer","aria-hidden":"true"}),o("span",{key:"97c914aaa946e06275280a1f6022836c42137911",class:"md-checkbox__container",part:"container"},o("span",{key:"2feb4131baf460aef5e0e13e53a1cddc289eadf6",class:"md-checkbox__icon",part:"icon","aria-hidden":"true"},o("span",{key:"1405ff7289795bf85418a95747e1b2475be9b354",class:"material-symbols-outlined"},this.indeterminate?"remove":"check")))),(this.errorText||this.supportingText)&&o("span",{key:"b5cbb3b42837a18b6135dcd5fc10c363badd4636",id:`${this.uid}-support`,part:"supporting-text",role:this.error?"alert":undefined,class:{"md-checkbox__support":true,"md-checkbox__support--error":this.error}},this.errorText||this.supportingText))}static get formAssociated(){return true}get el(){return this}static get watchers(){return{checked:[{onStateChange:0}],indeterminate:[{onStateChange:0}],value:[{onValueChange:0}],required:[{syncValidity:0}],valueMissingLabel:[{syncValidity:0}]}}static get style(){return b()}},[65,"md-checkbox",{valueMissingLabel:[1,"value-missing-label"],error:[516],errorText:[1025,"error-text"],supportingText:[1,"supporting-text"],checked:[1540],indeterminate:[1540],disabled:[516],softDisabled:[516,"soft-disabled"],required:[516],name:[1],value:[1],density:[514],invalid:[32],prevChecked:[32],prevIndeterminate:[32],pressed:[32],getValidity:[64],checkValidity:[64],reportValidity:[64],setCustomValidity:[64]},undefined,{checked:[{onStateChange:0}],indeterminate:[{onStateChange:0}],value:[{onValueChange:0}],required:[{syncValidity:0}],valueMissingLabel:[{syncValidity:0}]}]);function u(){if(typeof customElements==="undefined"){return}const e=["md-checkbox","md-ripple"];e.forEach((e=>{switch(e){case"md-checkbox":if(!customElements.get(a(e))){customElements.define(a(e),y)}break;case"md-ripple":if(!customElements.get(a(e))){m()}break}}))}u();export{y as M,u as d};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as e,H as s,c as t,h as o,d as i,t as a}from"./p-bSpXNc5J.js";import{t as r}from"./p-DYBUr7K_.js";import{s as c,a as n,g as d,c as l,r as h}from"./p-DWxN44zD.js";import{d as m}from"./p-Hm3X1iai.js";const b=()=>`:host{--_container-color:var(--md-checkbox-container-color, transparent);--_selected-container-color:var(--md-checkbox-selected-container-color, var(--md-sys-color-primary));--_outline-color:var(--md-checkbox-outline-color, var(--md-sys-color-on-surface-variant));--_outline-width:var(--md-checkbox-outline-width, 2px);--_icon-color:var(--md-checkbox-icon-color, var(--md-sys-color-on-primary));--_container-shape:var(--md-checkbox-container-shape, 2px);--_container-size:var(--md-checkbox-container-size, max(14px, calc(18px + var(--md-sys-density-scale, 0) * 1px)));--_icon-size:var(--md-checkbox-icon-size, max(14px, calc(18px + var(--md-sys-density-scale, 0) * 1px)));--_touch-size:max(32px, calc(var(--md-checkbox-touch-target-size, 48px) + var(--md-sys-density-scale, 0) * 4px));--_state-layer-size:var(--md-checkbox-state-layer-size, min(40px, var(--_touch-size)));--_state-layer-color:var(--md-checkbox-state-layer-color, var(--md-sys-color-on-surface));--_selected-state-layer-color:var(--md-checkbox-selected-state-layer-color, var(--md-sys-color-primary));display:inline-flex;align-items:center;justify-content:center;position:relative;inline-size:var(--_touch-size);block-size:var(--_touch-size);cursor:pointer;border-radius:var(--md-sys-shape-corner-full, 50%);overflow:hidden;-webkit-tap-highlight-color:transparent;box-sizing:border-box;flex-shrink:0;vertical-align:middle;outline:none;color:var(--_state-layer-color)}:host(.md-checkbox--selected){color:var(--_selected-state-layer-color)}.md-checkbox__native{position:absolute;opacity:0;inline-size:0;block-size:0;pointer-events:none;margin:0}.md-checkbox__ripple-layer{position:absolute;inline-size:var(--_state-layer-size);block-size:var(--_state-layer-size);border-radius:var(--md-sys-shape-corner-full, 50%);overflow:hidden}:host(.md-checkbox--disabled) .md-checkbox__ripple-layer,:host([soft-disabled]) .md-checkbox__ripple-layer{display:none}.md-checkbox__state-layer{position:absolute;inline-size:var(--_state-layer-size);block-size:var(--_state-layer-size);border-radius:var(--md-sys-shape-corner-full, 50%);background-color:var(--_state-layer-color);opacity:0;transition:opacity var(--md-sys-motion-duration-short1, 100ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1));pointer-events:none}:host(.md-checkbox--unselected:hover) .md-checkbox__state-layer{opacity:var(--md-sys-state-hover-state-layer-opacity, 0.08)}:host(.md-checkbox--unselected:focus-visible) .md-checkbox__state-layer{opacity:var(--md-sys-state-focus-state-layer-opacity, 0.12)}:host(.md-checkbox--unselected:active) .md-checkbox__state-layer{opacity:var(--md-sys-state-pressed-state-layer-opacity, 0.12)}:host(.md-checkbox--selected) .md-checkbox__state-layer{background-color:var(--_selected-state-layer-color)}:host(.md-checkbox--selected:hover) .md-checkbox__state-layer{opacity:var(--md-sys-state-hover-state-layer-opacity, 0.08)}:host(.md-checkbox--selected:focus-visible) .md-checkbox__state-layer{opacity:var(--md-sys-state-focus-state-layer-opacity, 0.12)}:host(.md-checkbox--selected:active) .md-checkbox__state-layer{opacity:var(--md-sys-state-pressed-state-layer-opacity, 0.12)}:host(:focus-visible){outline:2px solid var(--md-sys-color-secondary);outline-offset:calc((var(--_state-layer-size) - var(--_touch-size)) / 2)}.md-checkbox__container{position:relative;display:inline-flex;align-items:center;justify-content:center;inline-size:var(--_container-size);block-size:var(--_container-size);border-radius:var(--_container-shape);border:var(--_outline-width) solid var(--_outline-color);background-color:var(--_container-color);box-sizing:border-box;pointer-events:none;transition:background-color var(--md-sys-motion-duration-short2, 200ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1)), border-color var(--md-sys-motion-duration-short2, 200ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1)), transform var(--md-sys-motion-duration-medium4, 400ms) var(--md-sys-motion-easing-emphasized-decelerate, cubic-bezier(0.05, 0.7, 0.1, 1))}:host(.md-checkbox--selected) .md-checkbox__container{background-color:var(--_selected-container-color);border-color:var(--_selected-container-color)}:host(.md-checkbox--pressed) .md-checkbox__container{transform:scale(0.82);transition:background-color var(--md-sys-motion-duration-short2, 200ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1)), border-color var(--md-sys-motion-duration-short2, 200ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1)), transform var(--md-sys-motion-duration-short4, 200ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1))}:host([aria-invalid="true"]) .md-checkbox__container{border-color:var(--md-sys-color-error)}:host([aria-invalid="true"].md-checkbox--selected) .md-checkbox__container{background-color:var(--md-sys-color-error);border-color:var(--md-sys-color-error)}.md-checkbox__icon{display:inline-flex;align-items:center;justify-content:center;inline-size:var(--_icon-size);block-size:var(--_icon-size);color:var(--_icon-color);overflow:visible}.md-checkbox__icon .material-symbols-outlined{font-family:var(--md-sys-icon-font-family, 'Material Symbols Outlined', 'Material Icons');font-size:var(--_icon-size);line-height:1;font-weight:normal;font-style:normal;letter-spacing:normal;text-transform:none;white-space:nowrap;direction:ltr;-webkit-font-smoothing:antialiased;font-variation-settings:'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24}@keyframes md-checkbox-glyph-in{0%{transform:scale(0);opacity:0}60%{transform:scale(1.18);opacity:1}100%{transform:scale(1);opacity:1}}:host(.md-checkbox--checked) .md-checkbox__icon .material-symbols-outlined,:host(.md-checkbox--indeterminate) .md-checkbox__icon .material-symbols-outlined{animation:md-checkbox-glyph-in var(--md-sys-motion-duration-short2, 200ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1)) both}:host(.md-checkbox--unselected) .md-checkbox__icon{opacity:0}:host(.md-checkbox--selected) .md-checkbox__icon{opacity:1}:host(.md-checkbox--disabled){cursor:default;pointer-events:none}:host(.md-checkbox--disabled.md-checkbox--unselected) .md-checkbox__container{border-color:color-mix(in srgb, var(--md-sys-color-on-surface) calc(var(--md-sys-state-disabled-content-opacity, 0.38) * 100%), transparent);background-color:transparent}:host(.md-checkbox--disabled.md-checkbox--selected) .md-checkbox__container{background-color:color-mix(in srgb, var(--md-sys-color-on-surface) calc(var(--md-sys-state-disabled-content-opacity, 0.38) * 100%), transparent);border-color:transparent}:host(.md-checkbox--disabled.md-checkbox--selected) .md-checkbox__icon{color:var(--md-sys-color-surface)}:host(.md-checkbox--disabled) .md-checkbox__state-layer{display:none}:host([soft-disabled]){cursor:default;pointer-events:auto}:host([soft-disabled].md-checkbox--unselected) .md-checkbox__container{border-color:color-mix(in srgb, var(--md-sys-color-on-surface) calc(var(--md-sys-state-disabled-content-opacity, 0.38) * 100%), transparent);background-color:transparent}:host([soft-disabled].md-checkbox--selected) .md-checkbox__container{background-color:color-mix(in srgb, var(--md-sys-color-on-surface) calc(var(--md-sys-state-disabled-content-opacity, 0.38) * 100%), transparent);border-color:transparent}:host([soft-disabled].md-checkbox--selected) .md-checkbox__icon{color:var(--md-sys-color-surface)}:host([soft-disabled]) .md-checkbox__state-layer{display:none}@media (prefers-reduced-motion: reduce){.md-checkbox__container,.md-checkbox__state-layer{transition:none}.md-checkbox__icon .material-symbols-outlined{animation:none}}@media (forced-colors: active){:host{forced-color-adjust:none}.md-checkbox__container{border-color:ButtonText;background-color:ButtonFace}:host(.md-checkbox--selected) .md-checkbox__container{background-color:Highlight;border-color:Highlight}:host(.md-checkbox--selected) .md-checkbox__icon{color:HighlightText}:host(:focus-visible){outline-color:Highlight}:host(.md-checkbox--disabled) .md-checkbox__container{border-color:GrayText;opacity:1}:host(.md-checkbox--disabled.md-checkbox--selected) .md-checkbox__container{background-color:GrayText;border-color:GrayText}.md-checkbox__state-layer{display:none}}:host([density='-1']){--md-sys-density-scale:-1}:host([density='-2']){--md-sys-density-scale:-2}:host([density='-3']){--md-sys-density-scale:-3}:host([density='-4']){--md-sys-density-scale:-4}.md-checkbox__target{position:relative;display:inline-flex;align-items:center;justify-content:center;inline-size:var(--_touch-size);block-size:var(--_touch-size);border-radius:var(--md-sys-shape-corner-full, 50%);overflow:hidden;flex-shrink:0}:host(.md-checkbox--has-support){display:inline-flex;flex-direction:column;align-items:flex-start;inline-size:var(--_touch-size);block-size:auto;overflow:visible;border-radius:0}.md-checkbox__support{display:block;margin-block-start:2px;margin-inline-start:calc((var(--_touch-size) - var(--_container-size)) / 2);inline-size:max-content;max-inline-size:60ch;font-family:var(--md-sys-typescale-body-small-font-family, Roboto, sans-serif);font-size:max(10px, calc(12px + var(--md-sys-density-scale, 0) * 0.5px));line-height:max(14px, calc(16px + var(--md-sys-density-scale, 0) * 0.5px));color:var(--md-checkbox-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454F))}.md-checkbox__support--error{color:var(--md-checkbox-error-text-color, var(--md-sys-color-error, #B3261E))}`;const y=e(class e extends s{constructor(e){super();if(e!==false){this.__registerHost()}this.__attachShadow();this.mdChange=t(this,"mdChange",7);this.mdValidityChange=t(this,"mdValidityChange",5);this.internals=this.attachInternals();this.valueMissingLabel="Please check this box if you want to proceed.";this.customValidityMessage="";this.uid=`md-checkbox-${Math.random().toString(36).slice(2,7)}`;this.invalid=false;this.error=false;this.errorText="";this.supportingText="";this.checked=false;this.indeterminate=false;this.disabled=false;this.softDisabled=false;this.required=false;this.name="";this.value="on";this.density=0;this.prevChecked=false;this.prevIndeterminate=false;this.pressed=false;this.initialChecked=false;this.initialIndeterminate=false;this.lastValidityKey=null;this.handleClick=()=>{if(this.isDisabled)return;this.prevChecked=this.checked;this.prevIndeterminate=this.indeterminate;if(this.indeterminate){this.indeterminate=false;this.checked=true}else{this.checked=!this.checked}this.mdChange.emit({checked:this.checked,indeterminate:this.indeterminate})};this.handleKeyDown=e=>{if(this.isDisabled)return;if(e.key===" "){e.preventDefault();this.pressed=true;r(this.el);this.handleClick();setTimeout((()=>{this.pressed=false}),150)}};this.handlePointerDown=()=>{if(!this.isDisabled)this.pressed=true};this.handlePointerUp=()=>{this.pressed=false}}get isDisabled(){return this.disabled||this.softDisabled}componentWillLoad(){this.initialChecked=this.checked;this.initialIndeterminate=this.indeterminate;this.syncFormValue()}onStateChange(){this.prevChecked=this.checked;this.prevIndeterminate=this.indeterminate;this.syncFormValue()}onValueChange(){this.syncFormValue()}formResetCallback(){this.checked=this.initialChecked;this.indeterminate=this.initialIndeterminate}syncFormValue(){c(this.internals,this.checked?this.value:null);this.syncValidity()}syncValidity(){this.invalid=this.required&&!this.checked&&!this.customValidityMessage?true:!!this.customValidityMessage;n(this.internals,{missing:this.required&&!this.checked,missingMessage:this.valueMissingLabel,customMessage:this.customValidityMessage});this.emitValidityChange()}async getValidity(){return d(this.internals)}emitValidityChange(){const e=d(this.internals);const s=`${e.valid}|${e.validationMessage}`;if(this.lastValidityKey===s)return;const t=this.lastValidityKey!==null;this.lastValidityKey=s;if(t)this.mdValidityChange.emit(e)}async checkValidity(){return l(this.internals)}async reportValidity(){return h(this.internals)}async setCustomValidity(e){this.customValidityMessage=e;this.syncValidity()}get ariaCheckedValue(){if(this.indeterminate)return"mixed";return String(this.checked)}render(){const e=this.isDisabled;const s=this.checked||this.indeterminate;const t=this.el.getAttribute("aria-hidden")==="true";return o(i,{key:"a0d40b9f78fd0156ee6cdec1366112632f167511",class:{"md-checkbox":true,"md-checkbox--checked":this.checked&&!this.indeterminate,"md-checkbox--indeterminate":this.indeterminate,"md-checkbox--disabled":e,"md-checkbox--selected":s,"md-checkbox--unselected":!s,"md-checkbox--pressed":this.pressed,"md-checkbox--prev-unselected":!this.prevChecked&&!this.prevIndeterminate,"md-checkbox--has-support":!!(this.errorText||this.supportingText)},role:"checkbox","aria-invalid":this.invalid?"true":undefined,"aria-describedby":this.errorText||this.supportingText?`${this.uid}-support`:undefined,"aria-checked":this.ariaCheckedValue,"aria-disabled":e?"true":undefined,"aria-required":this.required?"true":undefined,tabindex:t?null:this.disabled?"-1":"0",onPointerDown:this.handlePointerDown,onPointerUp:this.handlePointerUp,onPointerLeave:this.handlePointerUp,onPointerCancel:this.handlePointerUp,onClick:this.handleClick,onKeyDown:this.handleKeyDown},o("span",{key:"08c18fbbeb24f4b2776e533f9fe5891c7962d68a",class:"md-checkbox__target",part:"target"},o("span",{key:"bd3d4b8aff21d9574ad129ee875d8b673d7365d9",class:"md-checkbox__ripple-layer","aria-hidden":"true"},o("md-ripple",{key:"da2c6869e619d1afa2f209cded502588e5ca2f9a",disabled:e})),o("span",{key:"141b88846ca966456a5d93a71ac8e8c89b638500",class:"md-checkbox__state-layer",part:"state-layer","aria-hidden":"true"}),o("span",{key:"97c914aaa946e06275280a1f6022836c42137911",class:"md-checkbox__container",part:"container"},o("span",{key:"2feb4131baf460aef5e0e13e53a1cddc289eadf6",class:"md-checkbox__icon",part:"icon","aria-hidden":"true"},o("span",{key:"1405ff7289795bf85418a95747e1b2475be9b354",class:"material-symbols-outlined"},this.indeterminate?"remove":"check")))),(this.errorText||this.supportingText)&&o("span",{key:"b5cbb3b42837a18b6135dcd5fc10c363badd4636",id:`${this.uid}-support`,part:"supporting-text",role:this.error?"alert":undefined,class:{"md-checkbox__support":true,"md-checkbox__support--error":this.error}},this.errorText||this.supportingText))}static get formAssociated(){return true}get el(){return this}static get watchers(){return{checked:[{onStateChange:0}],indeterminate:[{onStateChange:0}],value:[{onValueChange:0}],required:[{syncValidity:0}],valueMissingLabel:[{syncValidity:0}]}}static get style(){return b()}},[65,"md-checkbox",{valueMissingLabel:[1,"value-missing-label"],error:[516],errorText:[1025,"error-text"],supportingText:[1,"supporting-text"],checked:[1540],indeterminate:[1540],disabled:[516],softDisabled:[516,"soft-disabled"],required:[516],name:[1],value:[1],density:[514],invalid:[32],prevChecked:[32],prevIndeterminate:[32],pressed:[32],getValidity:[64],checkValidity:[64],reportValidity:[64],setCustomValidity:[64]},undefined,{checked:[{onStateChange:0}],indeterminate:[{onStateChange:0}],value:[{onValueChange:0}],required:[{syncValidity:0}],valueMissingLabel:[{syncValidity:0}]}]);function u(){if(typeof customElements==="undefined"){return}const e=["md-checkbox","md-ripple"];e.forEach((e=>{switch(e){case"md-checkbox":if(!customElements.get(a(e))){customElements.define(a(e),y)}break;case"md-ripple":if(!customElements.get(a(e))){m()}break}}))}u();export{y as M,u as d};
|
|
2
|
+
//# sourceMappingURL=p-DvXQXhgu.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{q as t,u as n}from"./p-DvOKnoqK.js";const i=.22;const s=260;const e=4;function r(t,n,i){const s=t.length;if(!s)return Infinity;const e=t[0];const r=t[s-1];if(n<=e[0])return Math.hypot(e[0]-n,e[1]-i);if(n>=r[0])return Math.hypot(r[0]-n,r[1]-i);let o=0;let c=s-1;while(c-o>1){const i=o+c>>1;if(t[i][0]<=n)o=i;else c=i}const[f,u]=t[o];const[l,a]=t[c];const h=l===f?0:(n-f)/(l-f);return Math.abs(u+(a-u)*h-i)}function o(t,n,i=e){let s=-1;let r=Infinity;let o=Infinity;for(const i of t){if(i.seriesIndex===n)o=i.distance;if(i.distance<r){r=i.distance;s=i.seriesIndex}}if(n>=0&&r>o-i)return n;return s}const c=140;class f{constructor(t=e,n=c){this.stick=t;this.dwellMs=n;this.held=-1;this.candidate=-1;this.since=0}pick(t,n){const i=o(t,this.held,this.stick);if(i!==this.candidate){this.candidate=i;this.since=n}if(this.held<0){this.held=i}else if(i!==this.held&&n-this.since>=this.dwellMs){this.held=i}return this.held}reset(){this.held=-1;this.candidate=-1;this.since=0}}function u(n,s,e){if(s<0||e<=0)return n;const r=1-(1-i)*Math.min(1,e);const o=t=>t!=null&&t!==s;return{...n,lines:n.lines.map((n=>o(n.seriesIndex)?{...n,color:t(n.color,r)}:n)),areas:n.areas.map((n=>o(n.seriesIndex)?{...n,colorTop:t(n.colorTop,r),colorBottom:t(n.colorBottom,r)}:n)),markers:n.markers.map((n=>o(n.seriesIndex)?{...n,color:t(n.color,r)}:n))}}const l=26;const a=8;function h(t,n){if(!t.length)return-1;let i=0;let s=Infinity;for(let e=0;e<t.length;e++){const r=Math.abs(t[e]-n);if(r<s){s=r;i=e}}return i}function d(t){const i=!!t.inverted;return t.hoverPoints.map((t=>n(Object.keys(t.byIndex).map((n=>{const s=t.byIndex[Number(n)];return i?[s.y,s.x]:[s.x,s.y]})))))}function I(t,n){return t.hoverPoints.map((t=>({seriesIndex:t.seriesIndex,label:t.label,value:t.byIndex[n]?.value??null})))}function x(t,n,i){return n>=t.x&&n<=t.x+t.width&&i>=t.y&&i<=t.y+t.height}function M(t,n){const i=t.length;if(!i)return null;const s=i>1&&t[0].x>t[i-1].x?[...t].reverse():t;if(n<s[0].x||n>s[i-1].x)return null;if(i===1)return s[0].y;let e=0;let r=i-1;while(r-e>1){const t=e+r>>1;if(s[t].x<=n)e=t;else r=t}const o=s[e];const c=s[r];return c.x===o.x?o.y:o.y+(c.y-o.y)*(n-o.x)/(c.x-o.x)}function y(t,n,i){const s=M(t.points,n);if(s==null)return false;const e=(t.basePoints?M(t.basePoints,n):null)??t.baselineY;return i>=Math.min(s,e)&&i<=Math.max(s,e)}function k(t,n,i){if(!x(t.plot,n,i))return-1;let s=-1;let e=Infinity;for(const r of t.areas){if(r.seriesIndex==null||!y(r,n,i))continue;const t=M(r.points,n);const o=t==null?Infinity:Math.abs(i-t);if(o<e){e=o;s=r.seriesIndex}}return s}function m(t,n,i,s=d(t)){const e=!!t.inverted;const o=e?i:n;const c=e?n:i;const f=h(t.xPositions,o);if(f<0)return null;let u=-1;let I=Infinity;for(const s of t.hoverPoints){const t=s.byIndex[f];if(!t)continue;const e=Math.hypot(t.x-n,t.y-i);if(e<I){I=e;u=s.seriesIndex}}if(u>=0&&I<=l)return{kind:"mark",seriesIndex:u,dataIndex:f};if(!x(t.plot,n,i))return null;let k=-1;let m=Infinity;t.hoverPoints.forEach(((t,n)=>{const i=r(s[n]??[],o,c);if(i<m){m=i;k=t.seriesIndex}}));if(k>=0&&m<=a)return{kind:"line",seriesIndex:k,dataIndex:f};let p=-1;let b=Infinity;for(const s of t.areas){if(s.seriesIndex==null||!y(s,n,i))continue;const t=Math.abs(i-M(s.points,n));if(t<b){b=t;p=s.seriesIndex}}if(p>=0)return{kind:"area",seriesIndex:p,dataIndex:f};return{kind:"axis",dataIndex:f}}export{s as E,f as H,I as a,k as b,r as d,u as e,m as h,h as n,d as s};
|
|
2
|
+
//# sourceMappingURL=p-DzPKu-Ma.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["DIM","EMPHASIS_MS","FOCUS_STICK","distanceToLine","points","cursorMain","cursorValue","n","length","Infinity","first","last","Math","hypot","lo","hi","mid","aMain","aValue","bMain","bValue","t","abs","pickFocusSeries","candidates","held","stick","best","bestD","heldD","c","seriesIndex","distance","FOCUS_DWELL_MS","HoverFocus","constructor","dwellMs","this","candidate","since","pick","now","wanted","reset","emphasizeScene","scene","focusIndex","factor","min","dim","si","lines","map","l","color","withAlpha","areas","a","colorTop","colorBottom","markers","m","MARK_HIT_RADIUS","LINE_HIT_TOLERANCE","nearestIndex","positions","px","i","d","seriesSampleLines","inverted","hoverPoints","hp","ascending","Object","keys","byIndex","k","p","Number","y","x","axisSeriesValues","index","label","value","insidePlot","plot","py","width","height","polylineY","input","reverse","b","areaContains","area","top","base","basePoints","baselineY","max","areaSeriesAt","hitTestScene","dataIndex","xPositions","markSeries","markD","kind","lineSeries","lineD","forEach","areaSeries","areaD"],"sources":["src/utils/charts/engine/emphasis.ts","src/utils/charts/engine/hit-test.ts"],"sourcesContent":["/*\n * Chart engine — hover emphasis\n * ===========================================================\n * When the pointer is near one series, that series stays vivid and\n * the others fade back so the focused line reads clearly. A pure\n * scene→scene transform (like animate.ts) so both renderer backends\n * dim identically; the engine animates the `t` factor over a short\n * MD3 transition and redraws emphasizeScene(scene, focus, t).\n * ===========================================================\n */\n\nimport { withAlpha } from './color';\nimport type { RenderScene } from './scene';\n\n/** How faded a non-focused series gets at full emphasis (alpha multiplier). */\nconst DIM = 0.22;\n/** Emphasis fade duration in ms. */\nexport const EMPHASIS_MS = 260;\n\n/**\n * How much nearer (px) a rival series must be before the emphasis leaves the\n * series it is on. Sized just under a typical \"close lines\" gap: enough of a\n * deadband to stop the two trading focus at their midpoint, small enough that\n * moving onto the other line still takes the focus with it.\n */\nexport const FOCUS_STICK = 4;\n\n/**\n * How far the cursor is (px) from a series' drawn line.\n *\n * `points` are that series' samples as `[main, value]` pixel pairs ordered\n * along the main axis (x for a normal chart, y for an inverted one). The line\n * is interpolated between the two samples bracketing the cursor, which is what\n * makes this work for series sampled at *different* x: with irregular data a\n * series usually has no sample exactly at the hovered position, and comparing\n * only exact samples hands the emphasis to whichever series happens to own\n * that slot. Past either end of the series the distance is measured to its\n * endpoint, so a line that has already finished reads as far away.\n */\nexport function distanceToLine(\n points: readonly (readonly [number, number])[],\n cursorMain: number,\n cursorValue: number,\n): number {\n const n = points.length;\n if (!n) return Infinity;\n const first = points[0];\n const last = points[n - 1];\n if (cursorMain <= first[0]) return Math.hypot(first[0] - cursorMain, first[1] - cursorValue);\n if (cursorMain >= last[0]) return Math.hypot(last[0] - cursorMain, last[1] - cursorValue);\n let lo = 0;\n let hi = n - 1;\n while (hi - lo > 1) {\n const mid = (lo + hi) >> 1;\n if (points[mid][0] <= cursorMain) lo = mid;\n else hi = mid;\n }\n const [aMain, aValue] = points[lo];\n const [bMain, bValue] = points[hi];\n const t = bMain === aMain ? 0 : (cursorMain - aMain) / (bMain - aMain);\n return Math.abs(aValue + (bValue - aValue) * t - cursorValue);\n}\n\n/**\n * Which series the hover should emphasise, given each candidate's distance to\n * the cursor and the one currently held (`-1` for none).\n *\n * Plain \"nearest wins\" flickers: between two lines a few pixels apart the\n * winner flips on every pointer move, and because the emphasis is already\n * fully faded in, each flip swaps vivid and dimmed instantly. Holding the\n * current series until a rival is clearly nearer turns the midpoint into a\n * deadband. A held series that isn't a candidate any more (it was hidden, or\n * the pointer left the plot) has no distance, so the focus moves on.\n */\nexport function pickFocusSeries(\n candidates: readonly { seriesIndex: number; distance: number }[],\n held: number,\n stick: number = FOCUS_STICK,\n): number {\n let best = -1;\n let bestD = Infinity;\n let heldD = Infinity;\n for (const c of candidates) {\n if (c.seriesIndex === held) heldD = c.distance;\n if (c.distance < bestD) {\n bestD = c.distance;\n best = c.seriesIndex;\n }\n }\n if (held >= 0 && bestD > heldD - stick) return held;\n return best;\n}\n\n/**\n * How long (ms) a rival has to stay the nearest before the emphasis moves to\n * it. The px deadband alone can't settle two lines running close together: a\n * hand held roughly still while the lines wander across the cursor makes the\n * nearest genuinely alternate, by the full gap each time. Requiring the rival\n * to *stay* nearest ignores that alternation while still following a\n * deliberate move onto the other line within a frame or three.\n */\nexport const FOCUS_DWELL_MS = 140;\n\n/**\n * Chooses the emphasised series over time: {@link pickFocusSeries} for the\n * geometry, plus a dwell so a contested choice has to settle before it moves.\n *\n * Owns the held series, so the engine just feeds it distances and a clock.\n */\nexport class HoverFocus {\n private held = -1;\n private candidate = -1;\n private since = 0;\n\n constructor(\n private readonly stick: number = FOCUS_STICK,\n private readonly dwellMs: number = FOCUS_DWELL_MS,\n ) {}\n\n /** The series to emphasise now, given each one's distance to the cursor. */\n pick(candidates: readonly { seriesIndex: number; distance: number }[], now: number): number {\n const wanted = pickFocusSeries(candidates, this.held, this.stick);\n if (wanted !== this.candidate) {\n this.candidate = wanted;\n this.since = now;\n }\n // Nothing focused yet (first hover, or after the pointer left): adopt\n // immediately, so arriving on a line reads as instant.\n if (this.held < 0) {\n this.held = wanted;\n } else if (wanted !== this.held && now - this.since >= this.dwellMs) {\n this.held = wanted;\n }\n return this.held;\n }\n\n /** Pointer left the plot, or the scene changed — drop the held series. */\n reset(): void {\n this.held = -1;\n this.candidate = -1;\n this.since = 0;\n }\n}\n\n/**\n * The scene with every series except `focusIndex` dimmed by progress `t`\n * (0 = no dimming, 1 = fully faded). Glyph markers and chrome are untouched.\n * Series without an index are treated as focused (never dimmed).\n */\nexport function emphasizeScene(scene: RenderScene, focusIndex: number, t: number): RenderScene {\n if (focusIndex < 0 || t <= 0) return scene;\n const factor = 1 - (1 - DIM) * Math.min(1, t);\n const dim = (si: number | undefined): boolean => si != null && si !== focusIndex;\n return {\n ...scene,\n lines: scene.lines.map((l) => (dim(l.seriesIndex) ? { ...l, color: withAlpha(l.color, factor) } : l)),\n areas: scene.areas.map((a) =>\n dim(a.seriesIndex) ? { ...a, colorTop: withAlpha(a.colorTop, factor), colorBottom: withAlpha(a.colorBottom, factor) } : a,\n ),\n markers: scene.markers.map((m) => (dim(m.seriesIndex) ? { ...m, color: withAlpha(m.color, factor) } : m)),\n };\n}\n","/*\n * Chart engine — click hit-testing\n * ===========================================================\n * Turns a pointer position over a rendered scene into the most\n * specific thing under it: a data mark, a series line, a filled\n * area, or the plot background (an \"axis\" click). Pure functions\n * over the RenderScene, so the precedence rule is unit-testable\n * without a canvas — the engine only maps the result onto its\n * callbacks.\n * ===========================================================\n */\n\nimport { distanceToLine } from './emphasis';\nimport type { Pt } from './geometry';\nimport { ascending } from './rtl';\nimport type { RenderScene, Rect, SceneArea } from './scene';\n\n/**\n * Max cursor→point distance (px) for a click to count as a mark click.\n * Deliberately generous: a mark is the thing consumers most want to catch, and\n * at this radius a click anywhere in a fingertip-sized region around the point\n * still lands on it.\n */\nexport const MARK_HIT_RADIUS = 26;\n\n/**\n * Max cursor→line distance (px) for a click to count as a line click.\n *\n * The stroke is 2.5px wide (±1.25px from the centreline), so this leaves ~6.75px\n * of pointer slop on either side — comfortable for an imprecise mouse without\n * reaching so far into the fill below that \"clicked the area just under the\n * line\" gets stolen by the line. It also absorbs the small error in\n * {@link distanceToLine}, which measures against the straight segment between\n * two samples while a `smooth` curve bows a little away from it.\n */\nexport const LINE_HIT_TOLERANCE = 8;\n\n/** What sits under the pointer, most specific first. */\nexport type SceneHit =\n | { kind: 'mark'; seriesIndex: number; dataIndex: number }\n | { kind: 'line'; seriesIndex: number; dataIndex: number }\n | { kind: 'area'; seriesIndex: number; dataIndex: number }\n | { kind: 'axis'; dataIndex: number }\n | null;\n\n/** One visible series' value at an x index — the rows the tooltip lists. */\nexport interface AxisSeriesValue {\n seriesIndex: number;\n label: string;\n /** Raw value there, or `null` when this series has no point at that x. */\n value: number | null;\n}\n\n/** Index of the xPosition nearest to `px` (or -1 if none). */\nexport function nearestIndex(positions: number[], px: number): number {\n if (!positions.length) return -1;\n let best = 0;\n let bestD = Infinity;\n for (let i = 0; i < positions.length; i++) {\n const d = Math.abs(positions[i] - px);\n if (d < bestD) {\n bestD = d;\n best = i;\n }\n }\n return best;\n}\n\n/**\n * Each visible series' samples as `[main, value]` pixel pairs ordered along the\n * main axis (x for a normal chart, y for an inverted one) — the input\n * {@link distanceToLine} expects. (Integer-keyed records enumerate in ascending\n * numeric order, so `byIndex` is already in main-axis order.)\n */\nexport function seriesSampleLines(scene: RenderScene): [number, number][][] {\n const inverted = !!scene.inverted;\n return scene.hoverPoints.map((hp) =>\n // `ascending`: an RTL scene is mirrored, so its samples descend in x — the\n // distance search bisects on that axis and needs them the other way round.\n ascending(\n Object.keys(hp.byIndex).map((k): [number, number] => {\n const p = hp.byIndex[Number(k)];\n return inverted ? [p.y, p.x] : [p.x, p.y];\n }),\n ),\n );\n}\n\n/** Every visible series' value at `index` — what an axis click reports. */\nexport function axisSeriesValues(scene: RenderScene, index: number): AxisSeriesValue[] {\n return scene.hoverPoints.map((hp) => ({\n seriesIndex: hp.seriesIndex,\n label: hp.label,\n value: hp.byIndex[index]?.value ?? null,\n }));\n}\n\n/** Is (px, py) inside the plot rect (i.e. not in the title / legend / gutters)? */\nexport function insidePlot(plot: Rect, px: number, py: number): boolean {\n return px >= plot.x && px <= plot.x + plot.width && py >= plot.y && py <= plot.y + plot.height;\n}\n\n/**\n * The polyline's y at `x`, linearly interpolated between the samples bracketing\n * it, or `null` when `x` is outside its span. Assumes points ascend in x, which\n * every drawn series polyline does.\n */\nfunction polylineY(input: readonly Pt[], x: number): number | null {\n const n = input.length;\n if (!n) return null;\n // A mirrored (RTL) area runs right-to-left; bisecting needs ascending x.\n const points = n > 1 && input[0].x > input[n - 1].x ? [...input].reverse() : input;\n if (x < points[0].x || x > points[n - 1].x) return null;\n if (n === 1) return points[0].y;\n let lo = 0;\n let hi = n - 1;\n while (hi - lo > 1) {\n const mid = (lo + hi) >> 1;\n if (points[mid].x <= x) lo = mid;\n else hi = mid;\n }\n const a = points[lo];\n const b = points[hi];\n return b.x === a.x ? a.y : a.y + ((b.y - a.y) * (x - a.x)) / (b.x - a.x);\n}\n\n/**\n * Is (px, py) inside this filled area — between its top edge and its base?\n *\n * A stacked layer fills only its own band, so its `basePoints` (not the global\n * baseline) are the bottom edge; an unstacked area fills down to `baselineY`.\n * `min`/`max` rather than `<`/`>` because a negative series fills *upward* to\n * the zero line.\n */\nfunction areaContains(area: SceneArea, px: number, py: number): boolean {\n const top = polylineY(area.points, px);\n if (top == null) return false;\n const base = (area.basePoints ? polylineY(area.basePoints, px) : null) ?? area.baselineY;\n return py >= Math.min(top, base) && py <= Math.max(top, base);\n}\n\n/**\n * Which series' filled band contains (px, py), or -1.\n *\n * This is what the eye reads on an area chart: the cursor sits INSIDE a band,\n * so the band it is in owns it — not whichever series' drawn line happens to\n * pass nearest, which on a thick stacked band is usually a different series\n * altogether. Where unstacked areas overlap and several contain the cursor,\n * the one whose own top edge is nearest wins.\n */\nexport function areaSeriesAt(scene: RenderScene, px: number, py: number): number {\n if (!insidePlot(scene.plot, px, py)) return -1;\n let best = -1;\n let bestD = Infinity;\n for (const a of scene.areas) {\n if (a.seriesIndex == null || !areaContains(a, px, py)) continue;\n const top = polylineY(a.points, px);\n const d = top == null ? Infinity : Math.abs(py - top);\n if (d < bestD) {\n bestD = d;\n best = a.seriesIndex;\n }\n }\n return best;\n}\n\n/**\n * What a click at (px, py) — canvas-relative pixels — landed on.\n *\n * Most specific first: a data **mark**, else a series **line**, else a filled\n * **area**, else the plot background (**axis**). So a click on a mark never\n * also reads as a click on that series' line, and one on the line never reads\n * as its area.\n *\n * Only the mark test reaches outside the plot rect (it always has: a click just\n * past the axis still counts as the point it is nearest). Line / area / axis\n * are plot-only, since the geometry is clipped to the plot and a click in the\n * title, legend or an axis gutter is not a click on the chart background.\n *\n * `lines` is {@link seriesSampleLines}, passed in so the engine can reuse its\n * per-scene cache.\n */\nexport function hitTestScene(\n scene: RenderScene,\n px: number,\n py: number,\n lines: [number, number][][] = seriesSampleLines(scene),\n): SceneHit {\n const inverted = !!scene.inverted;\n const cursorMain = inverted ? py : px;\n const cursorValue = inverted ? px : py;\n const dataIndex = nearestIndex(scene.xPositions, cursorMain);\n if (dataIndex < 0) return null;\n\n // ── 1. a data mark: the series whose point at this x is nearest (2D) ──\n let markSeries = -1;\n let markD = Infinity;\n for (const hp of scene.hoverPoints) {\n const p = hp.byIndex[dataIndex];\n if (!p) continue;\n const d = Math.hypot(p.x - px, p.y - py);\n if (d < markD) {\n markD = d;\n markSeries = hp.seriesIndex;\n }\n }\n if (markSeries >= 0 && markD <= MARK_HIT_RADIUS) return { kind: 'mark', seriesIndex: markSeries, dataIndex };\n\n if (!insidePlot(scene.plot, px, py)) return null;\n\n // ── 2. a series line: distance to the DRAWN line, not to the sample at this\n // x (series can be measured at different x and have no sample here) ──\n let lineSeries = -1;\n let lineD = Infinity;\n scene.hoverPoints.forEach((hp, i) => {\n const d = distanceToLine(lines[i] ?? [], cursorMain, cursorValue);\n if (d < lineD) {\n lineD = d;\n lineSeries = hp.seriesIndex;\n }\n });\n if (lineSeries >= 0 && lineD <= LINE_HIT_TOLERANCE) return { kind: 'line', seriesIndex: lineSeries, dataIndex };\n\n // ── 3. a filled area (only when the chart draws them). Where unstacked areas\n // overlap, the one whose own line is nearest above/below wins — that is\n // the band the click reads as being \"under\". ──\n let areaSeries = -1;\n let areaD = Infinity;\n for (const a of scene.areas) {\n if (a.seriesIndex == null || !areaContains(a, px, py)) continue;\n const d = Math.abs(py - (polylineY(a.points, px) as number));\n if (d < areaD) {\n areaD = d;\n areaSeries = a.seriesIndex;\n }\n }\n if (areaSeries >= 0) return { kind: 'area', seriesIndex: areaSeries, dataIndex };\n\n // ── 4. plot background ──\n return { kind: 'axis', dataIndex };\n}\n"],"mappings":"2CAeA,MAAMA,EAAM,IAEL,MAAMC,EAAc,IAQpB,MAAMC,EAAc,E,SAcXC,EACdC,EACAC,EACAC,GAEA,MAAMC,EAAIH,EAAOI,OACjB,IAAKD,EAAG,OAAOE,SACf,MAAMC,EAAQN,EAAO,GACrB,MAAMO,EAAOP,EAAOG,EAAI,GACxB,GAAIF,GAAcK,EAAM,GAAI,OAAOE,KAAKC,MAAMH,EAAM,GAAKL,EAAYK,EAAM,GAAKJ,GAChF,GAAID,GAAcM,EAAK,GAAI,OAAOC,KAAKC,MAAMF,EAAK,GAAKN,EAAYM,EAAK,GAAKL,GAC7E,IAAIQ,EAAK,EACT,IAAIC,EAAKR,EAAI,EACb,MAAOQ,EAAKD,EAAK,EAAG,CAClB,MAAME,EAAOF,EAAKC,GAAO,EACzB,GAAIX,EAAOY,GAAK,IAAMX,EAAYS,EAAKE,OAClCD,EAAKC,C,CAEZ,MAAOC,EAAOC,GAAUd,EAAOU,GAC/B,MAAOK,EAAOC,GAAUhB,EAAOW,GAC/B,MAAMM,EAAIF,IAAUF,EAAQ,GAAKZ,EAAaY,IAAUE,EAAQF,GAChE,OAAOL,KAAKU,IAAIJ,GAAUE,EAASF,GAAUG,EAAIf,EACnD,CAaM,SAAUiB,EACdC,EACAC,EACAC,EAAgB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AM,OAAQ7E,YAAa8E,EAAYL,aAKpG,IAAIQ,GAAa,EACjB,IAAIC,EAAQxG,SACZ,IAAK,MAAMgD,KAAKZ,EAAMW,MAAO,CAC3B,GAAIC,EAAE1B,aAAe,OAASgE,EAAatC,EAAGS,EAAIsB,GAAK,SACvD,MAAMpB,EAAIxD,KAAKU,IAAIkE,EAAMG,EAAUlC,EAAErD,OAAQ8D,IAC7C,GAAIE,EAAI6C,EAAO,CACbA,EAAQ7C,EACR4C,EAAavD,EAAE1B,W,EAGnB,GAAIiF,GAAc,EAAG,MAAO,CAAEJ,KAAM,OAAQ7E,YAAaiF,EAAYR,aAGrE,MAAO,CAAEI,KAAM,OAAQJ,YACzB,Q","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as t,H as s,h as e,d as i,t as n}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as t,H as s,h as e,d as i,t as n}from"./p-bSpXNc5J.js";const r=()=>`:host{display:contents;border-radius:inherit;--_color:var(--md-ripple-color, currentColor)}.md-ripple{position:absolute;inset:0;border-radius:inherit;overflow:hidden;pointer-events:none}.md-ripple__wave{position:absolute;border-radius:50%;pointer-events:none;background:var(--_color);opacity:0;transform:scale(0);will-change:transform, opacity}.md-ripple{opacity:var(--md-sys-ripple-enabled, 1)}`;const o=450;const h=150;const c=.12;const a="cubic-bezier(0.2, 0, 0, 1)";const l="--md-ripple-grow-duration";const p="--md-ripple-grow-easing";const d=t(class t extends s{constructor(t){super();if(t!==false){this.__registerHost()}this.__attachShadow();this.disabled=false;this.hostEl=null;this.activeWave=null;this.growAnimation=null;this.activeOpacity=c;this.bound=false;this.settlePromise=null;this.settleResolve=null;this.onPointerDown=t=>{if(this.disabled||this.rippleSuppressed())return;const s=this.el.shadowRoot?.querySelector(".md-ripple");if(!s||!this.hostEl)return;this.endWave();const e=this.hostEl.getBoundingClientRect();const i=this.resolveExtent("--md-ripple-extend-inline");const n=this.resolveExtent("--md-ripple-extend-block");const r=e.left-i;const o=e.right+i;const h=e.top-n;const c=e.bottom+n;const a=Math.max(Math.abs(t.clientX-r),Math.abs(t.clientX-o));const l=Math.max(Math.abs(t.clientY-h),Math.abs(t.clientY-c));const p=Math.sqrt(a*a+l*l);const d=p*2;const u=t.clientX-e.left-p;const f=t.clientY-e.top-p;const m=document.createElement("span");m.classList.add("md-ripple__wave");m.style.width=m.style.height=`${d}px`;m.style.left=`${u}px`;m.style.top=`${f}px`;s.appendChild(m);this.activeWave=m;this.activeOpacity=this.resolveOpacity();this.beginSettle();this.growAnimation=m.animate([{transform:"scale(0)",opacity:this.activeOpacity},{transform:"scale(1)",opacity:this.activeOpacity}],{duration:this.resolveGrowDuration(),easing:this.resolveGrowEasing(),fill:"forwards"});window.addEventListener("pointerup",this.onRelease,{once:true});window.addEventListener("pointercancel",this.onRelease,{once:true})};this.onRelease=()=>{this.endWave()}}rippleSuppressed(){if(typeof getComputedStyle!=="function")return false;try{return getComputedStyle(this.el).getPropertyValue("--md-sys-ripple-enabled").trim()==="0"}catch{return false}}resolveOpacity(){if(!this.hostEl)return c;const t=getComputedStyle(this.hostEl).getPropertyValue("--md-ripple-opacity").trim();if(!t)return c;const s=parseFloat(t);return Number.isFinite(s)?s:c}resolveExtent(t){const s=getComputedStyle(this.el).getPropertyValue(t).trim();if(!s)return 0;const e=parseFloat(s);return Number.isFinite(e)&&e>0?e:0}resolveGrowDuration(){const t=getComputedStyle(this.el).getPropertyValue(l).trim();if(!t)return o;const s=parseFloat(t);return Number.isFinite(s)&&s>0?s:o}resolveGrowEasing(){const t=getComputedStyle(this.el).getPropertyValue(p).trim();return t||a}beginSettle(){this.finishSettle();this.settlePromise=new Promise((t=>{this.settleResolve=t}))}finishSettle(){this.settleResolve?.();this.settleResolve=null;this.settlePromise=null}async whenSettled(){if(!this.settlePromise)return;const t=new Promise((t=>{setTimeout(t,h+50)}));await Promise.race([this.settlePromise,t]);this.finishSettle()}resolveHost(){const t=this.el.getRootNode();return this.el.parentElement??(t instanceof ShadowRoot?t.host:null)}bind(){if(this.bound)return;this.hostEl=this.resolveHost();if(!this.hostEl)return;this.bound=true;this.hostEl.addEventListener("pointerdown",this.onPointerDown)}connectedCallback(){this.bind();if(!this.bound){queueMicrotask((()=>this.bind()))}}disconnectedCallback(){this.hostEl?.removeEventListener("pointerdown",this.onPointerDown);this.hostEl=null;this.bound=false}async endWave(){const t=this.activeWave;const s=this.growAnimation;if(!t||!s)return;this.activeWave=null;this.growAnimation=null;if(s.playState!=="finished"){await s.finished}const e=t.animate([{opacity:this.activeOpacity},{opacity:0}],{duration:h,easing:a,fill:"forwards"});try{if(typeof e.finished?.then==="function"){await e.finished}else{await new Promise((t=>setTimeout(t,h)))}}catch{}t.remove();this.finishSettle()}async trigger(){if(this.disabled||this.rippleSuppressed())return;if(!this.hostEl)this.hostEl=this.resolveHost();const t=this.el.shadowRoot?.querySelector(".md-ripple");if(!t||!this.hostEl)return;this.endWave();const s=this.hostEl.getBoundingClientRect();const e=this.resolveExtent("--md-ripple-extend-inline");const i=this.resolveExtent("--md-ripple-extend-block");const n=s.width/2;const r=s.height/2;const o=n+e;const h=r+i;const c=Math.sqrt(o*o+h*h);const a=c*2;const l=document.createElement("span");l.classList.add("md-ripple__wave");l.style.width=l.style.height=`${a}px`;l.style.left=`${n-c}px`;l.style.top=`${r-c}px`;t.appendChild(l);this.activeWave=l;this.activeOpacity=this.resolveOpacity();this.beginSettle();this.growAnimation=l.animate([{transform:"scale(0)",opacity:this.activeOpacity},{transform:"scale(1)",opacity:this.activeOpacity}],{duration:this.resolveGrowDuration(),easing:this.resolveGrowEasing(),fill:"forwards"});this.growAnimation.addEventListener("finish",(()=>this.endWave()),{once:true})}render(){return e(i,{key:"db104269176da1fe8c379500716b44c7d6575407","aria-hidden":"true"},e("div",{key:"94d23e0d1697a050e49ae66e8e8c022b20f108bd",class:"md-ripple"}))}get el(){return this}static get style(){return r()}},[1,"md-ripple",{disabled:[4],whenSettled:[64],trigger:[64]}]);function u(){if(typeof customElements==="undefined"){return}const t=["md-ripple"];t.forEach((t=>{switch(t){case"md-ripple":if(!customElements.get(n(t))){customElements.define(n(t),d)}break}}))}u();export{d as M,u as d};
|
|
2
|
+
//# sourceMappingURL=p-Hm3X1iai.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as t,H as o,c as n,h as i,d as e,t as s}from"./p-MWBNn6Lj.js";import{t as r}from"./p-DYBUr7K_.js";import{s as a,a as c}from"./p-BdEoSBtL.js";import{d}from"./p-stybaFzj.js";const m=()=>`:host{--_container-color:var(--md-icon-button-container-color, transparent);--_icon-color:var(--md-icon-button-icon-color, var(--md-sys-color-on-surface-variant, #49454F));--_state-layer-color:var(--md-icon-button-state-layer-color, var(--md-sys-color-on-surface-variant, #49454F));--_icon-size:var(--md-icon-button-icon-size, max(18px, calc(24px + var(--md-sys-density-scale, 0) * 1px)));--_container-width:var(--md-icon-button-container-width, max(32px, calc(40px + var(--md-sys-density-scale, 0) * 4px)));--_container-height:var(--md-icon-button-container-height, max(32px, calc(40px + var(--md-sys-density-scale, 0) * 4px)));--_shape-round:20px;--_border-radius:var(--md-icon-button-container-shape, var(--_shape-round));display:inline-flex;align-items:center;justify-content:center;position:relative;width:var(--_container-width);height:var(--_container-height);border-radius:calc(var(--_border-radius) + var(--md-sys-shape-morph-enabled, 1) * (var(--_morph-to, var(--_border-radius)) - var(--_border-radius)));cursor:pointer;user-select:none;border:none;outline:none;overflow:hidden;box-sizing:border-box;background-color:var(--_container-color);color:var(--_icon-color);-webkit-tap-highlight-color:transparent;transition:background-color var(--md-sys-motion-duration-short2, 100ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1)), color var(--md-sys-motion-duration-short2, 100ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1)), border-radius var(--md-sys-motion-duration-medium4, 400ms) var(--md-sys-motion-easing-emphasized-decelerate, cubic-bezier(0.05, 0.7, 0.1, 1));flex-shrink:0;vertical-align:middle}:host(.md-icon-button--xs){--_container-width:var(--md-icon-button-container-width, max(32px, calc(32px + var(--md-sys-density-scale, 0) * 4px)));--_container-height:var(--md-icon-button-container-height, max(32px, calc(32px + var(--md-sys-density-scale, 0) * 4px)));--_icon-size:var(--md-icon-button-icon-size, max(16px, calc(20px + var(--md-sys-density-scale, 0) * 1px)));--_shape-round:16px}:host(.md-icon-button--sm){--_container-width:var(--md-icon-button-container-width, max(32px, calc(40px + var(--md-sys-density-scale, 0) * 4px)));--_container-height:var(--md-icon-button-container-height, max(32px, calc(40px + var(--md-sys-density-scale, 0) * 4px)));--_icon-size:var(--md-icon-button-icon-size, max(18px, calc(24px + var(--md-sys-density-scale, 0) * 1px)));--_shape-round:20px}:host(.md-icon-button--md){--_container-width:var(--md-icon-button-container-width, max(32px, calc(56px + var(--md-sys-density-scale, 0) * 4px)));--_container-height:var(--md-icon-button-container-height, max(32px, calc(56px + var(--md-sys-density-scale, 0) * 4px)));--_icon-size:var(--md-icon-button-icon-size, max(18px, calc(24px + var(--md-sys-density-scale, 0) * 1px)));--_shape-round:28px}:host(.md-icon-button--lg){--_container-width:var(--md-icon-button-container-width, max(32px, calc(96px + var(--md-sys-density-scale, 0) * 4px)));--_container-height:var(--md-icon-button-container-height, max(32px, calc(96px + var(--md-sys-density-scale, 0) * 4px)));--_icon-size:var(--md-icon-button-icon-size, max(24px, calc(32px + var(--md-sys-density-scale, 0) * 2px)));--_shape-round:48px}:host(.md-icon-button--xl){--_container-width:var(--md-icon-button-container-width, max(32px, calc(136px + var(--md-sys-density-scale, 0) * 4px)));--_container-height:var(--md-icon-button-container-height, max(32px, calc(136px + var(--md-sys-density-scale, 0) * 4px)));--_icon-size:var(--md-icon-button-icon-size, max(28px, calc(40px + var(--md-sys-density-scale, 0) * 3px)));--_shape-round:68px}:host(.md-icon-button--width-narrow.md-icon-button--xs){--_container-width:var(--md-icon-button-container-width, max(32px, calc(28px + var(--md-sys-density-scale, 0) * 4px)))}:host(.md-icon-button--width-narrow.md-icon-button--sm){--_container-width:var(--md-icon-button-container-width, max(32px, calc(32px + var(--md-sys-density-scale, 0) * 4px)))}:host(.md-icon-button--width-narrow.md-icon-button--md){--_container-width:var(--md-icon-button-container-width, max(32px, calc(48px + var(--md-sys-density-scale, 0) * 4px)))}:host(.md-icon-button--width-narrow.md-icon-button--lg){--_container-width:var(--md-icon-button-container-width, max(32px, calc(64px + var(--md-sys-density-scale, 0) * 4px)))}:host(.md-icon-button--width-narrow.md-icon-button--xl){--_container-width:var(--md-icon-button-container-width, max(32px, calc(104px + var(--md-sys-density-scale, 0) * 4px)))}:host(.md-icon-button--width-wide.md-icon-button--xs){--_container-width:var(--md-icon-button-container-width, max(32px, calc(40px + var(--md-sys-density-scale, 0) * 4px)))}:host(.md-icon-button--width-wide.md-icon-button--sm){--_container-width:var(--md-icon-button-container-width, max(32px, calc(52px + var(--md-sys-density-scale, 0) * 4px)))}:host(.md-icon-button--width-wide.md-icon-button--md){--_container-width:var(--md-icon-button-container-width, max(32px, calc(72px + var(--md-sys-density-scale, 0) * 4px)))}:host(.md-icon-button--width-wide.md-icon-button--lg){--_container-width:var(--md-icon-button-container-width, max(32px, calc(128px + var(--md-sys-density-scale, 0) * 4px)))}:host(.md-icon-button--width-wide.md-icon-button--xl){--_container-width:var(--md-icon-button-container-width, max(32px, calc(184px + var(--md-sys-density-scale, 0) * 4px)))}:host(.md-icon-button--round){--_border-radius:var(--md-icon-button-container-shape, var(--_shape-round))}:host(.md-icon-button--square.md-icon-button--xs){--_border-radius:var(--md-icon-button-container-shape, var(--md-sys-shape-corner-medium, 12px))}:host(.md-icon-button--square.md-icon-button--sm){--_border-radius:var(--md-icon-button-container-shape, var(--md-sys-shape-corner-medium, 12px))}:host(.md-icon-button--square.md-icon-button--md){--_border-radius:var(--md-icon-button-container-shape, var(--md-sys-shape-corner-large, 16px))}:host(.md-icon-button--square.md-icon-button--lg){--_border-radius:var(--md-icon-button-container-shape, var(--md-sys-shape-corner-extra-large, 28px))}:host(.md-icon-button--square.md-icon-button--xl){--_border-radius:var(--md-icon-button-container-shape, var(--md-sys-shape-corner-extra-large, 28px))}:host(.md-icon-button--shape-morph.md-icon-button--round.md-icon-button--selected.md-icon-button--xs){--_morph-to:var(--md-sys-shape-corner-medium, 12px)}:host(.md-icon-button--shape-morph.md-icon-button--round.md-icon-button--selected.md-icon-button--sm){--_morph-to:var(--md-sys-shape-corner-medium, 12px)}:host(.md-icon-button--shape-morph.md-icon-button--round.md-icon-button--selected.md-icon-button--md){--_morph-to:var(--md-sys-shape-corner-large, 16px)}:host(.md-icon-button--shape-morph.md-icon-button--round.md-icon-button--selected.md-icon-button--lg){--_morph-to:var(--md-sys-shape-corner-extra-large, 28px)}:host(.md-icon-button--shape-morph.md-icon-button--round.md-icon-button--selected.md-icon-button--xl){--_morph-to:var(--md-sys-shape-corner-extra-large, 28px)}:host(.md-icon-button--shape-morph.md-icon-button--square.md-icon-button--selected){--_morph-to:var(--_shape-round)}:host(.md-icon-button--pressed.md-icon-button--xs){--_morph-to:var(--md-sys-shape-corner-small, 8px);transition-duration:var(--md-sys-motion-duration-short4, 200ms);transition-timing-function:var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1))}:host(.md-icon-button--pressed.md-icon-button--sm){--_morph-to:var(--md-sys-shape-corner-small, 8px);transition-duration:var(--md-sys-motion-duration-short4, 200ms);transition-timing-function:var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1))}:host(.md-icon-button--pressed.md-icon-button--md){--_morph-to:var(--md-sys-shape-corner-medium, 12px);transition-duration:var(--md-sys-motion-duration-short4, 200ms);transition-timing-function:var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1))}:host(.md-icon-button--pressed.md-icon-button--lg){--_morph-to:var(--md-sys-shape-corner-large, 16px);transition-duration:var(--md-sys-motion-duration-short4, 200ms);transition-timing-function:var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1))}:host(.md-icon-button--pressed.md-icon-button--xl){--_morph-to:var(--md-sys-shape-corner-large, 16px);transition-duration:var(--md-sys-motion-duration-short4, 200ms);transition-timing-function:var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1))}:host(.md-icon-button--width-narrow.md-icon-button--pressed){transition-duration:var(--md-sys-motion-duration-medium1, 250ms)}:host(.md-icon-button--connected-left.md-icon-button--xs),:host(.md-icon-button--connected-right.md-icon-button--xs){--_c-inner:4px}:host(.md-icon-button--connected-left.md-icon-button--sm),:host(.md-icon-button--connected-right.md-icon-button--sm){--_c-inner:8px}:host(.md-icon-button--connected-left.md-icon-button--md),:host(.md-icon-button--connected-right.md-icon-button--md){--_c-inner:8px}:host(.md-icon-button--connected-left.md-icon-button--lg),:host(.md-icon-button--connected-right.md-icon-button--lg){--_c-inner:16px}:host(.md-icon-button--connected-left.md-icon-button--xl),:host(.md-icon-button--connected-right.md-icon-button--xl){--_c-inner:20px}:host(.md-icon-button--connected-left.md-icon-button--connected-right){border-radius:var(--_c-inner)}:host(.md-icon-button--round.md-icon-button--connected-right:not(.md-icon-button--connected-left)){border-start-start-radius:var(--_shape-round);border-end-start-radius:var(--_shape-round);border-start-end-radius:var(--_c-inner);border-end-end-radius:var(--_c-inner)}:host(.md-icon-button--round.md-icon-button--connected-left:not(.md-icon-button--connected-right)){border-start-start-radius:var(--_c-inner);border-end-start-radius:var(--_c-inner);border-start-end-radius:var(--_shape-round);border-end-end-radius:var(--_shape-round)}:host(.md-icon-button--square.md-icon-button--connected-right:not(.md-icon-button--connected-left)),:host(.md-icon-button--square.md-icon-button--connected-left:not(.md-icon-button--connected-right)){border-radius:var(--_c-inner)}:host(.md-icon-button--standard){--_container-color:var(--md-icon-button-container-color, transparent);--_icon-color:var(--md-icon-button-icon-color, var(--md-sys-color-on-surface-variant, #49454F));--_state-layer-color:var(--md-icon-button-state-layer-color, var(--md-sys-color-on-surface-variant, #49454F))}:host(.md-icon-button--standard.md-icon-button--selected:not(.md-icon-button--disabled)){--_icon-color:var(--md-icon-button-icon-color, var(--md-sys-color-primary, #6750A4));--_state-layer-color:var(--md-icon-button-state-layer-color, var(--md-sys-color-primary, #6750A4))}:host(.md-icon-button--filled){--_container-color:var(--md-icon-button-container-color, var(--md-sys-color-primary, #6750A4));--_icon-color:var(--md-icon-button-icon-color, var(--md-sys-color-on-primary, #FFFFFF));--_state-layer-color:var(--md-icon-button-state-layer-color, var(--md-sys-color-on-primary, #FFFFFF))}:host(.md-icon-button--filled.md-icon-button--toggle:not(.md-icon-button--selected):not(.md-icon-button--disabled)){--_container-color:var(--md-icon-button-container-color, var(--md-sys-color-surface-container-highest, #E6E0E9));--_icon-color:var(--md-icon-button-icon-color, var(--md-sys-color-primary, #6750A4));--_state-layer-color:var(--md-icon-button-state-layer-color, var(--md-sys-color-primary, #6750A4))}:host(.md-icon-button--filled.md-icon-button--selected:not(.md-icon-button--disabled)){--_container-color:var(--md-icon-button-container-color, var(--md-sys-color-primary, #6750A4));--_icon-color:var(--md-icon-button-icon-color, var(--md-sys-color-on-primary, #FFFFFF));--_state-layer-color:var(--md-icon-button-state-layer-color, var(--md-sys-color-on-primary, #FFFFFF))}:host(.md-icon-button--tonal){--_container-color:var(--md-icon-button-container-color, var(--md-sys-color-secondary-container, #E8DEF8));--_icon-color:var(--md-icon-button-icon-color, var(--md-sys-color-on-secondary-container, #1E192B));--_state-layer-color:var(--md-icon-button-state-layer-color, var(--md-sys-color-on-secondary-container, #1E192B))}:host(.md-icon-button--tonal.md-icon-button--toggle:not(.md-icon-button--selected):not(.md-icon-button--disabled)){--_container-color:var(--md-icon-button-container-color, var(--md-sys-color-surface-container-highest, #E6E0E9));--_icon-color:var(--md-icon-button-icon-color, var(--md-sys-color-on-surface-variant, #49454F));--_state-layer-color:var(--md-icon-button-state-layer-color, var(--md-sys-color-on-surface-variant, #49454F))}:host(.md-icon-button--tonal.md-icon-button--selected:not(.md-icon-button--disabled)){--_container-color:var(--md-icon-button-container-color, var(--md-sys-color-secondary-container, #E8DEF8));--_icon-color:var(--md-icon-button-icon-color, var(--md-sys-color-on-secondary-container, #1E192B));--_state-layer-color:var(--md-icon-button-state-layer-color, var(--md-sys-color-on-secondary-container, #1E192B))}:host(.md-icon-button--outlined){--_container-color:var(--md-icon-button-container-color, transparent);--_icon-color:var(--md-icon-button-icon-color, var(--md-sys-color-on-surface-variant, #49454F));--_state-layer-color:var(--md-icon-button-state-layer-color, var(--md-sys-color-on-surface-variant, #49454F));border:var(--md-icon-button-outline-width, 1px) solid var(--md-icon-button-outline-color, var(--md-sys-color-outline, #79747E))}:host(.md-icon-button--outlined.md-icon-button--selected:not(.md-icon-button--disabled)){--_container-color:var(--md-icon-button-container-color, var(--md-sys-color-inverse-surface, #313033));--_icon-color:var(--md-icon-button-icon-color, var(--md-sys-color-inverse-on-surface, #F4EFF4));--_state-layer-color:var(--md-icon-button-state-layer-color, var(--md-sys-color-inverse-on-surface, #F4EFF4));border-color:transparent}.md-icon-button__state-layer{position:absolute;inset:0;border-radius:inherit;background-color:var(--_state-layer-color);opacity:0;transition:opacity var(--md-sys-motion-duration-short2, 100ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1));pointer-events:none}:host(:hover) .md-icon-button__state-layer{opacity:var(--md-sys-state-hover-state-layer-opacity, 0.08)}:host(:active) .md-icon-button__state-layer{opacity:var(--md-sys-state-pressed-state-layer-opacity, 0.12)}:host(:focus-visible) .md-icon-button__state-layer{opacity:var(--md-sys-state-focus-state-layer-opacity, 0.12)}:host(:focus-visible){outline:3px solid var(--md-sys-color-secondary, #625B71);outline-offset:2px;z-index:1}:host(.md-icon-button--disabled){cursor:default;pointer-events:none}:host([soft-disabled]){cursor:default;pointer-events:auto}:host([soft-disabled]) .md-icon-button__state-layer{display:none}:host(.md-icon-button--standard.md-icon-button--disabled),:host(.md-icon-button--outlined.md-icon-button--disabled){--_icon-color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) calc(var(--md-sys-state-disabled-content-opacity, 0.38) * 100%), transparent)}:host(.md-icon-button--outlined.md-icon-button--disabled){border-color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) calc(var(--md-sys-state-disabled-container-opacity, 0.12) * 100%), transparent)}:host(.md-icon-button--filled.md-icon-button--disabled),:host(.md-icon-button--tonal.md-icon-button--disabled){--_container-color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) calc(var(--md-sys-state-disabled-container-opacity, 0.12) * 100%), transparent);--_icon-color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) calc(var(--md-sys-state-disabled-content-opacity, 0.38) * 100%), transparent)}:host(.md-icon-button--disabled:hover) .md-icon-button__state-layer,:host(.md-icon-button--disabled:active) .md-icon-button__state-layer,:host(.md-icon-button--disabled:focus-visible) .md-icon-button__state-layer{opacity:0}.md-icon-button__icon{display:none;align-items:center;justify-content:center;position:relative;z-index:1;color:inherit;width:var(--_icon-size);height:var(--_icon-size);font-size:0;line-height:0}.md-icon-button__icon slot{font-size:var(--_icon-size);line-height:1}.md-icon-button__icon--on{display:inline-flex}.md-icon-button__icon-font{font-size:var(--_icon-size);width:var(--_icon-size);height:var(--_icon-size);display:flex;align-items:center;justify-content:center;line-height:1}:host(.md-icon-button--has-badge){overflow:visible}:host(.md-icon-button--has-badge) .md-icon-button__state-layer{overflow:hidden}::slotted(*:not(md-badge):not(md-avatar)){width:var(--_icon-size) !important;height:var(--_icon-size) !important;font-size:var(--_icon-size) !important;color:inherit !important;fill:currentColor !important;display:inline-flex !important;align-items:center !important;justify-content:center !important;line-height:1 !important}.material-symbols-outlined{font-family:var(--md-sys-icon-font-family, 'Material Symbols Outlined', 'Material Icons');font-weight:normal;font-style:normal;font-size:var(--_icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;overflow-wrap:normal;direction:ltr;font-feature-settings:'liga';-webkit-font-smoothing:antialiased}@media (forced-colors: active){:host{forced-color-adjust:none}:host(.md-icon-button--outlined){border-color:ButtonText}}:host([density='-1']){--md-sys-density-scale:-1}:host([density='-2']){--md-sys-density-scale:-2}:host([density='-3']){--md-sys-density-scale:-3}:host([density='-4']){--md-sys-density-scale:-4}`;const l=t(class t extends o{constructor(t){super();if(t!==false){this.__registerHost()}this.__attachShadow();this.mdClick=n(this,"mdClick",7);this.variant="standard";this.size="sm";this.shape="round";this.buttonWidth="default";this.disabled=false;this.softDisabled=false;this.toggle=false;this.selected=false;this.shapeMorph=true;this.ripple=true;this.icon="";this.selectedIcon="";this.href="";this.target="_self";this.connectedLeft=false;this.connectedRight=false;this.value="";this.groupTabindex=null;this.density=0;this.hasSlottedIcon=false;this.hasSlottedBadge=false;this.hasSlottedSelected=false;this.pressed=false;this.handleClick=t=>{if(this.isDisabled){t.preventDefault();return}const o=a(this.href);if(o){window.open(o,this.target,c)}if(this.toggle)this.selected=!this.selected;this.mdClick.emit({selected:this.selected})};this.handleKeyDown=t=>{if(t.key==="Enter"||t.key===" "){t.preventDefault();if(!this.isDisabled){this.pressed=true;r(this.el);this.el.click();setTimeout((()=>{this.pressed=false}),150)}}};this.handlePointerDown=()=>{if(!this.isDisabled)this.pressed=true};this.handlePointerUp=()=>{this.pressed=false}}get isDisabled(){return this.disabled||this.softDisabled}componentWillLoad(){this.syncSlottedIcons()}componentDidLoad(){const t=this.el.shadowRoot;if(!t)return;const o=t.querySelector("slot:not([name])");const n=t.querySelector('slot[name="selected"]');this.syncSlottedIcons();o?.addEventListener("slotchange",(()=>this.syncSlottedIcons()));n?.addEventListener("slotchange",(()=>this.syncSlottedIcons()))}hasMeaningfulSlotContent(t){if(!t)return false;return t.assignedNodes().some((t=>{if(t.nodeType===Node.ELEMENT_NODE){if(t.tagName.toLowerCase()==="md-badge")return false;return true}if(t.nodeType===Node.TEXT_NODE)return(t.textContent?.trim().length??0)>0;return false}))}syncSlottedIcons(){const t=this.el.shadowRoot;const o=t?.querySelector("slot:not([name])");const n=t?.querySelector('slot[name="selected"]');this.hasSlottedIcon=this.hasMeaningfulSlotContent(o);this.hasSlottedBadge=!!o?.assignedElements().some((t=>t.tagName.toLowerCase()==="md-badge"));this.hasSlottedSelected=this.hasMeaningfulSlotContent(n)}render(){const t=this.isDisabled;const o=this.toggle&&this.selected;const n=!!this.icon||this.hasSlottedIcon;const s=!o||!this.selectedIcon&&!this.hasSlottedSelected;return i(e,{key:"c8ba395e0f0eaa47019a6ec74ddb76135018d63a",class:{"md-icon-button":true,[`md-icon-button--${this.variant}`]:true,[`md-icon-button--${this.size}`]:true,[`md-icon-button--${this.shape}`]:true,[`md-icon-button--width-${this.buttonWidth}`]:this.buttonWidth!=="default","md-icon-button--selected":this.selected,"md-icon-button--toggle":this.toggle,"md-icon-button--disabled":this.disabled||this.softDisabled,"md-icon-button--shape-morph":this.shapeMorph,"md-icon-button--has-badge":this.hasSlottedBadge,"md-icon-button--pressed":this.shapeMorph&&this.pressed,"md-icon-button--connected-left":this.connectedLeft,"md-icon-button--connected-right":this.connectedRight},role:"button","aria-disabled":t?"true":"false","aria-pressed":this.toggle?String(this.selected):undefined,tabindex:this.disabled?"-1":this.groupTabindex!==null?String(this.groupTabindex):"0",onClick:this.handleClick,onKeyDown:this.handleKeyDown,onPointerDown:this.handlePointerDown,onPointerUp:this.handlePointerUp,onPointerLeave:this.handlePointerUp,onPointerCancel:this.handlePointerUp},this.ripple&&i("md-ripple",{key:"38a31f8be791e2441c128668d12cffc8d2883863",disabled:t}),i("span",{key:"3e36940f6038c69663ae28330827edb68158e78e",class:"md-icon-button__state-layer",part:"state-layer","aria-hidden":"true"}),i("span",{key:"ee34874988c22da61d85a98db6e2f636c43b1bdb",class:{"md-icon-button__icon":true,"md-icon-button__icon--on":s},part:"icon"},i("slot",{key:"25fe46290a2d8793c7f72ee623fafcfeaf01d015"}),s&&n&&!this.hasSlottedIcon&&i("span",{key:"9da0f58088f30f43b37d14f93f1f2406454f493d",class:"md-icon-button__icon-font material-symbols-outlined","aria-hidden":"true"},o&&this.selectedIcon?this.selectedIcon:this.icon)),this.toggle&&(this.selectedIcon||this.hasSlottedSelected)&&i("span",{key:"366c07e84c1aa12ca7259983518ecb6e6e909852",class:{"md-icon-button__icon":true,"md-icon-button__icon--on":o},part:"selected-icon"},i("slot",{key:"7b346adf89aca1c953618e2b2654df70ed2c2320",name:"selected"}),!this.hasSlottedSelected&&this.selectedIcon&&i("span",{key:"f61d47d93eb24d4e95a5704dfc14bf59f3a3f9e0",class:"md-icon-button__icon-font material-symbols-outlined","aria-hidden":"true"},this.selectedIcon)))}get el(){return this}static get style(){return m()}},[257,"md-icon-button",{variant:[1],size:[1],shape:[1],buttonWidth:[1,"button-width"],disabled:[516],softDisabled:[516,"soft-disabled"],toggle:[4],selected:[1028],shapeMorph:[4,"shape-morph"],ripple:[4],icon:[1],selectedIcon:[1,"selected-icon"],href:[1],target:[1],connectedLeft:[516,"connected-left"],connectedRight:[516,"connected-right"],value:[1],groupTabindex:[1026,"group-tabindex"],density:[514],hasSlottedIcon:[32],hasSlottedBadge:[32],hasSlottedSelected:[32],pressed:[32]}]);function u(){if(typeof customElements==="undefined"){return}const t=["md-icon-button","md-ripple"];t.forEach((t=>{switch(t){case"md-icon-button":if(!customElements.get(s(t))){customElements.define(s(t),l)}break;case"md-ripple":if(!customElements.get(s(t))){d()}break}}))}u();export{l as M,u as d};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as t,H as o,c as n,h as i,d as e,t as s}from"./p-bSpXNc5J.js";import{t as r}from"./p-DYBUr7K_.js";import{s as a,a as c}from"./p-BdEoSBtL.js";import{d}from"./p-Hm3X1iai.js";const m=()=>`:host{--_container-color:var(--md-icon-button-container-color, transparent);--_icon-color:var(--md-icon-button-icon-color, var(--md-sys-color-on-surface-variant, #49454F));--_state-layer-color:var(--md-icon-button-state-layer-color, var(--md-sys-color-on-surface-variant, #49454F));--_icon-size:var(--md-icon-button-icon-size, max(18px, calc(24px + var(--md-sys-density-scale, 0) * 1px)));--_container-width:var(--md-icon-button-container-width, max(32px, calc(40px + var(--md-sys-density-scale, 0) * 4px)));--_container-height:var(--md-icon-button-container-height, max(32px, calc(40px + var(--md-sys-density-scale, 0) * 4px)));--_shape-round:20px;--_border-radius:var(--md-icon-button-container-shape, var(--_shape-round));display:inline-flex;align-items:center;justify-content:center;position:relative;width:var(--_container-width);height:var(--_container-height);border-radius:calc(var(--_border-radius) + var(--md-sys-shape-morph-enabled, 1) * (var(--_morph-to, var(--_border-radius)) - var(--_border-radius)));cursor:pointer;user-select:none;border:none;outline:none;overflow:hidden;box-sizing:border-box;background-color:var(--_container-color);color:var(--_icon-color);-webkit-tap-highlight-color:transparent;transition:background-color var(--md-sys-motion-duration-short2, 100ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1)), color var(--md-sys-motion-duration-short2, 100ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1)), border-radius var(--md-sys-motion-duration-medium4, 400ms) var(--md-sys-motion-easing-emphasized-decelerate, cubic-bezier(0.05, 0.7, 0.1, 1));flex-shrink:0;vertical-align:middle}:host(.md-icon-button--xs){--_container-width:var(--md-icon-button-container-width, max(32px, calc(32px + var(--md-sys-density-scale, 0) * 4px)));--_container-height:var(--md-icon-button-container-height, max(32px, calc(32px + var(--md-sys-density-scale, 0) * 4px)));--_icon-size:var(--md-icon-button-icon-size, max(16px, calc(20px + var(--md-sys-density-scale, 0) * 1px)));--_shape-round:16px}:host(.md-icon-button--sm){--_container-width:var(--md-icon-button-container-width, max(32px, calc(40px + var(--md-sys-density-scale, 0) * 4px)));--_container-height:var(--md-icon-button-container-height, max(32px, calc(40px + var(--md-sys-density-scale, 0) * 4px)));--_icon-size:var(--md-icon-button-icon-size, max(18px, calc(24px + var(--md-sys-density-scale, 0) * 1px)));--_shape-round:20px}:host(.md-icon-button--md){--_container-width:var(--md-icon-button-container-width, max(32px, calc(56px + var(--md-sys-density-scale, 0) * 4px)));--_container-height:var(--md-icon-button-container-height, max(32px, calc(56px + var(--md-sys-density-scale, 0) * 4px)));--_icon-size:var(--md-icon-button-icon-size, max(18px, calc(24px + var(--md-sys-density-scale, 0) * 1px)));--_shape-round:28px}:host(.md-icon-button--lg){--_container-width:var(--md-icon-button-container-width, max(32px, calc(96px + var(--md-sys-density-scale, 0) * 4px)));--_container-height:var(--md-icon-button-container-height, max(32px, calc(96px + var(--md-sys-density-scale, 0) * 4px)));--_icon-size:var(--md-icon-button-icon-size, max(24px, calc(32px + var(--md-sys-density-scale, 0) * 2px)));--_shape-round:48px}:host(.md-icon-button--xl){--_container-width:var(--md-icon-button-container-width, max(32px, calc(136px + var(--md-sys-density-scale, 0) * 4px)));--_container-height:var(--md-icon-button-container-height, max(32px, calc(136px + var(--md-sys-density-scale, 0) * 4px)));--_icon-size:var(--md-icon-button-icon-size, max(28px, calc(40px + var(--md-sys-density-scale, 0) * 3px)));--_shape-round:68px}:host(.md-icon-button--width-narrow.md-icon-button--xs){--_container-width:var(--md-icon-button-container-width, max(32px, calc(28px + var(--md-sys-density-scale, 0) * 4px)))}:host(.md-icon-button--width-narrow.md-icon-button--sm){--_container-width:var(--md-icon-button-container-width, max(32px, calc(32px + var(--md-sys-density-scale, 0) * 4px)))}:host(.md-icon-button--width-narrow.md-icon-button--md){--_container-width:var(--md-icon-button-container-width, max(32px, calc(48px + var(--md-sys-density-scale, 0) * 4px)))}:host(.md-icon-button--width-narrow.md-icon-button--lg){--_container-width:var(--md-icon-button-container-width, max(32px, calc(64px + var(--md-sys-density-scale, 0) * 4px)))}:host(.md-icon-button--width-narrow.md-icon-button--xl){--_container-width:var(--md-icon-button-container-width, max(32px, calc(104px + var(--md-sys-density-scale, 0) * 4px)))}:host(.md-icon-button--width-wide.md-icon-button--xs){--_container-width:var(--md-icon-button-container-width, max(32px, calc(40px + var(--md-sys-density-scale, 0) * 4px)))}:host(.md-icon-button--width-wide.md-icon-button--sm){--_container-width:var(--md-icon-button-container-width, max(32px, calc(52px + var(--md-sys-density-scale, 0) * 4px)))}:host(.md-icon-button--width-wide.md-icon-button--md){--_container-width:var(--md-icon-button-container-width, max(32px, calc(72px + var(--md-sys-density-scale, 0) * 4px)))}:host(.md-icon-button--width-wide.md-icon-button--lg){--_container-width:var(--md-icon-button-container-width, max(32px, calc(128px + var(--md-sys-density-scale, 0) * 4px)))}:host(.md-icon-button--width-wide.md-icon-button--xl){--_container-width:var(--md-icon-button-container-width, max(32px, calc(184px + var(--md-sys-density-scale, 0) * 4px)))}:host(.md-icon-button--round){--_border-radius:var(--md-icon-button-container-shape, var(--_shape-round))}:host(.md-icon-button--square.md-icon-button--xs){--_border-radius:var(--md-icon-button-container-shape, var(--md-sys-shape-corner-medium, 12px))}:host(.md-icon-button--square.md-icon-button--sm){--_border-radius:var(--md-icon-button-container-shape, var(--md-sys-shape-corner-medium, 12px))}:host(.md-icon-button--square.md-icon-button--md){--_border-radius:var(--md-icon-button-container-shape, var(--md-sys-shape-corner-large, 16px))}:host(.md-icon-button--square.md-icon-button--lg){--_border-radius:var(--md-icon-button-container-shape, var(--md-sys-shape-corner-extra-large, 28px))}:host(.md-icon-button--square.md-icon-button--xl){--_border-radius:var(--md-icon-button-container-shape, var(--md-sys-shape-corner-extra-large, 28px))}:host(.md-icon-button--shape-morph.md-icon-button--round.md-icon-button--selected.md-icon-button--xs){--_morph-to:var(--md-sys-shape-corner-medium, 12px)}:host(.md-icon-button--shape-morph.md-icon-button--round.md-icon-button--selected.md-icon-button--sm){--_morph-to:var(--md-sys-shape-corner-medium, 12px)}:host(.md-icon-button--shape-morph.md-icon-button--round.md-icon-button--selected.md-icon-button--md){--_morph-to:var(--md-sys-shape-corner-large, 16px)}:host(.md-icon-button--shape-morph.md-icon-button--round.md-icon-button--selected.md-icon-button--lg){--_morph-to:var(--md-sys-shape-corner-extra-large, 28px)}:host(.md-icon-button--shape-morph.md-icon-button--round.md-icon-button--selected.md-icon-button--xl){--_morph-to:var(--md-sys-shape-corner-extra-large, 28px)}:host(.md-icon-button--shape-morph.md-icon-button--square.md-icon-button--selected){--_morph-to:var(--_shape-round)}:host(.md-icon-button--pressed.md-icon-button--xs){--_morph-to:var(--md-sys-shape-corner-small, 8px);transition-duration:var(--md-sys-motion-duration-short4, 200ms);transition-timing-function:var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1))}:host(.md-icon-button--pressed.md-icon-button--sm){--_morph-to:var(--md-sys-shape-corner-small, 8px);transition-duration:var(--md-sys-motion-duration-short4, 200ms);transition-timing-function:var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1))}:host(.md-icon-button--pressed.md-icon-button--md){--_morph-to:var(--md-sys-shape-corner-medium, 12px);transition-duration:var(--md-sys-motion-duration-short4, 200ms);transition-timing-function:var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1))}:host(.md-icon-button--pressed.md-icon-button--lg){--_morph-to:var(--md-sys-shape-corner-large, 16px);transition-duration:var(--md-sys-motion-duration-short4, 200ms);transition-timing-function:var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1))}:host(.md-icon-button--pressed.md-icon-button--xl){--_morph-to:var(--md-sys-shape-corner-large, 16px);transition-duration:var(--md-sys-motion-duration-short4, 200ms);transition-timing-function:var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1))}:host(.md-icon-button--width-narrow.md-icon-button--pressed){transition-duration:var(--md-sys-motion-duration-medium1, 250ms)}:host(.md-icon-button--connected-left.md-icon-button--xs),:host(.md-icon-button--connected-right.md-icon-button--xs){--_c-inner:4px}:host(.md-icon-button--connected-left.md-icon-button--sm),:host(.md-icon-button--connected-right.md-icon-button--sm){--_c-inner:8px}:host(.md-icon-button--connected-left.md-icon-button--md),:host(.md-icon-button--connected-right.md-icon-button--md){--_c-inner:8px}:host(.md-icon-button--connected-left.md-icon-button--lg),:host(.md-icon-button--connected-right.md-icon-button--lg){--_c-inner:16px}:host(.md-icon-button--connected-left.md-icon-button--xl),:host(.md-icon-button--connected-right.md-icon-button--xl){--_c-inner:20px}:host(.md-icon-button--connected-left.md-icon-button--connected-right){border-radius:var(--_c-inner)}:host(.md-icon-button--round.md-icon-button--connected-right:not(.md-icon-button--connected-left)){border-start-start-radius:var(--_shape-round);border-end-start-radius:var(--_shape-round);border-start-end-radius:var(--_c-inner);border-end-end-radius:var(--_c-inner)}:host(.md-icon-button--round.md-icon-button--connected-left:not(.md-icon-button--connected-right)){border-start-start-radius:var(--_c-inner);border-end-start-radius:var(--_c-inner);border-start-end-radius:var(--_shape-round);border-end-end-radius:var(--_shape-round)}:host(.md-icon-button--square.md-icon-button--connected-right:not(.md-icon-button--connected-left)),:host(.md-icon-button--square.md-icon-button--connected-left:not(.md-icon-button--connected-right)){border-radius:var(--_c-inner)}:host(.md-icon-button--standard){--_container-color:var(--md-icon-button-container-color, transparent);--_icon-color:var(--md-icon-button-icon-color, var(--md-sys-color-on-surface-variant, #49454F));--_state-layer-color:var(--md-icon-button-state-layer-color, var(--md-sys-color-on-surface-variant, #49454F))}:host(.md-icon-button--standard.md-icon-button--selected:not(.md-icon-button--disabled)){--_icon-color:var(--md-icon-button-icon-color, var(--md-sys-color-primary, #6750A4));--_state-layer-color:var(--md-icon-button-state-layer-color, var(--md-sys-color-primary, #6750A4))}:host(.md-icon-button--filled){--_container-color:var(--md-icon-button-container-color, var(--md-sys-color-primary, #6750A4));--_icon-color:var(--md-icon-button-icon-color, var(--md-sys-color-on-primary, #FFFFFF));--_state-layer-color:var(--md-icon-button-state-layer-color, var(--md-sys-color-on-primary, #FFFFFF))}:host(.md-icon-button--filled.md-icon-button--toggle:not(.md-icon-button--selected):not(.md-icon-button--disabled)){--_container-color:var(--md-icon-button-container-color, var(--md-sys-color-surface-container-highest, #E6E0E9));--_icon-color:var(--md-icon-button-icon-color, var(--md-sys-color-primary, #6750A4));--_state-layer-color:var(--md-icon-button-state-layer-color, var(--md-sys-color-primary, #6750A4))}:host(.md-icon-button--filled.md-icon-button--selected:not(.md-icon-button--disabled)){--_container-color:var(--md-icon-button-container-color, var(--md-sys-color-primary, #6750A4));--_icon-color:var(--md-icon-button-icon-color, var(--md-sys-color-on-primary, #FFFFFF));--_state-layer-color:var(--md-icon-button-state-layer-color, var(--md-sys-color-on-primary, #FFFFFF))}:host(.md-icon-button--tonal){--_container-color:var(--md-icon-button-container-color, var(--md-sys-color-secondary-container, #E8DEF8));--_icon-color:var(--md-icon-button-icon-color, var(--md-sys-color-on-secondary-container, #1E192B));--_state-layer-color:var(--md-icon-button-state-layer-color, var(--md-sys-color-on-secondary-container, #1E192B))}:host(.md-icon-button--tonal.md-icon-button--toggle:not(.md-icon-button--selected):not(.md-icon-button--disabled)){--_container-color:var(--md-icon-button-container-color, var(--md-sys-color-surface-container-highest, #E6E0E9));--_icon-color:var(--md-icon-button-icon-color, var(--md-sys-color-on-surface-variant, #49454F));--_state-layer-color:var(--md-icon-button-state-layer-color, var(--md-sys-color-on-surface-variant, #49454F))}:host(.md-icon-button--tonal.md-icon-button--selected:not(.md-icon-button--disabled)){--_container-color:var(--md-icon-button-container-color, var(--md-sys-color-secondary-container, #E8DEF8));--_icon-color:var(--md-icon-button-icon-color, var(--md-sys-color-on-secondary-container, #1E192B));--_state-layer-color:var(--md-icon-button-state-layer-color, var(--md-sys-color-on-secondary-container, #1E192B))}:host(.md-icon-button--outlined){--_container-color:var(--md-icon-button-container-color, transparent);--_icon-color:var(--md-icon-button-icon-color, var(--md-sys-color-on-surface-variant, #49454F));--_state-layer-color:var(--md-icon-button-state-layer-color, var(--md-sys-color-on-surface-variant, #49454F));border:var(--md-icon-button-outline-width, 1px) solid var(--md-icon-button-outline-color, var(--md-sys-color-outline, #79747E))}:host(.md-icon-button--outlined.md-icon-button--selected:not(.md-icon-button--disabled)){--_container-color:var(--md-icon-button-container-color, var(--md-sys-color-inverse-surface, #313033));--_icon-color:var(--md-icon-button-icon-color, var(--md-sys-color-inverse-on-surface, #F4EFF4));--_state-layer-color:var(--md-icon-button-state-layer-color, var(--md-sys-color-inverse-on-surface, #F4EFF4));border-color:transparent}.md-icon-button__state-layer{position:absolute;inset:0;border-radius:inherit;background-color:var(--_state-layer-color);opacity:0;transition:opacity var(--md-sys-motion-duration-short2, 100ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1));pointer-events:none}:host(:hover) .md-icon-button__state-layer{opacity:var(--md-sys-state-hover-state-layer-opacity, 0.08)}:host(:active) .md-icon-button__state-layer{opacity:var(--md-sys-state-pressed-state-layer-opacity, 0.12)}:host(:focus-visible) .md-icon-button__state-layer{opacity:var(--md-sys-state-focus-state-layer-opacity, 0.12)}:host(:focus-visible){outline:3px solid var(--md-sys-color-secondary, #625B71);outline-offset:2px;z-index:1}:host(.md-icon-button--disabled){cursor:default;pointer-events:none}:host([soft-disabled]){cursor:default;pointer-events:auto}:host([soft-disabled]) .md-icon-button__state-layer{display:none}:host(.md-icon-button--standard.md-icon-button--disabled),:host(.md-icon-button--outlined.md-icon-button--disabled){--_icon-color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) calc(var(--md-sys-state-disabled-content-opacity, 0.38) * 100%), transparent)}:host(.md-icon-button--outlined.md-icon-button--disabled){border-color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) calc(var(--md-sys-state-disabled-container-opacity, 0.12) * 100%), transparent)}:host(.md-icon-button--filled.md-icon-button--disabled),:host(.md-icon-button--tonal.md-icon-button--disabled){--_container-color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) calc(var(--md-sys-state-disabled-container-opacity, 0.12) * 100%), transparent);--_icon-color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) calc(var(--md-sys-state-disabled-content-opacity, 0.38) * 100%), transparent)}:host(.md-icon-button--disabled:hover) .md-icon-button__state-layer,:host(.md-icon-button--disabled:active) .md-icon-button__state-layer,:host(.md-icon-button--disabled:focus-visible) .md-icon-button__state-layer{opacity:0}.md-icon-button__icon{display:none;align-items:center;justify-content:center;position:relative;z-index:1;color:inherit;width:var(--_icon-size);height:var(--_icon-size);font-size:0;line-height:0}.md-icon-button__icon slot{font-size:var(--_icon-size);line-height:1}.md-icon-button__icon--on{display:inline-flex}.md-icon-button__icon-font{font-size:var(--_icon-size);width:var(--_icon-size);height:var(--_icon-size);display:flex;align-items:center;justify-content:center;line-height:1}:host(.md-icon-button--has-badge){overflow:visible}:host(.md-icon-button--has-badge) .md-icon-button__state-layer{overflow:hidden}::slotted(*:not(md-badge):not(md-avatar)){width:var(--_icon-size) !important;height:var(--_icon-size) !important;font-size:var(--_icon-size) !important;color:inherit !important;fill:currentColor !important;display:inline-flex !important;align-items:center !important;justify-content:center !important;line-height:1 !important}.material-symbols-outlined{font-family:var(--md-sys-icon-font-family, 'Material Symbols Outlined', 'Material Icons');font-weight:normal;font-style:normal;font-size:var(--_icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;overflow-wrap:normal;direction:ltr;font-feature-settings:'liga';-webkit-font-smoothing:antialiased}@media (forced-colors: active){:host{forced-color-adjust:none}:host(.md-icon-button--outlined){border-color:ButtonText}}:host([density='-1']){--md-sys-density-scale:-1}:host([density='-2']){--md-sys-density-scale:-2}:host([density='-3']){--md-sys-density-scale:-3}:host([density='-4']){--md-sys-density-scale:-4}`;const l=t(class t extends o{constructor(t){super();if(t!==false){this.__registerHost()}this.__attachShadow();this.mdClick=n(this,"mdClick",7);this.variant="standard";this.size="sm";this.shape="round";this.buttonWidth="default";this.disabled=false;this.softDisabled=false;this.toggle=false;this.selected=false;this.shapeMorph=true;this.ripple=true;this.icon="";this.selectedIcon="";this.href="";this.target="_self";this.connectedLeft=false;this.connectedRight=false;this.value="";this.groupTabindex=null;this.density=0;this.hasSlottedIcon=false;this.hasSlottedBadge=false;this.hasSlottedSelected=false;this.pressed=false;this.handleClick=t=>{if(this.isDisabled){t.preventDefault();return}const o=a(this.href);if(o){window.open(o,this.target,c)}if(this.toggle)this.selected=!this.selected;this.mdClick.emit({selected:this.selected})};this.handleKeyDown=t=>{if(t.key==="Enter"||t.key===" "){t.preventDefault();if(!this.isDisabled){this.pressed=true;r(this.el);this.el.click();setTimeout((()=>{this.pressed=false}),150)}}};this.handlePointerDown=()=>{if(!this.isDisabled)this.pressed=true};this.handlePointerUp=()=>{this.pressed=false}}get isDisabled(){return this.disabled||this.softDisabled}componentWillLoad(){this.syncSlottedIcons()}componentDidLoad(){const t=this.el.shadowRoot;if(!t)return;const o=t.querySelector("slot:not([name])");const n=t.querySelector('slot[name="selected"]');this.syncSlottedIcons();o?.addEventListener("slotchange",(()=>this.syncSlottedIcons()));n?.addEventListener("slotchange",(()=>this.syncSlottedIcons()))}hasMeaningfulSlotContent(t){if(!t)return false;return t.assignedNodes().some((t=>{if(t.nodeType===Node.ELEMENT_NODE){if(t.tagName.toLowerCase()==="md-badge")return false;return true}if(t.nodeType===Node.TEXT_NODE)return(t.textContent?.trim().length??0)>0;return false}))}syncSlottedIcons(){const t=this.el.shadowRoot;const o=t?.querySelector("slot:not([name])");const n=t?.querySelector('slot[name="selected"]');this.hasSlottedIcon=this.hasMeaningfulSlotContent(o);this.hasSlottedBadge=!!o?.assignedElements().some((t=>t.tagName.toLowerCase()==="md-badge"));this.hasSlottedSelected=this.hasMeaningfulSlotContent(n)}render(){const t=this.isDisabled;const o=this.toggle&&this.selected;const n=!!this.icon||this.hasSlottedIcon;const s=!o||!this.selectedIcon&&!this.hasSlottedSelected;return i(e,{key:"c8ba395e0f0eaa47019a6ec74ddb76135018d63a",class:{"md-icon-button":true,[`md-icon-button--${this.variant}`]:true,[`md-icon-button--${this.size}`]:true,[`md-icon-button--${this.shape}`]:true,[`md-icon-button--width-${this.buttonWidth}`]:this.buttonWidth!=="default","md-icon-button--selected":this.selected,"md-icon-button--toggle":this.toggle,"md-icon-button--disabled":this.disabled||this.softDisabled,"md-icon-button--shape-morph":this.shapeMorph,"md-icon-button--has-badge":this.hasSlottedBadge,"md-icon-button--pressed":this.shapeMorph&&this.pressed,"md-icon-button--connected-left":this.connectedLeft,"md-icon-button--connected-right":this.connectedRight},role:"button","aria-disabled":t?"true":"false","aria-pressed":this.toggle?String(this.selected):undefined,tabindex:this.disabled?"-1":this.groupTabindex!==null?String(this.groupTabindex):"0",onClick:this.handleClick,onKeyDown:this.handleKeyDown,onPointerDown:this.handlePointerDown,onPointerUp:this.handlePointerUp,onPointerLeave:this.handlePointerUp,onPointerCancel:this.handlePointerUp},this.ripple&&i("md-ripple",{key:"38a31f8be791e2441c128668d12cffc8d2883863",disabled:t}),i("span",{key:"3e36940f6038c69663ae28330827edb68158e78e",class:"md-icon-button__state-layer",part:"state-layer","aria-hidden":"true"}),i("span",{key:"ee34874988c22da61d85a98db6e2f636c43b1bdb",class:{"md-icon-button__icon":true,"md-icon-button__icon--on":s},part:"icon"},i("slot",{key:"25fe46290a2d8793c7f72ee623fafcfeaf01d015"}),s&&n&&!this.hasSlottedIcon&&i("span",{key:"9da0f58088f30f43b37d14f93f1f2406454f493d",class:"md-icon-button__icon-font material-symbols-outlined","aria-hidden":"true"},o&&this.selectedIcon?this.selectedIcon:this.icon)),this.toggle&&(this.selectedIcon||this.hasSlottedSelected)&&i("span",{key:"366c07e84c1aa12ca7259983518ecb6e6e909852",class:{"md-icon-button__icon":true,"md-icon-button__icon--on":o},part:"selected-icon"},i("slot",{key:"7b346adf89aca1c953618e2b2654df70ed2c2320",name:"selected"}),!this.hasSlottedSelected&&this.selectedIcon&&i("span",{key:"f61d47d93eb24d4e95a5704dfc14bf59f3a3f9e0",class:"md-icon-button__icon-font material-symbols-outlined","aria-hidden":"true"},this.selectedIcon)))}get el(){return this}static get style(){return m()}},[257,"md-icon-button",{variant:[1],size:[1],shape:[1],buttonWidth:[1,"button-width"],disabled:[516],softDisabled:[516,"soft-disabled"],toggle:[4],selected:[1028],shapeMorph:[4,"shape-morph"],ripple:[4],icon:[1],selectedIcon:[1,"selected-icon"],href:[1],target:[1],connectedLeft:[516,"connected-left"],connectedRight:[516,"connected-right"],value:[1],groupTabindex:[1026,"group-tabindex"],density:[514],hasSlottedIcon:[32],hasSlottedBadge:[32],hasSlottedSelected:[32],pressed:[32]}]);function u(){if(typeof customElements==="undefined"){return}const t=["md-icon-button","md-ripple"];t.forEach((t=>{switch(t){case"md-icon-button":if(!customElements.get(s(t))){customElements.define(s(t),l)}break;case"md-ripple":if(!customElements.get(s(t))){d()}break}}))}u();export{l as M,u as d};
|
|
2
|
+
//# sourceMappingURL=p-IWA0yIjJ.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{w as t,c as i,e as s,f as h,i as n,s as e,g as o,h as r,m as a,j as c,k as l,l as f,n as u,o as m}from"./p-DvOKnoqK.js";import{H as p,n as d,h as v,a as w,e as F,s as g,b as y,d as A,E as b}from"./p-DzPKu-Ma.js";const M=()=>typeof performance!=="undefined"?performance.now():Date.now();const k=8;class x{constructor(e){this.container=e;this.ctx=null;this.spec=null;this.theme=null;this.scene=null;this.cb={};this.hoverRaf=0;this.lastHoverIndex=-2;this.hoverEnabled=true;this.hoverOpts={};this.hasRendered=false;this.introRaf=0;this.lastW=0;this.lastH=0;this.lastDpr=1;this.emphasisSeries=-1;this.emphasisT=0;this.emphasisTarget=0;this.emphasisRaf=0;this.focusLines=null;this.focus=new p;this.downAt=null;this.dragged=false;this.rtl=false;this.sceneLtr=null;this.dprWatch=t((()=>this.render()));this.dirWatch=i((()=>{if(n(this.container)!==this.rtl)this.render()}));this.handlePointerDown=t=>{this.downAt={x:t.clientX,y:t.clientY};this.dragged=false};this.handlePointerMove=t=>{if(this.downAt&&Math.hypot(t.clientX-this.downAt.x,t.clientY-this.downAt.y)>k){this.dragged=true}if(!this.scene||!this.hoverEnabled)return;const i=this.canvas.getBoundingClientRect();const h=t.clientX-i.left;const n=t.clientY-i.top;const e=!!this.scene.inverted;const o=d(this.scene.xPositions,e?n:h);if(this.hoverRaf)cancelAnimationFrame(this.hoverRaf);this.hoverRaf=requestAnimationFrame((()=>{this.hoverRaf=0;if(!this.scene||!this.spec||!this.theme)return;const t=this.scene.hoverPoints.length>1?this.nearestSeries(h,n):-1;s(this.hoverLayer,this.scene,o,this.spec.yFormatter,this.theme.fontFamily,{x:h,y:n},e?"horizontal":"vertical",t,{...this.hoverOpts,rtl:this.rtl});this.setFocus(t);if(o!==this.lastHoverIndex){this.lastHoverIndex=o;this.cb.onHover?.(o)}}))};this.handlePointerLeave=()=>{if(this.hoverRaf){cancelAnimationFrame(this.hoverRaf);this.hoverRaf=0}h(this.hoverLayer);this.focus.reset();this.setFocus(-1);if(this.lastHoverIndex!==-1){this.lastHoverIndex=-1;this.cb.onHover?.(-1)}};this.handleClick=t=>{const i=this.dragged;this.dragged=false;this.downAt=null;if(!this.scene)return;const s=this.canvas.getBoundingClientRect();const h=t.clientX-s.left;const n=t.clientY-s.top;const e=v(this.scene,h,n,this.seriesLines(this.scene));if(!e)return;const o=t;if(e.kind==="mark"){this.cb.onPointClick?.(e.seriesIndex,e.dataIndex,o);return}if(i)return;if(e.kind==="line")this.cb.onLineClick?.(e.seriesIndex,e.dataIndex,o);else if(e.kind==="area")this.cb.onAreaClick?.(e.seriesIndex,e.dataIndex,o);else this.cb.onAxisClick?.(e.dataIndex,w(this.scene,e.dataIndex),o)};this.onLegendToggle=t=>{if(this.spec){this.spec.series[t.seriesIndex].hidden=!this.spec.series[t.seriesIndex].hidden;this.hasRendered=false;this.render();this.cb.onLegendClick?.({...t,hidden:this.spec.series[t.seriesIndex].hidden})}else{this.cb.onLegendClick?.(t)}};if(getComputedStyle(e).position==="static")e.style.position="relative";this.canvas=document.createElement("canvas");this.canvas.style.cssText="position:absolute;inset:0;width:100%;height:100%;display:block";this.canvas.setAttribute("part","plot-canvas");this.overlay=document.createElement("div");this.overlay.style.cssText="position:absolute;inset:0;pointer-events:none;overflow:hidden";this.legendLayer=document.createElement("div");this.legendLayer.style.cssText="position:absolute;inset:0;pointer-events:none;overflow:visible";this.glyphLayer=document.createElement("div");this.glyphLayer.style.cssText="position:absolute;inset:0;pointer-events:none;overflow:hidden";this.endLabelLayer=document.createElement("div");this.endLabelLayer.style.cssText="position:absolute;inset:0;pointer-events:none;overflow:hidden";this.hoverLayer=document.createElement("div");this.hoverLayer.style.cssText="position:absolute;inset:0;pointer-events:none;overflow:hidden";e.append(this.canvas,this.overlay,this.legendLayer,this.glyphLayer,this.endLabelLayer,this.hoverLayer);this.ctx=this.canvas.getContext("2d");this.canvas.addEventListener("pointerdown",this.handlePointerDown);this.canvas.addEventListener("pointermove",this.handlePointerMove);this.canvas.addEventListener("pointerleave",this.handlePointerLeave);this.canvas.addEventListener("click",this.handleClick)}getScene(){return this.scene}setHoverEnabled(t){this.hoverEnabled=t;if(!t)h(this.hoverLayer)}setTooltip(t){this.hoverOpts=t}setSpec(t,i,s={}){this.spec=t;this.theme=i;this.cb=s;cancelAnimationFrame(this.emphasisRaf);this.focus.reset();this.emphasisSeries=-1;this.emphasisT=0;this.emphasisTarget=0;this.render()}resize(){const t=this.container.getBoundingClientRect();if(Math.round(t.width)===this.lastW&&Math.round(t.height)===this.lastH)return;this.render()}toDataURL(t="image/png"){return typeof this.canvas.toDataURL==="function"?this.canvas.toDataURL(t):""}dispose(){if(this.hoverRaf)cancelAnimationFrame(this.hoverRaf);this.stopIntro();cancelAnimationFrame(this.emphasisRaf);this.canvas.removeEventListener("pointerdown",this.handlePointerDown);this.canvas.removeEventListener("pointermove",this.handlePointerMove);this.canvas.removeEventListener("pointerleave",this.handlePointerLeave);this.canvas.removeEventListener("click",this.handleClick);this.dprWatch.dispose();this.dirWatch.dispose();this.canvas.remove();this.overlay.remove();this.glyphLayer.remove();this.endLabelLayer.remove();this.hoverLayer.remove();this.spec=null;this.scene=null;this.sceneLtr=null}render(){if(!this.spec||!this.theme)return;this.dprWatch.update();const t=this.container.getBoundingClientRect();const i=Math.round(t.width);const s=Math.round(t.height);if(i<2||s<2)return;this.lastW=i;this.lastH=s;const h=Math.min(window.devicePixelRatio||1,4);this.lastDpr=h;this.canvas.width=i*h;this.canvas.height=s*h;this.rtl=n(this.container);const a=()=>{this.sceneLtr=m(this.spec,this.theme,i,s);return this.mirrored(this.sceneLtr)};this.scene=a();e(this.overlay,this.scene,this.theme.fontFamily,{onLegendClick:this.onLegendToggle},this.rtl,this.legendLayer);const c=this.overlay.querySelector('[part="legend"]');if(c&&this.spec.legend&&this.spec.legend!=="none"){const t=this.spec.legend==="left"||this.spec.legend==="right";const i=t?c.offsetWidth:c.offsetHeight;if(i>0&&Math.abs((this.spec.legendExtent??-1)-i)>2){this.spec.legendExtent=i;this.scene=a();e(this.overlay,this.scene,this.theme.fontFamily,{onLegendClick:this.onLegendToggle},this.rtl,this.legendLayer)}}const{variant:l,duration:f}=r(this.spec);const u=!this.hasRendered&&l!=="none"&&!o();const p=this.sceneLtr?this.sceneLtr.lines.length>0||this.sceneLtr.areas.length>0||this.sceneLtr.markers.length>0:false;if(u){this.hasRendered=p;this.playIntro(h,l,f);return}this.hasRendered=this.hasRendered||p;this.stopIntro();this.paintGeometry(F(this.scene,this.emphasisSeries,this.emphasisT),h)}clearIntroOpacity(){this.canvas.style.opacity="";this.glyphLayer.style.opacity=""}stopIntro(){cancelAnimationFrame(this.introRaf);this.introRaf=0;this.clearIntroOpacity()}mirrored(t){return this.rtl?a(t):t}paintGeometry(t,i){this.drawGeometry(t,i);c(this.glyphLayer,t.glyphs??[],this.theme?.fontFamily);l(this.endLabelLayer,t.endLabels??[],this.theme?.fontFamily)}paintEmphasis(){if(this.scene)this.drawGeometry(F(this.scene,this.emphasisSeries,this.emphasisT),this.lastDpr)}setFocus(t){const i=t>=0?1:0;const s=t>=0?t:this.emphasisSeries;if(i===this.emphasisTarget&&s===this.emphasisSeries)return;this.emphasisSeries=s;this.emphasisTarget=i;if(o()){cancelAnimationFrame(this.emphasisRaf);this.emphasisT=i;if(i===0)this.emphasisSeries=-1;this.paintEmphasis();return}cancelAnimationFrame(this.emphasisRaf);let h=0;const n=t=>{if(!h)h=t;const i=t-h;h=t;const s=this.emphasisTarget>this.emphasisT?1:-1;this.emphasisT+=s*(i/b);if(s>0&&this.emphasisT>=this.emphasisTarget||s<0&&this.emphasisT<=this.emphasisTarget){this.emphasisT=this.emphasisTarget;if(this.emphasisTarget===0)this.emphasisSeries=-1;this.paintEmphasis();return}this.paintEmphasis();this.emphasisRaf=requestAnimationFrame(n)};this.emphasisRaf=requestAnimationFrame(n)}replay(){this.hasRendered=false;this.render()}drawGeometry(t,i){if(!this.ctx)return;this.ctx.setTransform(i,0,0,i,0,0);f(this.ctx,t)}playIntro(t,i,s){const h=this.sceneLtr;if(!h)return;let n=s;if(i==="stagger"){const t=new Set(h.lines.map((t=>t.seriesIndex??0))).size||1;n=Math.min(s*t,5200)}this.stopIntro();const e=t=>{const i=t<1?String(t):"";this.canvas.style.opacity=i;this.glyphLayer.style.opacity=i};const o=u(i,h,0);e(o.alpha);this.drawGeometry(o.scene,t);let r=0;const a=s=>{if(!r)r=s;const o=(s-r)/n;if(o>=1){e(1);this.paintGeometry(this.mirrored(h),t);return}const{scene:c,alpha:l}=u(i,h,o);e(l);this.paintGeometry(this.mirrored(c),t);this.introRaf=requestAnimationFrame(a)};this.introRaf=requestAnimationFrame(a)}focusIndex(t){if(!this.scene||!this.spec||!this.theme)return;if(t<0){h(this.hoverLayer);this.focus.reset();this.setFocus(-1);return}const i=!!this.scene.inverted;const n=this.scene.hoverPoints.map((i=>i.byIndex[t])).find(Boolean);const e=this.scene.xPositions[t]??0;const o=n?{x:n.x,y:n.y}:{x:i?this.scene.plot.x:e,y:i?e:this.scene.plot.y};s(this.hoverLayer,this.scene,t,this.spec.yFormatter,this.theme.fontFamily,o,i?"horizontal":"vertical",-1,{...this.hoverOpts,rtl:this.rtl})}seriesLines(t){if(this.focusLines?.scene===t)return this.focusLines.points;const i=g(t);this.focusLines={scene:t,points:i};return i}nearestSeries(t,i){if(!this.scene)return-1;if(this.scene.areas.length>0&&this.hoverOpts.trigger!=="item"){this.focus.reset();return-1}const s=y(this.scene,t,i);if(s>=0){this.focus.reset();return s}const h=!!this.scene.inverted;const n=h?i:t;const e=h?t:i;const o=this.seriesLines(this.scene);const r=this.scene.hoverPoints.map(((t,i)=>({seriesIndex:t.seriesIndex,distance:A(o[i],n,e)})));return this.focus.pick(r,M())}}export{x as L};
|
|
2
|
+
//# sourceMappingURL=p-RLxbNqRv.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["now","performance","Date","DRAG_SLOP","LineChartEngine","constructor","container","this","ctx","spec","theme","scene","cb","hoverRaf","lastHoverIndex","hoverEnabled","hoverOpts","hasRendered","introRaf","lastW","lastH","lastDpr","emphasisSeries","emphasisT","emphasisTarget","emphasisRaf","focusLines","focus","HoverFocus","downAt","dragged","rtl","sceneLtr","dprWatch","watchDevicePixelRatio","render","dirWatch","watchDirection","isRtl","handlePointerDown","e","x","clientX","y","clientY","handlePointerMove","Math","hypot","rect","canvas","getBoundingClientRect","px","left","py","top","inverted","idx","nearestIndex","xPositions","cancelAnimationFrame","requestAnimationFrame","hoverPoints","length","nearestSeries","renderHover","hoverLayer","yFormatter","fontFamily","setFocus","onHover","handlePointerLeave","clearHover","reset","handleClick","hit","hitTestScene","seriesLines","pe","kind","onPointClick","seriesIndex","dataIndex","onLineClick","onAreaClick","onAxisClick","axisSeriesValues","onLegendToggle","item","series","hidden","onLegendClick","getComputedStyle","position","style","document","createElement","cssText","setAttribute","overlay","legendLayer","glyphLayer","endLabelLayer","append","getContext","addEventListener","getScene","setHoverEnabled","enabled","setTooltip","opts","setSpec","resize","round","width","height","toDataURL","type","dispose","stopIntro","removeEventListener","remove","update","w","h","dpr","min","window","devicePixelRatio","layout","computeLayout","mirrored","syncOverlay","legendEl","querySelector","legend","side","extent","offsetWidth","offsetHeight","abs","legendExtent","variant","duration","resolveIntro","animate","prefersReducedMotion","hasContent","lines","areas","markers","playIntro","paintGeometry","emphasizeScene","clearIntroOpacity","opacity","mirrorScene","drawGeometry","renderGlyphs","glyphs","renderEndLabels","endLabels","paintEmphasis","target","last","step","dt","dir","EMPHASIS_MS","replay","setTransform","drawSceneCanvas","dur","n","Set","map","l","size","setOpacity","a","v","String","first","stepAnimation","alpha","start","frame","tRaw","focusIndex","index","pt","hp","byIndex","find","Boolean","pos","cursor","plot","points","seriesSampleLines","trigger","inArea","areaSeriesAt","cursorMain","cursorValue","candidates","i","distance","distanceToLine","pick"],"sources":["src/utils/charts/engine/chart.ts"],"sourcesContent":["/*\n * Chart engine — LineChartEngine\n * ===========================================================\n * The instance that replaces the ECharts object. Owns a plot\n * <canvas> + a DOM overlay layer inside the host's canvas box,\n * and runs the render pipeline: spec + theme + size →\n * computeLayout → draw geometry + sync the text/legend overlay. Exposes\n * setSpec / resize / dispose and a legend-toggle + hover callback,\n * mirroring the surface md-line-chart needs.\n * ===========================================================\n */\n\nimport { computeLayout, type EngineTheme, type LineChartSpec } from './layout';\nimport { drawSceneCanvas } from './renderer-canvas';\nimport { syncOverlay, renderGlyphs, renderEndLabels } from './overlay';\nimport { clearHover, renderHover, type HoverOptions } from './hover';\nimport { watchDevicePixelRatio, type DprWatcher } from './dpr';\nimport { resolveIntro, stepAnimation, prefersReducedMotion } from './animate';\n\n/** Monotonic ms, for the hover-focus dwell. */\nconst now = (): number => (typeof performance !== 'undefined' ? performance.now() : Date.now());\nimport { distanceToLine, emphasizeScene, HoverFocus, EMPHASIS_MS } from './emphasis';\nimport { axisSeriesValues, hitTestScene, nearestIndex, seriesSampleLines, type AxisSeriesValue, areaSeriesAt } from './hit-test';\nimport { isRtl, mirrorScene, watchDirection, type DirectionWatcher } from './rtl';\nimport type { MdChartAnimation } from '../types';\nimport type { LegendItem, RenderScene } from './scene';\n\nexport interface EngineCallbacks {\n onLegendClick?: (item: LegendItem) => void;\n /** Fires with the nearest category index as the pointer moves (or -1 on leave). */\n onHover?: (dataIndex: number) => void;\n /** Fires when a data point is clicked (nearest series + index). */\n onPointClick?: (seriesIndex: number, dataIndex: number, e: PointerEvent) => void;\n /** Fires when a series' drawn LINE is clicked away from its data points. */\n onLineClick?: (seriesIndex: number, dataIndex: number, e: PointerEvent) => void;\n /** Fires when a series' filled AREA is clicked (not its line or its points). */\n onAreaClick?: (seriesIndex: number, dataIndex: number, e: PointerEvent) => void;\n /** Fires when the plot background is clicked: the nearest x index plus every\n * visible series' value there. */\n onAxisClick?: (dataIndex: number, values: AxisSeriesValue[], e: PointerEvent) => void;\n}\n\n/**\n * How far (px) the pointer may travel between press and release for the release\n * to still count as a click on the plot. Anything further is a gesture (the\n * drag-to-zoom band, a slider pan), and the background / line / area clicks stay\n * quiet. Matches the same threshold md-line-chart uses to tell a stray drag from\n * a click. A MARK click is exempt — that behaviour predates this and is public.\n */\nconst DRAG_SLOP = 8;\n\nexport class LineChartEngine {\n private canvas: HTMLCanvasElement;\n private overlay: HTMLDivElement;\n /** Legend lives here: same box, but NOT clipped, so a focus ring keeps its\n * outer pixels where the legend hugs the plot edge. */\n private legendLayer: HTMLDivElement;\n private glyphLayer: HTMLDivElement;\n private endLabelLayer: HTMLDivElement;\n private hoverLayer: HTMLDivElement;\n private ctx: CanvasRenderingContext2D | null = null;\n private spec: LineChartSpec | null = null;\n private theme: EngineTheme | null = null;\n private scene: RenderScene | null = null;\n private cb: EngineCallbacks = {};\n private hoverRaf = 0;\n private lastHoverIndex = -2;\n private hoverEnabled = true;\n private hoverOpts: HoverOptions = {};\n private hasRendered = false;\n private introRaf = 0;\n private lastW = 0;\n private lastH = 0;\n private lastDpr = 1;\n // Hover emphasis: the series kept vivid (persists through the fade-out so the\n // others un-dim gradually) + the animated dim factor (0 none → 1 full).\n private emphasisSeries = -1;\n private emphasisT = 0;\n private emphasisTarget = 0;\n private emphasisRaf = 0;\n /** Per-scene cache for {@link seriesLines}. */\n private focusLines: { scene: RenderScene; points: [number, number][][] } | null = null;\n /** Picks which series the hover emphasises, and keeps that choice steady. */\n private focus = new HoverFocus();\n /** Where the pointer went down, and whether it has since travelled far enough\n * to make the coming click the end of a drag rather than a click. */\n private downAt: { x: number; y: number } | null = null;\n private dragged = false;\n /** Host is laid out right-to-left — the finished scene is mirrored. */\n private rtl = false;\n /** The scene BEFORE mirroring, for the +x-sweeping intro animations. */\n private sceneLtr: RenderScene | null = null;\n private dprWatch: DprWatcher = watchDevicePixelRatio(() => this.render());\n /** Re-render when the page (or an ancestor) flips direction — but only if\n * THIS chart's own computed direction actually changed. */\n private dirWatch: DirectionWatcher = watchDirection(() => {\n if (isRtl(this.container) !== this.rtl) this.render();\n });\n\n constructor(private container: HTMLElement) {\n // Host provides a positioned box; layer the canvas + overlay in it.\n if (getComputedStyle(container).position === 'static') container.style.position = 'relative';\n\n this.canvas = document.createElement('canvas');\n this.canvas.style.cssText = 'position:absolute;inset:0;width:100%;height:100%;display:block';\n this.canvas.setAttribute('part', 'plot-canvas');\n\n this.overlay = document.createElement('div');\n this.overlay.style.cssText = 'position:absolute;inset:0;pointer-events:none;overflow:hidden';\n\n this.legendLayer = document.createElement('div');\n this.legendLayer.style.cssText = 'position:absolute;inset:0;pointer-events:none;overflow:visible';\n\n // Emoji / text markers get their own layer so they can rise / reveal / fade\n // with the data geometry each animation frame (the static overlay above is\n // only synced once per render).\n this.glyphLayer = document.createElement('div');\n this.glyphLayer.style.cssText = 'position:absolute;inset:0;pointer-events:none;overflow:hidden';\n\n // End-of-line series labels live in their own PERSISTENT layer (not cleared\n // each frame) so they can fade in/out on collision via a CSS transition.\n this.endLabelLayer = document.createElement('div');\n this.endLabelLayer.style.cssText = 'position:absolute;inset:0;pointer-events:none;overflow:hidden';\n\n // Hover UI (crosshair + tooltip) sits above the static overlay so it\n // updates on pointermove without re-syncing the labels/legend.\n this.hoverLayer = document.createElement('div');\n this.hoverLayer.style.cssText = 'position:absolute;inset:0;pointer-events:none;overflow:hidden';\n\n container.append(this.canvas, this.overlay, this.legendLayer, this.glyphLayer, this.endLabelLayer, this.hoverLayer);\n\n this.ctx = this.canvas.getContext('2d');\n\n this.canvas.addEventListener('pointerdown', this.handlePointerDown);\n this.canvas.addEventListener('pointermove', this.handlePointerMove);\n this.canvas.addEventListener('pointerleave', this.handlePointerLeave);\n this.canvas.addEventListener('click', this.handleClick);\n }\n\n /** The current render scene — for diagnostics/tests. */\n getScene(): RenderScene | null {\n return this.scene;\n }\n\n /** Enable/disable the hover crosshair + tooltip (sparkline `show-tooltip`). */\n setHoverEnabled(enabled: boolean): void {\n this.hoverEnabled = enabled;\n if (!enabled) clearHover(this.hoverLayer);\n }\n\n /**\n * Install the tooltip extras: a developer's content renderer and/or the\n * formatter consulted for a series with no value at the hovered x. Presentation\n * only — it deliberately does NOT go through `setSpec`, so swapping the\n * renderer never re-runs layout.\n */\n setTooltip(opts: HoverOptions): void {\n this.hoverOpts = opts;\n }\n\n\n\n setSpec(spec: LineChartSpec, theme: EngineTheme, cb: EngineCallbacks = {}): void {\n this.spec = spec;\n this.theme = theme;\n this.cb = cb;\n // The series set may have changed — drop any stale hover focus.\n cancelAnimationFrame(this.emphasisRaf);\n this.focus.reset();\n this.emphasisSeries = -1;\n this.emphasisT = 0;\n this.emphasisTarget = 0;\n this.render();\n }\n\n resize(): void {\n // A ResizeObserver fires an initial callback right after observe() with the\n // same size the first render already used. Re-rendering there would draw the\n // static final geometry and cancel the just-scheduled intro animation (RO\n // delivery runs before rAF in the frame), so skip when size is unchanged.\n const rect = this.container.getBoundingClientRect();\n if (Math.round(rect.width) === this.lastW && Math.round(rect.height) === this.lastH) return;\n this.render();\n }\n\n /** Current frame as a data URL (for toDataURL export). */\n toDataURL(type = 'image/png'): string {\n // Guard for canvases that can't export (mock-doc / SSR): return '' rather\n // than throwing, so the host's toDataURL() degrades gracefully.\n return typeof this.canvas.toDataURL === 'function' ? this.canvas.toDataURL(type) : '';\n }\n\n dispose(): void {\n if (this.hoverRaf) cancelAnimationFrame(this.hoverRaf);\n // stopIntro rather than a bare cancel. Nothing depends on the clear here —\n // dispose() removes the canvas a few lines down — but routing EVERY cancel\n // of introRaf through stopIntro is what makes the invariant hold: the\n // inline opacity is only ever non-empty while the entrance loop is live.\n // The bug this fixes was one cancel site that forgot the clear.\n this.stopIntro();\n cancelAnimationFrame(this.emphasisRaf);\n this.canvas.removeEventListener('pointerdown', this.handlePointerDown);\n this.canvas.removeEventListener('pointermove', this.handlePointerMove);\n this.canvas.removeEventListener('pointerleave', this.handlePointerLeave);\n this.canvas.removeEventListener('click', this.handleClick);\n this.dprWatch.dispose();\n this.dirWatch.dispose();\n this.canvas.remove();\n this.overlay.remove();\n this.glyphLayer.remove();\n this.endLabelLayer.remove();\n this.hoverLayer.remove();\n this.spec = null;\n this.scene = null;\n this.sceneLtr = null;\n }\n\n private render(): void {\n if (!this.spec || !this.theme) return;\n this.dprWatch.update();\n const rect = this.container.getBoundingClientRect();\n const w = Math.round(rect.width);\n const h = Math.round(rect.height);\n if (w < 2 || h < 2) return; // not laid out yet — ResizeObserver retries\n this.lastW = w;\n this.lastH = h;\n\n // Cap the backing-store scale for perf; 4 keeps lines crisp through ~200%\n // browser zoom on a 2x display (the dpr watcher re-renders on zoom).\n const dpr = Math.min(window.devicePixelRatio || 1, 4);\n this.lastDpr = dpr;\n this.canvas.width = w * dpr;\n this.canvas.height = h * dpr;\n\n // Layout always runs left-to-right; an RTL host gets the finished frame\n // mirrored (see rtl.ts), so no part of the geometry pipeline needs to know.\n // The un-mirrored scene is kept because the intro animations sweep along +x\n // (`draw` reveals by a moving cutX) — they run in that space and each frame\n // is mirrored on its way to the canvas, so the reveal follows the reading\n // direction instead of running backwards.\n this.rtl = isRtl(this.container);\n const layout = (): RenderScene => {\n this.sceneLtr = computeLayout(this.spec!, this.theme!, w, h);\n return this.mirrored(this.sceneLtr);\n };\n\n this.scene = layout();\n // Chrome (axes, gridlines, labels, legend) is static — sync it once; only\n // the data geometry animates on the first render.\n syncOverlay(this.overlay, this.scene, this.theme.fontFamily, { onLegendClick: this.onLegendToggle }, this.rtl, this.legendLayer);\n // Two-pass legend: a wrapped legend's real extent isn't known until it's in\n // the DOM. Re-reserve the gutter to its measured height/width and re-lay-out\n // so a many-series legend never spills onto the plot.\n const legendEl = this.overlay.querySelector('[part=\"legend\"]') as HTMLElement | null;\n if (legendEl && this.spec.legend && this.spec.legend !== 'none') {\n const side = this.spec.legend === 'left' || this.spec.legend === 'right';\n const extent = side ? legendEl.offsetWidth : legendEl.offsetHeight;\n if (extent > 0 && Math.abs((this.spec.legendExtent ?? -1) - extent) > 2) {\n this.spec.legendExtent = extent;\n this.scene = layout();\n syncOverlay(this.overlay, this.scene, this.theme.fontFamily, { onLegendClick: this.onLegendToggle }, this.rtl, this.legendLayer);\n }\n }\n const { variant, duration } = resolveIntro(this.spec);\n const animate = !this.hasRendered && variant !== 'none' && !prefersReducedMotion();\n // An EMPTY scene is not a chart that has been shown: a host that hydrates\n // before its data lands renders once with no series, and treating that as\n // the first render spent the entrance on nothing — the real data then\n // arrived un-animated. The first render with geometry owns the entrance.\n const hasContent = this.sceneLtr\n ? this.sceneLtr.lines.length > 0 || this.sceneLtr.areas.length > 0 || this.sceneLtr.markers.length > 0\n : false;\n if (animate) {\n this.hasRendered = hasContent;\n this.playIntro(dpr, variant, duration);\n return;\n }\n this.hasRendered = this.hasRendered || hasContent;\n this.stopIntro();\n // Preserve any active hover emphasis across non-hover re-renders.\n this.paintGeometry(emphasizeScene(this.scene, this.emphasisSeries, this.emphasisT), dpr);\n }\n\n /**\n * Clear the inline opacity the entrance fades the layers in with.\n *\n * The entrance is the ONLY writer of it, and the loop's terminal frame the\n * only thing that clears it — so any path that ends the entrance early must\n * undo it here, or the chart is left drawn into a canvas pinned at\n * `opacity: 0` with nothing left to write style again.\n */\n private clearIntroOpacity(): void {\n this.canvas.style.opacity = '';\n this.glyphLayer.style.opacity = '';\n }\n\n /** End the entrance loop AND undo the fade it applied. Use this instead of a\n * bare `cancelAnimationFrame(this.introRaf)` outside the loop itself. */\n private stopIntro(): void {\n cancelAnimationFrame(this.introRaf);\n this.introRaf = 0;\n this.clearIntroOpacity();\n }\n\n /** A scene as it should reach the canvas: mirrored on an RTL host. */\n private mirrored(scene: RenderScene): RenderScene {\n return this.rtl ? mirrorScene(scene) : scene;\n }\n\n /** Draw the plot geometry (canvas) + the emoji/text markers (their own layer)\n * for a scene — both animate together frame to frame. */\n private paintGeometry(scene: RenderScene, dpr: number): void {\n this.drawGeometry(scene, dpr);\n renderGlyphs(this.glyphLayer, scene.glyphs ?? [], this.theme?.fontFamily);\n renderEndLabels(this.endLabelLayer, scene.endLabels ?? [], this.theme?.fontFamily);\n }\n\n /** Redraw the plot geometry at the current emphasis (hover-focus dimming).\n * Glyphs are unaffected by emphasis, so only the canvas is repainted. */\n private paintEmphasis(): void {\n if (this.scene) this.drawGeometry(emphasizeScene(this.scene, this.emphasisSeries, this.emphasisT), this.lastDpr);\n }\n\n /** Focus a series (dim the rest) with a short MD3 fade; -1 fades everything\n * back. The emphasised series is kept while fading OUT so the others un-dim\n * gradually instead of snapping. */\n private setFocus(idx: number): void {\n const target = idx >= 0 ? 1 : 0;\n const series = idx >= 0 ? idx : this.emphasisSeries; // keep the last series while fading out\n if (target === this.emphasisTarget && series === this.emphasisSeries) return;\n this.emphasisSeries = series;\n this.emphasisTarget = target;\n if (prefersReducedMotion()) {\n cancelAnimationFrame(this.emphasisRaf);\n this.emphasisT = target;\n if (target === 0) this.emphasisSeries = -1;\n this.paintEmphasis();\n return;\n }\n cancelAnimationFrame(this.emphasisRaf);\n let last = 0;\n const step = (now: number): void => {\n if (!last) last = now;\n const dt = now - last;\n last = now;\n const dir = this.emphasisTarget > this.emphasisT ? 1 : -1;\n this.emphasisT += dir * (dt / EMPHASIS_MS);\n if ((dir > 0 && this.emphasisT >= this.emphasisTarget) || (dir < 0 && this.emphasisT <= this.emphasisTarget)) {\n this.emphasisT = this.emphasisTarget;\n if (this.emphasisTarget === 0) this.emphasisSeries = -1; // fully restored → clear\n this.paintEmphasis();\n return;\n }\n this.paintEmphasis();\n this.emphasisRaf = requestAnimationFrame(step);\n };\n this.emphasisRaf = requestAnimationFrame(step);\n }\n\n /** Replay the entry animation from the start (uses the current spec's variant). */\n replay(): void {\n this.hasRendered = false;\n this.render();\n }\n\n private drawGeometry(scene: RenderScene, dpr: number): void {\n if (!this.ctx) return;\n this.ctx.setTransform(dpr, 0, 0, dpr, 0, 0);\n drawSceneCanvas(this.ctx, scene);\n }\n\n private playIntro(dpr: number, variant: MdChartAnimation, duration: number): void {\n // Animate in LTR space (the reveals sweep along +x) and mirror each frame.\n const target = this.sceneLtr;\n if (!target) return;\n // A staggered reveal draws each series in turn, so the whole timeline scales\n // with the series count (`duration` is the per-series draw time) — capped so\n // a many-series chart doesn't crawl.\n let dur = duration;\n if (variant === 'stagger') {\n const n = new Set(target.lines.map((l) => l.seriesIndex ?? 0)).size || 1;\n dur = Math.min(duration * n, 5200);\n }\n this.stopIntro();\n // Grow + fade share one layer opacity: `alpha` < 1 fades the canvas (and its\n // glyph overlay) in; an empty string restores the stylesheet default once the\n // entrance settles. draw/stagger report alpha 1, so their layer stays fully\n // opaque and only the geometry animates.\n const setOpacity = (a: number): void => {\n const v = a < 1 ? String(a) : '';\n this.canvas.style.opacity = v;\n this.glyphLayer.style.opacity = v;\n };\n // Draw t=0 NOW rather than waiting for the first frame. Setting the\n // canvas size above cleared it, so deferring the first draw leaves one\n // frame of blank canvas under a DOM overlay that has already painted its\n // labels — the chart appears to blink before it starts.\n const first = stepAnimation(variant, target, 0);\n setOpacity(first.alpha);\n this.drawGeometry(first.scene, dpr);\n let start = 0;\n const frame = (now: number): void => {\n if (!start) start = now;\n const tRaw = (now - start) / dur;\n if (tRaw >= 1) {\n setOpacity(1);\n this.paintGeometry(this.mirrored(target), dpr);\n return;\n }\n const { scene, alpha } = stepAnimation(variant, target, tRaw);\n setOpacity(alpha);\n this.paintGeometry(this.mirrored(scene), dpr);\n this.introRaf = requestAnimationFrame(frame);\n };\n this.introRaf = requestAnimationFrame(frame);\n }\n\n private handlePointerDown = (e: PointerEvent): void => {\n this.downAt = { x: e.clientX, y: e.clientY };\n this.dragged = false;\n };\n\n /**\n * Show the hover UI at a data index without a pointer — the keyboard path.\n *\n * A sighted keyboard user has to see the same crosshair and tooltip a mouse\n * user gets, so this reuses the pointer's own rendering rather than a second\n * presentation. The cursor is taken from the point itself, which is what the\n * tooltip positions against. `-1` clears.\n */\n focusIndex(index: number): void {\n if (!this.scene || !this.spec || !this.theme) return;\n if (index < 0) {\n clearHover(this.hoverLayer);\n this.focus.reset();\n this.setFocus(-1);\n return;\n }\n const inverted = !!this.scene.inverted;\n // Anchor on the topmost series that actually has a point here.\n const pt = this.scene.hoverPoints.map((hp) => hp.byIndex[index]).find(Boolean);\n const pos = this.scene.xPositions[index] ?? 0;\n const cursor = pt ? { x: pt.x, y: pt.y } : { x: inverted ? this.scene.plot.x : pos, y: inverted ? pos : this.scene.plot.y };\n renderHover(\n this.hoverLayer,\n this.scene,\n index,\n this.spec.yFormatter,\n this.theme.fontFamily,\n cursor,\n inverted ? 'horizontal' : 'vertical',\n -1,\n { ...this.hoverOpts, rtl: this.rtl },\n );\n }\n\n private handlePointerMove = (e: PointerEvent): void => {\n // Before the hover guard: a drag has to be recognised even with the hover UI\n // switched off (sparklines), and while the zoom band is being dragged.\n if (this.downAt && Math.hypot(e.clientX - this.downAt.x, e.clientY - this.downAt.y) > DRAG_SLOP) {\n this.dragged = true;\n }\n if (!this.scene || !this.hoverEnabled) return;\n const rect = this.canvas.getBoundingClientRect();\n const px = e.clientX - rect.left;\n const py = e.clientY - rect.top;\n // For an inverted chart the main axis is vertical, so hit-test along y.\n const inverted = !!this.scene.inverted;\n const idx = nearestIndex(this.scene.xPositions, inverted ? py : px);\n if (this.hoverRaf) cancelAnimationFrame(this.hoverRaf);\n this.hoverRaf = requestAnimationFrame(() => {\n this.hoverRaf = 0;\n if (!this.scene || !this.spec || !this.theme) return;\n // Emphasise the series nearest the cursor and fade the others (only worth\n // it with more than one series); the hover highlights fade to match.\n const focus = this.scene.hoverPoints.length > 1 ? this.nearestSeries(px, py) : -1;\n renderHover(this.hoverLayer, this.scene, idx, this.spec.yFormatter, this.theme.fontFamily, { x: px, y: py }, inverted ? 'horizontal' : 'vertical', focus, { ...this.hoverOpts, rtl: this.rtl });\n this.setFocus(focus);\n if (idx !== this.lastHoverIndex) {\n this.lastHoverIndex = idx;\n this.cb.onHover?.(idx);\n }\n });\n };\n\n /**\n * Each visible series' samples as `[main, value]` pixel pairs ordered along\n * the main axis, for the hover-focus distance test. Built once per scene and\n * only when a multi-series chart is actually hovered, so the single-series\n * and never-hovered cases cost nothing. (Integer-keyed records enumerate in\n * ascending numeric order, so `byIndex` is already in main-axis order.)\n */\n private seriesLines(scene: RenderScene): [number, number][][] {\n if (this.focusLines?.scene === scene) return this.focusLines.points;\n const points = seriesSampleLines(scene);\n this.focusLines = { scene, points };\n return points;\n }\n\n /**\n * Series whose drawn line is nearest the cursor, or -1.\n *\n * Distance is to the LINE, not to the sample at the hovered index: series\n * measured at different x (irregular data) mostly have no sample there, and\n * comparing exact samples handed the emphasis to whichever series owned that\n * slot — so it strobed as the pointer moved. The currently emphasised series\n * then holds on unless a rival is clearly nearer ({@link pickFocusSeries}),\n * which is what settles lines running close together.\n */\n private nearestSeries(px: number, py: number): number {\n if (!this.scene) return -1;\n // Emphasis exists to pick one LINE out of several running close together.\n // On a FILLED chart it does something else entirely: it recolours large\n // areas, and with an axis-triggered tooltip — which already lists every\n // series — singling one band out contradicts the card and washes the figure\n // out. So a filled chart on axis trigger emphasises nothing; the crosshair\n // and the card carry the reading. Item trigger is the opposite case: the\n // card names exactly ONE series, and without the highlight there would be\n // nothing to say which band it meant, so there the emphasis is essential.\n if (this.scene.areas.length > 0 && this.hoverOpts.trigger !== 'item') {\n this.focus.reset();\n return -1;\n }\n // The cursor is inside a band, and that band owns it. Distance-to-line is\n // the wrong test there: on a thick stacked band the nearest line is usually\n // the NEIGHBOURING series' edge, so the tooltip named a series the pointer\n // was never over.\n const inArea = areaSeriesAt(this.scene, px, py);\n if (inArea >= 0) {\n // Containment doesn't strobe the way a distance tie does, so it is\n // adopted immediately — but the dwell state still has to follow, or the\n // next move outside the bands inherits a stale focus.\n this.focus.reset();\n return inArea;\n }\n const inverted = !!this.scene.inverted;\n const cursorMain = inverted ? py : px;\n const cursorValue = inverted ? px : py;\n const lines = this.seriesLines(this.scene);\n const candidates = this.scene.hoverPoints.map((hp, i) => ({\n seriesIndex: hp.seriesIndex,\n distance: distanceToLine(lines[i], cursorMain, cursorValue),\n }));\n return this.focus.pick(candidates, now());\n }\n\n private handlePointerLeave = (): void => {\n if (this.hoverRaf) {\n cancelAnimationFrame(this.hoverRaf);\n this.hoverRaf = 0;\n }\n clearHover(this.hoverLayer);\n this.focus.reset(); // next hover adopts a series immediately\n this.setFocus(-1); // restore all series to full emphasis\n if (this.lastHoverIndex !== -1) {\n this.lastHoverIndex = -1;\n this.cb.onHover?.(-1);\n }\n };\n\n /**\n * Resolve a click to the most specific thing under it — mark, then line, then\n * area, then the plot background — and fire that one callback only\n * ({@link hitTestScene} owns the geometry).\n */\n private handleClick = (e: MouseEvent): void => {\n const dragged = this.dragged;\n this.dragged = false;\n this.downAt = null;\n if (!this.scene) return;\n const rect = this.canvas.getBoundingClientRect();\n const px = e.clientX - rect.left;\n const py = e.clientY - rect.top;\n const hit = hitTestScene(this.scene, px, py, this.seriesLines(this.scene));\n if (!hit) return;\n const pe = e as PointerEvent;\n if (hit.kind === 'mark') {\n this.cb.onPointClick?.(hit.seriesIndex, hit.dataIndex, pe);\n return;\n }\n // The plot-wide clicks are the ones a stray drag would spam, so they take\n // the drag guard (a mark click never has — see DRAG_SLOP).\n if (dragged) return;\n if (hit.kind === 'line') this.cb.onLineClick?.(hit.seriesIndex, hit.dataIndex, pe);\n else if (hit.kind === 'area') this.cb.onAreaClick?.(hit.seriesIndex, hit.dataIndex, pe);\n else this.cb.onAxisClick?.(hit.dataIndex, axisSeriesValues(this.scene, hit.dataIndex), pe);\n };\n\n /** Toggle the series' visibility on legend click (ECharts-style built-in\n * behaviour) and forward the resulting state to the consumer. */\n private onLegendToggle = (item: LegendItem): void => {\n if (this.spec) {\n this.spec.series[item.seriesIndex].hidden = !this.spec.series[item.seriesIndex].hidden;\n // Re-play the entry motion so the chart animates into its new\n // configuration (respects the variant + reduced-motion / 'none').\n this.hasRendered = false;\n this.render();\n this.cb.onLegendClick?.({ ...item, hidden: this.spec.series[item.seriesIndex].hidden });\n } else {\n this.cb.onLegendClick?.(item);\n }\n };\n}\n"],"mappings":"2NAoBA,MAAMA,EAAM,WAAsBC,cAAgB,YAAcA,YAAYD,MAAQE,KAAKF,MA6BzF,MAAMG,EAAY,E,MAELC,EAgDX,WAAAC,CAAoBC,GAAAC,KAAAD,YAvCZC,KAAAC,IAAuC,KACvCD,KAAAE,KAA6B,KAC7BF,KAAAG,MAA4B,KAC5BH,KAAAI,MAA4B,KAC5BJ,KAAAK,GAAsB,GACtBL,KAAAM,SAAW,EACXN,KAAAO,gBAAiB,EACjBP,KAAAQ,aAAe,KACfR,KAAAS,UAA0B,GAC1BT,KAAAU,YAAc,MACdV,KAAAW,SAAW,EACXX,KAAAY,MAAQ,EACRZ,KAAAa,MAAQ,EACRb,KAAAc,QAAU,EAGVd,KAAAe,gBAAiB,EACjBf,KAAAgB,UAAY,EACZhB,KAAAiB,eAAiB,EACjBjB,KAAAkB,YAAc,EAEdlB,KAAAmB,WAA0E,KAE1EnB,KAAAoB,MAAQ,IAAIC,EAGZrB,KAAAsB,OAA0C,KAC1CtB,KAAAuB,QAAU,MAEVvB,KAAAwB,IAAM,MAENxB,KAAAyB,SAA+B,KAC/BzB,KAAA0B,SAAuBC,GAAsB,IAAM3B,KAAK4B,WAGxD5B,KAAA6B,SAA6BC,GAAe,KAClD,GAAIC,EAAM/B,KAAKD,aAAeC,KAAKwB,IAAKxB,KAAK4B,QAAQ,IAiU/C5B,KAAAgC,kBAAqBC,IAC3BjC,KAAKsB,OAAS,CAAEY,EAAGD,EAAEE,QAASC,EAAGH,EAAEI,SACnCrC,KAAKuB,QAAU,KAAK,EAqCdvB,KAAAsC,kBAAqBL,IAG3B,GAAIjC,KAAKsB,QAAUiB,KAAKC,MAAMP,EAAEE,QAAUnC,KAAKsB,OAAOY,EAAGD,EAAEI,QAAUrC,KAAKsB,OAAOc,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C,EAAkB3L,GACjCJ,KAAKmB,WAAa,CAAEf,QAAO0L,UAC3B,OAAOA,C,CAaD,aAAAtI,CAAcZ,EAAYE,GAChC,IAAK9C,KAAKI,MAAO,OAAO,EASxB,GAAIJ,KAAKI,MAAMyI,MAAMtF,OAAS,GAAKvD,KAAKS,UAAUuL,UAAY,OAAQ,CACpEhM,KAAKoB,MAAM6C,QACX,OAAO,C,CAMT,MAAMgI,EAASC,EAAalM,KAAKI,MAAOwC,EAAIE,GAC5C,GAAImJ,GAAU,EAAG,CAIfjM,KAAKoB,MAAM6C,QACX,OAAOgI,C,CAET,MAAMjJ,IAAahD,KAAKI,MAAM4C,SAC9B,MAAMmJ,EAAanJ,EAAWF,EAAKF,EACnC,MAAMwJ,EAAcpJ,EAAWJ,EAAKE,EACpC,MAAM8F,EAAQ5I,KAAKqE,YAAYrE,KAAKI,OACpC,MAAMiM,EAAarM,KAAKI,MAAMkD,YAAYiH,KAAI,CAACgB,EAAIe,KAAC,CAClD7H,YAAa8G,EAAG9G,YAChB8H,SAAUC,EAAe5D,EAAM0D,GAAIH,EAAYC,OAEjD,OAAOpM,KAAKoB,MAAMqL,KAAKJ,EAAY5M,I","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e="md3";const t={hotModuleReplacement:false,hydratedSelectorName:"hydrated",lazyLoad:false,state:true,updatable:true};var n="http://www.w3.org/2000/svg";var r="http://www.w3.org/1999/xhtml";function l(e,t,n){const r=typeof HTMLElement!=="undefined"?HTMLElement.prototype:null;while(e&&e!==r){const r=Object.getOwnPropertyDescriptor(e,t);if(r&&(!n||r.get))return r;e=Object.getPrototypeOf(e)}return void 0}var s=(e,t)=>{var n;const r=t.t;const s=Object.entries((n=r.l)!=null?n:{});s.map((([n,[r]])=>{if(r&31||r&32){const r=e[n];const s=l(Object.getPrototypeOf(e),n,true)||Object.getOwnPropertyDescriptor(e,n);if(s){Object.defineProperty(e,n,{get(){return s.get.call(this)},set(e){s.set.call(this,e)},configurable:true,enumerable:true})}if(t.i.has(n)){e[n]=t.i.get(n)}else if(r!==void 0){e[n]=r}}}))};var i=e=>{if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var o=(e,n)=>{const r={o:0,$hostElement$:e,t:n,i:new Map,u:new Map};{r.v=new Promise((e=>r.p=e));e["s-p"]=[];e["s-rc"]=[]}const l=r;e.__stencil__getHostRef=()=>l;if(n.o&512&&t.state){s(e,r)}return l};var f=(e,t)=>t in e;var a=(e,t)=>(0,console.error)(e,t);var c=new Map;var u="slot-fb{display:contents}slot-fb[hidden]{display:none}";var v="http://www.w3.org/1999/xlink";var d=1e3;var p=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"];var h=typeof window!=="undefined"?window:{};var m=h.HTMLElement||class{};var y={o:0,h:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)};var b=(()=>{var e;let t=false;try{(e=h.document)==null?void 0:e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=true}}))}catch(e){}return t})();var w=e=>Promise.resolve(e);var g=(()=>{try{if(!h.document.adoptedStyleSheets){return false}new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var $=g?(()=>!!h.document&&Object.getOwnPropertyDescriptor(h.document.adoptedStyleSheets,"length").writable)():false;var j=false;var O=[];var S=[];var k=()=>{var e;return((e=h.document)==null?void 0:e.hidden)?x(E):y.raf(E)};var M=(e,t)=>n=>{e.push(n);if(!j){j=true;if(t&&y.o&4){x(E)}else{k()}}};var C=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){a(e)}}e.length=0};var E=()=>{C(O);{C(S);if(j=O.length>0){k()}}};var x=e=>w().then(e);var A=M(S,true);var N=e=>{const t=new URL(e,y.h);return t.origin!==h.location.origin?t.href:t.pathname};var R=e=>y.h=e;function L(e){return void 0}var U;function D(e){var t;const n={mode:"open"};{n.delegatesFocus=!!(e.o&16)}const r=this.attachShadow(n);if(U===void 0)U=(t=L())!=null?t:null;if(U){if($){r.adoptedStyleSheets.push(U)}else{r.adoptedStyleSheets=[...r.adoptedStyleSheets,U]}}}var _=(e,t="")=>{{return()=>{}}};function H(e){var t,n,r;return(r=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?r:void 0}var P=new WeakMap;var W=(e,t,n)=>{let r=c.get(e);if(g&&n){r=r||new CSSStyleSheet;if(typeof r==="string"){r=t}else{r.replaceSync(t)}}else{r=t}c.set(e,r)};var z=(e,t,n)=>{var r,l,s;const i=T(t);const o=c.get(i);if(!h.document){return i}e=e.nodeType===11?e:h.document;if(o){if(typeof o==="string"){e=e.head||e;let n=P.get(e);let s;if(!n){P.set(e,n=new Set)}if(!n.has(i)){s=h.document.createElement("style");s.textContent=o;const f=(r=y.m)!=null?r:H(h.document);if(f!=null){s.setAttribute("nonce",f)}if(!(t.o&1)){if(e.nodeName==="HEAD"){const t=e.querySelectorAll("link[rel=preconnect]");const n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,(n==null?void 0:n.parentNode)===e?n:null)}else if("host"in e){if(g){const t=(l=e.defaultView)!=null?l:e.ownerDocument.defaultView;const n=new t.CSSStyleSheet;n.replaceSync(o);if($){e.adoptedStyleSheets.unshift(n)}else{e.adoptedStyleSheets=[n,...e.adoptedStyleSheets]}}else{const t=e.querySelector("style");if(t&&true){t.textContent=o+t.textContent}else{e.prepend(s)}}}else{e.append(s)}}if(t.o&1){e.insertBefore(s,null)}if(t.o&4){s.textContent+=u}if(n){n.add(i)}}}else{let t=P.get(e);if(!t){P.set(e,t=new Set)}if(!t.has(i)){const n=(s=e.defaultView)!=null?s:e.ownerDocument.defaultView;let r;if(o.constructor===n.CSSStyleSheet){r=o}else{r=new n.CSSStyleSheet;for(let e=0;e<o.cssRules.length;e++){r.insertRule(o.cssRules[e].cssText,e)}}if($){e.adoptedStyleSheets.push(r)}else{e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]}t.add(i)}}}return i};var F=e=>{const t=e.t;const n=e.$hostElement$;const r=t.o;const l=_("attachStyles",t.$);const s=z(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(r&10){n["s-sc"]=s;n.classList.add(s+"-h")}l()};var T=(e,t)=>"sc-"+e.$;var V=e=>{e=typeof e;return e==="object"||e==="function"};var q=(e,t,...n)=>{if(typeof e==="string"){e=et(e)}let r=null;let l=null;let s=false;let i=false;const o=[];const f=t=>{for(let n=0;n<t.length;n++){r=t[n];if(Array.isArray(r)){f(r)}else if(r!=null&&typeof r!=="boolean"){if(s=typeof e!=="function"&&!V(r)){r=String(r)}else if(typeof e!=="function"&&r.o===void 0){{a("Invalid vNode child")}continue}if(s&&i){o[o.length-1].j+=r}else{o.push(s?I(null,r):r)}i=s}}};f(n);if(t){if(t.key){l=t.key}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,o,B)}const c=I(e,null);c.O=t;if(o.length>0){c.S=o}{c.k=l}return c};var I=(e,t)=>{const n={o:0,M:e,j:t!=null?t:null,C:null,S:null};{n.O=null}{n.k=null}return n};var Y={};var Z=e=>e&&e.M===Y;var B={forEach:(e,t)=>e.map(G).forEach(t),map:(e,t)=>e.map(G).map(t).map(J)};var G=e=>({vattrs:e.O,vchildren:e.S,vkey:e.k,vname:e.A,vtag:e.M,vtext:e.j});var J=e=>{if(typeof e.vtag==="function"){const t={...e.vattrs};if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return q(e.vtag,t,...e.vchildren||[])}const t=I(e.vtag,e.vtext);t.O=e.vattrs;t.S=e.vchildren;t.k=e.vkey;t.A=e.vname;return t};var K=e=>{if(!e)return void 0;const t=Object.keys(e);if(t.length===0)return void 0;let n=false;for(const r of t){if(n)break;for(const t of e[r]){if(typeof t==="string"){n=true;break}}}if(!n)return e;const r={};for(const n of t){r[n]=e[n].map((e=>typeof e==="string"?{[e]:0}:e))}return r};var Q=(e,t,n)=>{if(e!=null&&!V(e)){if(t&4){if(n&&typeof e==="string"){return e===""||!!e}else{return e==="false"?false:e===""||!!e}}if(t&2){return typeof e==="string"?parseFloat(e):typeof e==="number"?e:NaN}if(t&1){return String(e)}return e}return e};var X=e=>e;var ee=(e,t,n)=>{const r=X(e);return{emit:e=>te(r,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}};var te=(e,t,n)=>{const r=y.ce(t,n);e.dispatchEvent(r);return r};var ne=(e,t,n,r,l,s,o)=>{if(n===r){return}let a=f(e,t);let c=t.toLowerCase();if(t==="class"){const t=e.classList;const l=le(n);let s=le(r);{t.remove(...l.filter((e=>e&&!s.includes(e))));t.add(...s.filter((e=>e&&!l.includes(e))))}}else if(t==="style"){{for(const t in n){if(!r||r[t]==null){if(t.includes("-")){e.style.removeProperty(t)}else{e.style[t]=""}}}}for(const t in r){if(!n||r[t]!==n[t]){if(t.includes("-")){e.style.setProperty(t,r[t])}else{e.style[t]=r[t]}}}}else if(t==="key");else if(t==="ref"){if(r){je(r,e)}}else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(f(h,c)){t=c.slice(2)}else{t=c[2]+t.slice(3)}if(n||r){const l=t.endsWith(se);t=t.replace(ie,"");if(n){y.rel(e,t,n,l)}if(r){y.ael(e,t,r,l)}}}else if(t[0]==="a"&&t.startsWith("attr:")){const n=t.slice(5);let l;{const t=i(e);if(t&&t.t&&t.t.l){const e=t.t.l[n];if(e&&e[1]){l=e[1]}}}if(!l){l=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}if(r==null||r===false){if(r!==false||e.getAttribute(l)===""){e.removeAttribute(l)}}else{e.setAttribute(l,r===true?"":r)}return}else if(t[0]==="p"&&t.startsWith("prop:")){const n=t.slice(5);try{e[n]=r}catch(e){}return}else{const i=V(r);if((a||i&&r!==null)&&!l){try{if(!e.tagName.includes("-")){const l=r==null?"":r;if(t==="list"){a=false}else if(n==null||e[t]!==l){if(typeof e.__lookupSetter__(t)==="function"){e[t]=l}else{e.setAttribute(t,l)}}}else if(e[t]!==r){e[t]=r}}catch(e){}}let o=false;{if(c!==(c=c.replace(/^xlink\:?/,""))){t=c;o=true}}if(r==null||r===false){if(r!==false||e.getAttribute(t)===""){if(o){e.removeAttributeNS(v,t)}else{e.removeAttribute(t)}}}else if((!a||s&4||l)&&!i&&e.nodeType===1){r=r===true?"":r;if(o){e.setAttributeNS(v,t,r)}else{e.setAttribute(t,r)}}}};var re=/\s/;var le=e=>{if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(re)};var se="Capture";var ie=new RegExp(se+"$");var oe=(e,t,n,r)=>{const l=t.C.nodeType===11&&t.C.host?t.C.host:t.C;const s=e&&e.O||{};const i=t.O||{};{for(const e of fe(Object.keys(s))){if(!(e in i)){ne(l,e,s[e],void 0,n,t.o)}}}for(const e of fe(Object.keys(i))){ne(l,e,s[e],i[e],n,t.o)}};function fe(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var ae;var ce=false;var ue=false;var ve=[];var de=[];var pe=(e,t,l)=>{const s=t.S[l];let i=0;let o;let f;if(s.j!=null){o=s.C=h.document.createTextNode(s.j)}else{if(!ue){ue=s.M==="svg"}if(!h.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.")}o=s.C=h.document.createElementNS(ue?n:r,s.M);if(ue&&s.M==="foreignObject"){ue=false}{oe(null,s,ue)}if(s.S){const t=s.M==="template"?o.content:o;for(i=0;i<s.S.length;++i){f=pe(e,s,i);if(f){t.appendChild(f)}}}{if(s.M==="svg"){ue=false}else if(o.tagName==="foreignObject"){ue=true}}}o["s-hn"]=ae;return o};var he=e=>{y.o|=1;const t=e.closest(ae.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((e=>e["s-cr"]));const r=Array.from(e.__childNodes||e.childNodes);for(const e of n?r.reverse():r){if(e["s-sh"]!=null){Se(t,e,n!=null?n:null);e["s-sh"]=void 0}}}y.o&=-2};var me=(e,t,n,r,l,s)=>{let i=e;let o;if(i.shadowRoot&&i.tagName===ae){i=i.shadowRoot}if(n.M==="template"){i=i.content}for(;l<=s;++l){if(r[l]){o=pe(null,n,l);if(o){r[l].C=o;Se(i,o,t)}}}};var ye=(e,t,n)=>{for(let r=t;r<=n;++r){const t=e[r];if(t){const e=t.C;$e(t);if(e){e.remove()}}}};var be=(e,t,n,r,l=false)=>{let s=0;let i=0;let o=0;let f=0;let a=t.length-1;let c=t[0];let u=t[a];let v=r.length-1;let d=r[0];let p=r[v];let h;let m;const y=n.M==="template"?e.content:e;while(s<=a&&i<=v){if(c==null){c=t[++s]}else if(u==null){u=t[--a]}else if(d==null){d=r[++i]}else if(p==null){p=r[--v]}else if(we(c,d,l)){ge(c,d,l);c=t[++s];d=r[++i]}else if(we(u,p,l)){ge(u,p,l);u=t[--a];p=r[--v]}else if(we(c,p,l)){ge(c,p,l);Se(y,c.C,u.C.nextSibling);c=t[++s];p=r[--v]}else if(we(u,d,l)){ge(u,d,l);Se(y,u.C,c.C);u=t[--a];d=r[++i]}else{o=-1;{for(f=s;f<=a;++f){if(t[f]&&t[f].k!==null&&t[f].k===d.k){o=f;break}}}if(o>=0){m=t[o];if(m.M!==d.M){h=pe(t&&t[i],n,o)}else{ge(m,d,l);t[o]=void 0;h=m.C}d=r[++i]}else{h=pe(t&&t[i],n,i);d=r[++i]}if(h){{Se(c.C.parentNode,h,c.C)}}}}if(s>a){me(e,r[v+1]==null?null:r[v+1].C,n,r,i,v)}else if(i>v){ye(t,s,a)}};var we=(e,t,n=false)=>{if(e.M===t.M){if(!n){return e.k===t.k}if(n&&!e.k&&t.k){e.k=t.k}return true}return false};var ge=(e,n,r=false)=>{const l=n.C=e.C;const s=e.S;const i=n.S;const o=n.M;const f=n.j;if(f==null){{ue=o==="svg"?true:o==="foreignObject"?false:ue}{if(o==="slot"&&!ce){if(e.A!==n.A){n.C["s-sn"]=n.A||"";he(n.C.parentElement)}}oe(e,n,ue)}if(s!==null&&i!==null){be(l,s,n,i,r)}else if(i!==null){if(e.j!==null){l.textContent=""}me(l,null,n,i,0,i.length-1)}else if(!r&&t.updatable&&s!==null){ye(s,0,s.length-1)}else;if(ue&&o==="svg"){ue=false}}else if(e.j!==f){l.data=f}};var $e=e=>{{if(e.O&&e.O.ref){ve.push((()=>e.O.ref(null)))}e.S&&e.S.map($e)}};var je=(e,t)=>{{de.push((()=>e(t)))}};var Oe=()=>{{ve.forEach((e=>e()));ve.length=0;de.forEach((e=>e()));de.length=0}};var Se=(e,t,n,r)=>{if(e.__insertBefore){return e.__insertBefore(t,n)}else{return e==null?void 0:e.insertBefore(t,n)}};var ke=(e,t,n=false)=>{const r=e.$hostElement$;const l=e.t;const s=e.N||I(null,null);const i=Z(t);const o=i?t:q(null,null,t);ae=r.tagName;if(l.R){o.O=o.O||{};l.R.forEach((([e,t])=>{{o.O[t]=r[e]}}))}if(n&&o.O){for(const e of Object.keys(o.O)){if(r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){o.O[e]=r[e]}}}o.M=null;o.o|=4;e.N=o;o.C=s.C=r.shadowRoot||r;ce=!!(l.o&1)&&!(l.o&128);ge(s,o,n);Oe()};var Me=(e,t)=>{if(t&&!e.L&&t["s-p"]){const n=t["s-p"].push(new Promise((r=>e.L=()=>{t["s-p"].splice(n-1,1);r()})))}};var Ce=(e,t)=>{{e.o|=16}if(e.o&4){e.o|=512;return}Me(e,e.U);const n=()=>Ee(e,t);if(t){queueMicrotask((()=>{n()}));return}return A(n)};var Ee=(e,t)=>{const n=e.$hostElement$;const r=_("scheduleUpdate",e.t.$);const l=n;if(!l){throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let s;if(t){s=_e(l,"componentWillLoad",void 0,n)}else{s=_e(l,"componentWillUpdate",void 0,n)}s=xe(s,(()=>_e(l,"componentWillRender",void 0,n)));r();return xe(s,(()=>Ne(e,l,t)))};var xe=(e,t)=>Ae(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var Ae=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var Ne=async(e,t,n)=>{var r;const l=e.$hostElement$;const s=_("update",e.t.$);const i=l["s-rc"];if(n){F(e)}const o=_("render",e.t.$);{Re(e,t,l,n)}if(i){i.map((e=>e()));l["s-rc"]=void 0}o();s();{const t=(r=l["s-p"])!=null?r:[];const n=()=>Le(e);if(t.length===0){n()}else{Promise.all(t).then(n).catch(n);e.o|=4;t.length=0}}};var Re=(e,t,n,r)=>{try{t=t.render();{e.o&=-17}{e.o|=2}{{{ke(e,t,r)}}}}catch(t){a(t,e.$hostElement$)}return null};var Le=e=>{const t=e.t.$;const n=e.$hostElement$;const r=_("postUpdate",t);const l=n;const s=e.U;_e(l,"componentDidRender",void 0,n);if(!(e.o&64)){e.o|=64;{He(n)}_e(l,"componentDidLoad",void 0,n);r();{e.p(n);if(!s){De()}}}else{_e(l,"componentDidUpdate",void 0,n);r()}{if(e.L){e.L();e.L=void 0}if(e.o&512){x((()=>Ce(e,false)))}e.o&=-517}};var Ue=e=>{var t;{const n=i(e);const r=(t=n==null?void 0:n.$hostElement$)==null?void 0:t.isConnected;if(r&&(n.o&(2|16))===2){Ce(n,false)}return r}};var De=t=>{x((()=>te(h,"appload",{detail:{namespace:e}})))};var _e=(e,t,n,r)=>{if(e&&e[t]){try{return e[t](n)}catch(e){a(e,r)}}return void 0};var He=e=>{var n;return e.classList.add((n=t.hydratedSelectorName)!=null?n:"hydrated")};var Pe=(e,t)=>i(e).i.get(t);var We=(e,t,n,r)=>{const l=i(e);if(!l){return}const s=e;const o=l.i.get(t);const f=l.o;const c=s;n=Q(n,r.l[t][0],!!(r.o&64));const u=Number.isNaN(o)&&Number.isNaN(n);const v=n!==o&&!u;if(v){l.i.set(t,n);if(r.D){const e=r.D[t];if(e){e.map((e=>{try{const[[r,s]]=Object.entries(e);if(f&128||s&1){if(!c){l._.push((()=>{l.H[r](n,o,t)}))}else{c[r](n,o,t)}}}catch(e){a(e,s)}}))}}if(f&2){if(c.componentShouldUpdate){const e=c.componentShouldUpdate(n,o,t);if(e===false&&!(f&16)){return}}if(!(f&16)){Ce(l,false)}}}};var ze=(e,n,r)=>{var s,o;const f=e.prototype;if(n.o&64&&r&1){p.forEach((e=>{const t=f[e];Object.defineProperty(f,e,{value(...n){var r;const l=i(this);const s=this;if(!s){(r=l==null?void 0:l.v)==null?void 0:r.then((t=>{const r=t[e];typeof r==="function"&&r.call(t,...n)}))}else{const e=t;typeof e==="function"&&e.call(s,...n)}}})}))}{{if(e.watchers&&!n.D){n.D=K(e.watchers)}if(e.deserializers&&!n.P){n.P=e.deserializers}if(e.serializers&&!n.W){n.W=e.serializers}}const r=Object.entries((s=n.l)!=null?s:{});r.map((([e,[t]])=>{if(t&31||t&32){const{get:r,set:s}=l(f,e)||{};if(r)n.l[e][0]|=2048;if(s)n.l[e][0]|=4096;{Object.defineProperty(f,e,{get(){{return r?r.apply(this):Pe(this,e)}},configurable:true,enumerable:true})}Object.defineProperty(f,e,{set(r){const l=i(this);if(!l){return}if(s){const i=t&32?this[e]:l.$hostElement$[e];if(typeof i==="undefined"&&l.i.get(e)){r=l.i.get(e)}s.apply(this,[Q(r,t,!!(n.o&64))]);r=t&32?this[e]:l.$hostElement$[e];We(this,e,r,n);return}{We(this,e,r,n);return}}})}}));{const l=new Map;f.attributeChangedCallback=function(e,s,o){y.jmp((()=>{var a;const c=l.get(e);const u=i(this);if(this.hasOwnProperty(c)&&t.lazyLoad);if(f.hasOwnProperty(c)&&typeof this[c]==="number"&&this[c]==o){return}else if(c==null){const t=u==null?void 0:u.o;if(u&&t&&!(t&8)&&o!==s){const r=this;const l=r;const i=(a=n.D)==null?void 0:a[e];i==null?void 0:i.forEach((n=>{const[[r,i]]=Object.entries(n);if(l[r]!=null&&(t&128||i&1)){l[r].call(l,o,s,e)}}))}return}const v=r.find((([e])=>e===c));const d=v&&v[1][0]&4;const p=d&&o===null&&this[c]===void 0;if(d){o=o===null||o==="false"?false:true}const h=Object.getOwnPropertyDescriptor(f,c);if(!p&&o!=this[c]&&(!h.get||!!h.set)){this[c]=o}}))};e.observedAttributes=Array.from(new Set([...Object.keys((o=n.D)!=null?o:{}),...r.filter((([e,t])=>t[0]&31)).map((([e,t])=>{var r;const s=t[1]||e;l.set(s,e);if(t[0]&512){(r=n.R)==null?void 0:r.push([e,s])}return s}))]))}}return e};var Fe=async(e,n,r,l)=>{let s;try{if((n.o&32)===0){n.o|=32;n.o&=-1025;{s=e.constructor;const t=e.localName;customElements.whenDefined(t).then((()=>n.o|=128))}if(s&&s.style){let e;if(typeof s.style==="string"){e=s.style}const n=T(r);if(!c.has(n)||t.hotModuleReplacement){const t=_("registerStyles",r.$);W(n,e,!!(r.o&1));t()}}}const l=n.U;const i=()=>Ce(n,true);if(l&&l["s-rc"]){l["s-rc"].push(i)}else{i()}}catch(t){a(t,e);if(n.L){n.L();n.L=void 0}if(n.p&&!(n.o&1024)){n.p(e)}}};var Te=(e,t)=>{};var Ve=e=>{if((y.o&1)===0){const t=i(e);if(!t){return}const n=t.t;const r=_("connectedCallback",n.$);if(!(t.o&1)){t.o|=1;{let n=e;while(n=n.parentNode||n.host){if(n["s-p"]){Me(t,t.U=n);break}}}if(n.l){Object.entries(n.l).map((([t,[n]])=>{if(n&31&&Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];delete e[t];e[t]=n}}))}{Fe(e,t,n)}}else{Ye(e,t,n.F);if(t==null?void 0:t.H);else if(t.o&1024){setTimeout((()=>Fe(e,t,n)),d)}else if(t==null?void 0:t.v){t.v.then((()=>Te()))}}r()}};var qe=async e=>{if((y.o&1)===0){const t=i(e);{if(t==null?void 0:t.T){t.T.map((e=>e()));t.T=void 0}}}if(P.has(e)){P.delete(e)}if(e.shadowRoot&&P.has(e.shadowRoot)){P.delete(e.shadowRoot)}};var Ie=(e,t)=>{const n={o:t[0],$:t[1]};try{{n.l=t[2]}{n.F=t[3]}{n.D=K(e.D);n.P=e.P;n.W=e.W}{n.R=[]}const r=e.prototype.connectedCallback;const l=e.prototype.disconnectedCallback;Object.assign(e.prototype,{__hasHostListenerAttached:false,__registerHost(){o(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const e=i(this);if(!e){return}Ye(this,e,n.F);this.__hasHostListenerAttached=true}Ve(this);if(r){r.call(this)}},disconnectedCallback(){qe(this);if(l){l.call(this)}},__attachShadow(){{if(!this.shadowRoot){D.call(this,n)}else{if(this.shadowRoot.mode!=="open"){throw new Error(`Unable to re-use existing shadow root for ${n.$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}}}});Object.defineProperty(e,"is",{value:n.$,configurable:true});return ze(e,n,1|2)}catch(t){a(t);return e}};var Ye=(e,t,n,r)=>{if(n&&h.document){n.map((([n,r,l])=>{const s=Be(h.document,e,n);const i=Ze(t,l);const o=Ge(n);y.ael(s,r,i,o);(t.T=t.T||[]).push((()=>y.rel(s,r,i,o)))}))}};var Ze=(e,t)=>n=>{try{{e.$hostElement$[t](n)}}catch(t){a(t,e.$hostElement$)}};var Be=(e,t,n)=>{if(n&4){return e}if(n&8){return h}return t};var Ge=e=>b?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;var Je=e=>y.m=e;var Ke=e=>Object.assign(y,e);var Qe=new WeakMap;function Xe(e,t){let n=Qe.get(t);if(!n){const e={o:0,$:t.tagName};n={o:0,t:e,$hostElement$:t};Qe.set(t,n)}ke(n,e)}function et(e){return e}export{m as H,Je as a,Ke as b,ee as c,Y as d,Ue as f,N as g,q as h,Ie as p,Xe as r,R as s,et as t};
|
|
2
|
+
//# sourceMappingURL=p-bSpXNc5J.js.map
|