@awc-ui/core 1.0.0-beta.3 → 1.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/lazy-loading-indicator-CoC-_DMs.js +69 -0
- package/dist/cjs/lazy-loading-indicator-CoC-_DMs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/md-accordion-item.cjs.entry.js +3 -3
- package/dist/cjs/md-app-bar.cjs.entry.js +1 -1
- package/dist/cjs/md-area-chart.cjs.entry.js +2 -2
- package/dist/cjs/md-autocomplete.cjs.entry.js +4 -3
- package/dist/cjs/md-autocomplete.cjs.entry.js.map +1 -1
- package/dist/cjs/md-avatar_2.cjs.entry.js +3 -3
- package/dist/cjs/md-badge.cjs.entry.js +2 -2
- package/dist/cjs/md-bar-chart.cjs.entry.js +2 -2
- package/dist/cjs/md-bottom-sheet.cjs.entry.js +4 -4
- package/dist/cjs/md-breadcrumbs.cjs.entry.js +2 -2
- package/dist/cjs/md-button-group.cjs.entry.js +2 -2
- package/dist/cjs/{md-button_7.cjs.entry.js → md-button_6.cjs.entry.js} +13 -38
- package/dist/cjs/md-button_6.cjs.entry.js.map +1 -0
- package/dist/cjs/md-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/md-chip.cjs.entry.js +2 -2
- package/dist/cjs/md-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/md-dialog.cjs.entry.js +2 -2
- package/dist/cjs/md-divider.cjs.entry.js +2 -2
- package/dist/cjs/md-fab-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/md-fab-menu.cjs.entry.js +2 -2
- package/dist/cjs/md-fab.cjs.entry.js +2 -2
- package/dist/cjs/md-line-chart.cjs.entry.js +2 -2
- package/dist/cjs/md-list-item.cjs.entry.js +3 -3
- package/dist/cjs/md-list.cjs.entry.js +3 -3
- package/dist/cjs/md-loading-indicator-CmzdcYLR.js +33 -0
- package/dist/cjs/md-loading-indicator-CmzdcYLR.js.map +1 -0
- package/dist/cjs/md-loading-indicator.cjs.entry.js +11 -0
- package/dist/cjs/md-loading-indicator.cjs.entry.js.map +1 -0
- package/dist/cjs/md-menu_2.cjs.entry.js +5 -5
- package/dist/cjs/md-multi-select.cjs.entry.js +5 -4
- package/dist/cjs/md-multi-select.cjs.entry.js.map +1 -1
- package/dist/cjs/md-navigation-bar.cjs.entry.js +1 -1
- package/dist/cjs/md-navigation-tab.cjs.entry.js +2 -2
- package/dist/cjs/md-number-field.cjs.entry.js +2 -2
- package/dist/cjs/md-organization-chart.cjs.entry.js +2 -2
- package/dist/cjs/md-otp-field.cjs.entry.js +3 -3
- package/dist/cjs/md-search.cjs.entry.js +7 -6
- package/dist/cjs/md-search.cjs.entry.js.map +1 -1
- package/dist/cjs/md-select-option.cjs.entry.js +1 -1
- package/dist/cjs/md-select.cjs.entry.js +5 -4
- package/dist/cjs/md-select.cjs.entry.js.map +1 -1
- package/dist/cjs/md-slider.cjs.entry.js +2 -2
- package/dist/cjs/md-sparkline.cjs.entry.js +2 -2
- package/dist/cjs/md-status-dot.cjs.entry.js +1 -1
- package/dist/cjs/md-table.cjs.entry.js +3 -3
- package/dist/cjs/md-text-field.cjs.entry.js +7 -7
- package/dist/cjs/md-time-picker.cjs.entry.js +1 -1
- package/dist/cjs/md-transfer-list.cjs.entry.js +1 -1
- package/dist/cjs/md3.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/md-accordion-item/md-accordion-item.js +3 -3
- package/dist/collection/components/md-app-bar/md-app-bar.js +1 -1
- package/dist/collection/components/md-area-chart/md-area-chart.js +2 -2
- package/dist/collection/components/md-autocomplete/md-autocomplete.js +4 -3
- package/dist/collection/components/md-autocomplete/md-autocomplete.js.map +1 -1
- package/dist/collection/components/md-avatar/md-avatar.js +2 -2
- package/dist/collection/components/md-badge/md-badge.js +2 -2
- package/dist/collection/components/md-bar-chart/md-bar-chart.js +2 -2
- package/dist/collection/components/md-bottom-sheet/md-bottom-sheet.js +4 -4
- package/dist/collection/components/md-breadcrumbs/md-breadcrumbs.js +2 -2
- package/dist/collection/components/md-button/md-button.js +4 -3
- package/dist/collection/components/md-button/md-button.js.map +1 -1
- package/dist/collection/components/md-button-group/md-button-group.js +2 -2
- package/dist/collection/components/md-card/md-card.js +2 -2
- package/dist/collection/components/md-checkbox/md-checkbox.js +2 -2
- package/dist/collection/components/md-chip/md-chip.js +2 -2
- package/dist/collection/components/md-date-picker/md-date-picker.js +1 -1
- package/dist/collection/components/md-dialog/md-dialog.js +2 -2
- package/dist/collection/components/md-divider/md-divider.js +2 -2
- package/dist/collection/components/md-fab/md-fab.js +2 -2
- package/dist/collection/components/md-fab-menu/md-fab-menu.js +2 -2
- package/dist/collection/components/md-fab-menu-item/md-fab-menu-item.js +2 -2
- package/dist/collection/components/md-icon-button/md-icon-button.js +4 -4
- package/dist/collection/components/md-line-chart/md-line-chart.js +2 -2
- package/dist/collection/components/md-list/md-list.js +3 -3
- package/dist/collection/components/md-list-item/md-list-item.js +3 -3
- package/dist/collection/components/md-loading-indicator/md-loading-indicator.js +2 -2
- package/dist/collection/components/md-menu/md-menu.js +3 -3
- package/dist/collection/components/md-menu-item/md-menu-item.js +2 -2
- package/dist/collection/components/md-multi-select/md-multi-select.js +5 -4
- package/dist/collection/components/md-multi-select/md-multi-select.js.map +1 -1
- package/dist/collection/components/md-navigation-bar/md-navigation-bar.js +1 -1
- package/dist/collection/components/md-navigation-tab/md-navigation-tab.js +2 -2
- package/dist/collection/components/md-number-field/md-number-field.js +2 -2
- package/dist/collection/components/md-organization-chart/md-organization-chart.js +2 -2
- package/dist/collection/components/md-otp-field/md-otp-field.js +3 -3
- package/dist/collection/components/md-ripple/md-ripple.js +1 -1
- package/dist/collection/components/md-search/md-search.js +7 -6
- package/dist/collection/components/md-search/md-search.js.map +1 -1
- package/dist/collection/components/md-select/md-select.js +5 -4
- package/dist/collection/components/md-select/md-select.js.map +1 -1
- package/dist/collection/components/md-select-option/md-select-option.js +1 -1
- package/dist/collection/components/md-slider/md-slider.js +2 -2
- package/dist/collection/components/md-sparkline/md-sparkline.js +2 -2
- package/dist/collection/components/md-status-dot/md-status-dot.js +1 -1
- package/dist/collection/components/md-table/md-table.js +3 -3
- package/dist/collection/components/md-text-field/md-text-field.js +7 -7
- package/dist/collection/components/md-time-picker/md-time-picker.js +1 -1
- package/dist/collection/components/md-tooltip/md-tooltip.js +1 -1
- package/dist/collection/components/md-transfer-list/md-transfer-list.js +1 -1
- package/dist/collection/utils/lazy-loading-indicator.js +62 -0
- package/dist/collection/utils/lazy-loading-indicator.js.map +1 -0
- package/dist/components/md-accordion-item.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-autocomplete.js.map +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-date-picker.js +1 -1
- package/dist/components/md-date-picker.js.map +1 -1
- package/dist/components/md-dialog.js +1 -1
- package/dist/components/md-dialog.js.map +1 -1
- package/dist/components/md-divider.js +1 -1
- package/dist/components/md-divider.js.map +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-line-chart.js.map +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.js +1 -1
- package/dist/components/md-menu.js +1 -1
- package/dist/components/md-multi-select.js +1 -1
- package/dist/components/md-multi-select.js.map +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-radio.js +1 -1
- package/dist/components/md-ripple.js +1 -1
- package/dist/components/md-search.js +1 -1
- package/dist/components/md-search.js.map +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-slider.js +1 -1
- package/dist/components/md-snackbar.js +1 -1
- package/dist/components/md-snackbar.js.map +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-step.js.map +1 -1
- package/dist/components/md-stepper.js +1 -1
- package/dist/components/md-stepper.js.map +1 -1
- package/dist/components/md-sub-menu-item.js +1 -1
- package/dist/components/md-tab.js +1 -1
- package/dist/components/md-table-expand-toggle.js +1 -1
- package/dist/components/md-table-pagination.js +1 -1
- package/dist/components/md-table-pagination.js.map +1 -1
- package/dist/components/md-table.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-time-picker.js.map +1 -1
- package/dist/components/md-tooltip.js +1 -1
- package/dist/components/md-transfer-list.js +1 -1
- package/dist/components/{p-Eb44PPZa.js → p-1RSrsLOs.js} +2 -2
- package/dist/components/{p-D8oM1Kr3.js → p-2HV152w7.js} +2 -2
- package/dist/components/{p-BA2v4IuG.js → p-6ZDAcEKN.js} +2 -2
- package/dist/components/{p-BADA63mI.js → p-B2fYoYe9.js} +2 -2
- package/dist/components/p-B2fYoYe9.js.map +1 -0
- package/dist/components/{p-CCMritCA.js → p-C77M30dm.js} +2 -2
- package/dist/{components-csr/p-Bmu7RqHM.js → components/p-CNgkGl_1.js} +2 -2
- package/dist/components/p-CNgkGl_1.js.map +1 -0
- package/dist/components/{p-CtVItLby.js → p-D5Ht729E.js} +2 -2
- package/dist/components/p-DPqGg8C1.js +2 -0
- package/dist/components/p-DPqGg8C1.js.map +1 -0
- package/dist/components/{p-CTC8XAB6.js → p-De3E5Q8v.js} +2 -2
- package/dist/components/{p-B-JfuA2g.js → p-Dm_7DA1f.js} +2 -2
- package/dist/components/{p-DEzb9xsY.js → p-Dz3R-2Wn.js} +2 -2
- package/dist/components/{p-B-iHDK5h.js → p-Zjf9uhOr.js} +2 -2
- package/dist/components/{p-DfU4xY2F.js → p-ssLobpGS.js} +2 -2
- package/dist/components/{p-DYL-8C5C.js → p-zMR3UIR_.js} +2 -2
- package/dist/components-csr/md-accordion-item.js +1 -1
- package/dist/components-csr/md-app-bar.js +1 -1
- package/dist/components-csr/md-area-chart.js +1 -1
- package/dist/components-csr/md-area-chart.js.map +1 -1
- package/dist/components-csr/md-autocomplete.js +1 -1
- package/dist/components-csr/md-autocomplete.js.map +1 -1
- package/dist/components-csr/md-avatar.js +1 -1
- package/dist/components-csr/md-badge.js +1 -1
- package/dist/components-csr/md-bar-chart.js +1 -1
- package/dist/components-csr/md-bottom-sheet.js +1 -1
- package/dist/components-csr/md-breadcrumb-item.js +1 -1
- package/dist/components-csr/md-breadcrumbs.js +1 -1
- package/dist/components-csr/md-button-group.js +1 -1
- package/dist/components-csr/md-button.js +1 -1
- package/dist/components-csr/md-card.js +1 -1
- package/dist/components-csr/md-checkbox.js +1 -1
- package/dist/components-csr/md-chip.js +1 -1
- package/dist/components-csr/md-date-picker.js +1 -1
- package/dist/components-csr/md-date-picker.js.map +1 -1
- package/dist/components-csr/md-dialog.js +1 -1
- package/dist/components-csr/md-dialog.js.map +1 -1
- package/dist/components-csr/md-divider.js +1 -1
- package/dist/components-csr/md-divider.js.map +1 -1
- package/dist/components-csr/md-fab-menu-item.js +1 -1
- package/dist/components-csr/md-fab-menu.js +1 -1
- package/dist/components-csr/md-fab.js +1 -1
- package/dist/components-csr/md-icon-button.js +1 -1
- package/dist/components-csr/md-line-chart.js +1 -1
- package/dist/components-csr/md-line-chart.js.map +1 -1
- package/dist/components-csr/md-list-item.js +1 -1
- package/dist/components-csr/md-list.js +1 -1
- package/dist/components-csr/md-loading-indicator.js +1 -1
- package/dist/components-csr/md-menu-item.js +1 -1
- package/dist/components-csr/md-menu.js +1 -1
- package/dist/components-csr/md-multi-select.js +1 -1
- package/dist/components-csr/md-multi-select.js.map +1 -1
- package/dist/components-csr/md-navigation-bar.js +1 -1
- package/dist/components-csr/md-navigation-rail-tab.js +1 -1
- package/dist/components-csr/md-navigation-rail.js +1 -1
- package/dist/components-csr/md-navigation-tab.js +1 -1
- package/dist/components-csr/md-number-field.js +1 -1
- package/dist/components-csr/md-organization-chart.js +1 -1
- package/dist/components-csr/md-otp-field.js +1 -1
- package/dist/components-csr/md-radio.js +1 -1
- package/dist/components-csr/md-ripple.js +1 -1
- package/dist/components-csr/md-search.js +1 -1
- package/dist/components-csr/md-search.js.map +1 -1
- package/dist/components-csr/md-segmented-button.js +1 -1
- package/dist/components-csr/md-select-option.js +1 -1
- package/dist/components-csr/md-select.js +1 -1
- package/dist/components-csr/md-side-sheet.js +1 -1
- package/dist/components-csr/md-slider.js +1 -1
- package/dist/components-csr/md-snackbar.js +1 -1
- package/dist/components-csr/md-snackbar.js.map +1 -1
- package/dist/components-csr/md-sparkline.js +1 -1
- package/dist/components-csr/md-split-button.js +1 -1
- package/dist/components-csr/md-status-dot.js +1 -1
- package/dist/components-csr/md-step.js +1 -1
- package/dist/components-csr/md-step.js.map +1 -1
- package/dist/components-csr/md-stepper.js +1 -1
- package/dist/components-csr/md-stepper.js.map +1 -1
- package/dist/components-csr/md-sub-menu-item.js +1 -1
- package/dist/components-csr/md-tab.js +1 -1
- package/dist/components-csr/md-table-expand-toggle.js +1 -1
- package/dist/components-csr/md-table-pagination.js +1 -1
- package/dist/components-csr/md-table-pagination.js.map +1 -1
- package/dist/components-csr/md-table.js +1 -1
- package/dist/components-csr/md-text-field.js +1 -1
- package/dist/components-csr/md-time-picker.js +1 -1
- package/dist/components-csr/md-time-picker.js.map +1 -1
- package/dist/components-csr/md-tooltip.js +1 -1
- package/dist/components-csr/md-transfer-list.js +1 -1
- package/dist/components-csr/p-6WgHjhDg.js +2 -0
- package/dist/components-csr/p-6WgHjhDg.js.map +1 -0
- package/dist/components-csr/{p-C0DlKmRg.js → p-BEmwDSzw.js} +2 -2
- package/dist/components-csr/{p-DvXQXhgu.js → p-BQKzjYcY.js} +2 -2
- package/dist/components-csr/{p-CG6FaRlt.js → p-BWMwewtY.js} +2 -2
- package/dist/components-csr/{p--OUYjgKN.js → p-BZakoRau.js} +2 -2
- package/dist/components-csr/p-BZakoRau.js.map +1 -0
- package/dist/components-csr/{p-CSrxeWwL.js → p-Bkt_X-6v.js} +2 -2
- package/dist/components-csr/{p-Hm3X1iai.js → p-C3vB0Hd9.js} +2 -2
- package/dist/components-csr/{p-CrbzXk64.js → p-CF7mq5T7.js} +2 -2
- package/dist/components-csr/{p-DF19mmLl.js → p-CVMM-tdC.js} +2 -2
- package/dist/components-csr/{p-C4_7YnHT.js → p-DMQ-6aj8.js} +2 -2
- package/dist/components-csr/{p--TCJgZnE.js → p-DjKPc5EU.js} +2 -2
- package/dist/{components/p-Lsoo1B-2.js → components-csr/p-If0JHsYV.js} +2 -2
- package/dist/components-csr/p-If0JHsYV.js.map +1 -0
- package/dist/components-csr/{p-IWA0yIjJ.js → p-R_guULjT.js} +2 -2
- package/dist/components-csr/{p-uZbtHo-A.js → p-uSMrgqAy.js} +2 -2
- package/dist/esm/{a11y-C6CRqodW.js → a11y-BckJ95d7.js} +3 -3
- package/dist/esm/{a11y-C6CRqodW.js.map → a11y-BckJ95d7.js.map} +1 -1
- package/dist/esm/{bar-chart-ZZrajEkM.js → bar-chart-BuTyuCbt.js} +4 -4
- package/dist/esm/{bar-chart-ZZrajEkM.js.map → bar-chart-BuTyuCbt.js.map} +1 -1
- package/dist/esm/{chart-32olae06.js → chart-ByIhkqsG.js} +4 -4
- package/dist/esm/{chart-32olae06.js.map → chart-ByIhkqsG.js.map} +1 -1
- package/dist/esm/{hit-test-DHldf5Lm.js → hit-test-c_hI-yCX.js} +3 -3
- package/dist/esm/{hit-test-DHldf5Lm.js.map → hit-test-c_hI-yCX.js.map} +1 -1
- package/dist/esm/lazy-loading-indicator-BWFcjJiK.js +67 -0
- package/dist/esm/lazy-loading-indicator-BWFcjJiK.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/md-accordion-item.entry.js +3 -3
- package/dist/esm/md-app-bar.entry.js +1 -1
- package/dist/esm/md-area-chart.entry.js +6 -6
- package/dist/esm/md-autocomplete.entry.js +4 -3
- package/dist/esm/md-autocomplete.entry.js.map +1 -1
- package/dist/esm/md-avatar_2.entry.js +3 -3
- package/dist/esm/md-badge.entry.js +2 -2
- package/dist/esm/md-bar-chart.entry.js +6 -6
- package/dist/esm/md-bottom-sheet.entry.js +4 -4
- package/dist/esm/md-breadcrumb-item.entry.js +1 -1
- package/dist/esm/md-breadcrumbs.entry.js +2 -2
- package/dist/esm/md-button-group.entry.js +2 -2
- package/dist/esm/{md-button_7.entry.js → md-button_6.entry.js} +15 -39
- package/dist/esm/md-button_6.entry.js.map +1 -0
- package/dist/esm/md-checkbox.entry.js +2 -2
- package/dist/esm/md-chip.entry.js +2 -2
- package/dist/esm/md-date-picker.entry.js +1 -1
- package/dist/esm/md-dialog.entry.js +2 -2
- package/dist/esm/md-divider.entry.js +2 -2
- package/dist/esm/md-fab-menu-item.entry.js +2 -2
- package/dist/esm/md-fab-menu.entry.js +2 -2
- package/dist/esm/md-fab.entry.js +2 -2
- package/dist/esm/md-line-chart.entry.js +6 -6
- package/dist/esm/md-list-item.entry.js +4 -4
- package/dist/esm/md-list.entry.js +3 -3
- package/dist/esm/md-loading-indicator-Bf-Pt29l.js +31 -0
- package/dist/esm/md-loading-indicator-Bf-Pt29l.js.map +1 -0
- package/dist/esm/md-loading-indicator.entry.js +5 -0
- package/dist/esm/md-loading-indicator.entry.js.map +1 -0
- package/dist/esm/md-menu_2.entry.js +5 -5
- package/dist/esm/md-multi-select.entry.js +5 -4
- package/dist/esm/md-multi-select.entry.js.map +1 -1
- 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-tab.entry.js +3 -3
- package/dist/esm/md-number-field.entry.js +2 -2
- package/dist/esm/md-organization-chart.entry.js +2 -2
- package/dist/esm/md-otp-field.entry.js +3 -3
- package/dist/esm/md-pie-chart.entry.js +2 -2
- package/dist/esm/md-search.entry.js +7 -6
- package/dist/esm/md-search.entry.js.map +1 -1
- package/dist/esm/md-select-option.entry.js +1 -1
- package/dist/esm/md-select.entry.js +5 -4
- package/dist/esm/md-select.entry.js.map +1 -1
- package/dist/esm/md-slider.entry.js +2 -2
- package/dist/esm/md-sparkline.entry.js +6 -6
- package/dist/esm/md-status-dot.entry.js +1 -1
- package/dist/esm/md-table.entry.js +3 -3
- package/dist/esm/md-text-field.entry.js +7 -7
- package/dist/esm/md-time-picker.entry.js +1 -1
- package/dist/esm/md-transfer-list.entry.js +1 -1
- package/dist/esm/md3.js +1 -1
- package/dist/esm/{rtl-DvOKnoqK.js → rtl-CVFH1DkU.js} +3 -3
- package/dist/esm/{rtl-DvOKnoqK.js.map → rtl-CVFH1DkU.js.map} +1 -1
- package/dist/esm/{url-BjYKc1Ge.js → url-BdEoSBtL.js} +3 -3
- package/dist/esm/{url-BjYKc1Ge.js.map → url-BdEoSBtL.js.map} +1 -1
- package/dist/md3/md3.esm.js +1 -1
- package/dist/md3/p-08f1c469.entry.js +2 -0
- package/dist/md3/{p-7f53a423.entry.js.map → p-08f1c469.entry.js.map} +1 -1
- package/dist/md3/{p-7112374d.entry.js → p-108f89d7.entry.js} +2 -2
- package/dist/md3/{p-d7e99f9e.entry.js → p-1112bffc.entry.js} +2 -2
- package/dist/md3/{p-ef7b1826.entry.js → p-114c270b.entry.js} +2 -2
- package/dist/md3/{p-944e69e0.entry.js → p-1835fe36.entry.js} +2 -2
- package/dist/md3/{p-22633b2d.entry.js → p-2ba2db3b.entry.js} +2 -2
- package/dist/md3/{p-1d7e0203.entry.js → p-3f64a27d.entry.js} +2 -2
- package/dist/md3/{p-bed8dfec.entry.js → p-43c708ad.entry.js} +2 -2
- package/dist/md3/{p-ae360663.entry.js → p-4b7cf934.entry.js} +2 -2
- package/dist/md3/{p-27135a6b.entry.js → p-4f26bd60.entry.js} +2 -2
- package/dist/md3/{p-2befc42c.entry.js → p-56c7c570.entry.js} +2 -2
- package/dist/md3/{p-0a599351.entry.js → p-56ca0c3c.entry.js} +2 -2
- package/dist/md3/{p-96c06b24.entry.js → p-5b63149a.entry.js} +2 -2
- package/dist/md3/{p-4ba3623e.entry.js → p-5f668b0a.entry.js} +2 -2
- package/dist/md3/{p-9b9677cc.entry.js → p-6237ddac.entry.js} +2 -2
- package/dist/md3/{p-b243284b.entry.js → p-6d65fc6a.entry.js} +2 -2
- package/dist/md3/{p-8b1ea5dc.entry.js → p-707b6d7c.entry.js} +2 -2
- package/dist/md3/{p-a49df43d.entry.js → p-71f1660b.entry.js} +2 -2
- package/dist/md3/{p-7858833e.entry.js → p-7501170f.entry.js} +2 -2
- package/dist/md3/{p-6ea7117d.entry.js → p-7d1686a7.entry.js} +2 -2
- package/dist/md3/p-7e7f0e45.entry.js +2 -0
- package/dist/md3/p-7e7f0e45.entry.js.map +1 -0
- package/dist/md3/{p-4aed552f.entry.js → p-80379565.entry.js} +2 -2
- package/dist/md3/p-830724e4.entry.js +2 -0
- package/dist/md3/p-830724e4.entry.js.map +1 -0
- package/dist/md3/{p-e3c37222.entry.js → p-87f88d62.entry.js} +2 -2
- package/dist/md3/p-8a7e0297.entry.js +2 -0
- package/dist/md3/p-8a7e0297.entry.js.map +1 -0
- package/dist/md3/{p-8135c606.entry.js → p-8bdcda53.entry.js} +2 -2
- package/dist/md3/p-9003a7d4.entry.js +2 -0
- package/dist/md3/p-9003a7d4.entry.js.map +1 -0
- package/dist/md3/{p-6bf632c7.entry.js → p-90ccf4c3.entry.js} +2 -2
- package/dist/md3/{p-BjYKc1Ge.js → p-BdEoSBtL.js} +2 -2
- package/dist/md3/{p-BjYKc1Ge.js.map → p-BdEoSBtL.js.map} +1 -1
- package/dist/md3/{p-DzPKu-Ma.js → p-CGqeEMjY.js} +2 -2
- package/dist/md3/{p-DzPKu-Ma.js.map → p-CGqeEMjY.js.map} +1 -1
- package/dist/md3/{p-DvOKnoqK.js → p-CVFH1DkU.js} +2 -2
- package/dist/md3/{p-DvOKnoqK.js.map → p-CVFH1DkU.js.map} +1 -1
- package/dist/md3/p-Cch92tDM.js +2 -0
- package/dist/md3/{p-RLxbNqRv.js.map → p-Cch92tDM.js.map} +1 -1
- package/dist/md3/p-D17cVKxS.js +2 -0
- package/dist/md3/p-D17cVKxS.js.map +1 -0
- package/dist/md3/{p-Bx6--dQF.js → p-DGtztV3K.js} +2 -2
- package/dist/md3/{p-Bx6--dQF.js.map → p-DGtztV3K.js.map} +1 -1
- package/dist/md3/p-DnKDoE8K.js +2 -0
- package/dist/md3/p-DnKDoE8K.js.map +1 -0
- package/dist/md3/{p-5f39b49d.entry.js → p-ab568d1c.entry.js} +2 -2
- package/dist/md3/p-ae30e899.entry.js +2 -0
- package/dist/md3/p-ae30e899.entry.js.map +1 -0
- package/dist/md3/p-b54bbf88.entry.js +2 -0
- package/dist/md3/p-b54bbf88.entry.js.map +1 -0
- package/dist/md3/{p-21c89d1d.entry.js → p-ba011453.entry.js} +2 -2
- package/dist/md3/{p-cdcea99f.entry.js → p-c2944c87.entry.js} +2 -2
- package/dist/md3/{p-3a4bd4eb.entry.js → p-cc6e8afd.entry.js} +2 -2
- package/dist/md3/{p-c0476406.entry.js → p-d8885f53.entry.js} +2 -2
- package/dist/md3/{p-da0c36d9.entry.js → p-db6fb4e1.entry.js} +2 -2
- package/dist/md3/{p-5929e59c.entry.js → p-dcba2857.entry.js} +2 -2
- package/dist/md3/{p-925768ac.entry.js → p-e357e8ac.entry.js} +2 -2
- package/dist/md3/{p-e6b09e71.entry.js → p-e5c6795e.entry.js} +2 -2
- package/dist/md3/{p-1e85b8a8.entry.js → p-e871663b.entry.js} +2 -2
- package/dist/md3/p-f297d786.entry.js +2 -0
- package/dist/md3/{p-38f82d34.entry.js.map → p-f297d786.entry.js.map} +1 -1
- package/dist/md3/{p-b5586b66.entry.js → p-f5399b73.entry.js} +2 -2
- package/dist/md3/{p-5c35f916.entry.js → p-fd686966.entry.js} +2 -2
- package/dist/md3/{p-C_ogF68H.js → p-nhfFYWzy.js} +2 -2
- package/dist/md3/{p-C_ogF68H.js.map → p-nhfFYWzy.js.map} +1 -1
- package/dist/types/utils/lazy-loading-indicator.d.ts +7 -0
- package/hydrate/index.js +172 -106
- package/hydrate/index.mjs +172 -106
- package/package.json +18 -4
- package/dist/cjs/md-button_7.cjs.entry.js.map +0 -1
- package/dist/components/p-BADA63mI.js.map +0 -1
- package/dist/components/p-Lsoo1B-2.js.map +0 -1
- package/dist/components-csr/p--OUYjgKN.js.map +0 -1
- package/dist/components-csr/p-Bmu7RqHM.js.map +0 -1
- package/dist/esm/md-button_7.entry.js.map +0 -1
- package/dist/md3/p-2dda08b2.entry.js +0 -2
- package/dist/md3/p-2dda08b2.entry.js.map +0 -1
- package/dist/md3/p-38f82d34.entry.js +0 -2
- package/dist/md3/p-5db87a9d.entry.js +0 -2
- package/dist/md3/p-5db87a9d.entry.js.map +0 -1
- package/dist/md3/p-637baee1.entry.js +0 -2
- package/dist/md3/p-637baee1.entry.js.map +0 -1
- package/dist/md3/p-7f53a423.entry.js +0 -2
- package/dist/md3/p-RLxbNqRv.js +0 -2
- package/dist/md3/p-b7602557.entry.js +0 -2
- package/dist/md3/p-b7602557.entry.js.map +0 -1
- package/dist/md3/p-eddae19a.entry.js +0 -2
- package/dist/md3/p-eddae19a.entry.js.map +0 -1
- /package/dist/components/{p-Eb44PPZa.js.map → p-1RSrsLOs.js.map} +0 -0
- /package/dist/components/{p-D8oM1Kr3.js.map → p-2HV152w7.js.map} +0 -0
- /package/dist/components/{p-BA2v4IuG.js.map → p-6ZDAcEKN.js.map} +0 -0
- /package/dist/components/{p-CCMritCA.js.map → p-C77M30dm.js.map} +0 -0
- /package/dist/components/{p-CtVItLby.js.map → p-D5Ht729E.js.map} +0 -0
- /package/dist/components/{p-CTC8XAB6.js.map → p-De3E5Q8v.js.map} +0 -0
- /package/dist/components/{p-B-JfuA2g.js.map → p-Dm_7DA1f.js.map} +0 -0
- /package/dist/components/{p-DEzb9xsY.js.map → p-Dz3R-2Wn.js.map} +0 -0
- /package/dist/components/{p-B-iHDK5h.js.map → p-Zjf9uhOr.js.map} +0 -0
- /package/dist/components/{p-DfU4xY2F.js.map → p-ssLobpGS.js.map} +0 -0
- /package/dist/components/{p-DYL-8C5C.js.map → p-zMR3UIR_.js.map} +0 -0
- /package/dist/components-csr/{p-C0DlKmRg.js.map → p-BEmwDSzw.js.map} +0 -0
- /package/dist/components-csr/{p-DvXQXhgu.js.map → p-BQKzjYcY.js.map} +0 -0
- /package/dist/components-csr/{p-CG6FaRlt.js.map → p-BWMwewtY.js.map} +0 -0
- /package/dist/components-csr/{p-CSrxeWwL.js.map → p-Bkt_X-6v.js.map} +0 -0
- /package/dist/components-csr/{p-Hm3X1iai.js.map → p-C3vB0Hd9.js.map} +0 -0
- /package/dist/components-csr/{p-CrbzXk64.js.map → p-CF7mq5T7.js.map} +0 -0
- /package/dist/components-csr/{p-DF19mmLl.js.map → p-CVMM-tdC.js.map} +0 -0
- /package/dist/components-csr/{p-C4_7YnHT.js.map → p-DMQ-6aj8.js.map} +0 -0
- /package/dist/components-csr/{p--TCJgZnE.js.map → p-DjKPc5EU.js.map} +0 -0
- /package/dist/components-csr/{p-IWA0yIjJ.js.map → p-R_guULjT.js.map} +0 -0
- /package/dist/components-csr/{p-uZbtHo-A.js.map → p-uSMrgqAy.js.map} +0 -0
- /package/dist/md3/{p-7112374d.entry.js.map → p-108f89d7.entry.js.map} +0 -0
- /package/dist/md3/{p-d7e99f9e.entry.js.map → p-1112bffc.entry.js.map} +0 -0
- /package/dist/md3/{p-ef7b1826.entry.js.map → p-114c270b.entry.js.map} +0 -0
- /package/dist/md3/{p-944e69e0.entry.js.map → p-1835fe36.entry.js.map} +0 -0
- /package/dist/md3/{p-22633b2d.entry.js.map → p-2ba2db3b.entry.js.map} +0 -0
- /package/dist/md3/{p-1d7e0203.entry.js.map → p-3f64a27d.entry.js.map} +0 -0
- /package/dist/md3/{p-bed8dfec.entry.js.map → p-43c708ad.entry.js.map} +0 -0
- /package/dist/md3/{p-ae360663.entry.js.map → p-4b7cf934.entry.js.map} +0 -0
- /package/dist/md3/{p-27135a6b.entry.js.map → p-4f26bd60.entry.js.map} +0 -0
- /package/dist/md3/{p-2befc42c.entry.js.map → p-56c7c570.entry.js.map} +0 -0
- /package/dist/md3/{p-0a599351.entry.js.map → p-56ca0c3c.entry.js.map} +0 -0
- /package/dist/md3/{p-96c06b24.entry.js.map → p-5b63149a.entry.js.map} +0 -0
- /package/dist/md3/{p-4ba3623e.entry.js.map → p-5f668b0a.entry.js.map} +0 -0
- /package/dist/md3/{p-9b9677cc.entry.js.map → p-6237ddac.entry.js.map} +0 -0
- /package/dist/md3/{p-b243284b.entry.js.map → p-6d65fc6a.entry.js.map} +0 -0
- /package/dist/md3/{p-8b1ea5dc.entry.js.map → p-707b6d7c.entry.js.map} +0 -0
- /package/dist/md3/{p-a49df43d.entry.js.map → p-71f1660b.entry.js.map} +0 -0
- /package/dist/md3/{p-7858833e.entry.js.map → p-7501170f.entry.js.map} +0 -0
- /package/dist/md3/{p-6ea7117d.entry.js.map → p-7d1686a7.entry.js.map} +0 -0
- /package/dist/md3/{p-4aed552f.entry.js.map → p-80379565.entry.js.map} +0 -0
- /package/dist/md3/{p-e3c37222.entry.js.map → p-87f88d62.entry.js.map} +0 -0
- /package/dist/md3/{p-8135c606.entry.js.map → p-8bdcda53.entry.js.map} +0 -0
- /package/dist/md3/{p-6bf632c7.entry.js.map → p-90ccf4c3.entry.js.map} +0 -0
- /package/dist/md3/{p-5f39b49d.entry.js.map → p-ab568d1c.entry.js.map} +0 -0
- /package/dist/md3/{p-21c89d1d.entry.js.map → p-ba011453.entry.js.map} +0 -0
- /package/dist/md3/{p-cdcea99f.entry.js.map → p-c2944c87.entry.js.map} +0 -0
- /package/dist/md3/{p-3a4bd4eb.entry.js.map → p-cc6e8afd.entry.js.map} +0 -0
- /package/dist/md3/{p-c0476406.entry.js.map → p-d8885f53.entry.js.map} +0 -0
- /package/dist/md3/{p-da0c36d9.entry.js.map → p-db6fb4e1.entry.js.map} +0 -0
- /package/dist/md3/{p-5929e59c.entry.js.map → p-dcba2857.entry.js.map} +0 -0
- /package/dist/md3/{p-925768ac.entry.js.map → p-e357e8ac.entry.js.map} +0 -0
- /package/dist/md3/{p-e6b09e71.entry.js.map → p-e5c6795e.entry.js.map} +0 -0
- /package/dist/md3/{p-1e85b8a8.entry.js.map → p-e871663b.entry.js.map} +0 -0
- /package/dist/md3/{p-b5586b66.entry.js.map → p-f5399b73.entry.js.map} +0 -0
- /package/dist/md3/{p-5c35f916.entry.js.map → p-fd686966.entry.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["mdSelectCss","selectIdCounter","VIRTUALIZE_THRESHOLD","SEARCH_DEBOUNCE_MS","MdSelect","constructor","hostRef","this","valueMissingLabel","reserveSupportingSpace","customValidityMessage","variant","label","placeholder","value","disabled","required","error","errorText","supportingText","density","clearable","matchTriggerWidth","placement","options","virtualize","filterable","filterMode","name","searchPlaceholder","filterLabel","noResultsText","noOptionsText","clearLabel","searchingLabel","loadingText","clearIcon","dropdownIcon","loading","fullWidth","open","optionsData","triggerId","vc","VirtualSelectController","queryItem","i","el","shadowRoot","querySelector","requestRender","forceUpdate","providerSet","selectedLabel","query","searching","queryText","defaultValue","lastValidityKey","_syncGuard","_lastEmit","toggleOpen","selectValue","val","mdChange","emit","fieldEl","focus","clearValue","e","stopPropagation","vpWired","handleMenuOpen","mdOpen","active","wireViewport","requestAnimationFrame","input","menuEl","setComboboxElement","handleMenuClose","mdClose","detachViewport","onSearchInput","q","target","clearTimeout","searchDebounce","setTimeout","setQuery","optionList","parseJsonArrayProp","show","close","focusTrigger","reset","loadOptions","source","isWasmSupported","normalizeInits","rowsToArray","setFixedRowHeight","rowHeight","setFilterMode","ok","load","updateSelectedLabel","syncSearchField","getLabels","values","Object","fromEntries","componentWillLoad","refreshOptions","preselected","find","o","selected","syncFormValue","setFormValue","internals","syncValidity","setValidityState","missing","missingMessage","customMessage","emitValidityChange","getValidity","getValidityOf","v","key","valid","validationMessage","primed","mdValidityChange","checkValidity","checkValidityOf","reportValidity","reportValidityOf","setCustomValidity","message","formResetCallback","data","collectOptions","shouldVirtualize","length","then","get","onOptionChange","syncMenu","autoFocus","handleKeyDown","preventDefault","vp","getScrollViewport","attachViewport","async","componentDidRender","setVirtualProvider","provider","disconnectedCallback","accessibleName","ariaLabel","getAttribute","trim","labelledby","root","getRootNode","text","split","map","id","getElementById","textContent","filter","Boolean","join","renderTrigger","display","labelFor","hasValue","showClear","fieldAriaLabel","undefined","h","ref","class","part","exportparts","readOnly","appearFocused","onClick","slot","LazyLoadingIndicator","size","icon","shapeMorph","groupTabindex","renderVirtualOptions","role","style","height","topPad","windowRows","row","filteredIndex","windowStart","index","presentation","type","headline","filteredLength","onMdClick","bottomPad","renderMenu","virtual","toLowerCase","listOptions","includes","emptyText","menuMaxHeight","maxHeight","anchor","listbox","onMdOpen","onMdClose","String","autocomplete","onInput","indeterminate","wave","opt","iconColor","color","render","Host","hidden","onSlotchange"],"sources":["src/components/md-select/md-select.css?tag=md-select&encapsulation=shadow","src/components/md-select/md-select.tsx"],"sourcesContent":["/* ==========================================================\n md-select — single-select dropdown\n\n The heavy lifting (field surface, label float, error state, menu\n motion + positioning + keyboard) is delegated to md-text-field and\n md-menu. This stylesheet only owns the host layout and the trailing\n caret / clear affordances rendered into the field's trailing slot.\n\n PUBLIC CSS CUSTOM PROPERTIES (select-owned):\n --md-select-width Host inline size (default 100%)\n --md-select-min-width Host minimum inline size (default 0)\n --md-select-caret-color Dropdown caret colour\n --md-select-caret-size Dropdown caret glyph size (default 24px)\n --md-select-clear-color Clear (✕) icon colour (default: caret colour)\n --md-select-trailing-gap Gap between clear + caret (default 2px)\n --md-select-option-icon-color Leading icon colour in option rows\n\n The composed field + menu expose their own --md-text-field-* / --md-menu-*\n / --md-menu-item-* tokens, which flow straight through when set on the host.\n\n PUBLIC PARTS:\n field, field-container, trailing, clear, caret, menu,\n option, option-selected, option-icon\n ========================================================== */\n\n:host {\n /* The text inset already includes the caret's 7px optical bearing (see\n md-text-field --_text-inset). Pull the TRAILING side back to the plain\n box inset so the caret's BOX sits 7px shallower and its INK lands on the\n same column as the text. */\n --md-text-field-padding-inline-end: var(--md-sys-spacing-inset-lg, 16px);\n display: inline-block;\n inline-size: var(--md-select-width, 100%);\n min-inline-size: var(--md-select-min-width, 0);\n box-sizing: border-box;\n font-family: var(--md-sys-typescale-body-large-font-family, Roboto, sans-serif);\n}\n\n.md-select__field {\n inline-size: 100%;\n cursor: pointer;\n --md-text-field-cursor: pointer;\n}\n\n/* Override the browser's default text cursor on the readonly input —\n the whole field behaves as a button, not an editable field. */\n.md-select__field::part(input) {\n cursor: pointer;\n}\n\n:host(.md-select--disabled) .md-select__field::part(input) {\n cursor: not-allowed;\n}\n\n/* ── Trailing cluster (clear + caret) ───────────────────── */\n\n/* The trailing slot holds a *cluster* (clear + caret), but md-text-field\n sizes any single slotted trailing icon to a fixed 24px box via\n `.md-text-field__icon ::slotted(*)` — which would squash the cluster and\n push the caret off the edge. Scoping under `.md-select__field` raises this\n rule's specificity above that ::slotted rule so the cluster sizes to its\n content across the shadow boundary. */\n.md-select__field .md-select__trailing {\n display: inline-flex;\n align-items: center;\n gap: var(--md-select-trailing-gap, 2px);\n width: auto;\n height: auto;\n}\n\n\n.md-select__caret {\n font-size: var(--md-select-caret-size, 24px);\n line-height: 1;\n color: var(--md-select-caret-color, var(--md-sys-color-on-surface-variant, #49454F));\n transition: transform var(--md-sys-motion-duration-short4, 200ms)\n var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1));\n}\n\n/* Flip the caret when open — works for any custom dropdown-icon, not just the\n default arrow (which then reads as \"up\"). */\n:host(.md-select--open) .md-select__caret {\n transform: rotate(180deg);\n}\n\n@media (prefers-reduced-motion: reduce) {\n .md-select__caret {\n transition: none;\n }\n}\n\n/* Busy state: the spinner replaces the caret/clear cluster in the trigger. The\n default md-loading-indicator is 48px — shrink it to the trailing footprint. */\n.md-select__loader {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n inline-size: 24px;\n block-size: 24px;\n --md-loading-indicator-size: var(--md-select-spinner-size, 22px);\n --md-loading-indicator-shape-size: var(--md-select-spinner-size, 22px);\n}\n\n/* Full-width: fill the parent's inline size as a block (overrides the default\n inline-block sizing). The dropdown follows via match-trigger-width. */\n:host([full-width]) {\n display: block;\n inline-size: 100%;\n}\n\n/* Busy state inside the menu: the wavy linear progress bar fills the surface\n width with comfortable padding (replaces the old \"Loading…\" text). */\n.md-select__loading {\n display: flex;\n align-items: center;\n padding-block: var(--md-sys-spacing-inset-lg, 16px);\n padding-inline: var(--md-sys-spacing-inset-lg, 16px);\n}\n\n.md-select__loading md-progress-indicator {\n inline-size: 100%;\n}\n\n/* Clear affordance is an md-icon-button (ripple + state layer for free).\n Compact it to the prior 24px footprint; defaults to the caret colour so it\n sits inline with the caret, but is independently overridable. */\n.md-select__field .md-select__clear {\n --_clear-color: var(--md-select-clear-color,\n var(--md-select-caret-color, var(--md-sys-color-on-surface-variant, #49454F)));\n --md-icon-button-container-width: 24px;\n --md-icon-button-container-height: 24px;\n --md-icon-button-icon-size: 18px;\n --md-icon-button-icon-color: var(--_clear-color);\n --md-icon-button-state-layer-color: var(--_clear-color);\n}\n\n/* ── Option leading icon (in the menu rows) ─────────────── */\n\n.md-select__option-icon {\n font-size: 20px;\n line-height: 1;\n color: var(--md-select-option-icon-color, var(--md-sys-color-on-surface-variant, #49454F));\n}\n\n/* ── Disabled ───────────────────────────────────────────── */\n\n:host(.md-select--disabled) {\n cursor: default;\n}\n\n:host(.md-select--disabled) .md-select__field {\n --md-text-field-cursor: not-allowed;\n}\n\n/* Material Symbols inside the shadow root. */\n.material-symbols-outlined {\n font-family: var(--md-sys-icon-font-family, 'Material Symbols Outlined', 'Material Icons');\n font-weight: normal;\n font-style: normal;\n line-height: 1;\n letter-spacing: normal;\n text-transform: none;\n display: inline-block;\n white-space: nowrap;\n overflow-wrap: normal;\n direction: ltr;\n font-feature-settings: 'liga';\n -webkit-font-smoothing: antialiased;\n}\n\n/* ── Virtualized list ──────────────────────────────────── */\n\n/* Spacers reserve the full scroll height above/below the rendered window so\n the menu scrolls as if every option were present. */\n.md-select__vspacer {\n display: block;\n flex: none;\n pointer-events: none;\n}\n\n/* Search field pinned in the menu header (filterable virtualized lists). */\n.md-select__search-wrap {\n position: relative;\n display: block;\n}\n\n.md-select__search {\n box-sizing: border-box;\n width: 100%;\n border: none;\n outline: none;\n /* Right padding reserves room for the search spinner. */\n padding: 12px 44px 12px 16px;\n font: inherit;\n color: var(--md-sys-color-on-surface, #1d1b20);\n background: var(--md-sys-color-surface-container, #f3edf7);\n border-bottom: 1px solid var(--md-sys-color-outline-variant, #cac4d0);\n}\n\n.md-select__search::placeholder {\n color: var(--md-sys-color-on-surface-variant, #49454f);\n}\n\n/* M3 shape-morph loading indicator shown while a debounced search is in flight.\n Motion + reduced-motion handling live inside md-loading-indicator. */\n.md-select__search-spinner {\n position: absolute;\n inset-block-start: 50%;\n inset-inline-end: 12px;\n margin-block-start: -12px;\n --md-loading-indicator-size: 24px;\n --md-loading-indicator-shape-size: 18px;\n pointer-events: none;\n}\n\n/* ==========================================================\n DENSITY (local override)\n This component FORWARDS `density` to the md-text-field it embeds, which\n handles the field box — but that forward says nothing about this host, so its\n OWN chrome (dropdown surface, chips, frame gaps) stayed at density-0 whenever\n density came from the local prop rather than a global ancestor. Mapping the\n prop onto the shared signal here fixes that asymmetry; the spacing-token half\n of the rung arrives from the [density=\"-N\"] selector in tokens.css.\n ========================================================== */\n:host([density='-1']) { --md-sys-density-scale: -1; }\n:host([density='-2']) { --md-sys-density-scale: -2; }\n:host([density='-3']) { --md-sys-density-scale: -3; }\n:host([density='-4']) { --md-sys-density-scale: -4; }\n","import { AttachInternals, Component, Element, Event, EventEmitter, Host, Listen, Method, Prop, State, Watch, forceUpdate, h } from '@stencil/core';\nimport { LazyLoadingIndicator } from '../../utils/lazy-loading-indicator';\nimport {\n collectOptions,\n labelFor,\n normalizeInits,\n OptionRowSource,\n rowsToArray,\n SelectOptionData,\n SelectOptionInit,\n} from '../../utils/select-options';\nimport {\n setFormValue,\n setValidityState,\n checkValidityOf,\n reportValidityOf,\n getValidityOf,\n} from '../../utils/form';\nimport { VirtualSelectController } from '../../utils/virtual-select-controller';\nimport { isWasmSupported, FilterMode } from '../../utils/wasm-option-store';\nimport { VirtualMenuProvider } from '../../utils/types';\nimport { parseJsonArrayProp } from '../../utils/json-prop';\n\nlet selectIdCounter = 0;\n\n/** Above this many options, `virtualize=\"auto\"` switches to the WASM path. */\nconst VIRTUALIZE_THRESHOLD = 200;\n\n/** Idle time after a keystroke before the search query runs (debounce). */\nconst SEARCH_DEBOUNCE_MS = 180;\n\ntype VirtualMenuEl = HTMLElement & {\n show?: (opts?: { autoFocus?: boolean }) => Promise<void>;\n close?: () => Promise<void>;\n setVirtualProvider?: (p: VirtualMenuProvider | null) => Promise<void>;\n setComboboxElement?: (el: HTMLElement | null) => Promise<void>;\n getScrollViewport?: () => Promise<HTMLElement | null>;\n};\n\n/**\n * `md-select` — Material Design 3 single-select dropdown.\n *\n * Composes the library's own primitives instead of re-implementing them:\n * - `md-text-field` is the trigger surface, so the picker inherits the\n * full filled/outlined visuals, density scale, floating label, error\n * state, supporting text, and focus ring of every other input. It is\n * `readonly` (not editable) and `appear-focused` while the menu is open\n * so the field + menu read as one connected control.\n * - `md-menu` is the option surface, so the picker inherits open/close\n * motion, viewport-aware positioning, single-open coordination, roving\n * tabindex, type-ahead, and Escape/Home/End — for free.\n *\n * Options are authored either declaratively as slotted `<md-select-option>`\n * children (primary API) or via the programmatic `options` array. Each\n * becomes a `type=\"radio\"` `md-menu-item` so only one is ever selected.\n *\n * @slot - `md-select-option` children for the dropdown (primary authoring API).\n * @slot dropdown-icon - Replaces the caret glyph (e.g. a custom SVG). Rotates 180° when open.\n * @slot loader - Replaces the busy-state spinner shown in the trigger while `loading`.\n *\n * @part field - The inner `md-text-field` trigger surface.\n * @part field-container - The text-field's container box (border/fill).\n * @part trailing - The trailing cluster wrapping the clear + caret.\n * @part clear - The clear (✕) `md-icon-button`.\n * @part caret - The dropdown caret glyph.\n * @part loading-spinner - The busy-state spinner in the trigger (`loading`).\n * @part loading-bar - The busy-state container in the menu (`loading`).\n * @part loading-progress - The wavy progress indicator shown in the menu while `loading`.\n * @part menu - The `md-menu` option surface.\n * @part option - Each option row (`md-menu-item`).\n * @part option-selected - The currently selected option row.\n * @part option-icon - An option's leading icon.\n * @part search - The filter input (`filterable`).\n * @part search-spinner - The in-menu spinner shown while filtering.\n */\n@Component({\n tag: 'md-select',\n styleUrl: 'md-select.css',\n shadow: true,\n formAssociated: true,\n})\nexport class MdSelect {\n @Element() el!: HTMLElement;\n\n\n /**\n * Localized constraint-validation message shown when `required` is unmet.\n *\n * A prop rather than a hardcoded string, matching md-time-picker's\n * `value-missing-label`: components stay i18n-engine-agnostic and the\n * consumer localizes through its own dictionary. Native inputs get their\n * message from the browser's locale for free; a form-associated custom\n * element supplies its own, so leaving this hardcoded would ship an\n * English-only form to every locale.\n */\n @Prop({ attribute: 'value-missing-label' }) valueMissingLabel: string =\n 'Please select an item in the list.';\n\n\n /**\n * Always occupy the supporting-text line, even when there is no message, so a\n * validation error does not push the content below it down. Forwarded to the\n * embedded md-text-field. See that component for why it is opt-in.\n */\n @Prop({ attribute: 'reserve-supporting-space' }) reserveSupportingSpace: boolean = false;\n\n /** Message set via setCustomValidity(); non-empty wins over valueMissing. */\n private customValidityMessage = '';\n\n /**\n * Form-association handle. The select submits its `value` under the host's\n * `name` via `setFormValue`, so it participates in `<form>`/`FormData`\n * natively — a hidden `<input>` in the shadow root would be invisible to\n * `FormData`.\n */\n @AttachInternals() internals!: ElementInternals;\n\n /** Visual variant — forwarded to the inner `md-text-field`. */\n @Prop({ reflect: true }) variant: 'filled' | 'outlined' = 'outlined';\n\n /** Floating label / accessible name. */\n @Prop() label: string = '';\n\n /** Placeholder shown when no value is selected. */\n @Prop() placeholder: string = '';\n\n /** Selected option value. Empty string = nothing selected. */\n @Prop({ mutable: true, reflect: true }) value: string = '';\n\n /** Disabled — non-interactive. */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Required (form validation parity). */\n @Prop({ reflect: true }) required: boolean = false;\n\n /** Error state — forwarded to the inner field. */\n @Prop({ reflect: true }) error: boolean = false;\n\n /** Error text rendered in place of supporting text when `error` is set. */\n @Prop({ attribute: 'error-text' }) errorText: string = '';\n\n /** Supporting / helper text rendered below the field. */\n @Prop({ attribute: 'supporting-text' }) supportingText: string = '';\n\n /** Density forwarded to the inner field (0 = comfortable … -3 = compact). */\n @Prop({ reflect: true }) density: 0 | -1 | -2 | -3 | -4 = 0;\n\n /** Show a clear (✕) button in the trigger when a value is selected. */\n @Prop({ reflect: true }) clearable: boolean = false;\n\n /**\n * Match the dropdown width to the trigger width. When `false` the menu\n * sizes to its content (down to its own min-width). Maps to `md-menu`'s\n * `match-anchor-width`. Default `true` — the expected select behaviour.\n */\n @Prop({ attribute: 'match-trigger-width', reflect: true })\n matchTriggerWidth: boolean = true;\n\n /** Menu placement relative to the trigger — forwarded to `md-menu`. */\n @Prop() placement: 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end' =\n 'bottom-start';\n\n /**\n * Cap the dropdown height. When the options exceed it the list scrolls\n * vertically with top/bottom edge shadows. A number is pixels; any CSS\n * length is passed through (e.g. `'50vh'`). Forwarded to `md-menu`'s\n * `max-height`.\n */\n @Prop({ attribute: 'max-height' }) maxHeight?: number | string;\n\n /** Programmatic options. Ignored when `<md-select-option>` children exist. */\n /**\n * Programmatic options. Slotted `md-select-option` children take precedence.\n *\n * Accepts the array (property) or a **JSON string** (attribute), so a\n * plain-HTML page can declare its data inline instead of reaching for a\n * script. Malformed JSON degrades to an empty list with a console warning.\n */\n @Prop() options: SelectOptionInit[] | string = [];\n\n /** `options` as an array, whether it arrived as one or as a JSON attribute. */\n private get optionList(): SelectOptionInit[] {\n return parseJsonArrayProp<SelectOptionInit>(this.options, 'md-select', 'options');\n }\n\n /**\n * Virtualization mode for large option lists (backed by a WASM data engine):\n * - `'auto'` (default): virtualize only above `VIRTUALIZE_THRESHOLD` rows.\n * - `'always'`: always virtualize the `options` / `loadOptions` dataset.\n * - `'never'`: keep the classic DOM rendering regardless of size.\n * Virtualized rows render label + selection only (no per-row icon /\n * supporting text) and assume a uniform row height.\n */\n @Prop() virtualize: 'auto' | 'always' | 'never' = 'auto';\n\n /**\n * Show a search field in the menu header.\n *\n * A plain list filters client-side on label / supporting text; a virtualized\n * one filters inside the WASM engine. Closing the menu clears the query.\n */\n @Prop() filterable: boolean = false;\n\n /** Filter strategy used by `filterable` / `setQuery`. */\n @Prop({ attribute: 'filter-mode' }) filterMode: FilterMode = 'substring';\n\n /** Fixed virtualized row height (px). Auto-measured from the first row if unset. */\n @Prop({ attribute: 'row-height' }) rowHeight?: number;\n\n /** Form field name. The selected value is submitted under this name. */\n @Prop({ reflect: true }) name: string = '';\n\n // ── Localizable UI strings ───────────────────────────────\n // Defaults are English; override per the page locale (see the date picker for\n // the same convention). Option labels themselves come from `options` data.\n\n /** Placeholder for the in-menu filter field (`filterable`). */\n @Prop({ attribute: 'search-placeholder' }) searchPlaceholder: string = 'Search…';\n /** Accessible name for the filter field. Falls back to `Filter <label>`. */\n @Prop({ attribute: 'filter-label' }) filterLabel: string = '';\n /** Empty-state text when a filter matches nothing. */\n @Prop({ attribute: 'no-results-text' }) noResultsText: string = 'No results';\n /** Empty-state text when there are no options at all. */\n @Prop({ attribute: 'no-options-text' }) noOptionsText: string = 'No options';\n /** Accessible label for the clear button (`clearable`). */\n @Prop({ attribute: 'clear-label' }) clearLabel: string = 'Clear selection';\n /** Accessible label for the in-menu loading spinner while filtering. */\n @Prop({ attribute: 'searching-label' }) searchingLabel: string = 'Searching';\n /** Text shown in the trigger / menu while `loading` is true. */\n @Prop({ attribute: 'loading-text' }) loadingText: string = 'Loading…';\n\n // ── Icon customization (Material Symbols names; or use the slots below) ──\n\n /** Icon (Material Symbols name) for the clear button (`clearable`). */\n @Prop({ attribute: 'clear-icon' }) clearIcon: string = 'close';\n /** Caret icon; rotates 180° when open. Slot `dropdown-icon` overrides it. */\n @Prop({ attribute: 'dropdown-icon' }) dropdownIcon: string = 'arrow_drop_down';\n\n /**\n * Show a busy state: the trigger shows a spinner instead of the caret and the\n * host is `aria-busy`. Use while an async dataset loads (e.g. before/around a\n * large `loadOptions`). Replace the spinner with the `loader` slot.\n */\n @Prop({ reflect: true }) loading: boolean = false;\n\n /**\n * Stretch the control to fill its parent's inline width (otherwise it sizes to\n * a sensible default). The dropdown follows when `match-trigger-width` is set.\n */\n @Prop({ attribute: 'full-width', reflect: true }) fullWidth: boolean = false;\n\n /** Open state of the dropdown. Reflected so `:host([open])` rules apply. */\n @Prop({ mutable: true, reflect: true }) open: boolean = false;\n\n /** Emits the newly selected value whenever the selection changes. */\n @Event() mdChange!: EventEmitter<string>;\n\n /** Emits when the dropdown opens. */\n @Event() mdOpen!: EventEmitter<void>;\n\n /** Emits when the dropdown closes. */\n @Event() mdClose!: EventEmitter<void>;\n\n @State() private optionsData: SelectOptionData[] = [];\n\n @State() private triggerId = `md-select-${++selectIdCounter}`;\n\n private fieldEl?: HTMLElement & { focus?: () => void };\n private menuEl?: VirtualMenuEl;\n\n /** Shared virtualization engine (WASM store + window math + provider glue). */\n private vc = new VirtualSelectController({\n queryItem: (i) =>\n (this.el.shadowRoot?.querySelector(\n `md-menu-item[data-vindex=\"${i}\"]`,\n ) as HTMLElement | null) ?? null,\n requestRender: () => forceUpdate(this),\n });\n private providerSet = false;\n /** Trigger label for the selected value while virtualized (off-window safe). */\n private selectedLabel = '';\n private searchDebounce?: ReturnType<typeof setTimeout>;\n /** Client-side filter query for `filterable` on a NON-virtualized list. The\n * virtualized path filters inside the WASM engine via `vc.setQuery`. */\n @State() private query = '';\n\n /** True between a keystroke and the debounced query resolving (drives the spinner). */\n private searching = false;\n\n // ── Public API ───────────────────────────────────────────\n\n /** Open the dropdown programmatically. */\n @Method()\n async show() {\n if (this.disabled) return;\n this.open = true;\n }\n\n /** Close the dropdown programmatically. */\n @Method()\n async close() {\n this.open = false;\n }\n\n /** Move focus to the trigger field. */\n @Method()\n async focusTrigger() {\n this.fieldEl?.focus?.();\n }\n\n /** Clear the selection. */\n @Method()\n async reset() {\n if (!this.value) return;\n this.value = '';\n this.mdChange.emit('');\n }\n\n /**\n * Load a large dataset into the WASM-backed virtualized list (the high-scale\n * entry point). Accepts a materialised `SelectOptionInit[]` or a row factory\n * (`{ count, getRow }`) — the factory streams rows into WASM one at a time, so\n * tens of millions of options never exist as JS objects at once. Falls back to\n * plain DOM rendering when `virtualize=\"never\"` or WebAssembly is unavailable.\n */\n @Method()\n async loadOptions(source: SelectOptionInit[] | OptionRowSource) {\n if (this.virtualize === 'never' || !isWasmSupported()) {\n this.vc.reset();\n this.optionsData = normalizeInits(rowsToArray(source));\n return;\n }\n this.optionsData = [];\n this.vc.setFixedRowHeight(this.rowHeight);\n this.vc.setFilterMode(this.filterMode);\n const ok = await this.vc.load(source);\n if (!ok) {\n // The store declines an empty set (and a WASM failure). Without dropping\n // whatever it still holds, `loadOptions([])` after a populated load left\n // the PREVIOUS rows active and rendering — so a consumer could not clear\n // the list by handing over an empty one.\n this.vc.reset();\n this.optionsData = normalizeInits(rowsToArray(source));\n } else {\n this.updateSelectedLabel();\n }\n forceUpdate(this);\n }\n\n /**\n * Filter the menu exactly as typing into the in-menu search field would.\n *\n * The field is uncontrolled, so the text is mirrored into it as well —\n * otherwise the list narrows while the box still reads empty, which looks\n * like the call did nothing. The menu may be closed (no field rendered yet),\n * so the text is stashed and applied on the next render.\n */\n @Method()\n async setQuery(query: string) {\n this.vc.setQuery(query);\n if (!this.vc.active) this.query = query;\n this.queryText = query;\n this.syncSearchField();\n forceUpdate(this);\n }\n\n /** Text pushed by `setQuery()`, pending mirroring into the search field. */\n private queryText: string | null = null;\n\n private syncSearchField() {\n if (this.queryText === null) return;\n const input = this.el.shadowRoot?.querySelector(\n '.md-select__search',\n ) as HTMLInputElement | null;\n if (!input) return;\n input.value = this.queryText;\n this.queryText = null;\n }\n\n /** Resolve labels for values that may be outside the current filter/window. */\n @Method()\n async getLabels(values: string[]): Promise<Record<string, string>> {\n return Object.fromEntries(this.vc.getLabels(values));\n }\n\n // ── Lifecycle / reactivity ───────────────────────────────\n\n /** Initial value, restored on form reset. */\n private defaultValue = '';\n\n componentWillLoad() {\n this.refreshOptions();\n // Adopt an option-declared `selected` hint when no value was provided.\n if (!this.value) {\n const preselected = this.optionsData.find((o) => o.selected && !o.disabled);\n if (preselected) this.value = preselected.value;\n }\n this.defaultValue = this.value;\n this.syncFormValue();\n }\n\n /** Keep the submitted form value in sync with the selection. */\n @Watch('value')\n syncFormValue() {\n setFormValue(this.internals, this.value || null);\n this.updateSelectedLabel();\n this.syncValidity();\n }\n\n /**\n * Publish `required` to the owning form. Without this the select is\n * form-associated (its value reaches FormData) yet ALWAYS reports valid, so an\n * empty required control lets the form submit — `required` renders as a visual\n * hint and nothing more. Kept in the same place as the value sync so the two\n * can never drift.\n */\n @Watch('required')\n @Watch('valueMissingLabel')\n private syncValidity() {\n setValidityState(this.internals, {\n missing: this.required && !this.value,\n missingMessage: this.valueMissingLabel,\n customMessage: this.customValidityMessage,\n });\n this.emitValidityChange();\n }\n\n /** Current validity: boolean, message and flags. Mirrors md-text-field. */\n @Method()\n async getValidity(): Promise<{\n valid: boolean;\n validationMessage: string;\n flags: Record<string, boolean>;\n }> {\n return getValidityOf(this.internals);\n }\n\n /**\n * Fires when this control's validity CHANGES — never on every keystroke, and\n * never for a re-publish that lands on the same state.\n *\n * `composed: false` is deliberate. Composites like md-select embed an\n * md-text-field, and a composed event escapes that inner shadow root, so a\n * listener on md-select would receive the inner field's event as well as the\n * host's — two events, different payloads, for one logical control. Keeping\n * it uncomposed means each component reports only for itself, while\n * `bubbles: true` still lets a <form> or app root hear every control.\n */\n @Event({ bubbles: true, composed: false }) mdValidityChange: EventEmitter<{\n valid: boolean;\n validationMessage: string;\n flags: Record<string, boolean>;\n }>;\n\n /** Last emitted validity, so a re-publish that changes nothing stays silent. */\n private lastValidityKey: string | null = null;\n\n /**\n * Emit mdValidityChange if validity actually moved.\n *\n * The FIRST call only primes the baseline. Initial state is not a change, and\n * emitting on mount would fire once per control on every page load — noise a\n * consumer would have to filter out, and misleading for anything logging\n * \"field became invalid\".\n */\n private emitValidityChange() {\n const v = getValidityOf(this.internals);\n const key = `${v.valid}|${v.validationMessage}`;\n if (this.lastValidityKey === key) return;\n const primed = this.lastValidityKey !== null;\n this.lastValidityKey = key;\n if (primed) this.mdValidityChange.emit(v);\n }\n\n /** Constraint-validation API, matching md-text-field and the native contract. */\n @Method()\n async checkValidity(): Promise<boolean> {\n return checkValidityOf(this.internals);\n }\n\n /** Like checkValidity(), but also shows the browser's validation message. */\n @Method()\n async reportValidity(): Promise<boolean> {\n return reportValidityOf(this.internals);\n }\n\n /** App/server-side validation: a non-empty message marks the control invalid\n * for its form until cleared with an empty string. */\n @Method()\n async setCustomValidity(message: string) {\n this.customValidityMessage = message;\n this.syncValidity();\n }\n\n /** Restore the initial selection when the owning form is reset. */\n formResetCallback() {\n this.value = this.defaultValue;\n }\n\n @Watch('options')\n refreshOptions() {\n const data = collectOptions(this.el, this.optionList);\n const shouldVirtualize =\n this.virtualize === 'always' ||\n (this.virtualize === 'auto' && data.length > VIRTUALIZE_THRESHOLD);\n\n if (shouldVirtualize && isWasmSupported() && data.length > 0) {\n this.optionsData = [];\n this.vc.setFixedRowHeight(this.rowHeight);\n this.vc.setFilterMode(this.filterMode);\n void this.vc.load(data).then((ok) => {\n if (!ok) {\n this.optionsData = data;\n forceUpdate(this);\n } else {\n this.updateSelectedLabel();\n }\n });\n } else {\n this.vc.reset();\n this.optionsData = data;\n }\n }\n\n /** Refresh the cached trigger label for the current value (virtual mode). */\n private updateSelectedLabel() {\n if (!this.value) {\n this.selectedLabel = '';\n } else if (this.vc.active) {\n this.selectedLabel = this.vc.getLabels([this.value]).get(this.value) ?? this.selectedLabel;\n }\n forceUpdate(this);\n }\n\n /** Slotted `<md-select-option>` mount/unmount/data change → re-read. */\n @Listen('mdSelectOptionChange')\n onOptionChange(e: Event) {\n e.stopPropagation();\n this.refreshOptions();\n }\n\n // Prevents @Watch re-entrancy when handleMenuClose syncs this.open back.\n private _syncGuard = false;\n // Deduplicates mdOpen/mdClose: only emit when the state actually flips.\n private _lastEmit: 'open' | 'close' | null = null;\n\n @Watch('open')\n syncMenu(open: boolean) {\n if (this._syncGuard || !this.menuEl) return;\n if (open) {\n // A filterable virtual menu focuses its search field, not the first row.\n this.menuEl.show?.({ autoFocus: !(this.filterable && this.vc.active) });\n } else {\n this.menuEl.close?.();\n }\n }\n\n // ── Keyboard (trigger) ───────────────────────────────────\n\n @Listen('keydown')\n handleKeyDown(e: KeyboardEvent) {\n if (this.disabled) return;\n if (!this.open && (e.key === 'ArrowDown' || e.key === 'Enter' || e.key === ' ')) {\n e.preventDefault();\n this.open = true;\n } else if (this.open && e.key === 'Escape') {\n e.preventDefault();\n this.open = false;\n this.fieldEl?.focus?.();\n }\n }\n\n // ── Handlers ─────────────────────────────────────────────\n\n private toggleOpen = () => {\n if (this.disabled) return;\n this.open = !this.open;\n };\n\n private selectValue = (val: string) => {\n if (this.value === val) {\n this.open = false;\n return;\n }\n this.value = val;\n this.mdChange.emit(val);\n this.open = false;\n this.fieldEl?.focus?.();\n };\n\n private clearValue = (e: MouseEvent) => {\n e.stopPropagation();\n if (this.disabled || !this.value) return;\n this.value = '';\n this.mdChange.emit('');\n };\n\n /** True once the vc is wired to the menu's live scroll viewport. */\n private vpWired = false;\n\n /** Wire the vc to the menu scroll viewport; a null resolve (viewport not\n * rendered yet — e.g. the menu opened while the dataset was packing and\n * showed the uncapped busy bar) just returns, and componentDidRender\n * retries until the wiring lands. */\n private wireViewport() {\n void (async () => {\n const vp = (await this.menuEl?.getScrollViewport?.()) ?? null;\n if (!vp || this.vpWired) return;\n this.vpWired = true;\n await this.vc.attachViewport(async () => vp);\n })();\n }\n\n private handleMenuOpen = () => {\n this._syncGuard = true;\n this.open = true;\n this._syncGuard = false;\n if (this._lastEmit !== 'open') {\n this._lastEmit = 'open';\n this.mdOpen.emit();\n }\n if (this.vc.active) {\n this.wireViewport();\n if (this.filterable) {\n requestAnimationFrame(() => {\n const input = this.el.shadowRoot?.querySelector('.md-select__search') as HTMLElement | null;\n input?.focus();\n // Register the search input as the combobox so md-menu drives the\n // listbox via aria-activedescendant on it (focus stays here while the\n // user arrows through / filters the virtualized options).\n void this.menuEl?.setComboboxElement?.(input);\n });\n }\n }\n };\n\n private handleMenuClose = () => {\n this._syncGuard = true;\n this.open = false;\n this._syncGuard = false;\n // Reopening shows the full list: the search field is uncontrolled and\n // unmounts with the menu, so a stale query would filter an empty-looking box.\n if (this.query) this.query = '';\n if (this._lastEmit !== 'close') {\n this._lastEmit = 'close';\n this.mdClose.emit();\n }\n void this.menuEl?.setComboboxElement?.(null);\n this.vc.detachViewport();\n this.vpWired = false;\n };\n\n private onSearchInput = (e: Event) => {\n const q = (e.target as HTMLInputElement).value;\n this.queryText = null; // typing supersedes a pending programmatic query\n if (!this.vc.active) {\n // Plain (non-virtual) list: filter the rendered options client-side. It is\n // cheap, so it runs synchronously per keystroke — no spinner, no debounce.\n this.query = q;\n return;\n }\n // Show the spinner immediately, debounce the actual (expensive) query, then\n // clear the spinner once results are in — a smooth, intentional transition.\n if (!this.searching) {\n this.searching = true;\n forceUpdate(this);\n }\n clearTimeout(this.searchDebounce);\n this.searchDebounce = setTimeout(() => {\n this.vc.setQuery(q);\n this.searching = false;\n forceUpdate(this);\n }, SEARCH_DEBOUNCE_MS);\n };\n\n /** Register/clear the virtual provider on the menu once it's rendered, and\n * (re)try viewport wiring for menus opened mid-pack. */\n componentDidRender() {\n this.syncSearchField();\n if (!this.menuEl) return;\n if (this.vc.active && !this.providerSet) {\n void this.menuEl.setVirtualProvider?.(this.vc.provider);\n this.providerSet = true;\n } else if (!this.vc.active && this.providerSet) {\n void this.menuEl.setVirtualProvider?.(null);\n this.providerSet = false;\n }\n if (this.open && this.vc.active && !this.vpWired) this.wireViewport();\n }\n\n disconnectedCallback() {\n clearTimeout(this.searchDebounce);\n this.vc.detachViewport();\n }\n\n // ── Render ───────────────────────────────────────────────\n\n /**\n * Resolved accessible name for the control.\n *\n * A consumer names the select one of two ways: the visible `label` prop, or\n * `aria-label` / `aria-labelledby` on the host — the latter used when there\n * is no floating label, e.g. `md-table-pagination`'s rows-per-page select,\n * which has a *separate* visible label element next to it. The host is\n * role-less (generic), so a name set there is invisible to assistive tech,\n * and an `aria-labelledby` IDREF can't cross the shadow boundary into the\n * field's inner input. Resolve the name here (visible `label` wins, then\n * `aria-label`, then the flattened text of `aria-labelledby` targets) so it\n * can be forwarded onto the inner input (the real focus/accessible-name\n * target) and used to name the popup listbox — instead of the input having\n * no accessible name at all.\n */\n private get accessibleName(): string {\n if (this.label) return this.label;\n const ariaLabel = this.el.getAttribute('aria-label');\n if (ariaLabel && ariaLabel.trim()) return ariaLabel.trim();\n const labelledby = this.el.getAttribute('aria-labelledby');\n if (labelledby) {\n const root = this.el.getRootNode() as Document | ShadowRoot;\n const text = labelledby\n .trim()\n .split(/\\s+/)\n .map((id) => root.getElementById?.(id)?.textContent?.trim() ?? '')\n .filter(Boolean)\n .join(' ');\n if (text) return text;\n }\n return '';\n }\n\n private renderTrigger() {\n const display = this.vc.active\n ? this.selectedLabel\n : labelFor(this.optionsData, this.value);\n const hasValue = !!this.value && !!display;\n const showClear = this.clearable && hasValue && !this.disabled;\n // When there's no visible `label`, forward the host's accessible name\n // (aria-label / aria-labelledby) onto the field so md-text-field mirrors it\n // as the inner input's accessible name. Skipped when `label` is set: the\n // `label` prop already names the input, and passing aria-label too would\n // both double-name and leave an aria-label on md-text-field's role-less host.\n const fieldAriaLabel = this.label ? undefined : this.accessibleName || undefined;\n\n return (\n <md-text-field\n ref={(el) => (this.fieldEl = el as HTMLElement)}\n id={this.triggerId}\n class=\"md-select__field\"\n part=\"field\"\n exportparts=\"container:field-container\"\n variant={this.variant}\n label={this.label}\n aria-label={fieldAriaLabel}\n placeholder={hasValue ? '' : this.placeholder}\n value={display}\n readOnly={true}\n disabled={this.disabled}\n required={this.required}\n error={this.error}\n errorText={this.errorText}\n reserveSupportingSpace={this.reserveSupportingSpace}\n supportingText={this.supportingText}\n density={this.density}\n appearFocused={this.open}\n onClick={this.toggleOpen}\n >\n <span\n slot=\"trailing-icon\"\n class=\"md-select__trailing\"\n part=\"trailing\"\n aria-hidden=\"true\"\n >\n {this.loading ? (\n // Busy state: a spinner replaces the caret/clear. Consumers can swap\n // the spinner via the `loader` slot; the default is md-loading-indicator.\n <span class=\"md-select__loader\" part=\"loading-spinner\">\n <slot name=\"loader\">\n <LazyLoadingIndicator label={this.loadingText}></LazyLoadingIndicator>\n </slot>\n </span>\n ) : (\n [\n showClear && (\n <md-icon-button\n class=\"md-select__clear\"\n part=\"clear\"\n size=\"xs\"\n icon={this.clearIcon}\n aria-label={this.clearLabel}\n shapeMorph={false}\n // Keep it out of the tab order: the cluster is aria-hidden and\n // the select trigger owns focus, matching the prior <button>.\n groupTabindex={-1}\n // Native click (not mdClick) so stopPropagation prevents the\n // field's toggle from also firing and opening the menu.\n onClick={this.clearValue}\n ></md-icon-button>\n ),\n <span class=\"md-select__caret material-symbols-outlined\" part=\"caret\">\n <slot name=\"dropdown-icon\">{this.dropdownIcon}</slot>\n </span>,\n ]\n )}\n </span>\n </md-text-field>\n );\n }\n\n private renderVirtualOptions() {\n // The listbox wrapper lives in md-select's shadow root (slotted into md-menu),\n // so the combobox input's aria-controls / aria-activedescendant IDREFs\n // resolve, and the listbox directly owns its role=\"option\" children (the\n // spacers are aria-hidden). This is the WAI-ARIA combobox/listbox structure.\n return (\n <div\n class=\"md-select__listbox\"\n role=\"listbox\"\n id={`${this.triggerId}-listbox`}\n aria-label={this.accessibleName || 'Options'}\n >\n <div\n class=\"md-select__vspacer\"\n style={{ height: `${this.vc.topPad}px` }}\n aria-hidden=\"true\"\n ></div>\n {this.vc.windowRows.map((row, i) => {\n const filteredIndex = this.vc.windowStart + i;\n const selected = row.value === this.value;\n return (\n <md-menu-item\n key={row.index}\n // Stable id so md-menu can point aria-activedescendant here. Lives in\n // md-select's shadow root alongside the combobox input, so the IDREF\n // resolves. Keyed on the filtered index (its position in the list).\n id={`${this.triggerId}-opt-${filteredIndex}`}\n data-vindex={filteredIndex}\n // Exposes the row as a listbox option (role=\"option\" + aria-selected)\n // rather than a menuitemradio — the WAI-ARIA select/combobox pattern.\n presentation=\"option\"\n type=\"radio\"\n check-position=\"start\"\n keep-open\n part={selected ? 'option option-selected' : 'option'}\n disabled={row.disabled}\n selected={selected}\n headline={row.label}\n supporting-text={row.supportingText || ''}\n aria-setsize={this.vc.filteredLength}\n aria-posinset={filteredIndex + 1}\n onMdClick={() => this.selectValue(row.value)}\n >\n {row.icon ? (\n <span\n slot=\"leading-icon\"\n part=\"option-icon\"\n // Per-option `iconColor` is not carried on the virtualized (WASM)\n // path — the byte-packed row store has no colour column — so\n // virtual rows fall back to --md-select-option-icon-color.\n class=\"material-symbols-outlined md-select__option-icon\"\n aria-hidden=\"true\"\n >\n {row.icon}\n </span>\n ) : null}\n {row.label}\n </md-menu-item>\n );\n })}\n <div\n class=\"md-select__vspacer\"\n style={{ height: `${this.vc.bottomPad}px` }}\n aria-hidden=\"true\"\n ></div>\n </div>\n );\n }\n\n private renderMenu() {\n const virtual = this.vc.active;\n // Non-virtual `filterable`: narrow the rendered options by label / supporting\n // text (case-insensitive). Virtual filtering runs in the WASM engine instead.\n const q = this.filterable && !virtual ? this.query.trim().toLowerCase() : '';\n const listOptions = q\n ? this.optionsData.filter(\n (o) =>\n o.label.toLowerCase().includes(q) ||\n (o.supportingText || '').toLowerCase().includes(q),\n )\n : this.optionsData;\n // While loading we show a wavy progress bar in the menu (below), not text.\n const emptyText = this.loading\n ? ''\n : virtual\n ? this.vc.filteredLength === 0\n ? this.noResultsText\n : ''\n : this.optionsData.length === 0\n ? this.noOptionsText\n : q && listOptions.length === 0\n ? this.noResultsText\n : '';\n // Virtualization needs a bounded viewport to scroll within.\n const menuMaxHeight = virtual ? (this.maxHeight ?? 320) : this.maxHeight;\n\n return (\n <md-menu\n ref={(el) => (this.menuEl = el as VirtualMenuEl)}\n anchor={this.triggerId}\n placement={this.placement}\n match-anchor-width={this.matchTriggerWidth || this.fullWidth}\n max-height={menuMaxHeight}\n empty-text={emptyText}\n // Present the popup as a WAI-ARIA listbox (not a menu) for every select,\n // virtual or not, and name it.\n listbox\n list-label={this.accessibleName || 'Options'}\n part=\"menu\"\n onMdOpen={this.handleMenuOpen}\n onMdClose={this.handleMenuClose}\n >\n {this.filterable && !this.loading && (\n <div slot=\"header\" class=\"md-select__search-wrap\" part=\"search-wrap\">\n <input\n class=\"md-select__search\"\n part=\"search\"\n type=\"text\"\n // WAI-ARIA combobox: this input owns focus while the listbox is\n // open; the active option is conveyed via aria-activedescendant\n // (set by md-menu). aria-controls points at the listbox wrapper,\n // which md-select renders in this same shadow root so the IDREF\n // resolves (the menu surface is only role=\"presentation\").\n role=\"combobox\"\n aria-haspopup=\"listbox\"\n aria-expanded={String(this.open)}\n aria-controls={`${this.triggerId}-listbox`}\n aria-autocomplete=\"list\"\n autocomplete=\"off\"\n placeholder={this.searchPlaceholder}\n aria-label={this.filterLabel || (this.label ? `Filter ${this.label}` : 'Filter options')}\n onInput={this.onSearchInput}\n onClick={(e: MouseEvent) => e.stopPropagation()}\n />\n {this.searching && (\n <LazyLoadingIndicator\n class=\"md-select__search-spinner\"\n part=\"search-spinner\"\n label={this.searchingLabel}\n aria-hidden=\"true\"\n ></LazyLoadingIndicator>\n )}\n </div>\n )}\n {this.loading ? (\n // Busy state inside the menu: a wavy (M3 Expressive) indeterminate\n // linear progress bar instead of \"Loading…\" text.\n <div\n class=\"md-select__loading\"\n part=\"loading-bar\"\n role=\"status\"\n aria-label={this.loadingText}\n >\n <md-progress-indicator\n variant=\"linear\"\n indeterminate\n wave\n part=\"loading-progress\"\n label={this.loadingText}\n ></md-progress-indicator>\n </div>\n ) : virtual ? (\n this.renderVirtualOptions()\n ) : (\n // Listbox wrapper in md-select's shadow root so aria-controls (from a\n // combobox consumer) resolves and the listbox directly owns its\n // role=\"option\" children — the WAI-ARIA select pattern, matching the\n // virtual path. Options carry aria-selected (presentation=\"option\")\n // rather than the menuitemradio/aria-checked of a menu.\n <div\n class=\"md-select__listbox\"\n role=\"listbox\"\n id={`${this.triggerId}-listbox`}\n aria-label={this.accessibleName || 'Options'}\n >\n {listOptions.map((opt) => (\n <md-menu-item\n key={opt.value}\n id={`${this.triggerId}-opt-${opt.value}`}\n presentation=\"option\"\n type=\"radio\"\n check-position=\"start\"\n keep-open\n part={opt.value === this.value ? 'option option-selected' : 'option'}\n disabled={opt.disabled}\n selected={opt.value === this.value}\n headline={opt.label}\n supporting-text={opt.supportingText || ''}\n onMdClick={() => this.selectValue(opt.value)}\n >\n {opt.icon ? (\n <span\n slot=\"leading-icon\"\n part=\"option-icon\"\n class=\"material-symbols-outlined md-select__option-icon\"\n style={opt.iconColor ? { color: opt.iconColor } : undefined}\n aria-hidden=\"true\"\n >\n {opt.icon}\n </span>\n ) : null}\n {/* No light-DOM label copy: md-menu-item renders `headline` in\n its shadow and has no default slot — the unslotted text\n still entered accname computation, doubling the option's\n accessible name (\"10 10\"). */}\n </md-menu-item>\n ))}\n </div>\n )}\n </md-menu>\n );\n }\n\n render() {\n return (\n <Host\n class={{\n 'md-select': true,\n [`md-select--${this.variant}`]: true,\n 'md-select--open': this.open,\n 'md-select--disabled': this.disabled,\n 'md-select--loading': this.loading,\n }}\n aria-haspopup=\"listbox\"\n // No aria-expanded on the host: it has no role, so a screen reader ignores\n // it there (axe flags it \"aria attribute may be ignored\"). The expanded\n // state lives where it works — the filterable search (role=combobox) — and\n // on open, focus moves into the menu (the search, or md-menu's active row).\n aria-busy={this.loading ? 'true' : undefined}\n >\n {this.renderTrigger()}\n {this.renderMenu()}\n {/* Keep the declarative options in the light DOM (hidden) so the\n slotchange/mutation reactivity has something to observe. */}\n <div class=\"md-select__options\" hidden>\n <slot onSlotchange={() => this.refreshOptions()} />\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"sRAAA,MAAMA,EAAc,IAAM,84GCuB1B,IAAIC,EAAkB,EAGtB,MAAMC,EAAuB,IAG7B,MAAMC,EAAqB,I,MAoDdC,EAAQ,MANrB,WAAAC,CAAAC,G,gUAoB8CC,KAAAC,kBAC1C,qCAQ+CD,KAAAE,uBAAkC,MAG3EF,KAAAG,sBAAwB,GAWPH,KAAAI,QAAiC,WAGlDJ,KAAAK,MAAgB,GAGhBL,KAAAM,YAAsB,GAGUN,KAAAO,MAAgB,GAG/BP,KAAAQ,SAAoB,MAGpBR,KAAAS,SAAoB,MAGpBT,KAAAU,MAAiB,MAGPV,KAAAW,UAAoB,GAGfX,KAAAY,eAAyB,GAGxCZ,KAAAa,QAAiC,EAGjCb,KAAAc,UAAqB,MAQ9Cd,KAAAe,kBAA6B,KAGrBf,KAAAgB,UACN,eAkBMhB,KAAA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ErCyN,EAAIpC,KACHX,EAAA,QACEQ,KAAK,eACLL,KAAK,cACLD,MAAM,mDACNc,MAAO+B,EAAIC,UAAY,CAAEC,MAAOF,EAAIC,WAAcjD,UAAS,cAC/C,QAEXgD,EAAIpC,MAEL,S,CAalB,MAAAuC,GACE,OACElD,EAACmD,EAAI,CAAAzG,IAAA,2CACHwD,MAAO,CACL,YAAa,KACb,CAAC,cAAcnL,KAAKI,WAAY,KAChC,kBAAmBJ,KAAKiC,KACxB,sBAAuBjC,KAAKQ,SAC5B,qBAAsBR,KAAK+B,SAC5B,gBACa,UAAS,YAKZ/B,KAAK+B,QAAU,OAASiJ,WAElChL,KAAK0K,gBACL1K,KAAK+M,aAGN9B,EAAA,OAAAtD,IAAA,2CAAKwD,MAAM,qBAAqBkD,OAAM,MACpCpD,EAAA,QAAAtD,IAAA,2CAAM2G,aAAc,IAAMtO,KAAK0G,oB","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as i,h as e,H as a,g as s}from"./p-WmvQpZnM.js";const n=()=>`:host{--_container-color:var( --md-navigation-bar-container-color, var(--md-sys-color-surface-container, #F3EDF7) );--_container-height:var(--md-navigation-bar-container-height, 64px);--_container-shape:var(--md-navigation-bar-container-shape, 0);--_container-elevation:var(--md-navigation-bar-container-elevation, none);--_divider-color:var(--md-navigation-bar-divider-color, transparent);--_divider-width:var(--md-navigation-bar-divider-width, 0);--_z-index:var(--md-navigation-bar-z-index, var(--md-sys-z-index-navigation, 200));display:block;inline-size:100%;box-sizing:border-box;background-color:var(--_container-color);border-radius:var(--_container-shape);border-block-start:var(--_divider-width) solid var(--_divider-color);box-shadow:var(--_container-elevation);color:var(--md-sys-color-on-surface, #1C1B1F);z-index:var(--_z-index);position:relative}.md-navigation-bar__container{display:flex;flex-direction:row;align-items:stretch;justify-content:space-around;inline-size:100%;min-block-size:max(48px, calc(var(--_container-height) + var(--md-sys-density-scale, 0) * 4px));block-size:max(48px, calc(var(--_container-height) + var(--md-sys-density-scale, 0) * 4px));box-sizing:border-box}::slotted(md-navigation-tab){flex:1 1 0;min-inline-size:64px}@media (forced-colors: active){:host{--_container-color:Canvas;--_divider-color:CanvasText;--_divider-width:1px}}: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 r=class{constructor(e){t(this,e);this.mdChange=i(this,"mdChange",7);this.activeIndex=0;this.labelBehavior="always";this.manualActivation=false;this.density=0;this.tabs=[];this.previousIndex=-1}componentDidLoad(){this.syncTabs();this.applyActiveState(this.activeIndex,false);this.previousIndex=this.activeIndex}disconnectedCallback(){this.slotObserver?.disconnect()}onActiveIndexChange(t,i){const e=this.clampToEnabled(t);if(e!==t){this.activeIndex=e;return}this.applyActiveState(e,true,i)}onLabelBehaviorChange(){this.tabs.forEach((t=>this.propagateLabelBehavior(t)))}async select(t){const i=this.clampToEnabled(t);if(i===this.activeIndex)return;this.activeIndex=i}async focusTab(t){const i=this.tabs[t];if(!i||this.isHardDisabled(i))return;i.focus()}syncTabs(){const t=this.el.shadowRoot;if(!t)return;const i=t.querySelector("slot");if(!i)return;this.tabs=i.assignedElements().filter((t=>t.tagName==="MD-NAVIGATION-TAB"));if(this.tabs.length>0){this.el.setAttribute("data-tab-count",String(this.tabs.length))}else{this.el.removeAttribute("data-tab-count")}this.tabs.forEach((t=>this.propagateLabelBehavior(t)));this.applyActiveState(this.activeIndex,false)}propagateLabelBehavior(t){if(!t.hasAttribute("label-behavior")){t.labelBehavior=this.labelBehavior;t.setAttribute("data-md-inherited-label-behavior",this.labelBehavior)}}isDisabled(t){return t.hasAttribute("disabled")||t.getAttribute("aria-disabled")==="true"}isHardDisabled(t){return t.hasAttribute("disabled")}clampToEnabled(t){if(this.tabs.length===0)return-1;const i=Math.max(0,Math.min(t,this.tabs.length-1));if(!this.isDisabled(this.tabs[i]))return i;for(let t=i+1;t<this.tabs.length;t++){if(!this.isDisabled(this.tabs[t]))return t}for(let t=i-1;t>=0;t--){if(!this.isDisabled(this.tabs[t]))return t}return-1}applyActiveState(t,i,e){this.tabs.forEach(((i,e)=>{if(e===t){if(!i.hasAttribute("active"))i.setAttribute("active","");i.setAttribute("tabindex","0");i.setAttribute("aria-selected","true")}else{if(i.hasAttribute("active"))i.removeAttribute("active");i.setAttribute("tabindex","-1");i.setAttribute("aria-selected","false")}}));if(i){const i=e??this.previousIndex;this.previousIndex=t;this.mdChange.emit({index:t,previousIndex:i})}else{this.previousIndex=t}}handleTabClick(t){t.stopPropagation();const i=t.target;if(!i)return;if(this.isDisabled(i))return;const e=this.tabs.indexOf(i);if(e<0)return;if(e===this.activeIndex)return;this.activeIndex=e}handleKeyDown(t){if(this.tabs.length===0)return;const i=document.activeElement;const e=t.composedPath()[0]??i;const a=this.tabs.findIndex((t=>t===e||t.contains(e)));if(a===-1)return;let s=null;const n=getComputedStyle(this.el).direction==="rtl";const r=n?"ArrowLeft":"ArrowRight";const o=n?"ArrowRight":"ArrowLeft";switch(t.key){case r:t.preventDefault();s=this.nextEnabled(a,1);break;case o:t.preventDefault();s=this.nextEnabled(a,-1);break;case"Home":t.preventDefault();s=this.firstEnabled();break;case"End":t.preventDefault();s=this.lastEnabled();break}if(s===null||s===a)return;this.tabs[s].focus();if(!this.manualActivation&&!this.isDisabled(this.tabs[s])){this.activeIndex=s}}nextEnabled(t,i){const e=this.tabs.length;let a=t;for(let t=0;t<e;t++){a=(a+i+e)%e;if(!this.isHardDisabled(this.tabs[a]))return a}return t}firstEnabled(){for(let t=0;t<this.tabs.length;t++){if(!this.isHardDisabled(this.tabs[t]))return t}return 0}lastEnabled(){for(let t=this.tabs.length-1;t>=0;t--){if(!this.isHardDisabled(this.tabs[t]))return t}return this.tabs.length-1}render(){return e(a,{key:"
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as i,h as e,H as a,g as s}from"./p-WmvQpZnM.js";const n=()=>`:host{--_container-color:var( --md-navigation-bar-container-color, var(--md-sys-color-surface-container, #F3EDF7) );--_container-height:var(--md-navigation-bar-container-height, 64px);--_container-shape:var(--md-navigation-bar-container-shape, 0);--_container-elevation:var(--md-navigation-bar-container-elevation, none);--_divider-color:var(--md-navigation-bar-divider-color, transparent);--_divider-width:var(--md-navigation-bar-divider-width, 0);--_z-index:var(--md-navigation-bar-z-index, var(--md-sys-z-index-navigation, 200));display:block;inline-size:100%;box-sizing:border-box;background-color:var(--_container-color);border-radius:var(--_container-shape);border-block-start:var(--_divider-width) solid var(--_divider-color);box-shadow:var(--_container-elevation);color:var(--md-sys-color-on-surface, #1C1B1F);z-index:var(--_z-index);position:relative}.md-navigation-bar__container{display:flex;flex-direction:row;align-items:stretch;justify-content:space-around;inline-size:100%;min-block-size:max(48px, calc(var(--_container-height) + var(--md-sys-density-scale, 0) * 4px));block-size:max(48px, calc(var(--_container-height) + var(--md-sys-density-scale, 0) * 4px));box-sizing:border-box}::slotted(md-navigation-tab){flex:1 1 0;min-inline-size:64px}@media (forced-colors: active){:host{--_container-color:Canvas;--_divider-color:CanvasText;--_divider-width:1px}}: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 r=class{constructor(e){t(this,e);this.mdChange=i(this,"mdChange",7);this.activeIndex=0;this.labelBehavior="always";this.manualActivation=false;this.density=0;this.tabs=[];this.previousIndex=-1}componentDidLoad(){this.syncTabs();this.applyActiveState(this.activeIndex,false);this.previousIndex=this.activeIndex}disconnectedCallback(){this.slotObserver?.disconnect()}onActiveIndexChange(t,i){const e=this.clampToEnabled(t);if(e!==t){this.activeIndex=e;return}this.applyActiveState(e,true,i)}onLabelBehaviorChange(){this.tabs.forEach((t=>this.propagateLabelBehavior(t)))}async select(t){const i=this.clampToEnabled(t);if(i===this.activeIndex)return;this.activeIndex=i}async focusTab(t){const i=this.tabs[t];if(!i||this.isHardDisabled(i))return;i.focus()}syncTabs(){const t=this.el.shadowRoot;if(!t)return;const i=t.querySelector("slot");if(!i)return;this.tabs=i.assignedElements().filter((t=>t.tagName==="MD-NAVIGATION-TAB"));if(this.tabs.length>0){this.el.setAttribute("data-tab-count",String(this.tabs.length))}else{this.el.removeAttribute("data-tab-count")}this.tabs.forEach((t=>this.propagateLabelBehavior(t)));this.applyActiveState(this.activeIndex,false)}propagateLabelBehavior(t){if(!t.hasAttribute("label-behavior")){t.labelBehavior=this.labelBehavior;t.setAttribute("data-md-inherited-label-behavior",this.labelBehavior)}}isDisabled(t){return t.hasAttribute("disabled")||t.getAttribute("aria-disabled")==="true"}isHardDisabled(t){return t.hasAttribute("disabled")}clampToEnabled(t){if(this.tabs.length===0)return-1;const i=Math.max(0,Math.min(t,this.tabs.length-1));if(!this.isDisabled(this.tabs[i]))return i;for(let t=i+1;t<this.tabs.length;t++){if(!this.isDisabled(this.tabs[t]))return t}for(let t=i-1;t>=0;t--){if(!this.isDisabled(this.tabs[t]))return t}return-1}applyActiveState(t,i,e){this.tabs.forEach(((i,e)=>{if(e===t){if(!i.hasAttribute("active"))i.setAttribute("active","");i.setAttribute("tabindex","0");i.setAttribute("aria-selected","true")}else{if(i.hasAttribute("active"))i.removeAttribute("active");i.setAttribute("tabindex","-1");i.setAttribute("aria-selected","false")}}));if(i){const i=e??this.previousIndex;this.previousIndex=t;this.mdChange.emit({index:t,previousIndex:i})}else{this.previousIndex=t}}handleTabClick(t){t.stopPropagation();const i=t.target;if(!i)return;if(this.isDisabled(i))return;const e=this.tabs.indexOf(i);if(e<0)return;if(e===this.activeIndex)return;this.activeIndex=e}handleKeyDown(t){if(this.tabs.length===0)return;const i=document.activeElement;const e=t.composedPath()[0]??i;const a=this.tabs.findIndex((t=>t===e||t.contains(e)));if(a===-1)return;let s=null;const n=getComputedStyle(this.el).direction==="rtl";const r=n?"ArrowLeft":"ArrowRight";const o=n?"ArrowRight":"ArrowLeft";switch(t.key){case r:t.preventDefault();s=this.nextEnabled(a,1);break;case o:t.preventDefault();s=this.nextEnabled(a,-1);break;case"Home":t.preventDefault();s=this.firstEnabled();break;case"End":t.preventDefault();s=this.lastEnabled();break}if(s===null||s===a)return;this.tabs[s].focus();if(!this.manualActivation&&!this.isDisabled(this.tabs[s])){this.activeIndex=s}}nextEnabled(t,i){const e=this.tabs.length;let a=t;for(let t=0;t<e;t++){a=(a+i+e)%e;if(!this.isHardDisabled(this.tabs[a]))return a}return t}firstEnabled(){for(let t=0;t<this.tabs.length;t++){if(!this.isHardDisabled(this.tabs[t]))return t}return 0}lastEnabled(){for(let t=this.tabs.length-1;t>=0;t--){if(!this.isHardDisabled(this.tabs[t]))return t}return this.tabs.length-1}render(){return e(a,{key:"cb22af9667abfc892a7f0d1d829bba39f17cdfd7",role:"navigation"},e("div",{key:"3f3b41e2f66fc7abe0d82425a685c64a0cf1e2dc",class:"md-navigation-bar__container",part:"container",role:"tablist","aria-orientation":"horizontal"},e("slot",{key:"ae3e561d42998fdd4f2489f6f50368d9de103f62",onSlotchange:()=>this.syncTabs()})))}get el(){return s(this)}static get watchers(){return{activeIndex:[{onActiveIndexChange:0}],labelBehavior:[{onLabelBehaviorChange:0}]}}};r.style=n();export{r as md_navigation_bar};
|
|
2
|
+
//# sourceMappingURL=p-90ccf4c3.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const n=["http:","https:","mailto:","tel:","sms:","ftp:"];function e(e){if(e==null)return undefined;const r=String(e).trim();if(!r)return undefined;const t=r.replace(/[^!-~]/g,"").toLowerCase();const o=t.indexOf(":");if(o===-1)return r;const s=t.search(/[/?#]/);if(s!==-1&&s<o)return r;return n.includes(t.slice(0,o+1))?r:undefined}const r="noopener,noreferrer";const t="noopener noreferrer";export{
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
const n=["http:","https:","mailto:","tel:","sms:","ftp:"];function e(e){if(e==null)return undefined;const r=String(e).trim();if(!r)return undefined;const t=r.replace(/[^!-~]/g,"").toLowerCase();const o=t.indexOf(":");if(o===-1)return r;const s=t.search(/[/?#]/);if(s!==-1&&s<o)return r;return n.includes(t.slice(0,o+1))?r:undefined}const r="noopener,noreferrer";const t="noopener noreferrer";export{t as S,r as a,e as s};
|
|
2
|
+
//# sourceMappingURL=p-BdEoSBtL.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"p-
|
|
1
|
+
{"version":3,"file":"p-BdEoSBtL.js","sources":["src/utils/url.ts"],"sourcesContent":["/**\n * URL safety for components that expose an `href` prop.\n *\n * Every `href` is consumer-supplied, and consumers routinely bind it to data\n * they didn't author (a CMS field, an API response, a row of user records).\n * A `javascript:` or `data:` URL in that position executes script the moment\n * the link is followed — in the consumer's origin, with their session. The\n * component is the last place that can stop it, because static analysis of\n * *this* repo never sees the untrusted value: it enters at the API boundary.\n *\n * Allowlist, not denylist. A denylist has to anticipate every dangerous\n * scheme (`javascript:`, `data:`, `vbscript:`, `blob:`, browser-specific\n * ones); an allowlist only has to name the handful that navigation needs.\n */\n\n/** Schemes a link is allowed to navigate to. Everything else is dropped. */\nconst SAFE_SCHEMES = ['http:', 'https:', 'mailto:', 'tel:', 'sms:', 'ftp:'];\n\n/**\n * Return `value` when it is safe to navigate to, otherwise `undefined`.\n *\n * Relative URLs (`/path`, `?q=1`, `#anchor`) and protocol-relative ones\n * (`//host/path`) pass through — they inherit the page's origin and scheme\n * and cannot introduce a new one.\n *\n * The returned string is the caller's original value (trimmed), never a\n * normalised or re-encoded one: rewriting a URL that was already safe risks\n * breaking query strings and fragments that consumers depend on.\n */\nexport function sanitizeHref(value: string | null | undefined): string | undefined {\n if (value == null) return undefined;\n\n const href = String(value).trim();\n if (!href) return undefined;\n\n /* Scheme detection runs on a stripped copy, because URL parsing drops ASCII\n whitespace and control characters that sit *inside* the scheme. Without\n this step a tab or newline spliced into \"javascript:\" reads as an unknown\n scheme here while still navigating in the browser.\n\n `[^!-~]` keeps only printable, non-space ASCII (0x21-0x7E) — which covers\n every character legal in a scheme — and drops spaces, tabs, newlines,\n control characters and non-ASCII alike. The stripped copy is used solely\n to decide; the original is what gets returned. */\n const probe = href.replace(/[^!-~]/g, '').toLowerCase();\n\n const colon = probe.indexOf(':');\n if (colon === -1) return href; // no scheme at all — relative\n\n /* A colon that appears after the first `/`, `?` or `#` belongs to the path,\n query or fragment, not to a scheme: `/a:b`, `?x=1:2` and `#a:b` are all\n relative URLs. */\n const separator = probe.search(/[/?#]/);\n if (separator !== -1 && separator < colon) return href;\n\n return SAFE_SCHEMES.includes(probe.slice(0, colon + 1)) ? href : undefined;\n}\n\n/**\n * `window.open` features that sever the opener relationship.\n *\n * Without `noopener` the opened page can reach back through `window.opener`\n * and navigate the page that opened it — reverse tabnabbing, which turns any\n * outbound link into a phishing vector. `noreferrer` implies `noopener` and\n * additionally withholds the `Referer` header; it is included because the\n * components that already opened links correctly used both, and a library\n * should not leak the embedding URL to third parties by default.\n *\n * `_self`, `_top` and `_parent` keep their meaning when these are set; every\n * other target name behaves as `_blank`.\n */\nexport const SAFE_WINDOW_FEATURES = 'noopener,noreferrer';\n\n/**\n * `rel` value for a rendered anchor that opens in a new browsing context.\n *\n * Modern browsers imply `noopener` for `target=\"_blank\"`, but the guarantee\n * only holds for that exact target — a named target (`target=\"preview\"`) still\n * hands over `window.opener`, so the attribute is set explicitly.\n */\nexport const SAFE_LINK_REL = 'noopener noreferrer';\n"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;AAaG;AAEH;AACA,MAAM,YAAY,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;AAE3E;;;;;;;;;;AAUG;AACG,SAAU,YAAY,CAAC,KAAgC,EAAA;IAC3D,IAAI,KAAK,IAAI,IAAI;AAAE,QAAA,OAAO,SAAS;IAEnC,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE;AACjC,IAAA,IAAI,CAAC,IAAI;AAAE,QAAA,OAAO,SAAS;AAE3B;;;;;;;;AAQoD;AACpD,IAAA,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE;IAEvD,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;IAChC,IAAI,KAAK,KAAK,EAAE;QAAE,OAAO,IAAI,CAAC;AAE9B;;AAEoB;IACpB,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;AACvC,IAAA,IAAI,SAAS,KAAK,EAAE,IAAI,SAAS,GAAG,KAAK;AAAE,QAAA,OAAO,IAAI;IAEtD,OAAO,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS;AAC5E;AAEA;;;;;;;;;;;;AAYG;AACI,MAAM,oBAAoB,GAAG;AAEpC;;;;;;AAMG;AACI,MAAM,aAAa,GAAG;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{q as t,u as n}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{q as t,u as n}from"./p-CVFH1DkU.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-CGqeEMjY.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"p-DzPKu-Ma.js","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"],"names":[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CAAC,CAAC,EAAE,EAAE,CAAC,KAAI;AAClC,QAAA,MAAM,CAAC,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,UAAU,EAAE,WAAW,CAAC;AACjE,QAAA,IAAI,CAAC,GAAG,KAAK,EAAE;YACb,KAAK,GAAG,CAAC;AACT,YAAA,UAAU,GAAG,EAAE,CAAC,WAAW;;AAE/B,KAAC,CAAC;AACF,IAAA,IAAI,UAAU,IAAI,CAAC,IAAI,KAAK,IAAI,kBAAkB;QAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE;;;;AAK/G,IAAA,IAAI,UAAU,GAAG,EAAE;IACnB,IAAI,KAAK,GAAG,QAAQ;AACpB,IAAA,KAAK,MAAM,CAAC,IAAI,KAAK,CAAC,KAAK,EAAE;AAC3B,QAAA,IAAI,CAAC,CAAC,WAAW,IAAI,IAAI,IAAI,CAAC,YAAY,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC;YAAE;AACvD,QAAA,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,GAAI,SAAS,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAY,CAAC;AAC5D,QAAA,IAAI,CAAC,GAAG,KAAK,EAAE;YACb,KAAK,GAAG,CAAC;AACT,YAAA,UAAU,GAAG,CAAC,CAAC,WAAW;;;IAG9B,IAAI,UAAU,IAAI,CAAC;QAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE;;AAGhF,IAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE;AACpC;;;;"}
|
|
1
|
+
{"version":3,"file":"p-CGqeEMjY.js","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"],"names":[],"mappings":";;AAAA;;;;;;;;;AASG;AAKH;AACA,MAAM,GAAG,GAAG,IAAI;AAChB;AACO,MAAM,WAAW,GAAG;AAE3B;;;;;AAKG;AACI,MAAM,WAAW,GAAG,CAAC;AAE5B;;;;;;;;;;;AAWG;SACa,cAAc,CAC5B,MAA8C,EAC9C,UAAkB,EAClB,WAAmB,EAAA;AAEnB,IAAA,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM;AACvB,IAAA,IAAI,CAAC,CAAC;AAAE,QAAA,OAAO,QAAQ;AACvB,IAAA,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC;IACvB,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC;AAC1B,IAAA,IAAI,UAAU,IAAI,KAAK,CAAC,CAAC,CAAC;AAAE,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,UAAU,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC;AAC5F,IAAA,IAAI,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC;AAAE,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,UAAU,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC;IACzF,IAAI,EAAE,GAAG,CAAC;AACV,IAAA,IAAI,EAAE,GAAG,CAAC,GAAG,CAAC;AACd,IAAA,OAAO,EAAE,GAAG,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