@awc-ui/core 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/templates/astro/package.json +2 -2
- package/bin/templates/html/index.html +3 -3
- package/bin/templates/html/package.json +2 -2
- package/bin/templates/next/package.json +3 -3
- package/bin/templates/nuxt/package.json +2 -2
- package/bin/templates/sveltekit/package.json +2 -2
- package/custom-elements.json +644 -1
- package/dist/cjs/data-elements-Cs49KP5R.js +151 -0
- package/dist/cjs/data-elements-Cs49KP5R.js.map +1 -0
- package/dist/cjs/{index-DLOFxFlM.js → index-DHpWaYWF.js} +23 -3
- package/dist/cjs/{index-DLOFxFlM.js.map → index-DHpWaYWF.js.map} +1 -1
- package/dist/cjs/{initial-motion-DVmpmKD8.js → initial-motion-COVdXmbQ.js} +3 -3
- package/dist/cjs/{initial-motion-DVmpmKD8.js.map → initial-motion-COVdXmbQ.js.map} +1 -1
- package/dist/cjs/{lazy-loading-indicator-Bgw5HXaX.js → lazy-loading-indicator-DqjeYBZo.js} +4 -4
- package/dist/cjs/{lazy-loading-indicator-Bgw5HXaX.js.map → lazy-loading-indicator-DqjeYBZo.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/md-accordion-item.cjs.entry.js +5 -5
- package/dist/cjs/md-accordion.cjs.entry.js +2 -2
- package/dist/cjs/md-app-bar.cjs.entry.js +3 -3
- package/dist/cjs/md-area-chart.cjs.entry.js +27 -15
- package/dist/cjs/md-area-chart.cjs.entry.js.map +1 -1
- package/dist/cjs/md-autocomplete.cjs.entry.js +3 -3
- package/dist/cjs/md-avatar_2.cjs.entry.js +3 -3
- package/dist/cjs/md-badge.cjs.entry.js +4 -4
- package/dist/cjs/md-bar-chart.cjs.entry.js +27 -15
- package/dist/cjs/md-bar-chart.cjs.entry.js.map +1 -1
- package/dist/cjs/md-bottom-sheet.cjs.entry.js +6 -6
- package/dist/cjs/md-breadcrumb-item.cjs.entry.js +2 -2
- 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_6.cjs.entry.js +12 -12
- package/dist/cjs/md-chart-series.cjs.entry.js +122 -0
- package/dist/cjs/md-chart-series.cjs.entry.js.map +1 -0
- package/dist/cjs/md-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/md-chip.cjs.entry.js +4 -4
- package/dist/cjs/md-color-picker.cjs.entry.js +3 -3
- package/dist/cjs/md-date-picker.cjs.entry.js +3 -3
- package/dist/cjs/md-dialog.cjs.entry.js +5 -5
- package/dist/cjs/md-divider.cjs.entry.js +4 -4
- package/dist/cjs/md-fab-menu-item.cjs.entry.js +4 -4
- package/dist/cjs/md-fab-menu.cjs.entry.js +5 -5
- package/dist/cjs/md-fab.cjs.entry.js +4 -4
- package/dist/cjs/md-line-chart.cjs.entry.js +31 -19
- package/dist/cjs/md-line-chart.cjs.entry.js.map +1 -1
- package/dist/cjs/md-list-item.cjs.entry.js +2 -2
- package/dist/cjs/md-list.cjs.entry.js +2 -2
- package/dist/cjs/{md-loading-indicator-BB9ghhFd.js → md-loading-indicator-Px_NR8tC.js} +4 -4
- package/dist/cjs/{md-loading-indicator-BB9ghhFd.js.map → md-loading-indicator-Px_NR8tC.js.map} +1 -1
- package/dist/cjs/md-loading-indicator.cjs.entry.js +3 -3
- package/dist/cjs/md-menu-item-group.cjs.entry.js +3 -3
- package/dist/cjs/md-menu_2.cjs.entry.js +8 -8
- package/dist/cjs/md-meter.cjs.entry.js +4 -4
- package/dist/cjs/md-multi-select.cjs.entry.js +5 -5
- package/dist/cjs/md-navigation-bar.cjs.entry.js +2 -2
- package/dist/cjs/md-navigation-rail-tab.cjs.entry.js +3 -3
- package/dist/cjs/md-navigation-rail.cjs.entry.js +4 -4
- 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 +2 -2
- package/dist/cjs/md-pie-chart.cjs.entry.js +25 -15
- package/dist/cjs/md-pie-chart.cjs.entry.js.map +1 -1
- package/dist/cjs/md-pie-slice.cjs.entry.js +59 -0
- package/dist/cjs/md-pie-slice.cjs.entry.js.map +1 -0
- package/dist/cjs/md-progress-indicator.cjs.entry.js +3 -3
- package/dist/cjs/md-rating.cjs.entry.js +4 -4
- package/dist/cjs/md-search.cjs.entry.js +4 -4
- package/dist/cjs/md-segmented-button-set.cjs.entry.js +4 -4
- package/dist/cjs/md-segmented-button.cjs.entry.js +5 -5
- package/dist/cjs/md-select-option.cjs.entry.js +3 -3
- package/dist/cjs/md-select.cjs.entry.js +5 -5
- package/dist/cjs/md-side-sheet.cjs.entry.js +6 -6
- package/dist/cjs/md-skeleton.cjs.entry.js +3 -3
- package/dist/cjs/md-slider.cjs.entry.js +2 -2
- package/dist/cjs/md-sparkline-point.cjs.entry.js +43 -0
- package/dist/cjs/md-sparkline-point.cjs.entry.js.map +1 -0
- package/dist/cjs/md-sparkline.cjs.entry.js +22 -12
- package/dist/cjs/md-sparkline.cjs.entry.js.map +1 -1
- package/dist/cjs/md-split-button.cjs.entry.js +5 -5
- package/dist/cjs/md-status-dot.cjs.entry.js +3 -3
- package/dist/cjs/md-step.cjs.entry.js +8 -8
- package/dist/cjs/md-stepper.cjs.entry.js +5 -5
- package/dist/cjs/md-sub-menu-item.cjs.entry.js +4 -4
- package/dist/cjs/md-switch.cjs.entry.js +4 -4
- package/dist/cjs/md-tab-panel.cjs.entry.js +3 -3
- package/dist/cjs/md-tab-panels.cjs.entry.js +3 -3
- package/dist/cjs/md-tab.cjs.entry.js +6 -6
- package/dist/cjs/md-table-body.cjs.entry.js +3 -3
- package/dist/cjs/md-table-cell.cjs.entry.js +4 -4
- package/dist/cjs/md-table-container.cjs.entry.js +4 -4
- package/dist/cjs/md-table-expand-toggle.cjs.entry.js +4 -4
- package/dist/cjs/md-table-foot.cjs.entry.js +3 -3
- package/dist/cjs/md-table-head.cjs.entry.js +3 -3
- package/dist/cjs/md-table-pagination.cjs.entry.js +4 -4
- package/dist/cjs/md-table-row.cjs.entry.js +6 -6
- package/dist/cjs/md-table-sort-label.cjs.entry.js +4 -4
- package/dist/cjs/md-table-toolbar.cjs.entry.js +5 -5
- package/dist/cjs/md-table.cjs.entry.js +5 -5
- package/dist/cjs/md-tabs.cjs.entry.js +4 -4
- package/dist/cjs/md-text-field.cjs.entry.js +9 -9
- package/dist/cjs/md-time-picker.cjs.entry.js +4 -4
- package/dist/cjs/md-toolbar.cjs.entry.js +5 -5
- package/dist/cjs/md-transfer-list.cjs.entry.js +3 -3
- package/dist/cjs/md3.cjs.js +2 -2
- package/dist/cjs/{overlay-lifecycle-CUc_dfNl.js → overlay-lifecycle-Bhu5zauR.js} +3 -3
- package/dist/cjs/{overlay-lifecycle-CUc_dfNl.js.map → overlay-lifecycle-Bhu5zauR.js.map} +1 -1
- package/dist/cjs/series-elements-B4T7vF5A.js +90 -0
- package/dist/cjs/series-elements-B4T7vF5A.js.map +1 -0
- package/dist/collection/collection-manifest.json +4 -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 +35 -22
- package/dist/collection/components/md-area-chart/md-area-chart.js.map +1 -1
- package/dist/collection/components/md-badge/md-badge.js +2 -2
- package/dist/collection/components/md-bar-chart/md-bar-chart.js +31 -18
- package/dist/collection/components/md-bar-chart/md-bar-chart.js.map +1 -1
- package/dist/collection/components/md-bottom-sheet/md-bottom-sheet.js +4 -4
- package/dist/collection/components/md-chart-series/md-chart-series.css +4 -0
- package/dist/collection/components/md-chart-series/md-chart-series.js +654 -0
- package/dist/collection/components/md-chart-series/md-chart-series.js.map +1 -0
- package/dist/collection/components/md-checkbox/md-checkbox.js +3 -3
- package/dist/collection/components/md-chip/md-chip.js +2 -2
- 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 +31 -18
- package/dist/collection/components/md-line-chart/md-line-chart.js.map +1 -1
- 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-menu-item-group/md-menu-item-group.js +1 -1
- package/dist/collection/components/md-meter/md-meter.js +2 -2
- package/dist/collection/components/md-multi-select/md-multi-select.js +2 -2
- package/dist/collection/components/md-navigation-rail/md-navigation-rail.js +2 -2
- package/dist/collection/components/md-navigation-rail-tab/md-navigation-rail-tab.js +1 -1
- package/dist/collection/components/md-pie-chart/md-pie-chart.js +25 -14
- package/dist/collection/components/md-pie-chart/md-pie-chart.js.map +1 -1
- package/dist/collection/components/md-pie-slice/md-pie-slice.css +1 -0
- package/dist/collection/components/md-pie-slice/md-pie-slice.js +227 -0
- package/dist/collection/components/md-pie-slice/md-pie-slice.js.map +1 -0
- package/dist/collection/components/md-progress-indicator/md-progress-indicator.js +1 -1
- package/dist/collection/components/md-radio/md-radio.js +2 -2
- package/dist/collection/components/md-rating/md-rating.js +2 -2
- package/dist/collection/components/md-ripple/md-ripple.js +1 -1
- package/dist/collection/components/md-segmented-button/md-segmented-button.js +3 -3
- package/dist/collection/components/md-segmented-button-set/md-segmented-button-set.js +2 -2
- package/dist/collection/components/md-select/md-select.js +2 -2
- package/dist/collection/components/md-select-option/md-select-option.js +1 -1
- package/dist/collection/components/md-side-sheet/md-side-sheet.js +3 -3
- package/dist/collection/components/md-skeleton/md-skeleton.js +1 -1
- package/dist/collection/components/md-snackbar/md-snackbar.js +2 -2
- package/dist/collection/components/md-sparkline/md-sparkline.js +22 -11
- package/dist/collection/components/md-sparkline/md-sparkline.js.map +1 -1
- package/dist/collection/components/md-sparkline-point/md-sparkline-point.css +1 -0
- package/dist/collection/components/md-sparkline-point/md-sparkline-point.js +96 -0
- package/dist/collection/components/md-sparkline-point/md-sparkline-point.js.map +1 -0
- package/dist/collection/components/md-split-button/md-split-button.js +3 -3
- package/dist/collection/components/md-status-dot/md-status-dot.js +1 -1
- package/dist/collection/components/md-step/md-step.js +6 -6
- package/dist/collection/components/md-stepper/md-stepper.js +3 -3
- package/dist/collection/components/md-sub-menu-item/md-sub-menu-item.js +2 -2
- package/dist/collection/components/md-switch/md-switch.js +2 -2
- package/dist/collection/components/md-tab/md-tab.js +4 -4
- package/dist/collection/components/md-tab-panel/md-tab-panel.js +1 -1
- package/dist/collection/components/md-tab-panels/md-tab-panels.js +1 -1
- package/dist/collection/components/md-table/md-table.js +3 -3
- package/dist/collection/components/md-table-body/md-table-body.js +1 -1
- package/dist/collection/components/md-table-cell/md-table-cell.js +2 -2
- package/dist/collection/components/md-table-container/md-table-container.js +2 -2
- package/dist/collection/components/md-table-expand-toggle/md-table-expand-toggle.js +2 -2
- package/dist/collection/components/md-table-foot/md-table-foot.js +1 -1
- package/dist/collection/components/md-table-head/md-table-head.js +1 -1
- package/dist/collection/components/md-table-pagination/md-table-pagination.js +2 -2
- package/dist/collection/components/md-table-row/md-table-row.js +4 -4
- package/dist/collection/components/md-table-sort-label/md-table-sort-label.js +2 -2
- package/dist/collection/components/md-table-toolbar/md-table-toolbar.js +3 -3
- package/dist/collection/components/md-tabs/md-tabs.js +2 -2
- 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-toolbar/md-toolbar.js +3 -3
- 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/index.js.map +1 -1
- package/dist/collection/utils/charts/data-elements.js +138 -0
- package/dist/collection/utils/charts/data-elements.js.map +1 -0
- package/dist/collection/utils/charts/series-elements.js +82 -0
- package/dist/collection/utils/charts/series-elements.js.map +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/md-accordion-item.js +1 -1
- package/dist/components/md-accordion.js +1 -1
- package/dist/components/md-app-bar.js +1 -1
- package/dist/components/md-area-chart.js +1 -1
- package/dist/components/md-area-chart.js.map +1 -1
- package/dist/components/md-autocomplete.js +1 -1
- package/dist/components/md-avatar.js +1 -1
- package/dist/components/md-badge.js +1 -1
- package/dist/components/md-bar-chart.js +1 -1
- package/dist/components/md-bar-chart.js.map +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-chart-series.d.ts +11 -0
- package/dist/components/md-chart-series.js +2 -0
- package/dist/components/md-chart-series.js.map +1 -0
- package/dist/components/md-checkbox.js +1 -1
- package/dist/components/md-chip.js +1 -1
- package/dist/components/md-color-picker.js +1 -1
- package/dist/components/md-date-picker.js +1 -1
- package/dist/components/md-dialog.js +1 -1
- package/dist/components/md-divider.js +1 -1
- package/dist/components/md-fab-menu-item.js +1 -1
- package/dist/components/md-fab-menu.js +1 -1
- package/dist/components/md-fab.js +1 -1
- package/dist/components/md-icon-button.js +1 -1
- package/dist/components/md-line-chart.js +1 -1
- package/dist/components/md-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-group.js +1 -1
- package/dist/components/md-menu-item.js +1 -1
- package/dist/components/md-menu.js +1 -1
- package/dist/components/md-meter.js +1 -1
- package/dist/components/md-multi-select.js +1 -1
- package/dist/components/md-navigation-bar.js +1 -1
- package/dist/components/md-navigation-rail-tab.js +1 -1
- package/dist/components/md-navigation-rail.js +1 -1
- package/dist/components/md-navigation-tab.js +1 -1
- package/dist/components/md-number-field.js +1 -1
- package/dist/components/md-organization-chart.js +1 -1
- package/dist/components/md-otp-field.js +1 -1
- package/dist/components/md-pie-chart.js +1 -1
- package/dist/components/md-pie-chart.js.map +1 -1
- package/dist/components/md-pie-slice.d.ts +11 -0
- package/dist/components/md-pie-slice.js +2 -0
- package/dist/components/md-pie-slice.js.map +1 -0
- package/dist/components/md-progress-indicator.js +1 -1
- package/dist/components/md-radio.js +1 -1
- package/dist/components/md-rating.js +1 -1
- package/dist/components/md-ripple.js +1 -1
- package/dist/components/md-search.js +1 -1
- package/dist/components/md-segmented-button-set.js +1 -1
- package/dist/components/md-segmented-button.js +1 -1
- package/dist/components/md-select-option.js +1 -1
- package/dist/components/md-select-option.js.map +1 -1
- package/dist/components/md-select.js +1 -1
- package/dist/components/md-side-sheet.js +1 -1
- package/dist/components/md-skeleton.js +1 -1
- package/dist/components/md-slider.js +1 -1
- package/dist/components/md-snackbar.js +1 -1
- package/dist/components/md-sparkline-point.d.ts +11 -0
- package/dist/components/md-sparkline-point.js +2 -0
- package/dist/components/md-sparkline-point.js.map +1 -0
- package/dist/components/md-sparkline.js +1 -1
- package/dist/components/md-sparkline.js.map +1 -1
- package/dist/components/md-split-button.js +1 -1
- package/dist/components/md-status-dot.js +1 -1
- package/dist/components/md-step.js +1 -1
- package/dist/components/md-stepper.js +1 -1
- package/dist/components/md-sub-menu-item.js +1 -1
- package/dist/components/md-switch.js +1 -1
- package/dist/components/md-tab-panel.js +1 -1
- package/dist/components/md-tab-panels.js +1 -1
- package/dist/components/md-tab.js +1 -1
- package/dist/components/md-tab.js.map +1 -1
- package/dist/components/md-table-body.js +1 -1
- package/dist/components/md-table-cell.js +1 -1
- package/dist/components/md-table-container.js +1 -1
- package/dist/components/md-table-expand-toggle.js +1 -1
- package/dist/components/md-table-foot.js +1 -1
- package/dist/components/md-table-head.js +1 -1
- package/dist/components/md-table-pagination.js +1 -1
- package/dist/components/md-table-pagination.js.map +1 -1
- package/dist/components/md-table-row.js +1 -1
- package/dist/components/md-table-sort-label.js +1 -1
- package/dist/components/md-table-toolbar.js +1 -1
- package/dist/components/md-table.js +1 -1
- package/dist/components/md-tabs.js +1 -1
- package/dist/components/md-text-field.js +1 -1
- package/dist/components/md-time-picker.js +1 -1
- package/dist/components/md-toolbar.js +1 -1
- package/dist/components/md-tooltip.js +1 -1
- package/dist/components/md-transfer-list.js +1 -1
- package/dist/{md3/p-BytnCy9Z.js → components/p-0hoYij4e.js} +2 -2
- package/dist/{components-csr/p-mPtoRtT7.js → components/p-8ZntJ7QX.js} +2 -2
- package/dist/components/p-BcgBd7Uo.js +2 -0
- package/dist/components/p-BcgBd7Uo.js.map +1 -0
- package/dist/components/{p-DIGH4LlS.js → p-Be_QxD6y.js} +2 -2
- package/dist/components/{p-BcOsCkxa.js → p-C9Z-3TKn.js} +2 -2
- package/dist/components/p-CGLhTKkQ.js +2 -0
- package/dist/components/p-CGLhTKkQ.js.map +1 -0
- package/dist/components/{p-CGKlSro0.js → p-CWveMYei.js} +2 -2
- package/dist/{components-csr/p-B3y4Sfu7.js → components/p-CXuNI4mJ.js} +2 -2
- package/dist/components/{p-BCAoGEfF.js → p-CjebvGxr.js} +2 -2
- package/dist/components/{p-BWCwdLDy.js → p-Cui8F6rf.js} +2 -2
- package/dist/components/{p-B9jJRlnU.js → p-D9C2BtN-.js} +2 -2
- package/dist/components/{p-AD7q8XNf.js → p-DI0ebvMQ.js} +2 -2
- package/dist/components/{p-BJAKwQqQ.js → p-DM30Y_8c.js} +2 -2
- package/dist/components/{p-CXOHmY2w.js → p-DTAVEp79.js} +2 -2
- package/dist/{components-csr/p-DQL7SnR8.js → components/p-DoQ8iQ1K.js} +2 -2
- package/dist/components/{p-CjV5tPMM.js → p-OutEvCQi.js} +2 -2
- package/dist/components/{p-D_fs8IXJ.js → p-bn_S0ywb.js} +2 -2
- package/dist/components/{p-CspVD-eh.js → p-t9lomFml.js} +2 -2
- package/dist/components/p-t9lomFml.js.map +1 -0
- package/dist/components/{p-63ROhs5i.js → p-xuLJPnDM.js} +2 -2
- package/dist/components/{p-KXxaSDnZ.js → p-y5Rx7xpR.js} +2 -2
- package/dist/components-csr/index.js +1 -1
- package/dist/components-csr/md-accordion-item.js +1 -1
- package/dist/components-csr/md-accordion.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-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-bar-chart.js.map +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-chart-series.js +2 -0
- package/dist/components-csr/md-chart-series.js.map +1 -0
- package/dist/components-csr/md-checkbox.js +1 -1
- package/dist/components-csr/md-chip.js +1 -1
- package/dist/components-csr/md-color-picker.js +1 -1
- package/dist/components-csr/md-date-picker.js +1 -1
- package/dist/components-csr/md-dialog.js +1 -1
- package/dist/components-csr/md-divider.js +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-group.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-meter.js +1 -1
- package/dist/components-csr/md-multi-select.js +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-pie-chart.js +1 -1
- package/dist/components-csr/md-pie-chart.js.map +1 -1
- package/dist/components-csr/md-pie-slice.js +2 -0
- package/dist/components-csr/md-pie-slice.js.map +1 -0
- package/dist/components-csr/md-progress-indicator.js +1 -1
- package/dist/components-csr/md-radio.js +1 -1
- package/dist/components-csr/md-rating.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-segmented-button-set.js +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-option.js.map +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-skeleton.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-sparkline-point.js +2 -0
- package/dist/components-csr/md-sparkline-point.js.map +1 -0
- package/dist/components-csr/md-sparkline.js +1 -1
- package/dist/components-csr/md-sparkline.js.map +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-stepper.js +1 -1
- package/dist/components-csr/md-sub-menu-item.js +1 -1
- package/dist/components-csr/md-switch.js +1 -1
- package/dist/components-csr/md-tab-panel.js +1 -1
- package/dist/components-csr/md-tab-panels.js +1 -1
- package/dist/components-csr/md-tab.js +1 -1
- package/dist/components-csr/md-tab.js.map +1 -1
- package/dist/components-csr/md-table-body.js +1 -1
- package/dist/components-csr/md-table-cell.js +1 -1
- package/dist/components-csr/md-table-container.js +1 -1
- package/dist/components-csr/md-table-expand-toggle.js +1 -1
- package/dist/components-csr/md-table-foot.js +1 -1
- package/dist/components-csr/md-table-head.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-row.js +1 -1
- package/dist/components-csr/md-table-sort-label.js +1 -1
- package/dist/components-csr/md-table-toolbar.js +1 -1
- package/dist/components-csr/md-table.js +1 -1
- package/dist/components-csr/md-tabs.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-toolbar.js +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-C7SO-MXq.js → p--clgeNUW.js} +2 -2
- package/dist/components-csr/{p-BT43J7lo.js → p-17dQVZNR.js} +2 -2
- package/dist/{components/p-DoJOR0pW.js → components-csr/p-B28l7X5i.js} +2 -2
- package/dist/components-csr/{p-CZp-Xecz.js → p-B2vk3_BC.js} +2 -2
- package/dist/components-csr/p-BcgBd7Uo.js +2 -0
- package/dist/components-csr/p-BcgBd7Uo.js.map +1 -0
- package/dist/components-csr/{p-D5zCIaks.js → p-BwQyYHuZ.js} +2 -2
- package/dist/components-csr/{p-Cr1trPWZ.js → p-C9XZMCL-.js} +2 -2
- package/dist/components-csr/p-CGLhTKkQ.js +2 -0
- package/dist/components-csr/p-CGLhTKkQ.js.map +1 -0
- package/dist/components-csr/{p-CWxDc07j.js → p-D-dmT5kY.js} +2 -2
- package/dist/components-csr/{p-CQoO26r0.js → p-D6ADzLya.js} +2 -2
- package/dist/{components/p-WQOlnYmQ.js → components-csr/p-D7AEBQIw.js} +2 -2
- package/dist/components-csr/{p-B_K-3G0S.js → p-D9cIx3li.js} +2 -2
- package/dist/components-csr/{p-Ca8f4AyH.js → p-DERBQrj5.js} +2 -2
- package/dist/components-csr/{p-CUMT_XYv.js → p-DFJO04Vn.js} +2 -2
- package/dist/components-csr/{p-Px_e-xy9.js → p-DH9RCl21.js} +2 -2
- package/dist/components-csr/{p-CB_bjwk9.js → p-DHw4bV7s.js} +2 -2
- package/dist/components-csr/{p-BuMwJsnQ.js → p-DeGXyF1I.js} +2 -2
- package/dist/components-csr/{p-B37-0L5e.js → p-dBZ_5SDM.js} +2 -2
- package/dist/components-csr/p-dBZ_5SDM.js.map +1 -0
- package/dist/{components/p-C6Dk5I_4.js → components-csr/p-jG7JIK7t.js} +2 -2
- package/dist/components-csr/{p-CvTDNP2i.js → p-oV2Z2HiI.js} +2 -2
- package/dist/esm/data-elements-D_7JTg9V.js +142 -0
- package/dist/esm/data-elements-D_7JTg9V.js.map +1 -0
- package/dist/esm/{index-DkJ2hl1A.js → index-DuCsV-Tv.js} +23 -3
- package/dist/esm/{index-DkJ2hl1A.js.map → index-DuCsV-Tv.js.map} +1 -1
- package/dist/esm/{initial-motion-DdqthWsh.js → initial-motion-D_VxK6y5.js} +3 -3
- package/dist/esm/{initial-motion-DdqthWsh.js.map → initial-motion-D_VxK6y5.js.map} +1 -1
- package/dist/esm/{lazy-loading-indicator-CrT32bSG.js → lazy-loading-indicator-D01l1mnu.js} +4 -4
- package/dist/esm/{lazy-loading-indicator-CrT32bSG.js.map → lazy-loading-indicator-D01l1mnu.js.map} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/md-accordion-item.entry.js +5 -5
- package/dist/esm/md-accordion.entry.js +2 -2
- package/dist/esm/md-app-bar.entry.js +3 -3
- package/dist/esm/md-area-chart.entry.js +27 -15
- package/dist/esm/md-area-chart.entry.js.map +1 -1
- package/dist/esm/md-autocomplete.entry.js +3 -3
- package/dist/esm/md-avatar_2.entry.js +3 -3
- package/dist/esm/md-badge.entry.js +4 -4
- package/dist/esm/md-bar-chart.entry.js +27 -15
- package/dist/esm/md-bar-chart.entry.js.map +1 -1
- package/dist/esm/md-bottom-sheet.entry.js +6 -6
- package/dist/esm/md-breadcrumb-item.entry.js +2 -2
- package/dist/esm/md-breadcrumbs.entry.js +2 -2
- package/dist/esm/md-button-group.entry.js +2 -2
- package/dist/esm/md-button_6.entry.js +12 -12
- package/dist/esm/md-chart-series.entry.js +120 -0
- package/dist/esm/md-chart-series.entry.js.map +1 -0
- package/dist/esm/md-checkbox.entry.js +5 -5
- package/dist/esm/md-chip.entry.js +4 -4
- package/dist/esm/md-color-picker.entry.js +3 -3
- package/dist/esm/md-date-picker.entry.js +3 -3
- package/dist/esm/md-dialog.entry.js +5 -5
- package/dist/esm/md-divider.entry.js +4 -4
- package/dist/esm/md-fab-menu-item.entry.js +4 -4
- package/dist/esm/md-fab-menu.entry.js +5 -5
- package/dist/esm/md-fab.entry.js +4 -4
- package/dist/esm/md-line-chart.entry.js +31 -19
- package/dist/esm/md-line-chart.entry.js.map +1 -1
- package/dist/esm/md-list-item.entry.js +2 -2
- package/dist/esm/md-list.entry.js +2 -2
- package/dist/esm/{md-loading-indicator-y7Swvv8I.js → md-loading-indicator-DvHmp-e1.js} +4 -4
- package/dist/esm/{md-loading-indicator-y7Swvv8I.js.map → md-loading-indicator-DvHmp-e1.js.map} +1 -1
- package/dist/esm/md-loading-indicator.entry.js +3 -3
- package/dist/esm/md-menu-item-group.entry.js +3 -3
- package/dist/esm/md-menu_2.entry.js +8 -8
- package/dist/esm/md-meter.entry.js +4 -4
- package/dist/esm/md-multi-select.entry.js +5 -5
- package/dist/esm/md-navigation-bar.entry.js +2 -2
- package/dist/esm/md-navigation-rail-tab.entry.js +3 -3
- package/dist/esm/md-navigation-rail.entry.js +4 -4
- package/dist/esm/md-navigation-tab.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/md-pie-chart.entry.js +25 -15
- package/dist/esm/md-pie-chart.entry.js.map +1 -1
- package/dist/esm/md-pie-slice.entry.js +57 -0
- package/dist/esm/md-pie-slice.entry.js.map +1 -0
- package/dist/esm/md-progress-indicator.entry.js +3 -3
- package/dist/esm/md-rating.entry.js +4 -4
- package/dist/esm/md-search.entry.js +4 -4
- package/dist/esm/md-segmented-button-set.entry.js +4 -4
- package/dist/esm/md-segmented-button.entry.js +5 -5
- package/dist/esm/md-select-option.entry.js +3 -3
- package/dist/esm/md-select.entry.js +5 -5
- package/dist/esm/md-side-sheet.entry.js +6 -6
- package/dist/esm/md-skeleton.entry.js +3 -3
- package/dist/esm/md-slider.entry.js +2 -2
- package/dist/esm/md-sparkline-point.entry.js +41 -0
- package/dist/esm/md-sparkline-point.entry.js.map +1 -0
- package/dist/esm/md-sparkline.entry.js +22 -12
- package/dist/esm/md-sparkline.entry.js.map +1 -1
- package/dist/esm/md-split-button.entry.js +5 -5
- package/dist/esm/md-status-dot.entry.js +3 -3
- package/dist/esm/md-step.entry.js +8 -8
- package/dist/esm/md-stepper.entry.js +5 -5
- package/dist/esm/md-sub-menu-item.entry.js +4 -4
- package/dist/esm/md-switch.entry.js +4 -4
- package/dist/esm/md-tab-panel.entry.js +3 -3
- package/dist/esm/md-tab-panels.entry.js +3 -3
- package/dist/esm/md-tab.entry.js +6 -6
- package/dist/esm/md-table-body.entry.js +3 -3
- package/dist/esm/md-table-cell.entry.js +4 -4
- package/dist/esm/md-table-container.entry.js +4 -4
- package/dist/esm/md-table-expand-toggle.entry.js +4 -4
- package/dist/esm/md-table-foot.entry.js +3 -3
- package/dist/esm/md-table-head.entry.js +3 -3
- package/dist/esm/md-table-pagination.entry.js +4 -4
- package/dist/esm/md-table-row.entry.js +6 -6
- package/dist/esm/md-table-sort-label.entry.js +4 -4
- package/dist/esm/md-table-toolbar.entry.js +5 -5
- package/dist/esm/md-table.entry.js +5 -5
- package/dist/esm/md-tabs.entry.js +4 -4
- package/dist/esm/md-text-field.entry.js +9 -9
- package/dist/esm/md-time-picker.entry.js +4 -4
- package/dist/esm/md-toolbar.entry.js +5 -5
- package/dist/esm/md-transfer-list.entry.js +3 -3
- package/dist/esm/md3.js +3 -3
- package/dist/esm/{overlay-lifecycle-B4XGZ4dz.js → overlay-lifecycle-CcRpkenI.js} +3 -3
- package/dist/esm/{overlay-lifecycle-B4XGZ4dz.js.map → overlay-lifecycle-CcRpkenI.js.map} +1 -1
- package/dist/esm/series-elements-BcgBd7Uo.js +86 -0
- package/dist/esm/series-elements-BcgBd7Uo.js.map +1 -0
- package/dist/md3/md3.css +1 -1
- package/dist/md3/md3.esm.js +1 -1
- package/dist/md3/p-02e4b894.entry.js +2 -0
- package/dist/md3/{p-6d4889c1.entry.js.map → p-02e4b894.entry.js.map} +1 -1
- package/dist/md3/{p-9fe46046.entry.js → p-05960ec0.entry.js} +2 -2
- package/dist/md3/{p-77635ead.entry.js → p-08ef6b8f.entry.js} +2 -2
- package/dist/md3/{p-a0f17bfb.entry.js → p-1020166c.entry.js} +2 -2
- package/dist/md3/{p-db74251c.entry.js → p-11531ae7.entry.js} +2 -2
- package/dist/md3/p-1426ea48.entry.js +2 -0
- package/dist/md3/p-1426ea48.entry.js.map +1 -0
- package/dist/md3/{p-908456a6.entry.js → p-18a1fe71.entry.js} +2 -2
- package/dist/md3/p-19222f36.entry.js +2 -0
- package/dist/md3/{p-16306734.entry.js.map → p-19222f36.entry.js.map} +1 -1
- package/dist/md3/{p-fd02aa37.entry.js → p-197f8e6c.entry.js} +2 -2
- package/dist/md3/{p-9d1c66a8.entry.js → p-1c930a91.entry.js} +2 -2
- package/dist/md3/p-22fd4581.entry.js +2 -0
- package/dist/md3/p-22fd4581.entry.js.map +1 -0
- package/dist/md3/{p-96cbfdca.entry.js → p-28eb088f.entry.js} +2 -2
- package/dist/md3/{p-ffbde7ad.entry.js → p-292823f3.entry.js} +2 -2
- package/dist/md3/p-2ab73869.entry.js +2 -0
- package/dist/md3/p-2ab73869.entry.js.map +1 -0
- package/dist/md3/{p-bc863e1b.entry.js → p-2b4ca89b.entry.js} +2 -2
- package/dist/md3/{p-af437c3c.entry.js → p-2caf7fb6.entry.js} +2 -2
- package/dist/md3/p-333e5f08.entry.js +2 -0
- package/dist/md3/p-333e5f08.entry.js.map +1 -0
- package/dist/md3/{p-b5a8f03c.entry.js → p-35216f14.entry.js} +2 -2
- package/dist/md3/{p-272ef8cb.entry.js → p-3e07b199.entry.js} +2 -2
- package/dist/md3/{p-c664501b.entry.js → p-3fc79692.entry.js} +2 -2
- package/dist/md3/{p-1b506237.entry.js → p-45931478.entry.js} +2 -2
- package/dist/md3/{p-03f06a3c.entry.js → p-4a60f85d.entry.js} +2 -2
- package/dist/md3/{p-3d90a202.entry.js → p-4c3e159a.entry.js} +2 -2
- package/dist/md3/{p-0c795946.entry.js → p-50dad3c7.entry.js} +2 -2
- package/dist/md3/{p-1ed83da9.entry.js → p-54c42926.entry.js} +2 -2
- package/dist/md3/{p-eef9c775.entry.js → p-56529078.entry.js} +2 -2
- package/dist/md3/{p-d2692d90.entry.js → p-57084546.entry.js} +2 -2
- package/dist/md3/{p-3b8b58ae.entry.js → p-58eaadac.entry.js} +2 -2
- package/dist/md3/{p-5ec552ec.entry.js → p-63669cbe.entry.js} +2 -2
- package/dist/md3/{p-c7746547.entry.js → p-63c26c74.entry.js} +2 -2
- package/dist/md3/p-656be0be.entry.js +2 -0
- package/dist/md3/p-656be0be.entry.js.map +1 -0
- package/dist/md3/{p-8a863529.entry.js → p-6b984e4d.entry.js} +2 -2
- package/dist/md3/p-7a651133.entry.js +2 -0
- package/dist/md3/{p-4f7838e1.entry.js.map → p-7a651133.entry.js.map} +1 -1
- package/dist/md3/{p-097ad5a5.entry.js → p-7cbef5e9.entry.js} +2 -2
- package/dist/md3/p-7ce532aa.entry.js +2 -0
- package/dist/md3/{p-b098f546.entry.js → p-81c1fc3e.entry.js} +2 -2
- package/dist/md3/{p-d70d0db3.entry.js → p-891e5635.entry.js} +2 -2
- package/dist/md3/{p-85e00706.entry.js → p-8a037b98.entry.js} +2 -2
- package/dist/md3/{p-f8b52c07.entry.js → p-93d4cca0.entry.js} +2 -2
- package/dist/md3/{p-858dda75.entry.js → p-9aabec5d.entry.js} +2 -2
- package/dist/md3/{p-8077ceaf.entry.js → p-9ab44705.entry.js} +2 -2
- package/dist/md3/{p-a9fbc697.entry.js → p-9ed391e9.entry.js} +2 -2
- package/dist/md3/{p-RiA8nMw1.js → p-BOlcFCii.js} +2 -2
- package/dist/md3/{p-RiA8nMw1.js.map → p-BOlcFCii.js.map} +1 -1
- package/dist/md3/p-BcgBd7Uo.js +2 -0
- package/dist/md3/p-BcgBd7Uo.js.map +1 -0
- package/dist/md3/{p-ZTAwTx66.js → p-BgRw_myY.js} +2 -2
- package/dist/md3/{p-ZTAwTx66.js.map → p-BgRw_myY.js.map} +1 -1
- package/dist/{components/p-gd9_5R5P.js → md3/p-CUho8MPx.js} +2 -2
- package/dist/md3/{p-BytnCy9Z.js.map → p-CUho8MPx.js.map} +1 -1
- package/dist/md3/{p-Bin9vIoJ.js → p-DH_rSF2a.js} +2 -2
- package/dist/md3/{p-Bin9vIoJ.js.map → p-DH_rSF2a.js.map} +1 -1
- package/dist/md3/p-D_7JTg9V.js +2 -0
- package/dist/md3/p-D_7JTg9V.js.map +1 -0
- package/dist/md3/{p-DkJ2hl1A.js → p-DuCsV-Tv.js} +2 -2
- package/dist/md3/{p-DkJ2hl1A.js.map → p-DuCsV-Tv.js.map} +1 -1
- package/dist/md3/p-a003e769.entry.js +2 -0
- package/dist/md3/{p-3f8959d1.entry.js.map → p-a003e769.entry.js.map} +1 -1
- package/dist/md3/{p-93afcce6.entry.js → p-a7b61854.entry.js} +2 -2
- package/dist/md3/{p-b50448b3.entry.js → p-ac834a37.entry.js} +2 -2
- package/dist/md3/{p-e3211f30.entry.js → p-b3b6a95b.entry.js} +2 -2
- package/dist/md3/{p-67d958e6.entry.js → p-b3fb40d3.entry.js} +2 -2
- package/dist/md3/{p-eb3958a7.entry.js → p-b68af555.entry.js} +2 -2
- package/dist/md3/{p-d5a459bf.entry.js → p-b7c0e652.entry.js} +2 -2
- package/dist/md3/p-b7c8253a.entry.js +2 -0
- package/dist/md3/{p-19aea41a.entry.js → p-b88b8b01.entry.js} +2 -2
- package/dist/md3/{p-4d5100e0.entry.js → p-ba7975b3.entry.js} +2 -2
- package/dist/md3/{p-4bee383f.entry.js → p-bcb6b76c.entry.js} +2 -2
- package/dist/md3/{p-be2082bc.entry.js → p-be7a6e2c.entry.js} +2 -2
- package/dist/md3/{p-5adc9387.entry.js → p-c069c032.entry.js} +2 -2
- package/dist/md3/{p-6f8d6ff0.entry.js → p-c0f9a8ce.entry.js} +2 -2
- package/dist/md3/{p-5355af66.entry.js → p-c46dcf66.entry.js} +2 -2
- package/dist/md3/{p-e2b5d561.entry.js → p-c60d37e8.entry.js} +2 -2
- package/dist/md3/{p-94da49fa.entry.js → p-c74eecab.entry.js} +2 -2
- package/dist/md3/{p-b1da3d4f.entry.js → p-caab4c1f.entry.js} +2 -2
- package/dist/md3/p-cfff8d6e.entry.js +2 -0
- package/dist/md3/{p-c41bd8c9.entry.js.map → p-cfff8d6e.entry.js.map} +1 -1
- package/dist/md3/{p-137d6f2a.entry.js → p-d369a8c5.entry.js} +2 -2
- package/dist/md3/{p-2e1e04c6.entry.js → p-d76f4326.entry.js} +2 -2
- package/dist/md3/{p-b9e28a86.entry.js → p-d7a4c007.entry.js} +2 -2
- package/dist/md3/{p-26122b64.entry.js → p-d8e45f74.entry.js} +2 -2
- package/dist/md3/{p-47aa8306.entry.js → p-d9b44b23.entry.js} +2 -2
- package/dist/md3/{p-b14baec4.entry.js → p-d9e58e9d.entry.js} +2 -2
- package/dist/md3/{p-19e517bc.entry.js → p-da4139f6.entry.js} +2 -2
- package/dist/md3/p-e2442bac.entry.js +2 -0
- package/dist/md3/p-e2442bac.entry.js.map +1 -0
- package/dist/md3/{p-cb498d56.entry.js → p-e3704fc4.entry.js} +2 -2
- package/dist/md3/p-e6091e31.entry.js +2 -0
- package/dist/md3/p-e6091e31.entry.js.map +1 -0
- package/dist/md3/{p-8003b9d7.entry.js → p-ede7415a.entry.js} +2 -2
- package/dist/md3/{p-b38d7576.entry.js → p-f61cc27a.entry.js} +2 -2
- package/dist/md3/{p-2a220f40.entry.js → p-f7abc084.entry.js} +2 -2
- package/dist/md3/p-fbe29776.entry.js +2 -0
- package/dist/md3/p-fbe29776.entry.js.map +1 -0
- package/dist/md3/{p-ea762ac2.entry.js → p-fcfd76d6.entry.js} +2 -2
- package/dist/md3/p-feb6458b.entry.js +2 -0
- package/dist/md3/{p-c1ace95d.entry.js.map → p-feb6458b.entry.js.map} +1 -1
- package/dist/sources/1072375249d01bb6640401cf49dc3d9e87d0ebac412fcfcd1afd3b5cb37df7b7/app-data +3 -0
- package/dist/sources/35dadf059de729b390f3df3b0fd05fd1578e1afbd6f0fa9d382cd0d8794c32aa/series-elements.ts +81 -0
- package/dist/sources/54db212ca26584b16f4acb70c806fc3f94f045143349e8ec72ca2008a5162a7a/md-sparkline-point.tsx +25 -0
- package/dist/sources/{31256da68371b553f1d4bcf905fb37affca24680ba4be391b39695839fd4d855 → 66e71d8e4dbd2ceea6f5d062c7103815560620a7b21193bfa57d29cddba5757e}/md-sparkline.tsx +23 -8
- package/dist/sources/{d3f592ff8c47ce0c056b6e6cbcaa9d43687c53ebe7c8d193110a731a3e3a4af2 → 85eac5ca1350ced6718812f829f335dc5aa0026c954125260013367c738a7c9e}/index.ts +1 -0
- package/dist/sources/{0257008c17c104ed27ee727cf7dbbad94cf14f4148dd8e281b510dd37a34c730 → 88da03acb5e30b2d52fe3d0021dfc64d19dffb81a9f5c630b8bb67de21c9465d}/md-line-chart.tsx +31 -15
- package/dist/sources/{e6f1f0a964cd8962a51c61e3cdf7851c46e88a48833ea5e3da575166bde936c3 → aee3bad879c53f8a56ed81e96b445b3979341c756330370f1e41c5faee0af1a6}/md-bar-chart.tsx +30 -14
- package/dist/sources/c47db83f1e7e32d375ee8a963e744523d1c0455f96183657bd7d85378b063d17/md-pie-slice.css_tag_md-pie-slice_encapsulation_shadow +1 -0
- package/dist/sources/c47db83f1e7e32d375ee8a963e744523d1c0455f96183657bd7d85378b063d17/md-sparkline-point.css_tag_md-sparkline-point_encapsulation_shadow +1 -0
- package/dist/sources/c721f0ed0c4097f171e84a2ae5b4c537ad352844cffded2d805afc600255d248/md-chart-series.tsx +84 -0
- package/dist/sources/{2f88f34ffdcaef324270476cf641a5f8fa62c288ad7d5d92acbae19cb08f7d5c → c8e8a52259b376459bd17703d1d97716abc1fa35931cc95aedc07f1a3196b0c9}/md-area-chart.tsx +33 -17
- package/dist/sources/cd1f7d7eb12ae719865e4d72507e1c83935839f312f92c6006c0afda6006fc43/md-pie-slice.tsx +35 -0
- package/dist/sources/cf81dec71be5e02fb010aeb51bd2dab53f9abb5d4f38bd4e3fcf4fca7713a0fc/data-elements.ts +125 -0
- package/dist/sources/d1d5e4161ad69f87c2c806ba8c8308c99911631504a5e3c1867b7de0b5e58853/md-chart-series.css_tag_md-chart-series_encapsulation_shadow +4 -0
- package/dist/sources/dc5930bf3b00c49a265ba4bb975468f4d4f69b6d9f0e2eb6f6912e856fe5f27f/app-data +3 -0
- package/dist/sources/{7a73bbcfec9d73868501427987950513fe4f7261f768148ed765bd98327cf27e → e82b4aa8f83e6d24aaa681939bc983114812458c3973d18c664c2d59697e81bd}/md-pie-chart.tsx +25 -11
- package/dist/sources/fcfb5850a256d7109a45b7925913ecd1427f826af8d94c955c17dc6a5f6a7b89/app-data +3 -0
- package/dist/types/components/md-area-chart/md-area-chart.d.ts +9 -5
- package/dist/types/components/md-bar-chart/md-bar-chart.d.ts +7 -3
- package/dist/types/components/md-chart-series/md-chart-series.d.ts +61 -0
- package/dist/types/components/md-line-chart/md-line-chart.d.ts +5 -1
- package/dist/types/components/md-pie-chart/md-pie-chart.d.ts +4 -0
- package/dist/types/components/md-pie-slice/md-pie-slice.d.ts +25 -0
- package/dist/types/components/md-sparkline/md-sparkline.d.ts +5 -1
- package/dist/types/components/md-sparkline-point/md-sparkline-point.d.ts +14 -0
- package/dist/types/components.d.ts +429 -18
- package/dist/types/index.d.ts +1 -1
- package/dist/types/utils/charts/data-elements.d.ts +32 -0
- package/dist/types/utils/charts/series-elements.d.ts +38 -0
- package/hydrate/index.js +734 -190
- package/hydrate/index.mjs +734 -190
- package/package.json +2 -2
- package/src/components/md-chart-series/readme.md +25 -0
- package/src/components/md-pie-slice/readme.md +21 -0
- package/src/components/md-sparkline-point/readme.md +19 -0
- package/dist/components/p-CspVD-eh.js.map +0 -1
- package/dist/components-csr/p-B37-0L5e.js.map +0 -1
- package/dist/md3/p-0baf9f88.entry.js +0 -2
- package/dist/md3/p-0baf9f88.entry.js.map +0 -1
- package/dist/md3/p-16306734.entry.js +0 -2
- package/dist/md3/p-2f99585e.entry.js +0 -2
- package/dist/md3/p-2f99585e.entry.js.map +0 -1
- package/dist/md3/p-3d251149.entry.js +0 -2
- package/dist/md3/p-3d251149.entry.js.map +0 -1
- package/dist/md3/p-3d703571.entry.js +0 -2
- package/dist/md3/p-3d703571.entry.js.map +0 -1
- package/dist/md3/p-3f8959d1.entry.js +0 -2
- package/dist/md3/p-4f7838e1.entry.js +0 -2
- package/dist/md3/p-6d4889c1.entry.js +0 -2
- package/dist/md3/p-9379dfca.entry.js +0 -2
- package/dist/md3/p-9379dfca.entry.js.map +0 -1
- package/dist/md3/p-9f0f41c8.entry.js +0 -2
- package/dist/md3/p-c1ace95d.entry.js +0 -2
- package/dist/md3/p-c41bd8c9.entry.js +0 -2
- package/dist/md3/p-de0967a6.entry.js +0 -2
- package/dist/sources/249f56e5f4c1e582903551d8d8a39d83e268058e66194832a21408420ea4a5fb/app-data +0 -3
- package/dist/sources/a9800d32bbcaf3d8baa4abf6f1c13d77f4f7e22dd03bfd1c90ad1cc9c5ac49a9/app-data +0 -3
- package/dist/sources/bb0c438a1a8f4b6d77c43db8d11b2366bfa6c0c48d4daa3ebbdbcd2bdefa4749/app-data +0 -3
- /package/dist/components/{p-gd9_5R5P.js.map → p-0hoYij4e.js.map} +0 -0
- /package/dist/components/{p-WQOlnYmQ.js.map → p-8ZntJ7QX.js.map} +0 -0
- /package/dist/components/{p-DIGH4LlS.js.map → p-Be_QxD6y.js.map} +0 -0
- /package/dist/components/{p-BcOsCkxa.js.map → p-C9Z-3TKn.js.map} +0 -0
- /package/dist/components/{p-CGKlSro0.js.map → p-CWveMYei.js.map} +0 -0
- /package/dist/components/{p-DoJOR0pW.js.map → p-CXuNI4mJ.js.map} +0 -0
- /package/dist/components/{p-BCAoGEfF.js.map → p-CjebvGxr.js.map} +0 -0
- /package/dist/components/{p-BWCwdLDy.js.map → p-Cui8F6rf.js.map} +0 -0
- /package/dist/components/{p-B9jJRlnU.js.map → p-D9C2BtN-.js.map} +0 -0
- /package/dist/components/{p-AD7q8XNf.js.map → p-DI0ebvMQ.js.map} +0 -0
- /package/dist/components/{p-BJAKwQqQ.js.map → p-DM30Y_8c.js.map} +0 -0
- /package/dist/components/{p-CXOHmY2w.js.map → p-DTAVEp79.js.map} +0 -0
- /package/dist/components/{p-C6Dk5I_4.js.map → p-DoQ8iQ1K.js.map} +0 -0
- /package/dist/components/{p-CjV5tPMM.js.map → p-OutEvCQi.js.map} +0 -0
- /package/dist/components/{p-D_fs8IXJ.js.map → p-bn_S0ywb.js.map} +0 -0
- /package/dist/components/{p-63ROhs5i.js.map → p-xuLJPnDM.js.map} +0 -0
- /package/dist/components/{p-KXxaSDnZ.js.map → p-y5Rx7xpR.js.map} +0 -0
- /package/dist/components-csr/{p-C7SO-MXq.js.map → p--clgeNUW.js.map} +0 -0
- /package/dist/components-csr/{p-BT43J7lo.js.map → p-17dQVZNR.js.map} +0 -0
- /package/dist/components-csr/{p-B3y4Sfu7.js.map → p-B28l7X5i.js.map} +0 -0
- /package/dist/components-csr/{p-CZp-Xecz.js.map → p-B2vk3_BC.js.map} +0 -0
- /package/dist/components-csr/{p-D5zCIaks.js.map → p-BwQyYHuZ.js.map} +0 -0
- /package/dist/components-csr/{p-Cr1trPWZ.js.map → p-C9XZMCL-.js.map} +0 -0
- /package/dist/components-csr/{p-CWxDc07j.js.map → p-D-dmT5kY.js.map} +0 -0
- /package/dist/components-csr/{p-CQoO26r0.js.map → p-D6ADzLya.js.map} +0 -0
- /package/dist/components-csr/{p-mPtoRtT7.js.map → p-D7AEBQIw.js.map} +0 -0
- /package/dist/components-csr/{p-B_K-3G0S.js.map → p-D9cIx3li.js.map} +0 -0
- /package/dist/components-csr/{p-Ca8f4AyH.js.map → p-DERBQrj5.js.map} +0 -0
- /package/dist/components-csr/{p-CUMT_XYv.js.map → p-DFJO04Vn.js.map} +0 -0
- /package/dist/components-csr/{p-Px_e-xy9.js.map → p-DH9RCl21.js.map} +0 -0
- /package/dist/components-csr/{p-CB_bjwk9.js.map → p-DHw4bV7s.js.map} +0 -0
- /package/dist/components-csr/{p-BuMwJsnQ.js.map → p-DeGXyF1I.js.map} +0 -0
- /package/dist/components-csr/{p-DQL7SnR8.js.map → p-jG7JIK7t.js.map} +0 -0
- /package/dist/components-csr/{p-CvTDNP2i.js.map → p-oV2Z2HiI.js.map} +0 -0
- /package/dist/md3/{p-9fe46046.entry.js.map → p-05960ec0.entry.js.map} +0 -0
- /package/dist/md3/{p-77635ead.entry.js.map → p-08ef6b8f.entry.js.map} +0 -0
- /package/dist/md3/{p-a0f17bfb.entry.js.map → p-1020166c.entry.js.map} +0 -0
- /package/dist/md3/{p-db74251c.entry.js.map → p-11531ae7.entry.js.map} +0 -0
- /package/dist/md3/{p-908456a6.entry.js.map → p-18a1fe71.entry.js.map} +0 -0
- /package/dist/md3/{p-fd02aa37.entry.js.map → p-197f8e6c.entry.js.map} +0 -0
- /package/dist/md3/{p-9d1c66a8.entry.js.map → p-1c930a91.entry.js.map} +0 -0
- /package/dist/md3/{p-96cbfdca.entry.js.map → p-28eb088f.entry.js.map} +0 -0
- /package/dist/md3/{p-ffbde7ad.entry.js.map → p-292823f3.entry.js.map} +0 -0
- /package/dist/md3/{p-bc863e1b.entry.js.map → p-2b4ca89b.entry.js.map} +0 -0
- /package/dist/md3/{p-af437c3c.entry.js.map → p-2caf7fb6.entry.js.map} +0 -0
- /package/dist/md3/{p-b5a8f03c.entry.js.map → p-35216f14.entry.js.map} +0 -0
- /package/dist/md3/{p-272ef8cb.entry.js.map → p-3e07b199.entry.js.map} +0 -0
- /package/dist/md3/{p-c664501b.entry.js.map → p-3fc79692.entry.js.map} +0 -0
- /package/dist/md3/{p-1b506237.entry.js.map → p-45931478.entry.js.map} +0 -0
- /package/dist/md3/{p-03f06a3c.entry.js.map → p-4a60f85d.entry.js.map} +0 -0
- /package/dist/md3/{p-3d90a202.entry.js.map → p-4c3e159a.entry.js.map} +0 -0
- /package/dist/md3/{p-0c795946.entry.js.map → p-50dad3c7.entry.js.map} +0 -0
- /package/dist/md3/{p-1ed83da9.entry.js.map → p-54c42926.entry.js.map} +0 -0
- /package/dist/md3/{p-eef9c775.entry.js.map → p-56529078.entry.js.map} +0 -0
- /package/dist/md3/{p-d2692d90.entry.js.map → p-57084546.entry.js.map} +0 -0
- /package/dist/md3/{p-3b8b58ae.entry.js.map → p-58eaadac.entry.js.map} +0 -0
- /package/dist/md3/{p-5ec552ec.entry.js.map → p-63669cbe.entry.js.map} +0 -0
- /package/dist/md3/{p-c7746547.entry.js.map → p-63c26c74.entry.js.map} +0 -0
- /package/dist/md3/{p-8a863529.entry.js.map → p-6b984e4d.entry.js.map} +0 -0
- /package/dist/md3/{p-097ad5a5.entry.js.map → p-7cbef5e9.entry.js.map} +0 -0
- /package/dist/md3/{p-9f0f41c8.entry.js.map → p-7ce532aa.entry.js.map} +0 -0
- /package/dist/md3/{p-b098f546.entry.js.map → p-81c1fc3e.entry.js.map} +0 -0
- /package/dist/md3/{p-d70d0db3.entry.js.map → p-891e5635.entry.js.map} +0 -0
- /package/dist/md3/{p-85e00706.entry.js.map → p-8a037b98.entry.js.map} +0 -0
- /package/dist/md3/{p-f8b52c07.entry.js.map → p-93d4cca0.entry.js.map} +0 -0
- /package/dist/md3/{p-858dda75.entry.js.map → p-9aabec5d.entry.js.map} +0 -0
- /package/dist/md3/{p-8077ceaf.entry.js.map → p-9ab44705.entry.js.map} +0 -0
- /package/dist/md3/{p-a9fbc697.entry.js.map → p-9ed391e9.entry.js.map} +0 -0
- /package/dist/md3/{p-93afcce6.entry.js.map → p-a7b61854.entry.js.map} +0 -0
- /package/dist/md3/{p-b50448b3.entry.js.map → p-ac834a37.entry.js.map} +0 -0
- /package/dist/md3/{p-e3211f30.entry.js.map → p-b3b6a95b.entry.js.map} +0 -0
- /package/dist/md3/{p-67d958e6.entry.js.map → p-b3fb40d3.entry.js.map} +0 -0
- /package/dist/md3/{p-eb3958a7.entry.js.map → p-b68af555.entry.js.map} +0 -0
- /package/dist/md3/{p-d5a459bf.entry.js.map → p-b7c0e652.entry.js.map} +0 -0
- /package/dist/md3/{p-de0967a6.entry.js.map → p-b7c8253a.entry.js.map} +0 -0
- /package/dist/md3/{p-19aea41a.entry.js.map → p-b88b8b01.entry.js.map} +0 -0
- /package/dist/md3/{p-4d5100e0.entry.js.map → p-ba7975b3.entry.js.map} +0 -0
- /package/dist/md3/{p-4bee383f.entry.js.map → p-bcb6b76c.entry.js.map} +0 -0
- /package/dist/md3/{p-be2082bc.entry.js.map → p-be7a6e2c.entry.js.map} +0 -0
- /package/dist/md3/{p-5adc9387.entry.js.map → p-c069c032.entry.js.map} +0 -0
- /package/dist/md3/{p-6f8d6ff0.entry.js.map → p-c0f9a8ce.entry.js.map} +0 -0
- /package/dist/md3/{p-5355af66.entry.js.map → p-c46dcf66.entry.js.map} +0 -0
- /package/dist/md3/{p-e2b5d561.entry.js.map → p-c60d37e8.entry.js.map} +0 -0
- /package/dist/md3/{p-94da49fa.entry.js.map → p-c74eecab.entry.js.map} +0 -0
- /package/dist/md3/{p-b1da3d4f.entry.js.map → p-caab4c1f.entry.js.map} +0 -0
- /package/dist/md3/{p-137d6f2a.entry.js.map → p-d369a8c5.entry.js.map} +0 -0
- /package/dist/md3/{p-2e1e04c6.entry.js.map → p-d76f4326.entry.js.map} +0 -0
- /package/dist/md3/{p-b9e28a86.entry.js.map → p-d7a4c007.entry.js.map} +0 -0
- /package/dist/md3/{p-26122b64.entry.js.map → p-d8e45f74.entry.js.map} +0 -0
- /package/dist/md3/{p-47aa8306.entry.js.map → p-d9b44b23.entry.js.map} +0 -0
- /package/dist/md3/{p-b14baec4.entry.js.map → p-d9e58e9d.entry.js.map} +0 -0
- /package/dist/md3/{p-19e517bc.entry.js.map → p-da4139f6.entry.js.map} +0 -0
- /package/dist/md3/{p-cb498d56.entry.js.map → p-e3704fc4.entry.js.map} +0 -0
- /package/dist/md3/{p-8003b9d7.entry.js.map → p-ede7415a.entry.js.map} +0 -0
- /package/dist/md3/{p-b38d7576.entry.js.map → p-f61cc27a.entry.js.map} +0 -0
- /package/dist/md3/{p-2a220f40.entry.js.map → p-f7abc084.entry.js.map} +0 -0
- /package/dist/md3/{p-ea762ac2.entry.js.map → p-fcfd76d6.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as o,c as i,h as a,d as t,t as r}from"./p-B37-0L5e.js";import{c as s,b as n,i as c,r as l,d,p as h}from"./p-B_K-3G0S.js";import{t as m}from"./p-DYBUr7K_.js";import{d as p}from"./p-D5zCIaks.js";const v=()=>`:host(:not([data-awc-motion-ready])),:host(:not([data-awc-motion-ready]))::before,:host(:not([data-awc-motion-ready]))::after,:host(:not([data-awc-motion-ready])) *,:host(:not([data-awc-motion-ready])) *::before,:host(:not([data-awc-motion-ready])) *::after{transition-property:none !important}`;const y=()=>`:host{--_container-color:var(--md-chip-container-color, transparent);--_container-color-selected:var(--md-chip-container-color-selected, var(--md-sys-color-secondary-container));--_label-color:var(--md-chip-label-color, var(--md-sys-color-on-surface-variant));--_label-color-selected:var(--md-chip-label-color-selected, var(--md-sys-color-on-secondary-container));--_icon-color:var(--md-chip-icon-color, var(--md-sys-color-primary));--_icon-size:var(--md-chip-icon-size, max(14px, calc(18px + var(--md-sys-density-scale, 0) * 1px)));--_container-shape:var(--md-chip-container-shape, var(--md-sys-shape-corner-small, 8px));--_container-height:var(--md-chip-container-height, 32px);--_outline-color:var(--md-chip-outline-color, var(--md-sys-color-outline));--_outline-width:var(--md-chip-outline-width, 1px);--_state-layer-color:var(--md-chip-state-layer-color, var(--md-sys-color-on-surface));--_elevation:var(--md-chip-elevation, var(--md-sys-elevation-0, none));--_c-main:var(--md-sys-color-primary);--_c-on-main:var(--md-sys-color-on-primary);--_c-container:var(--md-sys-color-secondary-container);--_c-on-container:var(--md-sys-color-on-secondary-container);--_padding-inline:var(--md-sys-spacing-inset-lg, 16px);--_gap:var(--md-sys-spacing-gap-sm, 8px);display:inline-flex;align-items:center;justify-content:center;position:relative;box-sizing:border-box;block-size:max(24px, calc(var(--_container-height) + var(--md-sys-density-scale, 0) * 4px));padding-inline:var(--_padding-inline);gap:var(--_gap);background-color:var(--_container-color);border-radius:var(--_container-shape);box-shadow:var(--_elevation);cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;overflow:hidden;isolation:isolate;font-family:var(--md-sys-typescale-label-large-font-family, Roboto, sans-serif);font-size:max(11px, calc(14px + var(--md-sys-density-scale, 0) * 0.5px));font-weight:var(--md-sys-typescale-label-large-font-weight, 500);line-height:max(16px, calc(20px + var(--md-sys-density-scale, 0) * 1px));letter-spacing:var(--md-sys-typescale-label-large-letter-spacing, 0.1px);color:var(--_label-color);transition:background-color var(--md-sys-motion-duration-short2, 200ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1)), box-shadow var(--md-sys-motion-duration-short2, 200ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1)), color var(--md-sys-motion-duration-short2, 200ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1))}:host(.md-chip--with-leading-icon){padding-inline-start:var(--md-sys-spacing-inset-sm, 8px)}:host(.md-chip--with-trailing-icon){padding-inline-end:var(--md-sys-spacing-inset-sm, 8px)}:host([content-align='start']){justify-content:flex-start}:host([content-align='end']){justify-content:flex-end}:host(.md-chip--assist){--_icon-color:var(--md-chip-icon-color, var(--md-sys-color-primary));--_label-color:var(--md-chip-label-color, var(--md-sys-color-on-surface))}:host(.md-chip--filter){--_icon-color:var(--md-chip-icon-color, var(--md-sys-color-on-surface-variant));--_label-color:var(--md-chip-label-color, var(--md-sys-color-on-surface-variant))}:host(.md-chip--input){--_outline-color:var(--md-chip-outline-color, var(--md-sys-color-outline-variant));--_icon-color:var(--md-chip-icon-color, var(--md-sys-color-on-surface-variant));--_label-color:var(--md-chip-label-color, var(--md-sys-color-on-surface-variant))}:host(.md-chip--suggestion){--_icon-color:var(--md-chip-icon-color, var(--md-sys-color-on-surface-variant));--_label-color:var(--md-chip-label-color, var(--md-sys-color-on-surface-variant))}:host(.md-chip--selected){--_container-color:var(--_container-color-selected);color:var(--_label-color-selected);--_icon-color:var(--md-chip-icon-color, var(--md-sys-color-on-secondary-container));--_state-layer-color:var(--md-sys-color-on-secondary-container)}:host(.md-chip--selected) .md-chip__outline{border-color:transparent}:host(.md-chip--elevated){--_elevation:var(--md-chip-elevation, var(--md-sys-elevation-1))}:host(.md-chip--elevated) .md-chip__outline{border-color:transparent}:host(.md-chip--elevated.md-chip--selected){--_elevation:var(--md-chip-elevation, var(--md-sys-elevation-1))}:host(.md-chip--appearance-outlined[color]){--_outline-color:var(--md-chip-outline-color, var(--_c-main));--_label-color:var(--md-chip-label-color, var(--_c-main));--_icon-color:var(--md-chip-icon-color, var(--_c-main));--_state-layer-color:var(--md-chip-state-layer-color, var(--_c-main))}:host(.md-chip--appearance-filled),:host(.md-chip--appearance-elevated){--_container-color:var(--md-chip-container-color, var(--md-sys-color-surface-container-high));--_label-color:var(--md-chip-label-color, var(--md-sys-color-on-surface-variant));--_icon-color:var(--md-chip-icon-color, var(--md-sys-color-on-surface-variant))}:host(.md-chip--appearance-filled[color]),:host(.md-chip--appearance-elevated[color]){--_container-color:var(--md-chip-container-color, var(--_c-container));--_label-color:var(--md-chip-label-color, var(--_c-on-container));--_icon-color:var(--md-chip-icon-color, var(--_c-on-container));--_state-layer-color:var(--md-chip-state-layer-color, var(--_c-on-container))}:host(.md-chip--appearance-filled) .md-chip__outline,:host(.md-chip--appearance-elevated) .md-chip__outline{border-color:transparent}:host(.md-chip--selected[color]){--_container-color:var(--_c-container);color:var(--_c-on-container);--_label-color-selected:var(--_c-on-container);--_icon-color:var(--md-chip-icon-color, var(--_c-on-container));--_state-layer-color:var(--_c-on-container)}.md-chip__outline{position:absolute;inset:0;border-radius:inherit;border:var(--_outline-width) solid var(--_outline-color);pointer-events:none}.md-chip__state-layer{position:absolute;inset:0;border-radius:inherit;background-color:var(--_state-layer-color);opacity:0;transition:opacity var(--md-sys-motion-duration-short1, 100ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1));pointer-events:none;z-index:1}:host(:hover) .md-chip__state-layer{opacity:var(--md-sys-state-hover-state-layer-opacity, 0.08)}:host(:focus-visible) .md-chip__state-layer{opacity:var(--md-sys-state-focus-state-layer-opacity, 0.12)}:host(:active) .md-chip__state-layer{opacity:var(--md-sys-state-pressed-state-layer-opacity, 0.12)}:host(:focus-visible){outline:3px solid var(--md-sys-color-secondary);outline-offset:2px}.md-chip__primary{position:absolute;inset:0;z-index:2;margin:0;padding:0;border:none;background:none;border-radius:inherit;cursor:inherit;-webkit-tap-highlight-color:transparent}.md-chip__primary:focus-visible{outline:3px solid var(--md-sys-color-secondary);outline-offset:-3px}.md-chip__label{position:relative;z-index:2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:start}.md-chip__icon,.md-chip__trailing-icon{position:relative;z-index:2;font-family:var(--md-sys-icon-font-family, 'Material Symbols Outlined', 'Material Icons');font-size:var(--_icon-size);inline-size:var(--_icon-size);block-size:var(--_icon-size);color:var(--_icon-color);line-height:1;font-weight:normal;font-style:normal;letter-spacing:normal;text-transform:none;white-space:nowrap;overflow-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;pointer-events:none;flex-shrink:0}slot[name="leading-icon"],slot[name="trailing-icon"]{display:contents}::slotted([slot="leading-icon"]),::slotted([slot="trailing-icon"]){display:inline-flex;align-items:center;justify-content:center;inline-size:var(--_icon-size);block-size:var(--_icon-size);font-size:var(--_icon-size);color:var(--_icon-color);fill:currentColor;pointer-events:none;flex-shrink:0;position:relative;z-index:2}.md-chip__checkmark{position:relative;z-index:2;display:inline-flex;align-items:center;justify-content:center;inline-size:var(--_icon-size);block-size:var(--_icon-size);color:var(--_icon-color);flex-shrink:0}.md-chip__checkmark svg{inline-size:var(--_icon-size);block-size:var(--_icon-size)}.md-chip__remove{position:relative;z-index:2;display:inline-flex;align-items:center;justify-content:center;min-inline-size:18px;min-block-size:18px;padding:0;border:none;background:none;color:var(--_icon-color);cursor:pointer;border-radius:50%;flex-shrink:0;-webkit-tap-highlight-color:transparent}.md-chip__remove:focus-visible{outline:2px solid var(--md-sys-color-secondary);outline-offset:1px}.md-chip__remove svg{inline-size:var(--_icon-size);block-size:var(--_icon-size);pointer-events:none}.md-chip__remove:disabled{cursor:default;pointer-events:none}:host(.md-chip--disabled){cursor:default;pointer-events:none;color:color-mix(in srgb, var(--md-sys-color-on-surface) calc(var(--md-sys-state-disabled-content-opacity, 0.38) * 100%), transparent);--_icon-color:color-mix(in srgb, var(--md-sys-color-on-surface) calc(var(--md-sys-state-disabled-content-opacity, 0.38) * 100%), transparent);--_elevation:var(--md-sys-elevation-0, none) !important}:host(.md-chip--disabled:not(.md-chip--selected):not(.md-chip--elevated)) .md-chip__outline{border-color:color-mix(in srgb, var(--md-sys-color-on-surface) calc(var(--md-sys-state-disabled-container-opacity, 0.12) * 100%), transparent)}:host(.md-chip--disabled.md-chip--selected){--_container-color:color-mix(in srgb, var(--md-sys-color-on-surface) calc(var(--md-sys-state-disabled-container-opacity, 0.12) * 100%), transparent)}:host(.md-chip--disabled.md-chip--elevated:not(.md-chip--selected)){--_container-color:color-mix(in srgb, var(--md-sys-color-on-surface) calc(var(--md-sys-state-disabled-container-opacity, 0.12) * 100%), transparent)}:host(.md-chip--disabled:hover) .md-chip__state-layer,:host(.md-chip--disabled:active) .md-chip__state-layer,:host(.md-chip--disabled:focus-visible) .md-chip__state-layer{opacity:0}:host([soft-disabled]){cursor:default;pointer-events:auto;color:color-mix(in srgb, var(--md-sys-color-on-surface) calc(var(--md-sys-state-disabled-content-opacity, 0.38) * 100%), transparent);--_icon-color:color-mix(in srgb, var(--md-sys-color-on-surface) calc(var(--md-sys-state-disabled-content-opacity, 0.38) * 100%), transparent);--_elevation:var(--md-sys-elevation-0, none) !important}:host([soft-disabled]) .md-chip__state-layer{display:none}@media (prefers-reduced-motion: reduce){:host{transition:none}.md-chip__state-layer{transition:none}}@media (forced-colors: active){:host{border:1px solid ButtonText;background-color:ButtonFace;color:ButtonText;forced-color-adjust:none}.md-chip__outline{border-color:ButtonText}:host(:focus-visible){outline-color:Highlight}.md-chip__primary:focus-visible{outline-color:Highlight}:host(.md-chip--selected){background-color:Highlight;color:HighlightText}:host(.md-chip--disabled){border-color:GrayText;color:GrayText;opacity:1}.md-chip__state-layer{display:none}}:host([density='-1']){--md-sys-density-scale:-1}:host([density='-2']){--md-sys-density-scale:-2}:host([density='-3']){--md-sys-density-scale:-3}:host([density='-4']){--md-sys-density-scale:-4}:host([hidden]){display:none !important}`;const b=e(class e extends o{constructor(e){super();if(e!==false){this.__registerHost()}this.__attachShadow();this.mdClick=i(this,"mdClick",7);this.mdSelect=i(this,"mdSelect",7);this.mdRemove=i(this,"mdRemove",7);this.variant="assist";this.icon="";this.trailingIcon="";this.selected=false;this.appearance="outlined";this.elevated=false;this.disabled=false;this.softDisabled=false;this.label="";this.contentAlign="center";this.density=0;this.hasSlottedLeadingIcon=false;this.hasSlottedTrailingIcon=false;this.handleClick=e=>{if(this.isDisabled){e.preventDefault();return}if(this.isSelectable){this.selected=!this.selected;this.mdSelect.emit({selected:this.selected})}this.mdClick.emit()};this.handleKeyDown=e=>{if(this.isDisabled)return;if(e.key==="Enter"||e.key===" "){e.preventDefault();m(this.el);this.el.click();return}if(this.isRemovable&&(e.key==="Delete"||e.key==="Backspace")){e.preventDefault();this.dispatchRemove()}};this.handleRemoveClick=e=>{e.stopPropagation();if(this.isDisabled)return;this.dispatchRemove()};this.handleRemoveKeyDown=e=>{if(this.isDisabled)return;if(e.key==="Enter"||e.key===" "){e.stopPropagation();e.preventDefault();this.dispatchRemove()}}}get isDisabled(){return this.disabled||this.softDisabled}get colorVars(){const e=this.color;if(!e||!/^[a-z][a-z0-9-]*$/i.test(e))return undefined;return{"--_c-main":`var(--md-sys-color-${e}, var(--md-sys-color-primary))`,"--_c-on-main":`var(--md-sys-color-on-${e}, var(--md-sys-color-on-primary))`,"--_c-container":`var(--md-sys-color-${e}-container, var(--md-sys-color-secondary-container))`,"--_c-on-container":`var(--md-sys-color-on-${e}-container, var(--md-sys-color-on-secondary-container))`}}get effectiveAppearance(){return this.elevated?"elevated":this.appearance}get isSelectable(){if(this.selectable!==undefined)return this.selectable;return this.variant==="filter"||this.variant==="input"}get isInteractiveHost(){return!(this.selectable===false&&this.isRemovable)}get isRemovable(){if(this.removable===true)return true;if(this.removable===false)return false;return this.variant==="input"}get accessibleLabel(){return this.label||this.el.textContent?.trim()||""}componentDidLoad(){try{const e=this.el.shadowRoot;if(!e)return;const o=e.querySelector('slot[name="leading-icon"]');const i=e.querySelector('slot[name="trailing-icon"]');o?.addEventListener("slotchange",(()=>{this.hasSlottedLeadingIcon=o.assignedElements().length>0}));i?.addEventListener("slotchange",(()=>{this.hasSlottedTrailingIcon=i.assignedElements().length>0}))}finally{s(this)}}dispatchRemove(){const e=this.mdRemove.emit();if(!e.defaultPrevented){this.el.remove()}}render(){const e=!!this.icon||this.hasSlottedLeadingIcon;const o=!!this.trailingIcon||this.hasSlottedTrailingIcon;const i=this.variant==="filter"&&this.selected&&!e;const r=this.isRemovable;const s=this.isDisabled;const n=this.accessibleLabel;const c=this.isInteractiveHost&&!r;const l=this.isInteractiveHost&&r;return a(t,{key:"4f3e07d4043b04feb164da02cc569c6525ad4b88",style:this.colorVars,class:{"md-chip":true,[`md-chip--${this.variant}`]:true,"md-chip--selected":this.selected&&this.isSelectable,[`md-chip--appearance-${this.effectiveAppearance}`]:true,"md-chip--elevated":this.effectiveAppearance==="elevated",[`md-chip--color-${this.color}`]:!!this.color,"md-chip--disabled":s,"md-chip--with-leading-icon":e||i,"md-chip--with-trailing-icon":o||r},role:c?"button":"group","aria-roledescription":"chip","aria-pressed":c&&this.isSelectable?String(this.selected):undefined,"aria-label":c?undefined:n||undefined,"aria-disabled":s?"true":undefined,tabindex:c?this.disabled?"-1":"0":undefined,onClick:this.handleClick,onKeyDown:this.handleKeyDown},a("md-ripple",{key:"3f861e452aa74ba2a3e1ad37bff196807a2308ae",disabled:s}),a("span",{key:"aefdb015b468230d4ae2f89202a590271bf26dcf",class:"md-chip__state-layer",part:"state-layer","aria-hidden":"true"}),!this.elevated&&a("span",{key:"0524069b0f629a3bea81fdde5800d0e75adc6c74",class:"md-chip__outline",part:"outline","aria-hidden":"true"}),l&&a("span",{key:"fd11b24cbc09df85abe6090a4a423bd279bc264c",class:"md-chip__primary",part:"primary",role:"button",tabindex:this.disabled?"-1":"0","aria-labelledby":"md-chip-label-text","aria-pressed":this.isSelectable?String(this.selected):undefined,"aria-disabled":s?"true":undefined}),i&&a("span",{key:"df83f9d222f10fcad45864a251eb3b0ba029efc3",class:"md-chip__checkmark",part:"checkmark","aria-hidden":"true"},a("svg",{key:"c10c3949ad9815e7b4aa18846c2a86c6af46b668",viewBox:"0 0 18 18",fill:"none"},a("path",{key:"f8caf61e388349f6e5cd71d098249f4194aa203d",d:"M6.75 12.127L3.623 9l-1.06 1.057L6.75 14.25l9-9-1.057-1.057L6.75 12.127z",fill:"currentColor"}))),a("slot",{key:"1e8d326e0b865ee52bd33e9df5966cc6bc326172",name:"leading-icon"},e&&!i&&a("span",{key:"da2591e27475c6b1e69dd8d9d8c7f4539a4422ed",class:"md-chip__icon material-symbols-outlined",part:"icon","aria-hidden":"true"},this.icon)),a("span",{key:"13ac09778b69a9ce90068ba7dad5f20e7a777496",class:"md-chip__label",part:"label",id:"md-chip-label-text"},a("slot",{key:"ab010504b9daa53edbd7f26cc62b5ddfc4bc086f"},this.label)),r?a("button",{class:"md-chip__remove",part:"remove",type:"button",tabindex:this.disabled?"-1":"0","aria-label":n?`Remove ${n}`:"Remove",disabled:s,onClick:this.handleRemoveClick,onKeyDown:this.handleRemoveKeyDown},a("slot",{name:"trailing-icon"},a("svg",{viewBox:"0 0 18 18",fill:"none","aria-hidden":"true"},a("path",{d:"M14.25 4.808l-1.058-1.058L9 7.942 4.808 3.75 3.75 4.808 7.942 9 3.75 13.192l1.058 1.058L9 10.058l4.192 4.192 1.058-1.058L10.058 9l4.192-4.192z",fill:"currentColor"})))):a("slot",{name:"trailing-icon"},o&&a("span",{class:"md-chip__trailing-icon material-symbols-outlined",part:"trailing-icon","aria-hidden":"true"},this.trailingIcon)))}componentWillLoad(){n(this)}componentDidRender(){c(this)}connectedCallback(){l(this)}disconnectedCallback(){d(this)}componentShouldUpdate(){h(this);return true}get el(){return this}static get style(){return v()+y()}},[257,"md-chip",{variant:[513],icon:[1],trailingIcon:[1,"trailing-icon"],selected:[1540],selectable:[4],appearance:[513],color:[513],elevated:[516],disabled:[516],softDisabled:[516,"soft-disabled"],removable:[516],label:[1],contentAlign:[513,"content-align"],density:[514],hasSlottedLeadingIcon:[32],hasSlottedTrailingIcon:[32]}]);function u(){if(typeof customElements==="undefined"){return}const e=["md-chip","md-ripple"];e.forEach((e=>{switch(e){case"md-chip":if(!customElements.get(r(e))){customElements.define(r(e),b)}break;case"md-ripple":if(!customElements.get(r(e))){p()}break}}))}u();export{b as M,u as d};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as e,H as o,c as i,h as t,d as a,t as r}from"./p-dBZ_5SDM.js";import{c as s,b as n,i as c,r as l,d,p as h}from"./p-D9cIx3li.js";import{t as m}from"./p-DYBUr7K_.js";import{d as p}from"./p-BwQyYHuZ.js";const v=()=>`:host(:not([data-awc-motion-ready])),:host(:not([data-awc-motion-ready]))::before,:host(:not([data-awc-motion-ready]))::after,:host(:not([data-awc-motion-ready])) *,:host(:not([data-awc-motion-ready])) *::before,:host(:not([data-awc-motion-ready])) *::after{transition-property:none !important}`;const y=()=>`:host{--_container-color:var(--md-chip-container-color, transparent);--_container-color-selected:var(--md-chip-container-color-selected, var(--md-sys-color-secondary-container));--_label-color:var(--md-chip-label-color, var(--md-sys-color-on-surface-variant));--_label-color-selected:var(--md-chip-label-color-selected, var(--md-sys-color-on-secondary-container));--_icon-color:var(--md-chip-icon-color, var(--md-sys-color-primary));--_icon-size:var(--md-chip-icon-size, max(14px, calc(18px + var(--md-sys-density-scale, 0) * 1px)));--_container-shape:var(--md-chip-container-shape, var(--md-sys-shape-corner-small, 8px));--_container-height:var(--md-chip-container-height, 32px);--_outline-color:var(--md-chip-outline-color, var(--md-sys-color-outline));--_outline-width:var(--md-chip-outline-width, 1px);--_state-layer-color:var(--md-chip-state-layer-color, var(--md-sys-color-on-surface));--_elevation:var(--md-chip-elevation, var(--md-sys-elevation-0, none));--_c-main:var(--md-sys-color-primary);--_c-on-main:var(--md-sys-color-on-primary);--_c-container:var(--md-sys-color-secondary-container);--_c-on-container:var(--md-sys-color-on-secondary-container);--_padding-inline:var(--md-sys-spacing-inset-lg, 16px);--_gap:var(--md-sys-spacing-gap-sm, 8px);display:inline-flex;align-items:center;justify-content:center;position:relative;box-sizing:border-box;block-size:max(24px, calc(var(--_container-height) + var(--md-sys-density-scale, 0) * 4px));padding-inline:var(--_padding-inline);gap:var(--_gap);background-color:var(--_container-color);border-radius:var(--_container-shape);box-shadow:var(--_elevation);cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;overflow:hidden;isolation:isolate;font-family:var(--md-sys-typescale-label-large-font-family, Roboto, sans-serif);font-size:max(11px, calc(14px + var(--md-sys-density-scale, 0) * 0.5px));font-weight:var(--md-sys-typescale-label-large-font-weight, 500);line-height:max(16px, calc(20px + var(--md-sys-density-scale, 0) * 1px));letter-spacing:var(--md-sys-typescale-label-large-letter-spacing, 0.1px);color:var(--_label-color);transition:background-color var(--md-sys-motion-duration-short2, 200ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1)), box-shadow var(--md-sys-motion-duration-short2, 200ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1)), color var(--md-sys-motion-duration-short2, 200ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1))}:host(.md-chip--with-leading-icon){padding-inline-start:var(--md-sys-spacing-inset-sm, 8px)}:host(.md-chip--with-trailing-icon){padding-inline-end:var(--md-sys-spacing-inset-sm, 8px)}:host([content-align='start']){justify-content:flex-start}:host([content-align='end']){justify-content:flex-end}:host(.md-chip--assist){--_icon-color:var(--md-chip-icon-color, var(--md-sys-color-primary));--_label-color:var(--md-chip-label-color, var(--md-sys-color-on-surface))}:host(.md-chip--filter){--_icon-color:var(--md-chip-icon-color, var(--md-sys-color-on-surface-variant));--_label-color:var(--md-chip-label-color, var(--md-sys-color-on-surface-variant))}:host(.md-chip--input){--_outline-color:var(--md-chip-outline-color, var(--md-sys-color-outline-variant));--_icon-color:var(--md-chip-icon-color, var(--md-sys-color-on-surface-variant));--_label-color:var(--md-chip-label-color, var(--md-sys-color-on-surface-variant))}:host(.md-chip--suggestion){--_icon-color:var(--md-chip-icon-color, var(--md-sys-color-on-surface-variant));--_label-color:var(--md-chip-label-color, var(--md-sys-color-on-surface-variant))}:host(.md-chip--selected){--_container-color:var(--_container-color-selected);color:var(--_label-color-selected);--_icon-color:var(--md-chip-icon-color, var(--md-sys-color-on-secondary-container));--_state-layer-color:var(--md-sys-color-on-secondary-container)}:host(.md-chip--selected) .md-chip__outline{border-color:transparent}:host(.md-chip--elevated){--_elevation:var(--md-chip-elevation, var(--md-sys-elevation-1))}:host(.md-chip--elevated) .md-chip__outline{border-color:transparent}:host(.md-chip--elevated.md-chip--selected){--_elevation:var(--md-chip-elevation, var(--md-sys-elevation-1))}:host(.md-chip--appearance-outlined[color]){--_outline-color:var(--md-chip-outline-color, var(--_c-main));--_label-color:var(--md-chip-label-color, var(--_c-main));--_icon-color:var(--md-chip-icon-color, var(--_c-main));--_state-layer-color:var(--md-chip-state-layer-color, var(--_c-main))}:host(.md-chip--appearance-filled),:host(.md-chip--appearance-elevated){--_container-color:var(--md-chip-container-color, var(--md-sys-color-surface-container-high));--_label-color:var(--md-chip-label-color, var(--md-sys-color-on-surface-variant));--_icon-color:var(--md-chip-icon-color, var(--md-sys-color-on-surface-variant))}:host(.md-chip--appearance-filled[color]),:host(.md-chip--appearance-elevated[color]){--_container-color:var(--md-chip-container-color, var(--_c-container));--_label-color:var(--md-chip-label-color, var(--_c-on-container));--_icon-color:var(--md-chip-icon-color, var(--_c-on-container));--_state-layer-color:var(--md-chip-state-layer-color, var(--_c-on-container))}:host(.md-chip--appearance-filled) .md-chip__outline,:host(.md-chip--appearance-elevated) .md-chip__outline{border-color:transparent}:host(.md-chip--selected[color]){--_container-color:var(--_c-container);color:var(--_c-on-container);--_label-color-selected:var(--_c-on-container);--_icon-color:var(--md-chip-icon-color, var(--_c-on-container));--_state-layer-color:var(--_c-on-container)}.md-chip__outline{position:absolute;inset:0;border-radius:inherit;border:var(--_outline-width) solid var(--_outline-color);pointer-events:none}.md-chip__state-layer{position:absolute;inset:0;border-radius:inherit;background-color:var(--_state-layer-color);opacity:0;transition:opacity var(--md-sys-motion-duration-short1, 100ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1));pointer-events:none;z-index:1}:host(:hover) .md-chip__state-layer{opacity:var(--md-sys-state-hover-state-layer-opacity, 0.08)}:host(:focus-visible) .md-chip__state-layer{opacity:var(--md-sys-state-focus-state-layer-opacity, 0.12)}:host(:active) .md-chip__state-layer{opacity:var(--md-sys-state-pressed-state-layer-opacity, 0.12)}:host(:focus-visible){outline:3px solid var(--md-sys-color-secondary);outline-offset:2px}.md-chip__primary{position:absolute;inset:0;z-index:2;margin:0;padding:0;border:none;background:none;border-radius:inherit;cursor:inherit;-webkit-tap-highlight-color:transparent}.md-chip__primary:focus-visible{outline:3px solid var(--md-sys-color-secondary);outline-offset:-3px}.md-chip__label{position:relative;z-index:2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:start}.md-chip__icon,.md-chip__trailing-icon{position:relative;z-index:2;font-family:var(--md-sys-icon-font-family, 'Material Symbols Outlined', 'Material Icons');font-size:var(--_icon-size);inline-size:var(--_icon-size);block-size:var(--_icon-size);color:var(--_icon-color);line-height:1;font-weight:normal;font-style:normal;letter-spacing:normal;text-transform:none;white-space:nowrap;overflow-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;pointer-events:none;flex-shrink:0}slot[name="leading-icon"],slot[name="trailing-icon"]{display:contents}::slotted([slot="leading-icon"]),::slotted([slot="trailing-icon"]){display:inline-flex;align-items:center;justify-content:center;inline-size:var(--_icon-size);block-size:var(--_icon-size);font-size:var(--_icon-size);color:var(--_icon-color);fill:currentColor;pointer-events:none;flex-shrink:0;position:relative;z-index:2}.md-chip__checkmark{position:relative;z-index:2;display:inline-flex;align-items:center;justify-content:center;inline-size:var(--_icon-size);block-size:var(--_icon-size);color:var(--_icon-color);flex-shrink:0}.md-chip__checkmark svg{inline-size:var(--_icon-size);block-size:var(--_icon-size)}.md-chip__remove{position:relative;z-index:2;display:inline-flex;align-items:center;justify-content:center;min-inline-size:18px;min-block-size:18px;padding:0;border:none;background:none;color:var(--_icon-color);cursor:pointer;border-radius:50%;flex-shrink:0;-webkit-tap-highlight-color:transparent}.md-chip__remove:focus-visible{outline:2px solid var(--md-sys-color-secondary);outline-offset:1px}.md-chip__remove svg{inline-size:var(--_icon-size);block-size:var(--_icon-size);pointer-events:none}.md-chip__remove:disabled{cursor:default;pointer-events:none}:host(.md-chip--disabled){cursor:default;pointer-events:none;color:color-mix(in srgb, var(--md-sys-color-on-surface) calc(var(--md-sys-state-disabled-content-opacity, 0.38) * 100%), transparent);--_icon-color:color-mix(in srgb, var(--md-sys-color-on-surface) calc(var(--md-sys-state-disabled-content-opacity, 0.38) * 100%), transparent);--_elevation:var(--md-sys-elevation-0, none) !important}:host(.md-chip--disabled:not(.md-chip--selected):not(.md-chip--elevated)) .md-chip__outline{border-color:color-mix(in srgb, var(--md-sys-color-on-surface) calc(var(--md-sys-state-disabled-container-opacity, 0.12) * 100%), transparent)}:host(.md-chip--disabled.md-chip--selected){--_container-color:color-mix(in srgb, var(--md-sys-color-on-surface) calc(var(--md-sys-state-disabled-container-opacity, 0.12) * 100%), transparent)}:host(.md-chip--disabled.md-chip--elevated:not(.md-chip--selected)){--_container-color:color-mix(in srgb, var(--md-sys-color-on-surface) calc(var(--md-sys-state-disabled-container-opacity, 0.12) * 100%), transparent)}:host(.md-chip--disabled:hover) .md-chip__state-layer,:host(.md-chip--disabled:active) .md-chip__state-layer,:host(.md-chip--disabled:focus-visible) .md-chip__state-layer{opacity:0}:host([soft-disabled]){cursor:default;pointer-events:auto;color:color-mix(in srgb, var(--md-sys-color-on-surface) calc(var(--md-sys-state-disabled-content-opacity, 0.38) * 100%), transparent);--_icon-color:color-mix(in srgb, var(--md-sys-color-on-surface) calc(var(--md-sys-state-disabled-content-opacity, 0.38) * 100%), transparent);--_elevation:var(--md-sys-elevation-0, none) !important}:host([soft-disabled]) .md-chip__state-layer{display:none}@media (prefers-reduced-motion: reduce){:host{transition:none}.md-chip__state-layer{transition:none}}@media (forced-colors: active){:host{border:1px solid ButtonText;background-color:ButtonFace;color:ButtonText;forced-color-adjust:none}.md-chip__outline{border-color:ButtonText}:host(:focus-visible){outline-color:Highlight}.md-chip__primary:focus-visible{outline-color:Highlight}:host(.md-chip--selected){background-color:Highlight;color:HighlightText}:host(.md-chip--disabled){border-color:GrayText;color:GrayText;opacity:1}.md-chip__state-layer{display:none}}:host([density='-1']){--md-sys-density-scale:-1}:host([density='-2']){--md-sys-density-scale:-2}:host([density='-3']){--md-sys-density-scale:-3}:host([density='-4']){--md-sys-density-scale:-4}:host([hidden]){display:none !important}`;const b=e(class e extends o{constructor(e){super();if(e!==false){this.__registerHost()}this.__attachShadow();this.mdClick=i(this,"mdClick",7);this.mdSelect=i(this,"mdSelect",7);this.mdRemove=i(this,"mdRemove",7);this.variant="assist";this.icon="";this.trailingIcon="";this.selected=false;this.appearance="outlined";this.elevated=false;this.disabled=false;this.softDisabled=false;this.label="";this.contentAlign="center";this.density=0;this.hasSlottedLeadingIcon=false;this.hasSlottedTrailingIcon=false;this.handleClick=e=>{if(this.isDisabled){e.preventDefault();return}if(this.isSelectable){this.selected=!this.selected;this.mdSelect.emit({selected:this.selected})}this.mdClick.emit()};this.handleKeyDown=e=>{if(this.isDisabled)return;if(e.key==="Enter"||e.key===" "){e.preventDefault();m(this.el);this.el.click();return}if(this.isRemovable&&(e.key==="Delete"||e.key==="Backspace")){e.preventDefault();this.dispatchRemove()}};this.handleRemoveClick=e=>{e.stopPropagation();if(this.isDisabled)return;this.dispatchRemove()};this.handleRemoveKeyDown=e=>{if(this.isDisabled)return;if(e.key==="Enter"||e.key===" "){e.stopPropagation();e.preventDefault();this.dispatchRemove()}}}get isDisabled(){return this.disabled||this.softDisabled}get colorVars(){const e=this.color;if(!e||!/^[a-z][a-z0-9-]*$/i.test(e))return undefined;return{"--_c-main":`var(--md-sys-color-${e}, var(--md-sys-color-primary))`,"--_c-on-main":`var(--md-sys-color-on-${e}, var(--md-sys-color-on-primary))`,"--_c-container":`var(--md-sys-color-${e}-container, var(--md-sys-color-secondary-container))`,"--_c-on-container":`var(--md-sys-color-on-${e}-container, var(--md-sys-color-on-secondary-container))`}}get effectiveAppearance(){return this.elevated?"elevated":this.appearance}get isSelectable(){if(this.selectable!==undefined)return this.selectable;return this.variant==="filter"||this.variant==="input"}get isInteractiveHost(){return!(this.selectable===false&&this.isRemovable)}get isRemovable(){if(this.removable===true)return true;if(this.removable===false)return false;return this.variant==="input"}get accessibleLabel(){return this.label||this.el.textContent?.trim()||""}componentDidLoad(){try{const e=this.el.shadowRoot;if(!e)return;const o=e.querySelector('slot[name="leading-icon"]');const i=e.querySelector('slot[name="trailing-icon"]');o?.addEventListener("slotchange",(()=>{this.hasSlottedLeadingIcon=o.assignedElements().length>0}));i?.addEventListener("slotchange",(()=>{this.hasSlottedTrailingIcon=i.assignedElements().length>0}))}finally{s(this)}}dispatchRemove(){const e=this.mdRemove.emit();if(!e.defaultPrevented){this.el.remove()}}render(){const e=!!this.icon||this.hasSlottedLeadingIcon;const o=!!this.trailingIcon||this.hasSlottedTrailingIcon;const i=this.variant==="filter"&&this.selected&&!e;const r=this.isRemovable;const s=this.isDisabled;const n=this.accessibleLabel;const c=this.isInteractiveHost&&!r;const l=this.isInteractiveHost&&r;return t(a,{key:"d1370b60dd886159eca8ffb08c05c10471b271c4",style:this.colorVars,class:{"md-chip":true,[`md-chip--${this.variant}`]:true,"md-chip--selected":this.selected&&this.isSelectable,[`md-chip--appearance-${this.effectiveAppearance}`]:true,"md-chip--elevated":this.effectiveAppearance==="elevated",[`md-chip--color-${this.color}`]:!!this.color,"md-chip--disabled":s,"md-chip--with-leading-icon":e||i,"md-chip--with-trailing-icon":o||r},role:c?"button":"group","aria-roledescription":"chip","aria-pressed":c&&this.isSelectable?String(this.selected):undefined,"aria-label":c?undefined:n||undefined,"aria-disabled":s?"true":undefined,tabindex:c?this.disabled?"-1":"0":undefined,onClick:this.handleClick,onKeyDown:this.handleKeyDown},t("md-ripple",{key:"2bf472e6d6b56aedf2731b88883069d66ce32501",disabled:s}),t("span",{key:"ee61e36e2654e66be279906ad4814788b3df0e29",class:"md-chip__state-layer",part:"state-layer","aria-hidden":"true"}),!this.elevated&&t("span",{key:"38834af77f262d5c26c605785d647d9dfa355a77",class:"md-chip__outline",part:"outline","aria-hidden":"true"}),l&&t("span",{key:"35715bc99efe0a2b6640572386979b9ae4d59a63",class:"md-chip__primary",part:"primary",role:"button",tabindex:this.disabled?"-1":"0","aria-labelledby":"md-chip-label-text","aria-pressed":this.isSelectable?String(this.selected):undefined,"aria-disabled":s?"true":undefined}),i&&t("span",{key:"d876c1d67bf19e07a2f92a66651a5f1167999605",class:"md-chip__checkmark",part:"checkmark","aria-hidden":"true"},t("svg",{key:"e77004bb21be79d217fe4efb0f00a4138fc80aab",viewBox:"0 0 18 18",fill:"none"},t("path",{key:"b29199ef6292c7b3ab6b33344f97e3b9e43534c2",d:"M6.75 12.127L3.623 9l-1.06 1.057L6.75 14.25l9-9-1.057-1.057L6.75 12.127z",fill:"currentColor"}))),t("slot",{key:"a4c2ece75d0740421038f52ae7cdd601e145b242",name:"leading-icon"},e&&!i&&t("span",{key:"07f5b41221d548a3a5a5515ea438c763bca6acc2",class:"md-chip__icon material-symbols-outlined",part:"icon","aria-hidden":"true"},this.icon)),t("span",{key:"d538030134ed3a48ef5ee7274515549cb676fab0",class:"md-chip__label",part:"label",id:"md-chip-label-text"},t("slot",{key:"490f81c8b1097bbaf38c2c8ed364a8f667179710"},this.label)),r?t("button",{class:"md-chip__remove",part:"remove",type:"button",tabindex:this.disabled?"-1":"0","aria-label":n?`Remove ${n}`:"Remove",disabled:s,onClick:this.handleRemoveClick,onKeyDown:this.handleRemoveKeyDown},t("slot",{name:"trailing-icon"},t("svg",{viewBox:"0 0 18 18",fill:"none","aria-hidden":"true"},t("path",{d:"M14.25 4.808l-1.058-1.058L9 7.942 4.808 3.75 3.75 4.808 7.942 9 3.75 13.192l1.058 1.058L9 10.058l4.192 4.192 1.058-1.058L10.058 9l4.192-4.192z",fill:"currentColor"})))):t("slot",{name:"trailing-icon"},o&&t("span",{class:"md-chip__trailing-icon material-symbols-outlined",part:"trailing-icon","aria-hidden":"true"},this.trailingIcon)))}componentWillLoad(){n(this)}componentDidRender(){c(this)}connectedCallback(){l(this)}disconnectedCallback(){d(this)}componentShouldUpdate(){h(this);return true}get el(){return this}static get style(){return v()+y()}},[257,"md-chip",{variant:[513],icon:[1],trailingIcon:[1,"trailing-icon"],selected:[1540],selectable:[4],appearance:[513],color:[513],elevated:[516],disabled:[516],softDisabled:[516,"soft-disabled"],removable:[516],label:[1],contentAlign:[513,"content-align"],density:[514],hasSlottedLeadingIcon:[32],hasSlottedTrailingIcon:[32]}]);function u(){if(typeof customElements==="undefined"){return}const e=["md-chip","md-ripple"];e.forEach((e=>{switch(e){case"md-chip":if(!customElements.get(r(e))){customElements.define(r(e),b)}break;case"md-ripple":if(!customElements.get(r(e))){p()}break}}))}u();export{b as M,u as d};
|
|
2
|
+
//# sourceMappingURL=p-B2vk3_BC.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const t="mdChartSeriesChange";const e={label:"label",data:"data",stroke:"stroke",fill:"fill",range:"range",color:"color",stack:"stack",curve:"curve",dash:"dash",seriesHidden:"hidden",connectNulls:"connectNulls",showMarks:"showMarks",symbol:"symbol",pointSymbols:"pointSymbols",pointColors:"pointColors",pointWidths:"pointWidths",overlay:"overlay",widthRatio:"widthRatio",seriesId:"id",yAxisIndex:"yAxisIndex",dashAfter:"dashAfter",hollow:"hollow",lineWidth:"lineWidth",markSize:"markSize"};const r=t=>t.localName==="md-chart-series";const n={data:"array",range:"array",pointSymbols:"map",pointColors:"map",pointWidths:"map"};function o(t,e){if(typeof e!=="string"||!n[t])return e;try{const r=JSON.parse(e);if(r===null)return r;return n[t]==="array"?Array.isArray(r)?r:undefined:typeof r==="object"&&!Array.isArray(r)?r:undefined}catch{return undefined}}function s(t){const n=Array.from(t.children).filter((t=>r(t)&&!t.getAttribute("slot")));if(!n.length)return undefined;return n.map((t=>{const r={data:[]};for(const[n,s]of Object.entries(e)){const e=o(n,t[n]);if(e!==undefined)r[s]=e}return r}))}function i(e,n){let o=true;let i=false;const a=()=>{if(!o||i)return;i=true;queueMicrotask((()=>{i=false;if(o)n(s(e))}))};const l=t=>{const n=t.target;if(n?.parentElement===e&&r(n)&&!n.getAttribute("slot"))a()};const d=typeof MutationObserver==="undefined"?undefined:new MutationObserver((t=>{if(t.some((t=>t.type==="childList"?t.target===e:t.target.nodeType===1&&t.target.parentElement===e&&r(t.target))))a()}));d?.observe(e,{childList:true,attributes:true,attributeFilter:["slot"],subtree:true});e.addEventListener(t,l);n(s(e));return()=>{o=false;d?.disconnect();e.removeEventListener(t,l)}}export{t as C,i as o,o as r};
|
|
2
|
+
//# sourceMappingURL=p-BcgBd7Uo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["CHART_SERIES_CHANGE","CHART_SERIES_FIELDS","label","data","stroke","fill","range","color","stack","curve","dash","seriesHidden","connectNulls","showMarks","symbol","pointSymbols","pointColors","pointWidths","overlay","widthRatio","seriesId","yAxisIndex","dashAfter","hollow","lineWidth","markSize","isSeries","element","localName","structuredFields","readSeriesField","prop","value","parsed","JSON","parse","Array","isArray","undefined","readChartSeries","host","children","from","filter","child","getAttribute","length","map","series","field","Object","entries","observeChartSeries","changed","active","queued","refresh","queueMicrotask","onChange","event","target","parentElement","observer","MutationObserver","records","some","record","type","nodeType","observe","childList","attributes","attributeFilter","subtree","addEventListener","disconnect","removeEventListener"],"sources":["../sources/35dadf059de729b390f3df3b0fd05fd1578e1afbd6f0fa9d382cd0d8794c32aa/series-elements.ts"],"mappings":"AAGO,MAAMA,EAAsB,sBAG5B,MAAMC,EAAsB,CACjCC,MAAO,QAASC,KAAM,OAAQC,OAAQ,SAAUC,KAAM,OAAQC,MAAO,QACrEC,MAAO,QAASC,MAAO,QAASC,MAAO,QAASC,KAAM,OACtDC,aAAc,SAAUC,aAAc,eAAgBC,UAAW,YACjEC,OAAQ,SAAUC,aAAc,eAAgBC,YAAa,cAC7DC,YAAa,cAAeC,QAAS,UAAWC,WAAY,aAC5DC,SAAU,KAAMC,WAAY,aAAcC,UAAW,YAAaC,OAAQ,SAC1EC,UAAW,YAAaC,SAAU,YAOpC,MAAMC,EAAYC,GAAoDA,EAAQC,YAAc,kBAI5F,MAAMC,EAAoD,CACxD1B,KAAM,QAASG,MAAO,QAASS,aAAc,MAAOC,YAAa,MAAOC,YAAa,OAEjF,SAAUa,EAAgBC,EAAcC,GAC5C,UAAWA,IAAU,WAAaH,EAAiBE,GAAO,OAAOC,EACjE,IACE,MAAMC,EAAkBC,KAAKC,MAAMH,GACnC,GAAIC,IAAW,KAAM,OAAOA,EAC5B,OAAOJ,EAAiBE,KAAU,QAC7BK,MAAMC,QAAQJ,GAAUA,EAASK,iBAC1BL,IAAW,WAAaG,MAAMC,QAAQJ,GAAUA,EAASK,S,CACrE,MAAQ,OAAOA,S,CACnB,CAGM,SAAUC,EAAgBC,GAC9B,MAAMC,EAAWL,MAAMM,KAAKF,EAAKC,UAAUE,QAAOC,GAASlB,EAASkB,KAAWA,EAAMC,aAAa,UAClG,IAAKJ,EAASK,OAAQ,OAAOR,UAC7B,OAAOG,EAASM,KAAIH,IAClB,MAAMI,EAAkC,CAAE7C,KAAM,IAChD,IAAK,MAAO4B,EAAMkB,KAAUC,OAAOC,QAAQlD,GAAsB,CAC/D,MAAM+B,EAAQF,EAAgBC,EAAOa,EAA6Cb,IAClF,GAAIC,IAAUM,UAAWU,EAAOC,GAASjB,C,CAE3C,OAAOgB,CAAoC,GAE/C,CAGM,SAAUI,EAAmBZ,EAAmBa,GACpD,IAAIC,EAAS,KACb,IAAIC,EAAS,MACb,MAAMC,EAAU,KACd,IAAKF,GAAUC,EAAQ,OACvBA,EAAS,KACTE,gBAAe,KACbF,EAAS,MACT,GAAID,EAAQD,EAAQd,EAAgBC,GAAM,GAC1C,EAEJ,MAAMkB,EAAYC,IAChB,MAAMf,EAAQe,EAAMC,OACpB,GAAIhB,GAAOiB,gBAAkBrB,GAAQd,EAASkB,KAAWA,EAAMC,aAAa,QAASW,GAAS,EAEhG,MAAMM,SAAkBC,mBAAqB,YAAczB,UAAY,IAAIyB,kBAAiBC,IAC1F,GAAIA,EAAQC,MAAKC,GAAUA,EAAOC,OAAS,YAAcD,EAAON,SAAWpB,EACvE0B,EAAON,OAAOQ,WAAa,GAAKF,EAAON,OAAOC,gBAAkBrB,GAAQd,EAASwC,EAAON,UAAqBJ,GAAS,IAE5HM,GAAUO,QAAQ7B,EAAM,CAAE8B,UAAW,KAAMC,WAAY,KAAMC,gBAAiB,CAAC,QAASC,QAAS,OACjGjC,EAAKkC,iBAAiB1E,EAAqB0D,GAC3CL,EAAQd,EAAgBC,IACxB,MAAO,KACLc,EAAS,MACTQ,GAAUa,aACVnC,EAAKoC,oBAAoB5E,EAAqB0D,EAAS,CAE3D,Q","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as t,H as e,h as s,d as i,t as n}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as t,H as e,h as s,d as i,t as n}from"./p-dBZ_5SDM.js";import{r as o,d as r,b as a,c as h,i as c,p as l}from"./p-D9cIx3li.js";const p=()=>`:host(:not([data-awc-motion-ready])),:host(:not([data-awc-motion-ready]))::before,:host(:not([data-awc-motion-ready]))::after,:host(:not([data-awc-motion-ready])) *,:host(:not([data-awc-motion-ready])) *::before,:host(:not([data-awc-motion-ready])) *::after{transition-property:none !important}`;const d=()=>`:host{display:contents;border-radius:inherit;--_color:var(--md-ripple-color, currentColor)}.md-ripple{position:absolute;inset:0;border-radius:inherit;overflow:hidden;pointer-events:none}.md-ripple__wave{position:absolute;border-radius:50%;pointer-events:none;background:var(--_color);opacity:0;transform:scale(0);will-change:transform, opacity}.md-ripple{opacity:var(--md-sys-ripple-enabled, 1)}:host([hidden]){display:none !important}`;const u=450;const f=150;const m=.12;const y="cubic-bezier(0.2, 0, 0, 1)";const w="--md-ripple-grow-duration";const b="--md-ripple-grow-easing";const g=t(class t extends e{constructor(t){super();if(t!==false){this.__registerHost()}this.__attachShadow();this.disabled=false;this.hostEl=null;this.activeWave=null;this.growAnimation=null;this.activeOpacity=m;this.bound=false;this.settlePromise=null;this.settleResolve=null;this.onPointerDown=t=>{if(this.disabled||this.rippleSuppressed())return;const e=this.el.shadowRoot?.querySelector(".md-ripple");if(!e||!this.hostEl)return;this.endWave();const s=this.hostEl.getBoundingClientRect();const i=this.resolveExtent("--md-ripple-extend-inline");const n=this.resolveExtent("--md-ripple-extend-block");const o=s.left-i;const r=s.right+i;const a=s.top-n;const h=s.bottom+n;const c=Math.max(Math.abs(t.clientX-o),Math.abs(t.clientX-r));const l=Math.max(Math.abs(t.clientY-a),Math.abs(t.clientY-h));const p=Math.sqrt(c*c+l*l);const d=p*2;const u=t.clientX-s.left-p;const f=t.clientY-s.top-p;const m=document.createElement("span");m.classList.add("md-ripple__wave");m.style.width=m.style.height=`${d}px`;m.style.left=`${u}px`;m.style.top=`${f}px`;e.appendChild(m);this.activeWave=m;this.activeOpacity=this.resolveOpacity();this.beginSettle();this.growAnimation=m.animate([{transform:"scale(0)",opacity:this.activeOpacity},{transform:"scale(1)",opacity:this.activeOpacity}],{duration:this.resolveGrowDuration(),easing:this.resolveGrowEasing(),fill:"forwards"});window.addEventListener("pointerup",this.onRelease,{once:true});window.addEventListener("pointercancel",this.onRelease,{once:true})};this.onRelease=()=>{this.endWave()}}rippleSuppressed(){if(typeof getComputedStyle!=="function")return false;try{return getComputedStyle(this.el).getPropertyValue("--md-sys-ripple-enabled").trim()==="0"}catch{return false}}resolveOpacity(){if(!this.hostEl)return m;const t=getComputedStyle(this.hostEl).getPropertyValue("--md-ripple-opacity").trim();if(!t)return m;const e=parseFloat(t);return Number.isFinite(e)?e:m}resolveExtent(t){const e=getComputedStyle(this.el).getPropertyValue(t).trim();if(!e)return 0;const s=parseFloat(e);return Number.isFinite(s)&&s>0?s:0}resolveGrowDuration(){const t=getComputedStyle(this.el).getPropertyValue(w).trim();if(!t)return u;const e=parseFloat(t);return Number.isFinite(e)&&e>0?e:u}resolveGrowEasing(){const t=getComputedStyle(this.el).getPropertyValue(b).trim();return t||y}beginSettle(){this.finishSettle();this.settlePromise=new Promise((t=>{this.settleResolve=t}))}finishSettle(){this.settleResolve?.();this.settleResolve=null;this.settlePromise=null}async whenSettled(){if(!this.settlePromise)return;const t=new Promise((t=>{setTimeout(t,f+50)}));await Promise.race([this.settlePromise,t]);this.finishSettle()}generatesNoBox(t){if(typeof getComputedStyle!=="function")return false;try{return getComputedStyle(t).display==="contents"}catch{return false}}resolveHost(){const t=this.el.getRootNode();let e=this.el.parentElement;while(e&&this.generatesNoBox(e))e=e.parentElement;return e??(t instanceof ShadowRoot?t.host:null)}bind(){if(this.bound)return;this.hostEl=this.resolveHost();if(!this.hostEl)return;this.bound=true;this.hostEl.addEventListener("pointerdown",this.onPointerDown)}connectedCallback(){o(this);this.bind();if(!this.bound){queueMicrotask((()=>this.bind()))}}disconnectedCallback(){r(this);this.hostEl?.removeEventListener("pointerdown",this.onPointerDown);this.hostEl=null;this.bound=false}async endWave(){const t=this.activeWave;const e=this.growAnimation;if(!t||!e)return;this.activeWave=null;this.growAnimation=null;if(e.playState!=="finished"){await e.finished}const s=t.animate([{opacity:this.activeOpacity},{opacity:0}],{duration:f,easing:y,fill:"forwards"});try{if(typeof s.finished?.then==="function"){await s.finished}else{await new Promise((t=>setTimeout(t,f)))}}catch{}t.remove();this.finishSettle()}async trigger(){if(this.disabled||this.rippleSuppressed())return;if(!this.hostEl)this.hostEl=this.resolveHost();const t=this.el.shadowRoot?.querySelector(".md-ripple");if(!t||!this.hostEl)return;this.endWave();const e=this.hostEl.getBoundingClientRect();const s=this.resolveExtent("--md-ripple-extend-inline");const i=this.resolveExtent("--md-ripple-extend-block");const n=e.width/2;const o=e.height/2;const r=n+s;const a=o+i;const h=Math.sqrt(r*r+a*a);const c=h*2;const l=document.createElement("span");l.classList.add("md-ripple__wave");l.style.width=l.style.height=`${c}px`;l.style.left=`${n-h}px`;l.style.top=`${o-h}px`;t.appendChild(l);this.activeWave=l;this.activeOpacity=this.resolveOpacity();this.beginSettle();this.growAnimation=l.animate([{transform:"scale(0)",opacity:this.activeOpacity},{transform:"scale(1)",opacity:this.activeOpacity}],{duration:this.resolveGrowDuration(),easing:this.resolveGrowEasing(),fill:"forwards"});this.growAnimation.addEventListener("finish",(()=>this.endWave()),{once:true})}render(){return s(i,{key:"729a4e6378597ff503bd774e8112f9835feb851c","aria-hidden":"true"},s("div",{key:"2c90bface7e00c00c32df72a4c5d4a76bf0e88a3",class:"md-ripple"}))}componentWillLoad(){a(this)}componentDidLoad(){h(this)}componentDidRender(){c(this)}componentShouldUpdate(){l(this);return true}get el(){return this}static get style(){return p()+d()}},[1,"md-ripple",{disabled:[4],whenSettled:[64],trigger:[64]}]);function v(){if(typeof customElements==="undefined"){return}const t=["md-ripple"];t.forEach((t=>{switch(t){case"md-ripple":if(!customElements.get(n(t))){customElements.define(n(t),g)}break}}))}v();export{g as M,v as d};
|
|
2
|
+
//# sourceMappingURL=p-BwQyYHuZ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as t,H as e,c as i,h as s,d,t as o}from"./p-B37-0L5e.js";import{b as l,c as r,i as a,d as n,r as c,p as h}from"./p-B_K-3G0S.js";import{c as f}from"./p-mwCGMdmr.js";import{I as m,b as x,g as p,w as u,d as _}from"./p-EuzGe8T6.js";const g=()=>`:host(:not([data-awc-motion-ready])),:host(:not([data-awc-motion-ready]))::before,:host(:not([data-awc-motion-ready]))::after,:host(:not([data-awc-motion-ready])) *,:host(:not([data-awc-motion-ready])) *::before,:host(:not([data-awc-motion-ready])) *::after{transition-property:none !important}`;const b=()=>`:host{--_container-color:var(--md-text-field-container-color, var(--md-sys-color-surface-container-highest, #E6E0E9));--_input-color:var(--md-text-field-input-color, var(--md-sys-color-on-surface, #1C1B1F));--_label-color:var(--md-text-field-label-color, var(--md-sys-color-on-surface-variant, #49454F));--_active-indicator-color:var(--md-text-field-active-indicator-color, var(--md-sys-color-primary, #6750A4));--_outline-color:var(--md-text-field-outline-color, var(--md-sys-color-outline, #79747E));--_error-color:var(--md-text-field-error-color, var(--md-sys-color-error, #B3261E));--_supporting-text-color:var(--md-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454F));--_icon-color:var(--md-text-field-icon-color, var(--md-sys-color-on-surface-variant, #49454F));--_text-inset:calc(var(--md-sys-spacing-inset-lg, 16px) + 7px);--_icon-size:var(--md-text-field-icon-size, max(18px, calc(24px + var(--md-sys-density-scale, 0) * 1px)));--_container-shape:var(--md-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px));--_filled-pill:var(--md-text-field-filled-pill, 0);--_filled-block-end-radius:calc(var(--_filled-pill) * var(--_container-shape));display:flex;flex-direction:column;position:relative;font-family:var(--md-sys-typescale-body-large-font-family, Roboto, sans-serif);width:100%;box-sizing:border-box}.md-text-field__container{position:relative;display:flex;align-items:stretch;min-height:calc(56px + var(--md-sys-density-scale, 0) * 4px);cursor:var(--md-text-field-cursor, text);box-sizing:border-box}:host(.md-text-field--filled) .md-text-field__container{background-color:var(--_container-color);border-start-start-radius:var(--_container-shape);border-start-end-radius:var(--_container-shape);border-end-start-radius:var(--_filled-block-end-radius);border-end-end-radius:var(--_filled-block-end-radius);padding-block:max(2px, calc(8px + var(--md-sys-density-scale, 0) * 0.5px));padding-inline-start:var(--md-text-field-padding-inline-start, var(--_text-inset));padding-inline-end:var(--md-text-field-padding-inline-end, var(--_text-inset));transition:background-color var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1))}:host(.md-text-field--filled.md-text-field--focused) .md-text-field__container{background-color:var(--_container-color)}:host(.md-text-field--outlined) .md-text-field__container{background-color:transparent;border-radius:var(--_container-shape);padding-block:max(2px, calc(8px + var(--md-sys-density-scale, 0) * 1px));padding-inline-start:var(--md-text-field-padding-inline-start, var(--_text-inset));padding-inline-end:var(--md-text-field-padding-inline-end, var(--_text-inset))}:host(.md-text-field--outlined) .md-text-field__input{position:relative;inset-block-start:var(--md-text-field-optical-nudge, 0px)}:host(.md-text-field--clearable) .md-text-field__input::-webkit-search-cancel-button,:host(.md-text-field--clearable) .md-text-field__input::-webkit-search-decoration{display:none}:host([density='-1']){--md-sys-density-scale:-1}:host([density='-2']){--md-sys-density-scale:-2}:host([density='-3']){--md-sys-density-scale:-3}:host([density='-4']){--md-sys-density-scale:-4}.md-text-field__state-layer{position:absolute;inset:0;border-radius:inherit;background-color:var(--md-sys-color-on-surface, #1C1B1F);opacity:0;transition:opacity var(--md-sys-motion-duration-short2, 100ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1));pointer-events:none}:host(.md-text-field--filled:hover:not(.md-text-field--disabled)) .md-text-field__state-layer{opacity:var(--md-sys-state-hover-state-layer-opacity, 0.08)}:host(.md-text-field--outlined) .md-text-field__state-layer{display:none}.md-text-field__input-wrap{flex:1;display:flex;flex-direction:column;justify-content:center;min-width:0;position:relative;padding:0}:host(.md-text-field--filled) .md-text-field__input-wrap{justify-content:flex-end}:host(.md-text-field--filled.md-text-field--without-label:not(.md-text-field--multiline)) .md-text-field__input-wrap{justify-content:center}.md-text-field__input-row{display:flex;align-items:center}.md-text-field__chips{display:inline-flex;flex-wrap:nowrap;align-items:center;gap:4px;min-inline-size:0;overflow:hidden}:host(.md-text-field--with-chips:not([chips-wrap])) .md-text-field__chips{flex:1 1 auto}:host(.md-text-field--with-chips) .md-text-field__input-row{flex-wrap:nowrap;gap:4px;min-inline-size:0}:host(.md-text-field--with-chips:not([chips-wrap])) .md-text-field__input{flex:0 1 0;min-inline-size:0}:host(.md-text-field--with-chips) .md-text-field__input{flex:1 0 40px;min-inline-size:40px}:host(.md-text-field--with-chips[chips-wrap]) .md-text-field__input-row{flex-wrap:wrap;row-gap:6px}:host([chips-wrap]) .md-text-field__chips{flex-wrap:wrap;overflow:visible}.md-text-field__input{flex:1;border:none;outline:none;background:transparent;font-family:inherit;font-size:max(13px, calc(16px + var(--md-sys-density-scale, 0) * 0.5px));line-height:max(18px, calc(24px + var(--md-sys-density-scale, 0) * 1px));font-weight:var(--md-sys-typescale-body-large-weight, 400);letter-spacing:var(--md-sys-typescale-body-large-tracking, 0.5px);color:var(--_input-color);caret-color:var(--_active-indicator-color);cursor:var(--md-text-field-cursor, text);padding:0;margin:0;min-width:0;width:100%}.md-text-field__input::placeholder{color:var(--_label-color)}:host(.md-text-field--error) .md-text-field__input{caret-color:var(--_error-color)}.md-text-field__input--textarea{resize:none;overflow-wrap:break-word}.md-text-field__input--auto-grow{overflow:hidden}.md-text-field__input--fixed{overflow-y:auto}:host(.md-text-field--multiline) .md-text-field__container{align-items:flex-start;min-height:auto}:host(.md-text-field--multiline) .md-text-field__input-wrap{justify-content:flex-start}:host(.md-text-field--multiline.md-text-field--filled) .md-text-field__input-wrap{justify-content:flex-start;padding-block-start:20px}:host(.md-text-field--multiline) .md-text-field__input-row{align-items:flex-start}:host(.md-text-field--filled.md-text-field--floating.md-text-field--with-chips:not(.md-text-field--without-label)) .md-text-field__input-wrap{padding-block-start:max(12px, calc(16px + var(--md-sys-density-scale, 0) * 1px))}:host(.md-text-field--multiline:not(.md-text-field--auto-grow)) .md-text-field__icon,:host(.md-text-field--multiline:not(.md-text-field--auto-grow)) .md-text-field__trailing-icon-button,:host(.md-text-field--multiline:not(.md-text-field--auto-grow)) .md-text-field__clear,:host(.md-text-field--multiline:not(.md-text-field--auto-grow)) .md-text-field__password-toggle,:host(.md-text-field--multiline:not(.md-text-field--auto-grow)) .md-text-field__speech{align-self:flex-start;margin-block-start:16px}:host(.md-text-field--auto-grow) .md-text-field__icon,:host(.md-text-field--auto-grow) .md-text-field__trailing-icon-button,:host(.md-text-field--auto-grow) .md-text-field__clear,:host(.md-text-field--auto-grow) .md-text-field__password-toggle,:host(.md-text-field--auto-grow) .md-text-field__speech{align-self:center}.md-text-field__label{position:absolute;inset-inline-start:0;font-size:max(13px, calc(16px + var(--md-sys-density-scale, 0) * 0.5px));line-height:max(18px, calc(24px + var(--md-sys-density-scale, 0) * 1px));color:var(--_label-color);pointer-events:none;transition:top var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), inset-inline-start var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), font-size var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), line-height var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), transform var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), background-color var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), padding var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), color var(--md-sys-motion-duration-short2, 100ms) ease;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}:host(.md-text-field--filled) .md-text-field__label{top:50%;transform:translateY(-50%)}:host(.md-text-field--multiline:not(.md-text-field--floating)) .md-text-field__label{top:28px}:host(.md-text-field--multiline.md-text-field--outlined:not(.md-text-field--floating)) .md-text-field__label{top:12px;}:host(.md-text-field--multiline.md-text-field--filled:not(.md-text-field--floating)) .md-text-field__label{top:32px;}:host(.md-text-field--filled.md-text-field--floating) .md-text-field__label{top:0;transform:translateY(0);font-size:max(11px, calc(var(--md-sys-typescale-body-small-size, 12px) + var(--md-sys-density-scale, 0) * 0.25px));line-height:max(12px, calc(var(--md-sys-typescale-body-small-line-height, 16px) + var(--md-sys-density-scale, 0) * 1px))}:host(.md-text-field--outlined) .md-text-field__label{top:50%;transform:translateY(-50%);background-color:transparent;padding:0}:host(.md-text-field--outlined.md-text-field--floating) .md-text-field__label{top:calc(-8px - var(--md-sys-density-scale, 0) * 1px);inset-inline-start:0;transform:translateY(-50%);font-size:max(10px, calc(12px + var(--md-sys-density-scale, 0) * 0.5px));line-height:max(12px, calc(16px + var(--md-sys-density-scale, 0) * 1px));background-color:transparent;padding:0}:host([density='-1'].md-text-field--filled.md-text-field--floating) .md-text-field__label,:host([density='-2'].md-text-field--filled.md-text-field--floating) .md-text-field__label,:host([density='-3'].md-text-field--filled.md-text-field--floating) .md-text-field__label,:host([density='-4'].md-text-field--filled.md-text-field--floating) .md-text-field__label{font-size:11px;line-height:12px;top:1px}:host([density='-2'].md-text-field--filled.md-text-field--floating) .md-text-field__label{top:-2px;}:host([density='-3'].md-text-field--outlined.md-text-field--floating) .md-text-field__label,:host([density='-4'].md-text-field--outlined.md-text-field--floating) .md-text-field__label{top:-4px}:host(.md-text-field--filled) .md-text-field__input{line-height:max(16px, calc(24px + var(--md-sys-density-scale, 0) * 2px))}:host(.md-text-field--outlined.md-text-field--floating.md-text-field--with-leading) .md-text-field__label{inset-inline-start:calc(-1 * (var(--_icon-size) + var(--md-sys-spacing-gap-lg, 16px)))}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled):not(.md-text-field--error)) .md-text-field__label{color:var(--md-sys-color-on-surface, #1C1B1F)}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled).md-text-field--error) .md-text-field__label{color:var(--md-sys-color-on-error-container, #8C1D18)}:host(.md-text-field--focused) .md-text-field__label{color:var(--_active-indicator-color)}:host(.md-text-field--error) .md-text-field__label{color:var(--_error-color)}.md-text-field__prefix,.md-text-field__suffix{font-size:max(13px, calc(16px + var(--md-sys-density-scale, 0) * 0.5px));line-height:max(18px, calc(24px + var(--md-sys-density-scale, 0) * 1px));color:var(--_supporting-text-color);white-space:nowrap;user-select:none;transition:color var(--md-sys-motion-duration-short2, 100ms) ease}.md-text-field__prefix{margin-inline-end:2px}.md-text-field__suffix{margin-inline-start:2px}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled)) .md-text-field__prefix,:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled)) .md-text-field__suffix{color:var(--md-sys-color-on-surface, #1C1B1F)}.md-text-field__icon{display:flex;align-items:center;justify-content:center;font-size:var(--_icon-size);color:var(--_icon-color);flex-shrink:0;align-self:center;user-select:none;transition:color var(--md-sys-motion-duration-short2, 100ms) ease}.md-text-field__icon ::slotted(*){font-size:var(--_icon-size) !important;width:var(--_icon-size);height:var(--_icon-size);color:inherit}.md-text-field__icon--leading{margin-inline-end:var(--md-sys-spacing-gap-lg, 16px)}.md-text-field__icon--trailing{margin-inline-start:0}.md-text-field__trailing-icon-button{display:flex;align-items:center;flex-shrink:0;align-self:center;margin-inline-start:0}.md-text-field__error-icon+.md-text-field__trailing-icon-button{margin-inline-start:4px}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled)) .md-text-field__icon--leading{color:var(--md-sys-color-on-surface, #1C1B1F)}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled):not(.md-text-field--error)) .md-text-field__icon--trailing{color:var(--md-sys-color-on-surface, #1C1B1F)}:host(.md-text-field--error) .md-text-field__icon--trailing{color:var(--_error-color)}:host(.md-text-field--error) .md-text-field__icon--trailing ::slotted(*){color:inherit}.md-text-field__clear{display:flex;align-items:center;justify-content:center;align-self:center;border:none;background:none;padding:0;margin:0;margin-inline-start:var(--md-sys-spacing-gap-lg, 16px);cursor:pointer;border-radius:50%;width:var(--_icon-size);height:var(--_icon-size);flex-shrink:0;color:var(--_icon-color);transition:color var(--md-sys-motion-duration-short2, 100ms) ease, opacity var(--md-sys-motion-duration-short2, 100ms) ease}.md-text-field__clear ::slotted(*){font-size:var(--_icon-size) !important;width:var(--_icon-size);height:var(--_icon-size);color:inherit}.md-text-field__clear:hover:not(:disabled){color:var(--md-sys-color-on-surface, #1C1B1F)}.md-text-field__clear:focus-visible,.md-text-field__password-toggle:focus-visible,.md-text-field__speech:focus-visible{outline:2px solid var(--md-sys-color-secondary, #625B71);outline-offset:-6px}.md-text-field__clear--disabled{color:var(--md-sys-color-on-surface, #1C1B1F);opacity:0.38;cursor:default;pointer-events:none}:host(.md-text-field--error) .md-text-field__clear:not(:disabled){color:var(--_error-color)}.md-text-field__password-toggle{display:flex;align-items:center;justify-content:center;align-self:center;border:none;background:none;padding:0;margin:0;margin-inline-start:var(--md-sys-spacing-gap-lg, 16px);cursor:pointer;border-radius:50%;width:var(--_icon-size);height:var(--_icon-size);flex-shrink:0;color:var(--_icon-color);transition:color var(--md-sys-motion-duration-short2, 100ms) ease}.md-text-field__password-toggle ::slotted(*){font-size:var(--_icon-size) !important;width:var(--_icon-size);height:var(--_icon-size);color:inherit}.md-text-field__password-toggle:hover:not(:disabled){color:var(--md-sys-color-on-surface, #1C1B1F)}.md-text-field__password-toggle--disabled{color:var(--md-sys-color-on-surface, #1C1B1F);opacity:0.38;cursor:default;pointer-events:none}:host(.md-text-field--error) .md-text-field__password-toggle:not(:disabled){color:var(--_error-color)}.md-text-field__speech{display:flex;align-items:center;justify-content:center;align-self:center;border:none;background:none;padding:0;margin:0;margin-inline-start:var(--md-sys-spacing-gap-lg, 16px);cursor:pointer;border-radius:50%;width:var(--_icon-size);height:var(--_icon-size);flex-shrink:0;color:var(--_icon-color);transition:color var(--md-sys-motion-duration-short2, 100ms) ease}.md-text-field__speech ::slotted(*){font-size:var(--_icon-size) !important;width:var(--_icon-size);height:var(--_icon-size);color:inherit}.md-text-field__speech:hover:not(:disabled){color:var(--md-sys-color-on-surface, #1C1B1F)}.md-text-field__speech--listening{color:var(--_error-color);animation:md-speech-pulse 1.2s ease-in-out infinite}.md-text-field__speech--disabled{color:var(--md-sys-color-on-surface, #1C1B1F);opacity:0.38;cursor:default;pointer-events:none}:host(.md-text-field--error) .md-text-field__speech:not(:disabled):not(.md-text-field__speech--listening){color:var(--_error-color)}@keyframes md-speech-pulse{0%,100%{opacity:1}50%{opacity:0.4}}.md-text-field__error-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;align-self:center;width:var(--_icon-size);height:var(--_icon-size);font-size:var(--_icon-size);line-height:1;margin-inline-start:var(--md-sys-spacing-gap-lg, 16px);color:var(--_error-color)}.md-text-field__error-icon ::slotted(*){font-size:var(--_icon-size) !important;width:var(--_icon-size);height:var(--_icon-size);color:inherit}:host(.md-text-field--multiline:not(.md-text-field--auto-grow)) .md-text-field__error-icon{align-self:flex-start;margin-block-start:16px}:host(.md-text-field--auto-grow) .md-text-field__error-icon{align-self:center}.md-text-field__indicator{position:absolute;inset-block-end:0;inset-inline:0;height:1px;background-color:var(--md-sys-color-on-surface-variant, #49454F);opacity:calc(1 - var(--_filled-pill));transition:height var(--md-sys-motion-duration-short2, 100ms) ease, background-color var(--md-sys-motion-duration-short2, 100ms) ease, opacity var(--md-sys-motion-duration-short2, 100ms) ease}:host(.md-text-field--focused) .md-text-field__indicator{height:var(--md-text-field-focus-border-width, 3px);background-color:var(--_active-indicator-color);transition:height var(--md-sys-motion-duration-short2, 100ms) ease}:host(.md-text-field--error) .md-text-field__indicator{background-color:var(--_error-color)}:host(.md-text-field--error.md-text-field--focused) .md-text-field__indicator{height:var(--md-text-field-focus-border-width, 3px);background-color:var(--_error-color);transition:height var(--md-sys-motion-duration-short2, 100ms) ease;}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled):not(.md-text-field--error)) .md-text-field__indicator{height:1px;background-color:var(--md-sys-color-on-surface, #1C1B1F)}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled).md-text-field--error) .md-text-field__indicator{height:1px;background-color:var(--md-sys-color-on-error-container, #8C1D18)}.md-text-field__fieldset{position:absolute;inset:0;margin:0;max-inline-size:100%;min-inline-size:0;overflow:hidden;padding-inline-start:calc( var(--md-text-field-padding-inline-start, var(--_text-inset)) - 1px - var(--_legend-inline-padding, 4px) );padding-inline-end:calc( var(--md-text-field-padding-inline-end, var(--_text-inset)) - 1px - var(--_legend-inline-padding, 4px) );padding-block:0;border:1px solid var(--_outline-color);border-radius:var(--_container-shape);pointer-events:none;transition:border-color var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1))}:host(.md-text-field--focused) .md-text-field__fieldset{border-color:var(--_active-indicator-color);border-width:var(--md-text-field-focus-border-width, 3px);inset:var(--md-text-field-focus-inset, 0);transition:none}:host(.md-text-field--error) .md-text-field__fieldset{border-color:var(--_error-color)}:host(.md-text-field--error.md-text-field--focused) .md-text-field__fieldset{border-color:var(--_error-color);border-width:var(--md-text-field-focus-border-width, 3px);inset:var(--md-text-field-focus-inset, 0);transition:none;}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled):not(.md-text-field--error)) .md-text-field__fieldset{border-color:var(--md-sys-color-on-surface, #1C1B1F)}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled).md-text-field--error) .md-text-field__fieldset{border-color:var(--md-sys-color-on-error-container, #8C1D18)}.md-text-field__legend{max-inline-size:calc(100% - 16px);overflow:hidden;height:0;padding:0;font-size:max(10px, calc(12px + var(--md-sys-density-scale, 0) * 0.5px));max-width:0;transition:max-width var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), padding-inline var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1));white-space:nowrap}.md-text-field__legend--active{max-width:100%;padding-inline:var(--_legend-inline-padding, 4px);transition:max-width var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), padding-inline var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1))}.md-text-field__legend span{display:inline-block;padding:0;visibility:hidden}.md-text-field__support-row{display:flex;justify-content:space-between;padding:4px 16px 0;gap:16px}.md-text-field__support-text{font-size:max(10px, calc(12px + var(--md-sys-density-scale, 0) * 0.5px));line-height:max(14px, calc(16px + var(--md-sys-density-scale, 0) * 0.5px));color:var(--_supporting-text-color)}.md-text-field__support-text--error{color:var(--_error-color)}.md-text-field__counter{font-size:max(10px, calc(12px + var(--md-sys-density-scale, 0) * 0.5px));line-height:max(14px, calc(16px + var(--md-sys-density-scale, 0) * 0.5px));color:var(--_supporting-text-color);flex-shrink:0}:host(.md-text-field--disabled) .md-text-field__container{cursor:default;pointer-events:none}:host(.md-text-field--disabled.md-text-field--filled) .md-text-field__container{background-color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 4%, transparent)}:host(.md-text-field--disabled) .md-text-field__label{color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 38%, transparent)}:host(.md-text-field--disabled) .md-text-field__input{color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 38%, transparent)}:host(.md-text-field--disabled) .md-text-field__indicator{background-color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 38%, transparent)}:host(.md-text-field--disabled) .md-text-field__fieldset{border-color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 12%, transparent)}:host(.md-text-field--disabled) .md-text-field__icon{color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 38%, transparent)}:host(.md-text-field--disabled) .md-text-field__icon ::slotted(*){color:inherit}:host(.md-text-field--disabled) .md-text-field__support-text,:host(.md-text-field--disabled) .md-text-field__counter{color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 38%, transparent)}:host(.md-text-field--disabled) .md-text-field__prefix,:host(.md-text-field--disabled) .md-text-field__suffix{color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 38%, transparent)}.material-symbols-outlined{font-family:var(--md-sys-icon-font-family, 'Material Symbols Outlined', 'Material Icons');font-weight:normal;font-style:normal;font-size:var(--_icon-size);inline-size:1em;block-size:1em;flex:none;overflow:hidden;text-align:center;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;overflow-wrap:normal;direction:ltr;font-feature-settings:'liga';-webkit-font-smoothing:antialiased}@keyframes md-tf-autofill-start{from{--md-tf-autofill:1}}@keyframes md-tf-autofill-cancel{from{--md-tf-autofill:0}}.md-text-field__input:-webkit-autofill{animation-name:md-tf-autofill-start;box-shadow:0 0 0 1000px var(--_container-color, #E6E1E6) inset;-webkit-text-fill-color:var(--md-text-field-input-color, var(--md-sys-color-on-surface, #1D1B20));caret-color:var(--md-text-field-input-color, var(--md-sys-color-on-surface, #1D1B20))}.md-text-field__input:not(:-webkit-autofill){animation-name:md-tf-autofill-cancel}@media (prefers-reduced-motion: reduce){.md-text-field__label,.md-text-field__indicator,.md-text-field__state-layer,.md-text-field__fieldset,.md-text-field__legend,.md-text-field__legend>span,.md-text-field__container{transition-duration:0.01ms !important}.md-text-field__speech--listening,.md-text-field__speech--listening *{animation:none !important}}@media (forced-colors: active){:host(.md-text-field--filled) .md-text-field__container,:host(.md-text-field--filled.md-text-field--focused) .md-text-field__container,:host(.md-text-field--filled.md-text-field--disabled) .md-text-field__container,:host(.md-text-field--outlined) .md-text-field__container,.md-text-field__container{border:1px solid ButtonText;forced-color-adjust:none;background:Field;color:FieldText}:host(.md-text-field--focused) .md-text-field__indicator{background-color:Highlight}.md-text-field__input{caret-color:FieldText}:host(.md-text-field--filled.md-text-field--disabled) .md-text-field__indicator{background-color:GrayText}:host(.md-text-field--outlined.md-text-field--disabled) .md-text-field__fieldset{border-color:GrayText}:host(.md-text-field--focused) .md-text-field__label,:host(.md-text-field--error) .md-text-field__label,:host(.md-text-field--disabled) .md-text-field__label{color:FieldText}:host(.md-text-field--disabled) .md-text-field__label,:host(.md-text-field--disabled) .md-text-field__input{color:GrayText}:host(.md-text-field--error) .md-text-field__indicator{background-color:LinkText}.md-text-field__input{background:Field;color:FieldText}:host(.md-text-field--focused) .md-text-field__container{outline:2px solid Highlight;outline-offset:1px}:host(.md-text-field--error) .md-text-field__container{border-color:LinkText}:host(.md-text-field--disabled) .md-text-field__container,:host(.md-text-field--disabled) .md-text-field__input{color:GrayText;border-color:GrayText}.md-text-field__support-text,.md-text-field__counter{color:CanvasText}.md-text-field__support-text--error{color:LinkText}.md-text-field__label,.md-text-field__prefix,.md-text-field__suffix,.md-text-field__icon,.md-text-field__clear,.md-text-field__password-toggle,.md-text-field__speech{color:FieldText;forced-color-adjust:none}.md-text-field__error-icon{color:LinkText}.md-text-field__indicator{background-color:FieldText}:host(.md-text-field--outlined) .md-text-field__container{border:none}:host(.md-text-field--outlined) .md-text-field__fieldset{border-color:ButtonText}:host(.md-text-field--outlined.md-text-field--error) .md-text-field__fieldset{border-color:LinkText}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled):not(.md-text-field--error)) .md-text-field__label,:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled).md-text-field--error) .md-text-field__label,:host(:hover) .md-text-field__prefix,:host(:hover) .md-text-field__suffix,:host(:hover) .md-text-field__icon{color:FieldText}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled).md-text-field--error) .md-text-field__label{color:LinkText}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled):not(.md-text-field--error)) .md-text-field__indicator,:host(:hover:not(.md-text-field--focused)) .md-text-field__indicator{background-color:FieldText}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled).md-text-field--error) .md-text-field__indicator{background-color:LinkText}:host(:hover) .md-text-field__clear,:host(:hover) .md-text-field__password-toggle,:host(:hover) .md-text-field__speech{color:FieldText;background:none}}:host(.md-text-field--outlined) .md-text-field__input:-webkit-autofill{box-shadow:0 0 0 1000px var(--md-sys-color-surface, #FEF7FF) inset}.md-text-field__clear,.md-text-field__password-toggle,.md-text-field__speech{min-inline-size:40px;min-block-size:40px;display:inline-flex;align-items:center;justify-content:center;margin-inline:-6px;margin-block:-8px}.md-text-field__clear--empty{visibility:hidden}:host([hidden]){display:none !important}`;const y={numeric:/[^0-9]/g,integer:/[^0-9-]/g,decimal:/[^0-9.\-]/g,alpha:/[^a-zA-Z]/g,alphanumeric:/[^a-zA-Z0-9]/g};const v=t(class t extends e{constructor(t){super();if(t!==false){this.__registerHost()}this.__attachShadow();this.mdInput=i(this,"mdInput",7);this.mdChange=i(this,"mdChange",7);this.mdSearch=i(this,"mdSearch",7);this.mdClear=i(this,"mdClear",7);this.mdPasswordToggle=i(this,"mdPasswordToggle",7);this.mdSpeechResult=i(this,"mdSpeechResult",7);this.mdValidityChange=i(this,"mdValidityChange",5);this.internals=this.attachInternals();this.reserveSupportingSpace=false;this.variant="filled";this.label="";this.value="";this.placeholder="";this.type="text";this.name="";this.pattern="";this.autocomplete="";this.inputMode="";this.enterKeyHint="";this.autoCapitalize="";this.spellcheck=true;this.disabled=false;this.readOnly=false;this.required=false;this.error=false;this.errorText="";this.supportingText="";this.prefixText="";this.suffixText="";this.clearable=false;this.passwordToggle=false;this.showPasswordLabel="Show password";this.hidePasswordLabel="Hide password";this.density=0;this.multiline=false;this.speechToText=false;this.speechLang="";this.restrict="";this.formatOn="blur";this.focusBorderWidth=3;this.appearFocused=false;this.chipsWrap=false;this.debounce=0;this.throttle=0;this.focused=false;this.formDisabled=false;this.autofilled=false;this.hostAriaLabel="";this.passwordVisible=false;this.hasSlottedLeading=false;this.hasSlottedChips=false;this.hasSlottedTrailing=false;this.hasTrailingIconButton=false;this.listening=false;this.displayValue="";this.validationMessage="";this.validation=new m({host:()=>this.el,validity:()=>this.readValidationState(),message:t=>{this.validationMessage=t},focus:()=>this.setFocus()});this.defaultValue="";this.internalWrite=false;this.composing=false;this.warnedLiveFormat=false;this.uid=f("md-text-field");this.throttlePending=false;this.customValidityMessage="";this.inputRole="";this.inputExpanded=false;this.inputAriaAutocomplete="";this.lastValidityKey=null;this.pendingTypeResync=false;this.formatterEpoch=0;this.handleInput=t=>{const e=t.target||this.inputEl;if(!e)return;if(this.composing)return;let i=e.value;let s=e.selectionStart??i.length;let d=this.applyRestrict(i);if(this.restrict&&this.maxLength!=null&&!isNaN(this.maxLength)&&d.length>this.maxLength){const t=Array.from(d);let e="";for(const i of t){if((e+i).length>this.maxLength)break;e+=i}d=e}if(d!==i){const t=this.applyRestrict(i.substring(0,s));i=d;e.value=i;s=Math.min(t.length,i.length);try{e.setSelectionRange(s,s)}catch{}}this.internalWrite=true;try{this.value=this.parser?this.parser(i):i}catch(t){this.value=i}if(this.formatter&&this.effectiveFormatOn==="input"&&this.maxLength!=null){const t=this.value.replace(/[-/\s]/g,"");if(t.length>this.maxLength){const e=Array.from(t);let i="";for(const t of e){if((i+t).length>this.maxLength)break;i+=t}this.value=i}}if(this.formatter&&this.effectiveFormatOn==="input"){try{const t=t=>this.parser?this.parser(t).length:(t.match(/[0-9a-zA-Z]/g)||[]).length;const d=t(i.substring(0,s));const o=this.formatter(this.value);this.displayValue=o;e.value=o;let l=d===0?0:o.length;for(let e=0;d>0&&e<o.length;e++){if(t(o.slice(0,e+1))===d){l=e+1;break}}try{e.setSelectionRange(l,l)}catch{}}catch(t){this.displayValue=this.value;e.value=this.value}}if(!(this.formatter&&this.effectiveFormatOn==="input")){this.displayValue=e.value}this.internalWrite=false;this.mdInput.emit(this.value);this.emitSearch(this.value);if(this.multiline==="auto-grow"){this.autoGrow()}};this.handleCompositionStart=()=>{this.composing=true};this.handleCompositionEnd=t=>{this.composing=false;this.handleInput(t)};this.handleKeyDown=t=>{x(this.internals,t,{disabled:this.isDisabled,composing:this.composing,multiline:!!this.multiline});if(t.key==="Escape"&&!this.composing&&this.clearable==="internal"&&this.value&&!this.readOnly&&!this.isDisabled){t.stopPropagation();t.preventDefault();this.clearValue();this.mdClear.emit()}};this.handleAutofillStart=t=>{if(t.animationName==="md-tf-autofill-start")this.autofilled=true;if(t.animationName==="md-tf-autofill-cancel")this.autofilled=false};this.handleChange=()=>{this.mdChange.emit(this.value);this.el.dispatchEvent(new CustomEvent("change",{bubbles:true}))};this.handleFocus=()=>{this.focused=true;if(this.formatter&&this.effectiveFormatOn==="blur"&&this.inputEl){this.displayValue=this.value;this.inputEl.value=this.value}};this.handleBlur=()=>{this.focused=false;this.composing=false;this.syncDisplayValue();if(this.inputEl){this.inputEl.value=this.displayValue}};this.handleContainerClick=()=>{this.inputEl?.focus()};this.handleClear=t=>{t.stopPropagation();if(this.isDisabled||this.readOnly||!this.value)return;if(this.clearable==="internal"){this.clearValue()}this.mdClear.emit();this.inputEl?.focus()};this.handlePasswordToggle=t=>{t.stopPropagation();if(this.isDisabled)return;if(this.passwordToggle==="internal"){this.passwordVisible=!this.passwordVisible;this.mdPasswordToggle.emit({visible:this.passwordVisible})}else{this.mdPasswordToggle.emit({visible:this.type==="password"})}this.inputEl?.focus()};this.handleSpeechToggle=t=>{t.stopPropagation();if(this.isDisabled||this.readOnly)return;if(this.speechToText==="external"){this.listening=!this.listening;this.mdSpeechResult.emit({transcript:"",listening:this.listening});return}if(this.listening){this.recognition?.stop();return}const e=window.SpeechRecognition||window.webkitSpeechRecognition;if(!e){console.warn("md-text-field: SpeechRecognition API not supported in this browser.");return}const i=new e;i.continuous=false;i.interimResults=true;if(this.speechLang){i.lang=this.speechLang}let s="";const d=this.value;i.onresult=t=>{let e="";for(let i=t.resultIndex;i<t.results.length;i++){const d=t.results[i][0].transcript;if(t.results[i].isFinal){s+=d}else{e+=d}}const i=d&&!d.endsWith(" ")?" ":"";this.internalWrite=true;this.value=d+i+s+e;this.internalWrite=false;if(this.inputEl)this.inputEl.value=this.value;this.mdInput.emit(this.value);this.mdSpeechResult.emit({transcript:s+e,listening:true})};i.onend=()=>{this.listening=false;this.recognition=undefined;const t=d&&!d.endsWith(" ")?" ":"";this.internalWrite=true;this.value=d+t+s;this.internalWrite=false;if(this.inputEl)this.inputEl.value=this.value;this.mdInput.emit(this.value);this.mdChange.emit(this.value);this.mdSpeechResult.emit({transcript:s,listening:false})};i.onerror=t=>{if(t.error!=="aborted"){console.warn("md-text-field: Speech recognition error:",t.error)}this.listening=false;this.recognition=undefined};this.recognition=i;this.listening=true;i.start()}}resetValidationPresentation(){this.validation.reset()}onInvalid(t){this.validation.handleInvalid(t)}readValidationState(){if(this.internals&&"validity"in this.internals)return p(this.internals);return{valid:this.inputEl?.validity.valid??true,validationMessage:this.inputEl?.validationMessage||""}}get hasError(){return this.error||!!this.validationMessage}get supportMessage(){return this.hasError?this.errorText||this.validationMessage||this.supportingText:this.supportingText}get isDisabled(){return this.disabled||this.formDisabled}get effectiveFormatOn(){if(this.formatOn==="input"&&this.formatter&&!this.parser){return"blur"}return this.formatOn}static isInteractive(t){const e=t.tagName.toLowerCase();return["md-icon-button","md-button","button","a","input","select","textarea"].includes(e)||t.hasAttribute("tabindex")}get isFloating(){return this.focused||this.appearFocused||!!this.value||!!this.placeholder||this.autofilled||this.hasSlottedChips}get effectiveRows(){if(this.rows!=null)return this.rows;return this.multiline==="fixed"?4:2}get restrictPattern(){if(!this.restrict)return null;if(y[this.restrict])return y[this.restrict];try{const t=this.restrict.startsWith("[")&&this.restrict.endsWith("]")?this.restrict.slice(1,-1):this.restrict;return new RegExp(`[^${t}]`,"g")}catch{return null}}applyRestrict(t){const e=this.restrictPattern;return e?t.replace(e,""):t}syncTrailingSlotState(e){if(!e)return;this.hasSlottedTrailing=e.assignedNodes().length>0;this.hasTrailingIconButton=e.assignedElements().some((e=>t.isInteractive(e)))}syncHostSlottedIcons(){const e=this.el.querySelector('[slot="leading-icon"]');const i=this.el.querySelector('[slot="trailing-icon"]');this.hasSlottedLeading=!!e;this.hasSlottedTrailing=!!i;this.hasTrailingIconButton=!!i&&t.isInteractive(i)}static normaliseMode(t){return t===true?"internal":t}normaliseModes(){this.clearable=t.normaliseMode(this.clearable);this.passwordToggle=t.normaliseMode(this.passwordToggle);this.speechToText=t.normaliseMode(this.speechToText)}handleModeChange(){this.normaliseModes()}componentWillLoad(){l(this);this.bridgeFormatterProps();this.normaliseModes();if(this.el.hasAttribute("clearable")&&!this.clearable)this.clearable="internal";if(this.el.hasAttribute("password-toggle")&&!this.passwordToggle)this.passwordToggle="internal";if(this.el.hasAttribute("speech-to-text")&&!this.speechToText)this.speechToText="internal";if(this.maxLength==null&&this.el.hasAttribute("maxlength")){this.maxLength=parseInt(this.el.getAttribute("maxlength"),10)}if(this.minLength==null&&this.el.hasAttribute("minlength")){this.minLength=parseInt(this.el.getAttribute("minlength"),10)}if(!this.label&&!this.hostAriaLabel){const t=this.el.getAttribute("aria-label");if(t){this.hostAriaLabel=t;this.el.removeAttribute("aria-label")}}if(!this.multiline&&/[\r\n]/.test(this.value)){this.value=this.value.replace(/[\r\n]+/g,"")}this.defaultValue=this.value;this.syncDisplayValue();this.syncHostSlottedIcons();this.updateFormValue()}updateFormValue(){try{this.internals?.setFormValue(this.value)}catch{}}updateValidity(){const t=this.inputEl;if(!t)return;try{if(this.customValidityMessage){this.internals?.setValidity({customError:true},this.customValidityMessage,t);return}const e=t.validity;if(!e)return;if(this.focused&&t.value!==this.value)return;const i=t.value;let s=false;if(t.value!==this.value){t.value=this.value;s=true;if(t.value!==this.value){t.value=i;this.internals?.setValidity({badInput:true},"Invalid value",t);return}}const d={valueMissing:e.valueMissing,typeMismatch:e.typeMismatch,patternMismatch:e.patternMismatch,tooLong:e.tooLong,tooShort:e.tooShort,rangeUnderflow:e.rangeUnderflow,rangeOverflow:e.rangeOverflow,stepMismatch:e.stepMismatch,badInput:e.badInput};const o=e.valid;const l=t.validationMessage;if(s)t.value=i;if(o){this.internals?.setValidity({})}else{this.internals?.setValidity(d,l||"Invalid value",t)}}catch{}finally{this.validation.refresh();this.emitValidityChange()}}formResetCallback(){this.validation.reset();this.internalWrite=false;this.value=this.defaultValue;this.syncDisplayValue();if(this.inputEl)this.inputEl.value=this.displayValue;this.updateFormValue()}formDisabledCallback(t){if(t)queueMicrotask((()=>this.validation.reset()));queueMicrotask((()=>{this.formDisabled=t}))}async setFocus(){this.inputEl?.focus()}async select(){this.inputEl?.select()}async getInputElement(){return this.inputEl??null}async getValidity(){try{const t=this.internals.validity;return{valid:t.valid,validationMessage:this.internals.validationMessage,flags:{valueMissing:t.valueMissing,typeMismatch:t.typeMismatch,patternMismatch:t.patternMismatch,tooLong:t.tooLong,tooShort:t.tooShort,rangeUnderflow:t.rangeUnderflow,rangeOverflow:t.rangeOverflow,stepMismatch:t.stepMismatch,badInput:t.badInput,customError:t.customError}}}catch{return{valid:true,validationMessage:"",flags:{}}}}async setCustomValidity(t){this.customValidityMessage=t;this.updateValidity()}formStateRestoreCallback(t){if(typeof t==="string"){this.value=t}}emitValidityChange(){const t=p(this.internals);const e=`${t.valid}|${t.validationMessage}`;if(this.lastValidityKey===e)return;const i=this.lastValidityKey!==null;this.lastValidityKey=e;if(i)this.mdValidityChange.emit(t)}async checkValidity(){try{return u((()=>this.internals.checkValidity()))}catch{return u((()=>this.inputEl?.checkValidity()??true))}}async reportValidity(){try{return _((()=>this.internals.reportValidity()))}catch{return _((()=>this.inputEl?.reportValidity()??true))}}componentDidLoad(){try{const t=this.el.shadowRoot;const e=t?.querySelector('slot[name="leading-icon"]');e?.addEventListener("slotchange",(()=>{this.hasSlottedLeading=e.assignedNodes().length>0}));const i=t?.querySelector('slot[name="trailing-icon"]');i?.addEventListener("slotchange",(()=>{this.syncTrailingSlotState(i)}));const s=t?.querySelector('slot[name="chips"]');s?.addEventListener("slotchange",(()=>{this.hasSlottedChips=s.assignedNodes().length>0}));this.hasSlottedLeading=(e?.assignedNodes().length??0)>0;this.hasSlottedChips=(s?.assignedNodes().length??0)>0;this.syncTrailingSlotState(i);if(this.multiline==="auto-grow"){this.autoGrow()}this.syncDisplayValue();this.updateValidity()}finally{r(this)}}onValueChange(){if(this.value==null){this.value="";return}if(!this.internalWrite&&!this.multiline&&/[\r\n]/.test(this.value)){this.value=this.value.replace(/[\r\n]+/g,"");return}if(this.multiline==="auto-grow"){this.autoGrow()}this.updateFormValue();if(!this.focused){this.syncDisplayValue();return}if(!this.internalWrite){this.composing=false;this.syncDisplayValue();const t=this.inputEl;if(t){t.value=this.effectiveFormatOn==="blur"&&this.formatter?this.value:this.displayValue;const e=t.value.length;try{t.setSelectionRange(e,e)}catch{}}this.updateValidity()}}onTypeChange(){this.pendingTypeResync=true}componentDidRender(){a(this);if(this.pendingTypeResync){this.pendingTypeResync=false;const t=this.inputEl;if(t){const e=this.focused&&this.formatter&&this.effectiveFormatOn==="blur"?this.value:this.displayValue;if(t.value!==e){t.value=e}}}this.updateValidity()}bridgeFormatterProps(){const t=this.el===this;["formatter","parser"].forEach((e=>{let i=this[e];Object.defineProperty(this.el,e,{configurable:true,get:()=>t?i:this[e],set:s=>{if(t)i=s;else this[e]=s;if(!this.focused){this.syncDisplayValue()}this.formatterEpoch++}})}))}syncDisplayValue(){if(this.formatter){try{const t=this.formatter(this.value);this.displayValue=typeof t==="string"?t:this.value}catch(t){this.displayValue=this.value}}else{this.displayValue=this.value}}emitSearchDistinct(t){if(t===this.lastEmittedSearch)return;this.lastEmittedSearch=t;this.mdSearch.emit(t)}emitSearch(t){if(this.debounce>0){clearTimeout(this.debounceTimer);this.debounceTimer=setTimeout((()=>this.emitSearchDistinct(t)),this.debounce)}if(this.throttle>0){if(!this.throttleTimer){this.emitSearchDistinct(t);this.throttlePending=false;this.throttleTimer=setTimeout((()=>{this.throttleTimer=undefined;if(this.throttlePending){this.emitSearchDistinct(this.value);this.throttlePending=false}}),this.throttle)}else{this.throttlePending=true}}if(this.debounce<=0&&this.throttle<=0){this.emitSearchDistinct(t)}}autoGrow(){const t=this.inputEl;if(!t)return;t.value=this.value;t.style.height="auto";t.style.height=`${t.scrollHeight}px`}clearValue(){this.internalWrite=true;this.value="";this.internalWrite=false;if(this.inputEl){this.inputEl.value=""}this.displayValue="";this.updateValidity();this.mdInput.emit(this.value);this.mdChange.emit(this.value);this.emitSearch("")}disconnectedCallback(){n(this);this.recognition?.abort();this.recognition=undefined;clearTimeout(this.debounceTimer);clearTimeout(this.throttleTimer);this.debounceTimer=undefined;this.throttleTimer=undefined;this.throttlePending=false}renderInputElement(){const t=this.passwordToggle==="internal"&&this.passwordVisible?"text":this.type;const e=this.focused&&this.formatter&&this.effectiveFormatOn==="blur";const i=e?this.value:this.displayValue;const d=this.supportMessage;const o=[d?`${this.uid}-support`:"",this.maxLength!=null&&!isNaN(this.maxLength)?`${this.uid}-counter`:""].filter(Boolean).join(" ");const l=this.el.getAttribute("aria-haspopup");const r=l==="dialog"||l==="listbox"?l:null;const a=this.inputRole==="combobox"?"combobox":undefined;const n={placeholder:this.isFloating?this.placeholder:"",disabled:this.isDisabled,readOnly:this.readOnly,required:this.required,maxLength:this.formatter&&this.effectiveFormatOn==="input"||this.restrict?undefined:this.maxLength,pattern:this.pattern||undefined,minLength:this.minLength,min:this.min,max:this.max,step:this.step,autocomplete:this.autocomplete||undefined,inputMode:this.inputMode||undefined,enterKeyHint:this.enterKeyHint||undefined,autoCapitalize:this.autoCapitalize||undefined,spellcheck:this.spellcheck,value:i,"aria-label":this.label||this.hostAriaLabel||undefined,"aria-haspopup":r||undefined,role:a,"aria-expanded":a?String(this.inputExpanded):undefined,"aria-autocomplete":a&&this.inputAriaAutocomplete?this.inputAriaAutocomplete:undefined,"aria-describedby":o||undefined,"aria-invalid":this.hasError?"true":undefined,"aria-required":this.required?"true":undefined,id:`${this.uid}-input`,onInvalid:t=>this.validation.handleInputInvalid(t),onInput:this.handleInput,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onAnimationStart:this.handleAutofillStart};if(this.multiline){return s("textarea",{ref:t=>{this.inputEl=t},...n,rows:this.effectiveRows,part:"input",class:{"md-text-field__input":true,"md-text-field__input--textarea":true,"md-text-field__input--auto-grow":this.multiline==="auto-grow","md-text-field__input--fixed":this.multiline==="fixed"}},i)}return s("input",{ref:t=>{this.inputEl=t},class:"md-text-field__input",part:"input",type:t,...n})}render(){const t=this.supportMessage;const e=!!this.clearable;const i=!this.multiline&&!!this.passwordToggle;const o=!!this.speechToText;const l=this.hasSlottedLeading;const r=this.hasSlottedTrailing||e||i||o||this.hasError;const a=!!this.formatter&&this.effectiveFormatOn==="input";const n=a?this.value.replace(/[-/\s]/g,"").length:this.value.length;const c=this.maxLength!=null&&!isNaN(this.maxLength)?`${n}/${this.maxLength}`:"";const h=this.isDisabled||this.readOnly||!this.value;const f=!t&&!c;const m=this.passwordToggle==="internal"?this.passwordVisible:this.type!=="password";const x=m?"visibility_off":"visibility";return s(d,{key:"4d65e7c6cc2c705c4ae72a1b227616e5741ba2d6",class:{"md-text-field":true,[`md-text-field--${this.variant}`]:true,"md-text-field--focused":this.focused||this.appearFocused,"md-text-field--error":this.hasError,"md-text-field--disabled":this.isDisabled,"md-text-field--with-leading":l,"md-text-field--with-trailing":r,"md-text-field--clearable":e,"md-text-field--with-chips":this.hasSlottedChips,"md-text-field--floating":this.isFloating,"md-text-field--without-label":!this.label,[`md-text-field--density${this.density}`]:this.density!==0,"md-text-field--multiline":!!this.multiline,"md-text-field--auto-grow":this.multiline==="auto-grow","md-text-field--textarea":this.multiline==="fixed","md-text-field--listening":this.listening},style:Number(this.focusBorderWidth)!==3?{"--md-text-field-focus-border-width":`${Number(this.focusBorderWidth)}px`,"--md-text-field-focus-inset":`${-(Number(this.focusBorderWidth)-1)}px`}:undefined},s("div",{key:"d9de6cc28325120a41d7a72f3097a2540690d052",class:"md-text-field__container",part:"container","data-md-anchor-box":f?"":null,onClick:this.handleContainerClick},s("div",{key:"35c4607862bc94347be53050361c6602e8f85361",class:"md-text-field__state-layer","aria-hidden":"true"}),s("span",{key:"3e97e2d2001a380f4c305194a1b1b378e698a6dd",class:"md-text-field__icon md-text-field__icon--leading","aria-hidden":"true",style:{display:l?undefined:"none"}},s("slot",{key:"e99843619e6f963e8cab429f1ca9abfe74b3ec6f",name:"leading-icon"})),s("div",{key:"460942cfa642b61354300ff8db342ab0fb64310c",class:"md-text-field__input-wrap"},this.label&&s("label",{key:"353fa54c95fea53bbe7ecfec76cb48490fe93902",class:"md-text-field__label",part:"label",htmlFor:`${this.uid}-input`},this.label),s("div",{key:"9598d6bf839897f521985b020817baabd844ee93",class:"md-text-field__input-row"},s("span",{key:"75ecb4875a1aa4fce966654b23faad0cdb2a8691",class:"md-text-field__chips",part:"chips",style:{display:this.hasSlottedChips?undefined:"none"}},s("slot",{key:"59f46272090fe520cc62c3803668639d92f78e4f",name:"chips"})),this.prefixText&&this.isFloating&&s("span",{key:"6ba03fbdcff7869d6837dbc82d509d9cd47df533",class:"md-text-field__prefix"},this.prefixText),this.renderInputElement(),this.suffixText&&this.isFloating&&s("span",{key:"3402333bcd06161e273be2aebd32baa0963ec31c",class:"md-text-field__suffix"},this.suffixText))),e&&s("button",{key:"80df7aa2092b845b0c168cd4fa8cb3b5bd1d94fd",type:"button",class:{"md-text-field__clear":true,"md-text-field__clear--disabled":h,"md-text-field__clear--empty":!this.value},disabled:h,onClick:this.handleClear,"aria-label":"Clear"},s("slot",{key:"457e3c03ddc32728f527d9ffa1516226ded6765d",name:"clear-icon"},s("span",{key:"34a935716e43a96dec0516bc8f50dda8e2768d7c",class:"material-symbols-outlined","aria-hidden":"true"},"cancel"))),i&&s("button",{key:"6b8c663be5146f57baa83dedac4ac3fd405107f9",type:"button",class:{"md-text-field__password-toggle":true,"md-text-field__password-toggle--disabled":this.isDisabled},disabled:this.isDisabled,onClick:this.handlePasswordToggle,"aria-label":m?this.hidePasswordLabel:this.showPasswordLabel,"aria-pressed":m?"true":"false"},s("slot",{key:"9b99f0d8ad8a6473e0f2516240816b44e7c2127d",name:"password-toggle-icon"},s("span",{key:"4c2a9d991fd0720b88d2a9abac3811716829c511",class:"material-symbols-outlined","aria-hidden":"true"},x))),o&&s("button",{key:"46a1b28a730eca5695f74cc28f3e233ddc7c4218",type:"button",class:{"md-text-field__speech":true,"md-text-field__speech--listening":this.listening,"md-text-field__speech--disabled":this.isDisabled},disabled:this.isDisabled||this.readOnly,onClick:this.handleSpeechToggle,"aria-label":this.listening?"Stop listening":"Start voice input","aria-pressed":this.listening?"true":"false"},s("slot",{key:"9eebf8566639cdd26221633fd18c56d98c8d620c",name:"speech-icon"},s("span",{key:"361f015c7e65a473aa3e22e712398a529aaa25b2",class:"material-symbols-outlined","aria-hidden":"true"},this.listening?"hearing":"mic"))),this.hasError&&s("span",{key:"dae4ccd14be7d63e6c73419279c26b489239359e",class:"md-text-field__error-icon","aria-hidden":"true"},s("slot",{key:"dfbab8ad95de6872ebeb197c3d06136bd953fbe3",name:"error-icon"},s("span",{key:"75de9f5c7360548d8e9465538c641d194ee922b0",class:"material-symbols-outlined",style:{fontVariationSettings:"'FILL' 1"}},"error"))),s("span",{key:"8057be053f34a5bfbcec3fd70570d7ae6a118c6c",class:{"md-text-field__icon":!this.hasTrailingIconButton,"md-text-field__icon--trailing":!this.hasTrailingIconButton,"md-text-field__trailing-icon-button":this.hasTrailingIconButton},"aria-hidden":this.hasTrailingIconButton?null:"true",style:{display:this.hasSlottedTrailing?undefined:"none"}},s("slot",{key:"4a350af87d3e6e16abd1b9cb0bed675eac04614c",name:"trailing-icon"})),this.variant==="filled"&&s("div",{key:"815ab5ed51c71d79aa3f0223428f9b8f72dd3249",class:"md-text-field__indicator"}),this.variant==="outlined"&&s("fieldset",{key:"b8b068cbbe07eda6131cc011c5bb036effa49b4a",class:"md-text-field__fieldset"},s("legend",{key:"f52d287b48a27b56dee19d0c73dedc07ee27cbe9",class:{"md-text-field__legend":true,"md-text-field__legend--active":this.isFloating&&!!this.label}},s("span",{key:"ea9af9be64882cd0766c93967965c62268e41b90"},this.label)))),(t||c||this.reserveSupportingSpace)&&s("div",{key:"7c6a8350ed4e79576238205a5fabe858d8226d44",class:"md-text-field__support-row"},s("span",{key:"fed199a3d990c59167b50ca56086a71fd0775d34",id:`${this.uid}-support`,part:"supporting-text",role:this.hasError?"alert":undefined,class:{"md-text-field__support-text":true,"md-text-field__support-text--error":this.hasError}},t||(this.reserveSupportingSpace?"":"")),c&&s("span",{key:"1d67ae0fddd178855f8cd95566deb3949f95d534",id:`${this.uid}-counter`,part:"counter",class:"md-text-field__counter"},c)))}connectedCallback(){c(this)}componentShouldUpdate(){h(this);return true}static get delegatesFocus(){return true}static get formAssociated(){return true}get el(){return this}static get watchers(){return{name:[{resetValidationPresentation:0}],clearable:[{handleModeChange:0}],passwordToggle:[{handleModeChange:0}],speechToText:[{handleModeChange:0}],value:[{onValueChange:0}],type:[{onTypeChange:0}]}}static get style(){return g()+b()}},[337,"md-text-field",{reserveSupportingSpace:[4,"reserve-supporting-space"],variant:[1],label:[1],value:[1025],placeholder:[1],type:[1],name:[513],pattern:[1],minLength:[1026,"min-length"],min:[8],max:[8],step:[8],autocomplete:[1],inputMode:[1,"inputmode"],enterKeyHint:[1,"enterkeyhint"],autoCapitalize:[1,"autocapitalize"],spellcheck:[4],disabled:[516],readOnly:[4,"readonly"],required:[4],error:[4],errorText:[1,"error-text"],supportingText:[1,"supporting-text"],prefixText:[1,"prefix-text"],suffixText:[1,"suffix-text"],maxLength:[1026,"max-length"],clearable:[1032],passwordToggle:[1032,"password-toggle"],showPasswordLabel:[1,"show-password-label"],hidePasswordLabel:[1,"hide-password-label"],density:[514],multiline:[8],rows:[2],speechToText:[1032,"speech-to-text"],speechLang:[1,"speech-lang"],restrict:[1],formatter:[1040],parser:[1040],formatOn:[1,"format-on"],focusBorderWidth:[514,"focus-border-width"],appearFocused:[516,"appear-focused"],chipsWrap:[516,"chips-wrap"],debounce:[514],throttle:[514],inputRole:[1,"input-role"],inputExpanded:[4,"input-expanded"],inputAriaAutocomplete:[1,"input-aria-autocomplete"],focused:[32],formDisabled:[32],autofilled:[32],hostAriaLabel:[32],passwordVisible:[32],hasSlottedLeading:[32],hasSlottedChips:[32],hasSlottedTrailing:[32],hasTrailingIconButton:[32],listening:[32],displayValue:[32],validationMessage:[32],formatterEpoch:[32],setFocus:[64],select:[64],getInputElement:[64],getValidity:[64],setCustomValidity:[64],checkValidity:[64],reportValidity:[64]},[[0,"invalid","onInvalid"]],{name:[{resetValidationPresentation:0}],clearable:[{handleModeChange:0}],passwordToggle:[{handleModeChange:0}],speechToText:[{handleModeChange:0}],value:[{onValueChange:0}],type:[{onTypeChange:0}]}]);function w(){if(typeof customElements==="undefined"){return}const t=["md-text-field"];t.forEach((t=>{switch(t){case"md-text-field":if(!customElements.get(o(t))){customElements.define(o(t),v)}break}}))}w();export{v as M,w as d};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as t,H as e,c as i,h as s,d,t as o}from"./p-dBZ_5SDM.js";import{b as l,c as r,i as a,d as n,r as c,p as h}from"./p-D9cIx3li.js";import{c as f}from"./p-mwCGMdmr.js";import{I as m,b as x,g as p,w as u,d as _}from"./p-EuzGe8T6.js";const g=()=>`:host(:not([data-awc-motion-ready])),:host(:not([data-awc-motion-ready]))::before,:host(:not([data-awc-motion-ready]))::after,:host(:not([data-awc-motion-ready])) *,:host(:not([data-awc-motion-ready])) *::before,:host(:not([data-awc-motion-ready])) *::after{transition-property:none !important}`;const b=()=>`:host{--_container-color:var(--md-text-field-container-color, var(--md-sys-color-surface-container-highest, #E6E0E9));--_input-color:var(--md-text-field-input-color, var(--md-sys-color-on-surface, #1C1B1F));--_label-color:var(--md-text-field-label-color, var(--md-sys-color-on-surface-variant, #49454F));--_active-indicator-color:var(--md-text-field-active-indicator-color, var(--md-sys-color-primary, #6750A4));--_outline-color:var(--md-text-field-outline-color, var(--md-sys-color-outline, #79747E));--_error-color:var(--md-text-field-error-color, var(--md-sys-color-error, #B3261E));--_supporting-text-color:var(--md-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454F));--_icon-color:var(--md-text-field-icon-color, var(--md-sys-color-on-surface-variant, #49454F));--_text-inset:calc(var(--md-sys-spacing-inset-lg, 16px) + 7px);--_icon-size:var(--md-text-field-icon-size, max(18px, calc(24px + var(--md-sys-density-scale, 0) * 1px)));--_container-shape:var(--md-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px));--_filled-pill:var(--md-text-field-filled-pill, 0);--_filled-block-end-radius:calc(var(--_filled-pill) * var(--_container-shape));display:flex;flex-direction:column;position:relative;font-family:var(--md-sys-typescale-body-large-font-family, Roboto, sans-serif);width:100%;box-sizing:border-box}.md-text-field__container{position:relative;display:flex;align-items:stretch;min-height:calc(56px + var(--md-sys-density-scale, 0) * 4px);cursor:var(--md-text-field-cursor, text);box-sizing:border-box}:host(.md-text-field--filled) .md-text-field__container{background-color:var(--_container-color);border-start-start-radius:var(--_container-shape);border-start-end-radius:var(--_container-shape);border-end-start-radius:var(--_filled-block-end-radius);border-end-end-radius:var(--_filled-block-end-radius);padding-block:max(2px, calc(8px + var(--md-sys-density-scale, 0) * 0.5px));padding-inline-start:var(--md-text-field-padding-inline-start, var(--_text-inset));padding-inline-end:var(--md-text-field-padding-inline-end, var(--_text-inset));transition:background-color var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1))}:host(.md-text-field--filled.md-text-field--focused) .md-text-field__container{background-color:var(--_container-color)}:host(.md-text-field--outlined) .md-text-field__container{background-color:transparent;border-radius:var(--_container-shape);padding-block:max(2px, calc(8px + var(--md-sys-density-scale, 0) * 1px));padding-inline-start:var(--md-text-field-padding-inline-start, var(--_text-inset));padding-inline-end:var(--md-text-field-padding-inline-end, var(--_text-inset))}:host(.md-text-field--outlined) .md-text-field__input{position:relative;inset-block-start:var(--md-text-field-optical-nudge, 0px)}:host(.md-text-field--clearable) .md-text-field__input::-webkit-search-cancel-button,:host(.md-text-field--clearable) .md-text-field__input::-webkit-search-decoration{display:none}:host([density='-1']){--md-sys-density-scale:-1}:host([density='-2']){--md-sys-density-scale:-2}:host([density='-3']){--md-sys-density-scale:-3}:host([density='-4']){--md-sys-density-scale:-4}.md-text-field__state-layer{position:absolute;inset:0;border-radius:inherit;background-color:var(--md-sys-color-on-surface, #1C1B1F);opacity:0;transition:opacity var(--md-sys-motion-duration-short2, 100ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1));pointer-events:none}:host(.md-text-field--filled:hover:not(.md-text-field--disabled)) .md-text-field__state-layer{opacity:var(--md-sys-state-hover-state-layer-opacity, 0.08)}:host(.md-text-field--outlined) .md-text-field__state-layer{display:none}.md-text-field__input-wrap{flex:1;display:flex;flex-direction:column;justify-content:center;min-width:0;position:relative;padding:0}:host(.md-text-field--filled) .md-text-field__input-wrap{justify-content:flex-end}:host(.md-text-field--filled.md-text-field--without-label:not(.md-text-field--multiline)) .md-text-field__input-wrap{justify-content:center}.md-text-field__input-row{display:flex;align-items:center}.md-text-field__chips{display:inline-flex;flex-wrap:nowrap;align-items:center;gap:4px;min-inline-size:0;overflow:hidden}:host(.md-text-field--with-chips:not([chips-wrap])) .md-text-field__chips{flex:1 1 auto}:host(.md-text-field--with-chips) .md-text-field__input-row{flex-wrap:nowrap;gap:4px;min-inline-size:0}:host(.md-text-field--with-chips:not([chips-wrap])) .md-text-field__input{flex:0 1 0;min-inline-size:0}:host(.md-text-field--with-chips) .md-text-field__input{flex:1 0 40px;min-inline-size:40px}:host(.md-text-field--with-chips[chips-wrap]) .md-text-field__input-row{flex-wrap:wrap;row-gap:6px}:host([chips-wrap]) .md-text-field__chips{flex-wrap:wrap;overflow:visible}.md-text-field__input{flex:1;border:none;outline:none;background:transparent;font-family:inherit;font-size:max(13px, calc(16px + var(--md-sys-density-scale, 0) * 0.5px));line-height:max(18px, calc(24px + var(--md-sys-density-scale, 0) * 1px));font-weight:var(--md-sys-typescale-body-large-weight, 400);letter-spacing:var(--md-sys-typescale-body-large-tracking, 0.5px);color:var(--_input-color);caret-color:var(--_active-indicator-color);cursor:var(--md-text-field-cursor, text);padding:0;margin:0;min-width:0;width:100%}.md-text-field__input::placeholder{color:var(--_label-color)}:host(.md-text-field--error) .md-text-field__input{caret-color:var(--_error-color)}.md-text-field__input--textarea{resize:none;overflow-wrap:break-word}.md-text-field__input--auto-grow{overflow:hidden}.md-text-field__input--fixed{overflow-y:auto}:host(.md-text-field--multiline) .md-text-field__container{align-items:flex-start;min-height:auto}:host(.md-text-field--multiline) .md-text-field__input-wrap{justify-content:flex-start}:host(.md-text-field--multiline.md-text-field--filled) .md-text-field__input-wrap{justify-content:flex-start;padding-block-start:20px}:host(.md-text-field--multiline) .md-text-field__input-row{align-items:flex-start}:host(.md-text-field--filled.md-text-field--floating.md-text-field--with-chips:not(.md-text-field--without-label)) .md-text-field__input-wrap{padding-block-start:max(12px, calc(16px + var(--md-sys-density-scale, 0) * 1px))}:host(.md-text-field--multiline:not(.md-text-field--auto-grow)) .md-text-field__icon,:host(.md-text-field--multiline:not(.md-text-field--auto-grow)) .md-text-field__trailing-icon-button,:host(.md-text-field--multiline:not(.md-text-field--auto-grow)) .md-text-field__clear,:host(.md-text-field--multiline:not(.md-text-field--auto-grow)) .md-text-field__password-toggle,:host(.md-text-field--multiline:not(.md-text-field--auto-grow)) .md-text-field__speech{align-self:flex-start;margin-block-start:16px}:host(.md-text-field--auto-grow) .md-text-field__icon,:host(.md-text-field--auto-grow) .md-text-field__trailing-icon-button,:host(.md-text-field--auto-grow) .md-text-field__clear,:host(.md-text-field--auto-grow) .md-text-field__password-toggle,:host(.md-text-field--auto-grow) .md-text-field__speech{align-self:center}.md-text-field__label{position:absolute;inset-inline-start:0;font-size:max(13px, calc(16px + var(--md-sys-density-scale, 0) * 0.5px));line-height:max(18px, calc(24px + var(--md-sys-density-scale, 0) * 1px));color:var(--_label-color);pointer-events:none;transition:top var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), inset-inline-start var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), font-size var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), line-height var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), transform var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), background-color var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), padding var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), color var(--md-sys-motion-duration-short2, 100ms) ease;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}:host(.md-text-field--filled) .md-text-field__label{top:50%;transform:translateY(-50%)}:host(.md-text-field--multiline:not(.md-text-field--floating)) .md-text-field__label{top:28px}:host(.md-text-field--multiline.md-text-field--outlined:not(.md-text-field--floating)) .md-text-field__label{top:12px;}:host(.md-text-field--multiline.md-text-field--filled:not(.md-text-field--floating)) .md-text-field__label{top:32px;}:host(.md-text-field--filled.md-text-field--floating) .md-text-field__label{top:0;transform:translateY(0);font-size:max(11px, calc(var(--md-sys-typescale-body-small-size, 12px) + var(--md-sys-density-scale, 0) * 0.25px));line-height:max(12px, calc(var(--md-sys-typescale-body-small-line-height, 16px) + var(--md-sys-density-scale, 0) * 1px))}:host(.md-text-field--outlined) .md-text-field__label{top:50%;transform:translateY(-50%);background-color:transparent;padding:0}:host(.md-text-field--outlined.md-text-field--floating) .md-text-field__label{top:calc(-8px - var(--md-sys-density-scale, 0) * 1px);inset-inline-start:0;transform:translateY(-50%);font-size:max(10px, calc(12px + var(--md-sys-density-scale, 0) * 0.5px));line-height:max(12px, calc(16px + var(--md-sys-density-scale, 0) * 1px));background-color:transparent;padding:0}:host([density='-1'].md-text-field--filled.md-text-field--floating) .md-text-field__label,:host([density='-2'].md-text-field--filled.md-text-field--floating) .md-text-field__label,:host([density='-3'].md-text-field--filled.md-text-field--floating) .md-text-field__label,:host([density='-4'].md-text-field--filled.md-text-field--floating) .md-text-field__label{font-size:11px;line-height:12px;top:1px}:host([density='-2'].md-text-field--filled.md-text-field--floating) .md-text-field__label{top:-2px;}:host([density='-3'].md-text-field--outlined.md-text-field--floating) .md-text-field__label,:host([density='-4'].md-text-field--outlined.md-text-field--floating) .md-text-field__label{top:-4px}:host(.md-text-field--filled) .md-text-field__input{line-height:max(16px, calc(24px + var(--md-sys-density-scale, 0) * 2px))}:host(.md-text-field--outlined.md-text-field--floating.md-text-field--with-leading) .md-text-field__label{inset-inline-start:calc(-1 * (var(--_icon-size) + var(--md-sys-spacing-gap-lg, 16px)))}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled):not(.md-text-field--error)) .md-text-field__label{color:var(--md-sys-color-on-surface, #1C1B1F)}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled).md-text-field--error) .md-text-field__label{color:var(--md-sys-color-on-error-container, #8C1D18)}:host(.md-text-field--focused) .md-text-field__label{color:var(--_active-indicator-color)}:host(.md-text-field--error) .md-text-field__label{color:var(--_error-color)}.md-text-field__prefix,.md-text-field__suffix{font-size:max(13px, calc(16px + var(--md-sys-density-scale, 0) * 0.5px));line-height:max(18px, calc(24px + var(--md-sys-density-scale, 0) * 1px));color:var(--_supporting-text-color);white-space:nowrap;user-select:none;transition:color var(--md-sys-motion-duration-short2, 100ms) ease}.md-text-field__prefix{margin-inline-end:2px}.md-text-field__suffix{margin-inline-start:2px}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled)) .md-text-field__prefix,:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled)) .md-text-field__suffix{color:var(--md-sys-color-on-surface, #1C1B1F)}.md-text-field__icon{display:flex;align-items:center;justify-content:center;font-size:var(--_icon-size);color:var(--_icon-color);flex-shrink:0;align-self:center;user-select:none;transition:color var(--md-sys-motion-duration-short2, 100ms) ease}.md-text-field__icon ::slotted(*){font-size:var(--_icon-size) !important;width:var(--_icon-size);height:var(--_icon-size);color:inherit}.md-text-field__icon--leading{margin-inline-end:var(--md-sys-spacing-gap-lg, 16px)}.md-text-field__icon--trailing{margin-inline-start:0}.md-text-field__trailing-icon-button{display:flex;align-items:center;flex-shrink:0;align-self:center;margin-inline-start:0}.md-text-field__error-icon+.md-text-field__trailing-icon-button{margin-inline-start:4px}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled)) .md-text-field__icon--leading{color:var(--md-sys-color-on-surface, #1C1B1F)}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled):not(.md-text-field--error)) .md-text-field__icon--trailing{color:var(--md-sys-color-on-surface, #1C1B1F)}:host(.md-text-field--error) .md-text-field__icon--trailing{color:var(--_error-color)}:host(.md-text-field--error) .md-text-field__icon--trailing ::slotted(*){color:inherit}.md-text-field__clear{display:flex;align-items:center;justify-content:center;align-self:center;border:none;background:none;padding:0;margin:0;margin-inline-start:var(--md-sys-spacing-gap-lg, 16px);cursor:pointer;border-radius:50%;width:var(--_icon-size);height:var(--_icon-size);flex-shrink:0;color:var(--_icon-color);transition:color var(--md-sys-motion-duration-short2, 100ms) ease, opacity var(--md-sys-motion-duration-short2, 100ms) ease}.md-text-field__clear ::slotted(*){font-size:var(--_icon-size) !important;width:var(--_icon-size);height:var(--_icon-size);color:inherit}.md-text-field__clear:hover:not(:disabled){color:var(--md-sys-color-on-surface, #1C1B1F)}.md-text-field__clear:focus-visible,.md-text-field__password-toggle:focus-visible,.md-text-field__speech:focus-visible{outline:2px solid var(--md-sys-color-secondary, #625B71);outline-offset:-6px}.md-text-field__clear--disabled{color:var(--md-sys-color-on-surface, #1C1B1F);opacity:0.38;cursor:default;pointer-events:none}:host(.md-text-field--error) .md-text-field__clear:not(:disabled){color:var(--_error-color)}.md-text-field__password-toggle{display:flex;align-items:center;justify-content:center;align-self:center;border:none;background:none;padding:0;margin:0;margin-inline-start:var(--md-sys-spacing-gap-lg, 16px);cursor:pointer;border-radius:50%;width:var(--_icon-size);height:var(--_icon-size);flex-shrink:0;color:var(--_icon-color);transition:color var(--md-sys-motion-duration-short2, 100ms) ease}.md-text-field__password-toggle ::slotted(*){font-size:var(--_icon-size) !important;width:var(--_icon-size);height:var(--_icon-size);color:inherit}.md-text-field__password-toggle:hover:not(:disabled){color:var(--md-sys-color-on-surface, #1C1B1F)}.md-text-field__password-toggle--disabled{color:var(--md-sys-color-on-surface, #1C1B1F);opacity:0.38;cursor:default;pointer-events:none}:host(.md-text-field--error) .md-text-field__password-toggle:not(:disabled){color:var(--_error-color)}.md-text-field__speech{display:flex;align-items:center;justify-content:center;align-self:center;border:none;background:none;padding:0;margin:0;margin-inline-start:var(--md-sys-spacing-gap-lg, 16px);cursor:pointer;border-radius:50%;width:var(--_icon-size);height:var(--_icon-size);flex-shrink:0;color:var(--_icon-color);transition:color var(--md-sys-motion-duration-short2, 100ms) ease}.md-text-field__speech ::slotted(*){font-size:var(--_icon-size) !important;width:var(--_icon-size);height:var(--_icon-size);color:inherit}.md-text-field__speech:hover:not(:disabled){color:var(--md-sys-color-on-surface, #1C1B1F)}.md-text-field__speech--listening{color:var(--_error-color);animation:md-speech-pulse 1.2s ease-in-out infinite}.md-text-field__speech--disabled{color:var(--md-sys-color-on-surface, #1C1B1F);opacity:0.38;cursor:default;pointer-events:none}:host(.md-text-field--error) .md-text-field__speech:not(:disabled):not(.md-text-field__speech--listening){color:var(--_error-color)}@keyframes md-speech-pulse{0%,100%{opacity:1}50%{opacity:0.4}}.md-text-field__error-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;align-self:center;width:var(--_icon-size);height:var(--_icon-size);font-size:var(--_icon-size);line-height:1;margin-inline-start:var(--md-sys-spacing-gap-lg, 16px);color:var(--_error-color)}.md-text-field__error-icon ::slotted(*){font-size:var(--_icon-size) !important;width:var(--_icon-size);height:var(--_icon-size);color:inherit}:host(.md-text-field--multiline:not(.md-text-field--auto-grow)) .md-text-field__error-icon{align-self:flex-start;margin-block-start:16px}:host(.md-text-field--auto-grow) .md-text-field__error-icon{align-self:center}.md-text-field__indicator{position:absolute;inset-block-end:0;inset-inline:0;height:1px;background-color:var(--md-sys-color-on-surface-variant, #49454F);opacity:calc(1 - var(--_filled-pill));transition:height var(--md-sys-motion-duration-short2, 100ms) ease, background-color var(--md-sys-motion-duration-short2, 100ms) ease, opacity var(--md-sys-motion-duration-short2, 100ms) ease}:host(.md-text-field--focused) .md-text-field__indicator{height:var(--md-text-field-focus-border-width, 3px);background-color:var(--_active-indicator-color);transition:height var(--md-sys-motion-duration-short2, 100ms) ease}:host(.md-text-field--error) .md-text-field__indicator{background-color:var(--_error-color)}:host(.md-text-field--error.md-text-field--focused) .md-text-field__indicator{height:var(--md-text-field-focus-border-width, 3px);background-color:var(--_error-color);transition:height var(--md-sys-motion-duration-short2, 100ms) ease;}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled):not(.md-text-field--error)) .md-text-field__indicator{height:1px;background-color:var(--md-sys-color-on-surface, #1C1B1F)}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled).md-text-field--error) .md-text-field__indicator{height:1px;background-color:var(--md-sys-color-on-error-container, #8C1D18)}.md-text-field__fieldset{position:absolute;inset:0;margin:0;max-inline-size:100%;min-inline-size:0;overflow:hidden;padding-inline-start:calc( var(--md-text-field-padding-inline-start, var(--_text-inset)) - 1px - var(--_legend-inline-padding, 4px) );padding-inline-end:calc( var(--md-text-field-padding-inline-end, var(--_text-inset)) - 1px - var(--_legend-inline-padding, 4px) );padding-block:0;border:1px solid var(--_outline-color);border-radius:var(--_container-shape);pointer-events:none;transition:border-color var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1))}:host(.md-text-field--focused) .md-text-field__fieldset{border-color:var(--_active-indicator-color);border-width:var(--md-text-field-focus-border-width, 3px);inset:var(--md-text-field-focus-inset, 0);transition:none}:host(.md-text-field--error) .md-text-field__fieldset{border-color:var(--_error-color)}:host(.md-text-field--error.md-text-field--focused) .md-text-field__fieldset{border-color:var(--_error-color);border-width:var(--md-text-field-focus-border-width, 3px);inset:var(--md-text-field-focus-inset, 0);transition:none;}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled):not(.md-text-field--error)) .md-text-field__fieldset{border-color:var(--md-sys-color-on-surface, #1C1B1F)}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled).md-text-field--error) .md-text-field__fieldset{border-color:var(--md-sys-color-on-error-container, #8C1D18)}.md-text-field__legend{max-inline-size:calc(100% - 16px);overflow:hidden;height:0;padding:0;font-size:max(10px, calc(12px + var(--md-sys-density-scale, 0) * 0.5px));max-width:0;transition:max-width var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), padding-inline var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1));white-space:nowrap}.md-text-field__legend--active{max-width:100%;padding-inline:var(--_legend-inline-padding, 4px);transition:max-width var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), padding-inline var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1))}.md-text-field__legend span{display:inline-block;padding:0;visibility:hidden}.md-text-field__support-row{display:flex;justify-content:space-between;padding:4px 16px 0;gap:16px}.md-text-field__support-text{font-size:max(10px, calc(12px + var(--md-sys-density-scale, 0) * 0.5px));line-height:max(14px, calc(16px + var(--md-sys-density-scale, 0) * 0.5px));color:var(--_supporting-text-color)}.md-text-field__support-text--error{color:var(--_error-color)}.md-text-field__counter{font-size:max(10px, calc(12px + var(--md-sys-density-scale, 0) * 0.5px));line-height:max(14px, calc(16px + var(--md-sys-density-scale, 0) * 0.5px));color:var(--_supporting-text-color);flex-shrink:0}:host(.md-text-field--disabled) .md-text-field__container{cursor:default;pointer-events:none}:host(.md-text-field--disabled.md-text-field--filled) .md-text-field__container{background-color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 4%, transparent)}:host(.md-text-field--disabled) .md-text-field__label{color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 38%, transparent)}:host(.md-text-field--disabled) .md-text-field__input{color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 38%, transparent)}:host(.md-text-field--disabled) .md-text-field__indicator{background-color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 38%, transparent)}:host(.md-text-field--disabled) .md-text-field__fieldset{border-color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 12%, transparent)}:host(.md-text-field--disabled) .md-text-field__icon{color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 38%, transparent)}:host(.md-text-field--disabled) .md-text-field__icon ::slotted(*){color:inherit}:host(.md-text-field--disabled) .md-text-field__support-text,:host(.md-text-field--disabled) .md-text-field__counter{color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 38%, transparent)}:host(.md-text-field--disabled) .md-text-field__prefix,:host(.md-text-field--disabled) .md-text-field__suffix{color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 38%, transparent)}.material-symbols-outlined{font-family:var(--md-sys-icon-font-family, 'Material Symbols Outlined', 'Material Icons');font-weight:normal;font-style:normal;font-size:var(--_icon-size);inline-size:1em;block-size:1em;flex:none;overflow:hidden;text-align:center;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;overflow-wrap:normal;direction:ltr;font-feature-settings:'liga';-webkit-font-smoothing:antialiased}@keyframes md-tf-autofill-start{from{--md-tf-autofill:1}}@keyframes md-tf-autofill-cancel{from{--md-tf-autofill:0}}.md-text-field__input:-webkit-autofill{animation-name:md-tf-autofill-start;box-shadow:0 0 0 1000px var(--_container-color, #E6E1E6) inset;-webkit-text-fill-color:var(--md-text-field-input-color, var(--md-sys-color-on-surface, #1D1B20));caret-color:var(--md-text-field-input-color, var(--md-sys-color-on-surface, #1D1B20))}.md-text-field__input:not(:-webkit-autofill){animation-name:md-tf-autofill-cancel}@media (prefers-reduced-motion: reduce){.md-text-field__label,.md-text-field__indicator,.md-text-field__state-layer,.md-text-field__fieldset,.md-text-field__legend,.md-text-field__legend>span,.md-text-field__container{transition-duration:0.01ms !important}.md-text-field__speech--listening,.md-text-field__speech--listening *{animation:none !important}}@media (forced-colors: active){:host(.md-text-field--filled) .md-text-field__container,:host(.md-text-field--filled.md-text-field--focused) .md-text-field__container,:host(.md-text-field--filled.md-text-field--disabled) .md-text-field__container,:host(.md-text-field--outlined) .md-text-field__container,.md-text-field__container{border:1px solid ButtonText;forced-color-adjust:none;background:Field;color:FieldText}:host(.md-text-field--focused) .md-text-field__indicator{background-color:Highlight}.md-text-field__input{caret-color:FieldText}:host(.md-text-field--filled.md-text-field--disabled) .md-text-field__indicator{background-color:GrayText}:host(.md-text-field--outlined.md-text-field--disabled) .md-text-field__fieldset{border-color:GrayText}:host(.md-text-field--focused) .md-text-field__label,:host(.md-text-field--error) .md-text-field__label,:host(.md-text-field--disabled) .md-text-field__label{color:FieldText}:host(.md-text-field--disabled) .md-text-field__label,:host(.md-text-field--disabled) .md-text-field__input{color:GrayText}:host(.md-text-field--error) .md-text-field__indicator{background-color:LinkText}.md-text-field__input{background:Field;color:FieldText}:host(.md-text-field--focused) .md-text-field__container{outline:2px solid Highlight;outline-offset:1px}:host(.md-text-field--error) .md-text-field__container{border-color:LinkText}:host(.md-text-field--disabled) .md-text-field__container,:host(.md-text-field--disabled) .md-text-field__input{color:GrayText;border-color:GrayText}.md-text-field__support-text,.md-text-field__counter{color:CanvasText}.md-text-field__support-text--error{color:LinkText}.md-text-field__label,.md-text-field__prefix,.md-text-field__suffix,.md-text-field__icon,.md-text-field__clear,.md-text-field__password-toggle,.md-text-field__speech{color:FieldText;forced-color-adjust:none}.md-text-field__error-icon{color:LinkText}.md-text-field__indicator{background-color:FieldText}:host(.md-text-field--outlined) .md-text-field__container{border:none}:host(.md-text-field--outlined) .md-text-field__fieldset{border-color:ButtonText}:host(.md-text-field--outlined.md-text-field--error) .md-text-field__fieldset{border-color:LinkText}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled):not(.md-text-field--error)) .md-text-field__label,:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled).md-text-field--error) .md-text-field__label,:host(:hover) .md-text-field__prefix,:host(:hover) .md-text-field__suffix,:host(:hover) .md-text-field__icon{color:FieldText}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled).md-text-field--error) .md-text-field__label{color:LinkText}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled):not(.md-text-field--error)) .md-text-field__indicator,:host(:hover:not(.md-text-field--focused)) .md-text-field__indicator{background-color:FieldText}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled).md-text-field--error) .md-text-field__indicator{background-color:LinkText}:host(:hover) .md-text-field__clear,:host(:hover) .md-text-field__password-toggle,:host(:hover) .md-text-field__speech{color:FieldText;background:none}}:host(.md-text-field--outlined) .md-text-field__input:-webkit-autofill{box-shadow:0 0 0 1000px var(--md-sys-color-surface, #FEF7FF) inset}.md-text-field__clear,.md-text-field__password-toggle,.md-text-field__speech{min-inline-size:40px;min-block-size:40px;display:inline-flex;align-items:center;justify-content:center;margin-inline:-6px;margin-block:-8px}.md-text-field__clear--empty{visibility:hidden}:host([hidden]){display:none !important}`;const y={numeric:/[^0-9]/g,integer:/[^0-9-]/g,decimal:/[^0-9.\-]/g,alpha:/[^a-zA-Z]/g,alphanumeric:/[^a-zA-Z0-9]/g};const v=t(class t extends e{constructor(t){super();if(t!==false){this.__registerHost()}this.__attachShadow();this.mdInput=i(this,"mdInput",7);this.mdChange=i(this,"mdChange",7);this.mdSearch=i(this,"mdSearch",7);this.mdClear=i(this,"mdClear",7);this.mdPasswordToggle=i(this,"mdPasswordToggle",7);this.mdSpeechResult=i(this,"mdSpeechResult",7);this.mdValidityChange=i(this,"mdValidityChange",5);this.internals=this.attachInternals();this.reserveSupportingSpace=false;this.variant="filled";this.label="";this.value="";this.placeholder="";this.type="text";this.name="";this.pattern="";this.autocomplete="";this.inputMode="";this.enterKeyHint="";this.autoCapitalize="";this.spellcheck=true;this.disabled=false;this.readOnly=false;this.required=false;this.error=false;this.errorText="";this.supportingText="";this.prefixText="";this.suffixText="";this.clearable=false;this.passwordToggle=false;this.showPasswordLabel="Show password";this.hidePasswordLabel="Hide password";this.density=0;this.multiline=false;this.speechToText=false;this.speechLang="";this.restrict="";this.formatOn="blur";this.focusBorderWidth=3;this.appearFocused=false;this.chipsWrap=false;this.debounce=0;this.throttle=0;this.focused=false;this.formDisabled=false;this.autofilled=false;this.hostAriaLabel="";this.passwordVisible=false;this.hasSlottedLeading=false;this.hasSlottedChips=false;this.hasSlottedTrailing=false;this.hasTrailingIconButton=false;this.listening=false;this.displayValue="";this.validationMessage="";this.validation=new m({host:()=>this.el,validity:()=>this.readValidationState(),message:t=>{this.validationMessage=t},focus:()=>this.setFocus()});this.defaultValue="";this.internalWrite=false;this.composing=false;this.warnedLiveFormat=false;this.uid=f("md-text-field");this.throttlePending=false;this.customValidityMessage="";this.inputRole="";this.inputExpanded=false;this.inputAriaAutocomplete="";this.lastValidityKey=null;this.pendingTypeResync=false;this.formatterEpoch=0;this.handleInput=t=>{const e=t.target||this.inputEl;if(!e)return;if(this.composing)return;let i=e.value;let s=e.selectionStart??i.length;let d=this.applyRestrict(i);if(this.restrict&&this.maxLength!=null&&!isNaN(this.maxLength)&&d.length>this.maxLength){const t=Array.from(d);let e="";for(const i of t){if((e+i).length>this.maxLength)break;e+=i}d=e}if(d!==i){const t=this.applyRestrict(i.substring(0,s));i=d;e.value=i;s=Math.min(t.length,i.length);try{e.setSelectionRange(s,s)}catch{}}this.internalWrite=true;try{this.value=this.parser?this.parser(i):i}catch(t){this.value=i}if(this.formatter&&this.effectiveFormatOn==="input"&&this.maxLength!=null){const t=this.value.replace(/[-/\s]/g,"");if(t.length>this.maxLength){const e=Array.from(t);let i="";for(const t of e){if((i+t).length>this.maxLength)break;i+=t}this.value=i}}if(this.formatter&&this.effectiveFormatOn==="input"){try{const t=t=>this.parser?this.parser(t).length:(t.match(/[0-9a-zA-Z]/g)||[]).length;const d=t(i.substring(0,s));const o=this.formatter(this.value);this.displayValue=o;e.value=o;let l=d===0?0:o.length;for(let e=0;d>0&&e<o.length;e++){if(t(o.slice(0,e+1))===d){l=e+1;break}}try{e.setSelectionRange(l,l)}catch{}}catch(t){this.displayValue=this.value;e.value=this.value}}if(!(this.formatter&&this.effectiveFormatOn==="input")){this.displayValue=e.value}this.internalWrite=false;this.mdInput.emit(this.value);this.emitSearch(this.value);if(this.multiline==="auto-grow"){this.autoGrow()}};this.handleCompositionStart=()=>{this.composing=true};this.handleCompositionEnd=t=>{this.composing=false;this.handleInput(t)};this.handleKeyDown=t=>{x(this.internals,t,{disabled:this.isDisabled,composing:this.composing,multiline:!!this.multiline});if(t.key==="Escape"&&!this.composing&&this.clearable==="internal"&&this.value&&!this.readOnly&&!this.isDisabled){t.stopPropagation();t.preventDefault();this.clearValue();this.mdClear.emit()}};this.handleAutofillStart=t=>{if(t.animationName==="md-tf-autofill-start")this.autofilled=true;if(t.animationName==="md-tf-autofill-cancel")this.autofilled=false};this.handleChange=()=>{this.mdChange.emit(this.value);this.el.dispatchEvent(new CustomEvent("change",{bubbles:true}))};this.handleFocus=()=>{this.focused=true;if(this.formatter&&this.effectiveFormatOn==="blur"&&this.inputEl){this.displayValue=this.value;this.inputEl.value=this.value}};this.handleBlur=()=>{this.focused=false;this.composing=false;this.syncDisplayValue();if(this.inputEl){this.inputEl.value=this.displayValue}};this.handleContainerClick=()=>{this.inputEl?.focus()};this.handleClear=t=>{t.stopPropagation();if(this.isDisabled||this.readOnly||!this.value)return;if(this.clearable==="internal"){this.clearValue()}this.mdClear.emit();this.inputEl?.focus()};this.handlePasswordToggle=t=>{t.stopPropagation();if(this.isDisabled)return;if(this.passwordToggle==="internal"){this.passwordVisible=!this.passwordVisible;this.mdPasswordToggle.emit({visible:this.passwordVisible})}else{this.mdPasswordToggle.emit({visible:this.type==="password"})}this.inputEl?.focus()};this.handleSpeechToggle=t=>{t.stopPropagation();if(this.isDisabled||this.readOnly)return;if(this.speechToText==="external"){this.listening=!this.listening;this.mdSpeechResult.emit({transcript:"",listening:this.listening});return}if(this.listening){this.recognition?.stop();return}const e=window.SpeechRecognition||window.webkitSpeechRecognition;if(!e){console.warn("md-text-field: SpeechRecognition API not supported in this browser.");return}const i=new e;i.continuous=false;i.interimResults=true;if(this.speechLang){i.lang=this.speechLang}let s="";const d=this.value;i.onresult=t=>{let e="";for(let i=t.resultIndex;i<t.results.length;i++){const d=t.results[i][0].transcript;if(t.results[i].isFinal){s+=d}else{e+=d}}const i=d&&!d.endsWith(" ")?" ":"";this.internalWrite=true;this.value=d+i+s+e;this.internalWrite=false;if(this.inputEl)this.inputEl.value=this.value;this.mdInput.emit(this.value);this.mdSpeechResult.emit({transcript:s+e,listening:true})};i.onend=()=>{this.listening=false;this.recognition=undefined;const t=d&&!d.endsWith(" ")?" ":"";this.internalWrite=true;this.value=d+t+s;this.internalWrite=false;if(this.inputEl)this.inputEl.value=this.value;this.mdInput.emit(this.value);this.mdChange.emit(this.value);this.mdSpeechResult.emit({transcript:s,listening:false})};i.onerror=t=>{if(t.error!=="aborted"){console.warn("md-text-field: Speech recognition error:",t.error)}this.listening=false;this.recognition=undefined};this.recognition=i;this.listening=true;i.start()}}resetValidationPresentation(){this.validation.reset()}onInvalid(t){this.validation.handleInvalid(t)}readValidationState(){if(this.internals&&"validity"in this.internals)return p(this.internals);return{valid:this.inputEl?.validity.valid??true,validationMessage:this.inputEl?.validationMessage||""}}get hasError(){return this.error||!!this.validationMessage}get supportMessage(){return this.hasError?this.errorText||this.validationMessage||this.supportingText:this.supportingText}get isDisabled(){return this.disabled||this.formDisabled}get effectiveFormatOn(){if(this.formatOn==="input"&&this.formatter&&!this.parser){return"blur"}return this.formatOn}static isInteractive(t){const e=t.tagName.toLowerCase();return["md-icon-button","md-button","button","a","input","select","textarea"].includes(e)||t.hasAttribute("tabindex")}get isFloating(){return this.focused||this.appearFocused||!!this.value||!!this.placeholder||this.autofilled||this.hasSlottedChips}get effectiveRows(){if(this.rows!=null)return this.rows;return this.multiline==="fixed"?4:2}get restrictPattern(){if(!this.restrict)return null;if(y[this.restrict])return y[this.restrict];try{const t=this.restrict.startsWith("[")&&this.restrict.endsWith("]")?this.restrict.slice(1,-1):this.restrict;return new RegExp(`[^${t}]`,"g")}catch{return null}}applyRestrict(t){const e=this.restrictPattern;return e?t.replace(e,""):t}syncTrailingSlotState(e){if(!e)return;this.hasSlottedTrailing=e.assignedNodes().length>0;this.hasTrailingIconButton=e.assignedElements().some((e=>t.isInteractive(e)))}syncHostSlottedIcons(){const e=this.el.querySelector('[slot="leading-icon"]');const i=this.el.querySelector('[slot="trailing-icon"]');this.hasSlottedLeading=!!e;this.hasSlottedTrailing=!!i;this.hasTrailingIconButton=!!i&&t.isInteractive(i)}static normaliseMode(t){return t===true?"internal":t}normaliseModes(){this.clearable=t.normaliseMode(this.clearable);this.passwordToggle=t.normaliseMode(this.passwordToggle);this.speechToText=t.normaliseMode(this.speechToText)}handleModeChange(){this.normaliseModes()}componentWillLoad(){l(this);this.bridgeFormatterProps();this.normaliseModes();if(this.el.hasAttribute("clearable")&&!this.clearable)this.clearable="internal";if(this.el.hasAttribute("password-toggle")&&!this.passwordToggle)this.passwordToggle="internal";if(this.el.hasAttribute("speech-to-text")&&!this.speechToText)this.speechToText="internal";if(this.maxLength==null&&this.el.hasAttribute("maxlength")){this.maxLength=parseInt(this.el.getAttribute("maxlength"),10)}if(this.minLength==null&&this.el.hasAttribute("minlength")){this.minLength=parseInt(this.el.getAttribute("minlength"),10)}if(!this.label&&!this.hostAriaLabel){const t=this.el.getAttribute("aria-label");if(t){this.hostAriaLabel=t;this.el.removeAttribute("aria-label")}}if(!this.multiline&&/[\r\n]/.test(this.value)){this.value=this.value.replace(/[\r\n]+/g,"")}this.defaultValue=this.value;this.syncDisplayValue();this.syncHostSlottedIcons();this.updateFormValue()}updateFormValue(){try{this.internals?.setFormValue(this.value)}catch{}}updateValidity(){const t=this.inputEl;if(!t)return;try{if(this.customValidityMessage){this.internals?.setValidity({customError:true},this.customValidityMessage,t);return}const e=t.validity;if(!e)return;if(this.focused&&t.value!==this.value)return;const i=t.value;let s=false;if(t.value!==this.value){t.value=this.value;s=true;if(t.value!==this.value){t.value=i;this.internals?.setValidity({badInput:true},"Invalid value",t);return}}const d={valueMissing:e.valueMissing,typeMismatch:e.typeMismatch,patternMismatch:e.patternMismatch,tooLong:e.tooLong,tooShort:e.tooShort,rangeUnderflow:e.rangeUnderflow,rangeOverflow:e.rangeOverflow,stepMismatch:e.stepMismatch,badInput:e.badInput};const o=e.valid;const l=t.validationMessage;if(s)t.value=i;if(o){this.internals?.setValidity({})}else{this.internals?.setValidity(d,l||"Invalid value",t)}}catch{}finally{this.validation.refresh();this.emitValidityChange()}}formResetCallback(){this.validation.reset();this.internalWrite=false;this.value=this.defaultValue;this.syncDisplayValue();if(this.inputEl)this.inputEl.value=this.displayValue;this.updateFormValue()}formDisabledCallback(t){if(t)queueMicrotask((()=>this.validation.reset()));queueMicrotask((()=>{this.formDisabled=t}))}async setFocus(){this.inputEl?.focus()}async select(){this.inputEl?.select()}async getInputElement(){return this.inputEl??null}async getValidity(){try{const t=this.internals.validity;return{valid:t.valid,validationMessage:this.internals.validationMessage,flags:{valueMissing:t.valueMissing,typeMismatch:t.typeMismatch,patternMismatch:t.patternMismatch,tooLong:t.tooLong,tooShort:t.tooShort,rangeUnderflow:t.rangeUnderflow,rangeOverflow:t.rangeOverflow,stepMismatch:t.stepMismatch,badInput:t.badInput,customError:t.customError}}}catch{return{valid:true,validationMessage:"",flags:{}}}}async setCustomValidity(t){this.customValidityMessage=t;this.updateValidity()}formStateRestoreCallback(t){if(typeof t==="string"){this.value=t}}emitValidityChange(){const t=p(this.internals);const e=`${t.valid}|${t.validationMessage}`;if(this.lastValidityKey===e)return;const i=this.lastValidityKey!==null;this.lastValidityKey=e;if(i)this.mdValidityChange.emit(t)}async checkValidity(){try{return u((()=>this.internals.checkValidity()))}catch{return u((()=>this.inputEl?.checkValidity()??true))}}async reportValidity(){try{return _((()=>this.internals.reportValidity()))}catch{return _((()=>this.inputEl?.reportValidity()??true))}}componentDidLoad(){try{const t=this.el.shadowRoot;const e=t?.querySelector('slot[name="leading-icon"]');e?.addEventListener("slotchange",(()=>{this.hasSlottedLeading=e.assignedNodes().length>0}));const i=t?.querySelector('slot[name="trailing-icon"]');i?.addEventListener("slotchange",(()=>{this.syncTrailingSlotState(i)}));const s=t?.querySelector('slot[name="chips"]');s?.addEventListener("slotchange",(()=>{this.hasSlottedChips=s.assignedNodes().length>0}));this.hasSlottedLeading=(e?.assignedNodes().length??0)>0;this.hasSlottedChips=(s?.assignedNodes().length??0)>0;this.syncTrailingSlotState(i);if(this.multiline==="auto-grow"){this.autoGrow()}this.syncDisplayValue();this.updateValidity()}finally{r(this)}}onValueChange(){if(this.value==null){this.value="";return}if(!this.internalWrite&&!this.multiline&&/[\r\n]/.test(this.value)){this.value=this.value.replace(/[\r\n]+/g,"");return}if(this.multiline==="auto-grow"){this.autoGrow()}this.updateFormValue();if(!this.focused){this.syncDisplayValue();return}if(!this.internalWrite){this.composing=false;this.syncDisplayValue();const t=this.inputEl;if(t){t.value=this.effectiveFormatOn==="blur"&&this.formatter?this.value:this.displayValue;const e=t.value.length;try{t.setSelectionRange(e,e)}catch{}}this.updateValidity()}}onTypeChange(){this.pendingTypeResync=true}componentDidRender(){a(this);if(this.pendingTypeResync){this.pendingTypeResync=false;const t=this.inputEl;if(t){const e=this.focused&&this.formatter&&this.effectiveFormatOn==="blur"?this.value:this.displayValue;if(t.value!==e){t.value=e}}}this.updateValidity()}bridgeFormatterProps(){const t=this.el===this;["formatter","parser"].forEach((e=>{let i=this[e];Object.defineProperty(this.el,e,{configurable:true,get:()=>t?i:this[e],set:s=>{if(t)i=s;else this[e]=s;if(!this.focused){this.syncDisplayValue()}this.formatterEpoch++}})}))}syncDisplayValue(){if(this.formatter){try{const t=this.formatter(this.value);this.displayValue=typeof t==="string"?t:this.value}catch(t){this.displayValue=this.value}}else{this.displayValue=this.value}}emitSearchDistinct(t){if(t===this.lastEmittedSearch)return;this.lastEmittedSearch=t;this.mdSearch.emit(t)}emitSearch(t){if(this.debounce>0){clearTimeout(this.debounceTimer);this.debounceTimer=setTimeout((()=>this.emitSearchDistinct(t)),this.debounce)}if(this.throttle>0){if(!this.throttleTimer){this.emitSearchDistinct(t);this.throttlePending=false;this.throttleTimer=setTimeout((()=>{this.throttleTimer=undefined;if(this.throttlePending){this.emitSearchDistinct(this.value);this.throttlePending=false}}),this.throttle)}else{this.throttlePending=true}}if(this.debounce<=0&&this.throttle<=0){this.emitSearchDistinct(t)}}autoGrow(){const t=this.inputEl;if(!t)return;t.value=this.value;t.style.height="auto";t.style.height=`${t.scrollHeight}px`}clearValue(){this.internalWrite=true;this.value="";this.internalWrite=false;if(this.inputEl){this.inputEl.value=""}this.displayValue="";this.updateValidity();this.mdInput.emit(this.value);this.mdChange.emit(this.value);this.emitSearch("")}disconnectedCallback(){n(this);this.recognition?.abort();this.recognition=undefined;clearTimeout(this.debounceTimer);clearTimeout(this.throttleTimer);this.debounceTimer=undefined;this.throttleTimer=undefined;this.throttlePending=false}renderInputElement(){const t=this.passwordToggle==="internal"&&this.passwordVisible?"text":this.type;const e=this.focused&&this.formatter&&this.effectiveFormatOn==="blur";const i=e?this.value:this.displayValue;const d=this.supportMessage;const o=[d?`${this.uid}-support`:"",this.maxLength!=null&&!isNaN(this.maxLength)?`${this.uid}-counter`:""].filter(Boolean).join(" ");const l=this.el.getAttribute("aria-haspopup");const r=l==="dialog"||l==="listbox"?l:null;const a=this.inputRole==="combobox"?"combobox":undefined;const n={placeholder:this.isFloating?this.placeholder:"",disabled:this.isDisabled,readOnly:this.readOnly,required:this.required,maxLength:this.formatter&&this.effectiveFormatOn==="input"||this.restrict?undefined:this.maxLength,pattern:this.pattern||undefined,minLength:this.minLength,min:this.min,max:this.max,step:this.step,autocomplete:this.autocomplete||undefined,inputMode:this.inputMode||undefined,enterKeyHint:this.enterKeyHint||undefined,autoCapitalize:this.autoCapitalize||undefined,spellcheck:this.spellcheck,value:i,"aria-label":this.label||this.hostAriaLabel||undefined,"aria-haspopup":r||undefined,role:a,"aria-expanded":a?String(this.inputExpanded):undefined,"aria-autocomplete":a&&this.inputAriaAutocomplete?this.inputAriaAutocomplete:undefined,"aria-describedby":o||undefined,"aria-invalid":this.hasError?"true":undefined,"aria-required":this.required?"true":undefined,id:`${this.uid}-input`,onInvalid:t=>this.validation.handleInputInvalid(t),onInput:this.handleInput,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onAnimationStart:this.handleAutofillStart};if(this.multiline){return s("textarea",{ref:t=>{this.inputEl=t},...n,rows:this.effectiveRows,part:"input",class:{"md-text-field__input":true,"md-text-field__input--textarea":true,"md-text-field__input--auto-grow":this.multiline==="auto-grow","md-text-field__input--fixed":this.multiline==="fixed"}},i)}return s("input",{ref:t=>{this.inputEl=t},class:"md-text-field__input",part:"input",type:t,...n})}render(){const t=this.supportMessage;const e=!!this.clearable;const i=!this.multiline&&!!this.passwordToggle;const o=!!this.speechToText;const l=this.hasSlottedLeading;const r=this.hasSlottedTrailing||e||i||o||this.hasError;const a=!!this.formatter&&this.effectiveFormatOn==="input";const n=a?this.value.replace(/[-/\s]/g,"").length:this.value.length;const c=this.maxLength!=null&&!isNaN(this.maxLength)?`${n}/${this.maxLength}`:"";const h=this.isDisabled||this.readOnly||!this.value;const f=!t&&!c;const m=this.passwordToggle==="internal"?this.passwordVisible:this.type!=="password";const x=m?"visibility_off":"visibility";return s(d,{key:"061691f1e95cbdf682109da550a49745dc391e76",class:{"md-text-field":true,[`md-text-field--${this.variant}`]:true,"md-text-field--focused":this.focused||this.appearFocused,"md-text-field--error":this.hasError,"md-text-field--disabled":this.isDisabled,"md-text-field--with-leading":l,"md-text-field--with-trailing":r,"md-text-field--clearable":e,"md-text-field--with-chips":this.hasSlottedChips,"md-text-field--floating":this.isFloating,"md-text-field--without-label":!this.label,[`md-text-field--density${this.density}`]:this.density!==0,"md-text-field--multiline":!!this.multiline,"md-text-field--auto-grow":this.multiline==="auto-grow","md-text-field--textarea":this.multiline==="fixed","md-text-field--listening":this.listening},style:Number(this.focusBorderWidth)!==3?{"--md-text-field-focus-border-width":`${Number(this.focusBorderWidth)}px`,"--md-text-field-focus-inset":`${-(Number(this.focusBorderWidth)-1)}px`}:undefined},s("div",{key:"50cfc32ef79750387900859ecb1ba31dabd16edc",class:"md-text-field__container",part:"container","data-md-anchor-box":f?"":null,onClick:this.handleContainerClick},s("div",{key:"1c96d847025dd4de029ba59d161511aed603708e",class:"md-text-field__state-layer","aria-hidden":"true"}),s("span",{key:"95991983f4e93402762b282491f9dc092d4ba3a1",class:"md-text-field__icon md-text-field__icon--leading","aria-hidden":"true",style:{display:l?undefined:"none"}},s("slot",{key:"bcd14b98147366760e6b1dfe70cd83ea8a981767",name:"leading-icon"})),s("div",{key:"0b10e6e36080b436838ef888fac691f7b5405733",class:"md-text-field__input-wrap"},this.label&&s("label",{key:"ab36c56adc19dcec97ac895fd23442f4d1927436",class:"md-text-field__label",part:"label",htmlFor:`${this.uid}-input`},this.label),s("div",{key:"4ce284640ecafd6c49a69a0e0e5a183967187b63",class:"md-text-field__input-row"},s("span",{key:"2ea2ba3359529c2e3e289eac5018c66b038eec83",class:"md-text-field__chips",part:"chips",style:{display:this.hasSlottedChips?undefined:"none"}},s("slot",{key:"3ce54f6abb58c243f9215616081e50fd56efa129",name:"chips"})),this.prefixText&&this.isFloating&&s("span",{key:"a50c124331338c72e3b7a4ff8f95ee1e95a9e325",class:"md-text-field__prefix"},this.prefixText),this.renderInputElement(),this.suffixText&&this.isFloating&&s("span",{key:"1fb65e217c1115fd1dd69ccf1bd0825d365030e6",class:"md-text-field__suffix"},this.suffixText))),e&&s("button",{key:"d075b767d4330459f4561feb0d906ffbca9380e6",type:"button",class:{"md-text-field__clear":true,"md-text-field__clear--disabled":h,"md-text-field__clear--empty":!this.value},disabled:h,onClick:this.handleClear,"aria-label":"Clear"},s("slot",{key:"7e7581848e69a7550d432ed3caaf46ae2aa782a7",name:"clear-icon"},s("span",{key:"a5ec604f07538e4d2fa9df04601a7b3944f16472",class:"material-symbols-outlined","aria-hidden":"true"},"cancel"))),i&&s("button",{key:"8ebaec3739e831e910f70d728dfcb96bf54bc874",type:"button",class:{"md-text-field__password-toggle":true,"md-text-field__password-toggle--disabled":this.isDisabled},disabled:this.isDisabled,onClick:this.handlePasswordToggle,"aria-label":m?this.hidePasswordLabel:this.showPasswordLabel,"aria-pressed":m?"true":"false"},s("slot",{key:"2dc8f2a58f0c9780db876ebc85962051d7941140",name:"password-toggle-icon"},s("span",{key:"5160dd18a967452549ea5c1ae7fd7b6484ec0292",class:"material-symbols-outlined","aria-hidden":"true"},x))),o&&s("button",{key:"5b1b3102a5cfa6253a7b7bbb68099380918e738b",type:"button",class:{"md-text-field__speech":true,"md-text-field__speech--listening":this.listening,"md-text-field__speech--disabled":this.isDisabled},disabled:this.isDisabled||this.readOnly,onClick:this.handleSpeechToggle,"aria-label":this.listening?"Stop listening":"Start voice input","aria-pressed":this.listening?"true":"false"},s("slot",{key:"d4c441c36c8a21b391816854ca5adfd80584abc8",name:"speech-icon"},s("span",{key:"f6edcc02a90db906cccb51c4f5be7bcd861660a7",class:"material-symbols-outlined","aria-hidden":"true"},this.listening?"hearing":"mic"))),this.hasError&&s("span",{key:"4587beee2d0d81e64212a3f111acc8ea7102adff",class:"md-text-field__error-icon","aria-hidden":"true"},s("slot",{key:"57b5c81b99a433a01d8d6a52a3b9ad3b6dd5583c",name:"error-icon"},s("span",{key:"e67cc638651eb44f8e8a6cda7601ecafb45cc41b",class:"material-symbols-outlined",style:{fontVariationSettings:"'FILL' 1"}},"error"))),s("span",{key:"d13de105c1aa0794993fef23364e96698496fc19",class:{"md-text-field__icon":!this.hasTrailingIconButton,"md-text-field__icon--trailing":!this.hasTrailingIconButton,"md-text-field__trailing-icon-button":this.hasTrailingIconButton},"aria-hidden":this.hasTrailingIconButton?null:"true",style:{display:this.hasSlottedTrailing?undefined:"none"}},s("slot",{key:"ef3741ed55c66d513ae07a7f00c494f3d4fa693c",name:"trailing-icon"})),this.variant==="filled"&&s("div",{key:"21baa5358c13d3ac9078fc8010eb0ed184b39bbd",class:"md-text-field__indicator"}),this.variant==="outlined"&&s("fieldset",{key:"28488690280273565c9b9332684ed3484fa5dfac",class:"md-text-field__fieldset"},s("legend",{key:"95e0464500545b0c03825acaeb244ccf1b612a39",class:{"md-text-field__legend":true,"md-text-field__legend--active":this.isFloating&&!!this.label}},s("span",{key:"32941710d1069adb10a37dfa0f8dddd235e75abd"},this.label)))),(t||c||this.reserveSupportingSpace)&&s("div",{key:"48092261149f38adb26b7cf39701e64c071d629b",class:"md-text-field__support-row"},s("span",{key:"ff9400bd72fe6352da130828f3c849323bde2810",id:`${this.uid}-support`,part:"supporting-text",role:this.hasError?"alert":undefined,class:{"md-text-field__support-text":true,"md-text-field__support-text--error":this.hasError}},t||(this.reserveSupportingSpace?"":"")),c&&s("span",{key:"57327d058b0c4d965af1c9c95b1c767fd1229cec",id:`${this.uid}-counter`,part:"counter",class:"md-text-field__counter"},c)))}connectedCallback(){c(this)}componentShouldUpdate(){h(this);return true}static get delegatesFocus(){return true}static get formAssociated(){return true}get el(){return this}static get watchers(){return{name:[{resetValidationPresentation:0}],clearable:[{handleModeChange:0}],passwordToggle:[{handleModeChange:0}],speechToText:[{handleModeChange:0}],value:[{onValueChange:0}],type:[{onTypeChange:0}]}}static get style(){return g()+b()}},[337,"md-text-field",{reserveSupportingSpace:[4,"reserve-supporting-space"],variant:[1],label:[1],value:[1025],placeholder:[1],type:[1],name:[513],pattern:[1],minLength:[1026,"min-length"],min:[8],max:[8],step:[8],autocomplete:[1],inputMode:[1,"inputmode"],enterKeyHint:[1,"enterkeyhint"],autoCapitalize:[1,"autocapitalize"],spellcheck:[4],disabled:[516],readOnly:[4,"readonly"],required:[4],error:[4],errorText:[1,"error-text"],supportingText:[1,"supporting-text"],prefixText:[1,"prefix-text"],suffixText:[1,"suffix-text"],maxLength:[1026,"max-length"],clearable:[1032],passwordToggle:[1032,"password-toggle"],showPasswordLabel:[1,"show-password-label"],hidePasswordLabel:[1,"hide-password-label"],density:[514],multiline:[8],rows:[2],speechToText:[1032,"speech-to-text"],speechLang:[1,"speech-lang"],restrict:[1],formatter:[1040],parser:[1040],formatOn:[1,"format-on"],focusBorderWidth:[514,"focus-border-width"],appearFocused:[516,"appear-focused"],chipsWrap:[516,"chips-wrap"],debounce:[514],throttle:[514],inputRole:[1,"input-role"],inputExpanded:[4,"input-expanded"],inputAriaAutocomplete:[1,"input-aria-autocomplete"],focused:[32],formDisabled:[32],autofilled:[32],hostAriaLabel:[32],passwordVisible:[32],hasSlottedLeading:[32],hasSlottedChips:[32],hasSlottedTrailing:[32],hasTrailingIconButton:[32],listening:[32],displayValue:[32],validationMessage:[32],formatterEpoch:[32],setFocus:[64],select:[64],getInputElement:[64],getValidity:[64],setCustomValidity:[64],checkValidity:[64],reportValidity:[64]},[[0,"invalid","onInvalid"]],{name:[{resetValidationPresentation:0}],clearable:[{handleModeChange:0}],passwordToggle:[{handleModeChange:0}],speechToText:[{handleModeChange:0}],value:[{onValueChange:0}],type:[{onTypeChange:0}]}]);function w(){if(typeof customElements==="undefined"){return}const t=["md-text-field"];t.forEach((t=>{switch(t){case"md-text-field":if(!customElements.get(o(t))){customElements.define(o(t),v)}break}}))}w();export{v as M,w as d};
|
|
2
|
+
//# sourceMappingURL=p-C9XZMCL-.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e="mdPieSliceChange";const n="mdSparklinePointChange";const t={label:"label",value:"value",color:"color",selected:"selected",radius:"radius",sliceId:"id",sliceHidden:"hidden",childSlices:"children"};const r=(e,n)=>Array.from(e.children).filter((e=>e.localName===n&&!e.getAttribute("slot")));function i(e){if(typeof e==="string"){try{e=JSON.parse(e)}catch{return undefined}}return e===null||Array.isArray(e)?e:undefined}function u(e){const n=r(e,"md-pie-slice");if(!n.length)return undefined;return n.map((e=>{const n=e;const r={label:"",value:0};for(const[e,u]of Object.entries(t)){const t=e==="childSlices"?i(n[e]):n[e];if(t!==undefined)r[u]=t}const s=u(e);if(s!==undefined)r.children=s;return r}))}function s(e){if(typeof e==="string"){const n=e.trim();if(!n||n==="null")return null;e=Number(n)}return typeof e==="number"&&Number.isFinite(e)?e:null}function l(e){if(e==null)return undefined;if(typeof e!=="string")return e;try{const n=JSON.parse(e);if(!n||typeof n!=="object"||Array.isArray(n))return e;const t=n;if(Object.keys(t).length!==2||!Object.prototype.hasOwnProperty.call(t,"$awcPointLabel")||!Object.prototype.hasOwnProperty.call(t,"value"))return e;if(t.$awcPointLabel==="string"&&typeof t.value==="string")return t.value;if(t.$awcPointLabel==="number"&&typeof t.value==="number"&&Number.isFinite(t.value))return t.value;if(t.$awcPointLabel==="null"&&t.value===null)return null;if(t.$awcPointLabel==="date"&&typeof t.value==="string"){const e=new Date(t.value);if(Number.isFinite(e.getTime())&&e.toISOString()===t.value)return e}}catch{}return e}function f(e){const n=r(e,"md-sparkline-point");if(!n.length)return undefined;return{data:n.map((e=>s(e.value))),labels:n.map((e=>e.label))}}function c(e,n){if(!e||!e.labels.some((e=>e!==undefined)))return n;return e.labels.map(((e,t)=>e!==undefined?e:n?.[t]!==undefined?n[t]:t))}function o(e,n,t,r,i,u){let s=true;let l=false;const f=t=>{if(t===e)return true;while(t&&t!==e){if(t.localName!==n||t.getAttribute("slot"))return false;t=t.parentElement;if(!r)return t===e}return t===e};const c=()=>{if(!s||l)return;l=true;queueMicrotask((()=>{l=false;if(s)u(i(e))}))};const o=e=>{const t=e.target;if(t?.localName===n&&f(t))c()};const d=typeof MutationObserver==="undefined"?undefined:new MutationObserver((t=>{if(t.some((t=>t.type==="childList"?t.target===e||r&&t.target.nodeType===1&&f(t.target):t.target.nodeType===1&&t.target.localName===n&&(t.target.parentElement===e||r&&f(t.target.parentElement)))))c()}));d?.observe(e,{childList:true,attributes:true,attributeFilter:["slot"],subtree:true});e.addEventListener(t,o);u(i(e));return()=>{s=false;d?.disconnect();e.removeEventListener(t,o)}}const d=(n,t)=>o(n,"md-pie-slice",e,true,u,t);const a=(e,t)=>o(e,"md-sparkline-point",n,false,f,t);export{e as P,n as S,c as a,a as b,s as c,l as d,d as o,i as r};
|
|
2
|
+
//# sourceMappingURL=p-CGLhTKkQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["PIE_SLICE_CHANGE","SPARKLINE_POINT_CHANGE","PIE_SLICE_FIELDS","label","value","color","selected","radius","sliceId","sliceHidden","childSlices","directChildren","host","tag","Array","from","children","filter","child","localName","getAttribute","readPieChildren","JSON","parse","undefined","isArray","readPieSlices","length","map","props","datum","prop","field","Object","entries","nested","readSparklineValue","text","trim","Number","isFinite","readSparklineLabel","envelope","record","keys","prototype","hasOwnProperty","call","$awcPointLabel","date","Date","getTime","toISOString","readSparklinePoints","data","labels","resolveSparklineLabels","points","some","index","observeData","event","recursive","read","changed","active","queued","belongs","node","parentElement","refresh","queueMicrotask","onChange","notification","target","observer","MutationObserver","records","type","nodeType","observe","childList","attributes","attributeFilter","subtree","addEventListener","disconnect","removeEventListener","observePieSlices","observeSparklinePoints"],"sources":["../sources/cf81dec71be5e02fb010aeb51bd2dab53f9abb5d4f38bd4e3fcf4fca7713a0fc/data-elements.ts"],"mappings":"AAIO,MAAMA,EAAmB,mBACzB,MAAMC,EAAyB,yBAC/B,MAAMC,EAAmB,CAC9BC,MAAO,QAASC,MAAO,QAASC,MAAO,QAASC,SAAU,WAAYC,OAAQ,SAC9EC,QAAS,KAAMC,YAAa,SAAUC,YAAa,YAGrD,MAAMC,EAAiB,CAACC,EAAeC,IAAgBC,MAAMC,KAAKH,EAAKI,UACpEC,QAAOC,GAASA,EAAMC,YAAcN,IAAQK,EAAME,aAAa,UAG5D,SAAUC,EAAgBjB,GAC9B,UAAWA,IAAU,SAAU,CAC7B,IAAMA,EAAQkB,KAAKC,MAAMnB,E,CAAU,MAAQ,OAAOoB,S,EAEpD,OAAOpB,IAAU,MAAQU,MAAMW,QAAQrB,GAASA,EAAQoB,SAC1D,CAGM,SAAUE,EAAcd,GAC5B,MAAMI,EAAWL,EAAeC,EAAM,gBACtC,IAAKI,EAASW,OAAQ,OAAOH,UAC7B,OAAOR,EAASY,KAAIV,IAClB,MAAMW,EAAQX,EACd,MAAMY,EAAiC,CAAE3B,MAAO,GAAIC,MAAO,GAC3D,IAAK,MAAO2B,EAAMC,KAAUC,OAAOC,QAAQhC,GAAmB,CAC5D,MAAME,EAAQ2B,IAAS,cAAgBV,EAAgBQ,EAAME,IAASF,EAAME,GAC5E,GAAI3B,IAAUoB,UAAWM,EAAME,GAAS5B,C,CAE1C,MAAM+B,EAAST,EAAcR,GAC7B,GAAIiB,IAAWX,UAAWM,EAAMd,SAAWmB,EAC3C,OAAOL,CAA8B,GAEzC,CAGM,SAAUM,EAAmBhC,GACjC,UAAWA,IAAU,SAAU,CAC7B,MAAMiC,EAAOjC,EAAMkC,OACnB,IAAKD,GAAQA,IAAS,OAAQ,OAAO,KACrCjC,EAAQmC,OAAOF,E,CAEjB,cAAcjC,IAAU,UAAYmC,OAAOC,SAASpC,GAASA,EAAQ,IACvE,CAGM,SAAUqC,EAAmBrC,GACjC,GAAIA,GAAS,KAAM,OAAOoB,UAC1B,UAAWpB,IAAU,SAAU,OAAOA,EACtC,IACE,MAAMsC,EAAoBpB,KAAKC,MAAMnB,GACrC,IAAKsC,UAAmBA,IAAa,UAAY5B,MAAMW,QAAQiB,GAAW,OAAOtC,EACjF,MAAMuC,EAASD,EACf,GAAIT,OAAOW,KAAKD,GAAQhB,SAAW,IAAMM,OAAOY,UAAUC,eAAeC,KAAKJ,EAAQ,oBAAsBV,OAAOY,UAAUC,eAAeC,KAAKJ,EAAQ,SAAU,OAAOvC,EAC1K,GAAIuC,EAAOK,iBAAmB,iBAAmBL,EAAOvC,QAAU,SAAU,OAAOuC,EAAOvC,MAC1F,GAAIuC,EAAOK,iBAAmB,iBAAmBL,EAAOvC,QAAU,UAAYmC,OAAOC,SAASG,EAAOvC,OAAQ,OAAOuC,EAAOvC,MAC3H,GAAIuC,EAAOK,iBAAmB,QAAUL,EAAOvC,QAAU,KAAM,OAAO,KACtE,GAAIuC,EAAOK,iBAAmB,eAAiBL,EAAOvC,QAAU,SAAU,CACxE,MAAM6C,EAAO,IAAIC,KAAKP,EAAOvC,OAC7B,GAAImC,OAAOC,SAASS,EAAKE,YAAcF,EAAKG,gBAAkBT,EAAOvC,MAAO,OAAO6C,C,EAErF,MAAM,CACR,OAAO7C,CACT,CAMM,SAAUiD,EAAoBzC,GAClC,MAAMI,EAAWL,EAAeC,EAAM,sBACtC,IAAKI,EAASW,OAAQ,OAAOH,UAC7B,MAAO,CACL8B,KAAMtC,EAASY,KAAIV,GAASkB,EAAoBlB,EAAyCd,SACzFmD,OAAQvC,EAASY,KAAIV,GAAUA,EAAkDf,QAErF,CAGM,SAAUqD,EAAuBC,EAAqCF,GAC1E,IAAKE,IAAWA,EAAOF,OAAOG,MAAKvD,GAASA,IAAUqB,YAAY,OAAO+B,EACzE,OAAOE,EAAOF,OAAO3B,KAAI,CAACzB,EAAOwD,IAAUxD,IAAUqB,UAAYrB,EAAQoD,IAASI,KAAWnC,UAAY+B,EAAOI,GAASA,GAC3H,CAGA,SAASC,EAAehD,EAAmBC,EAAagD,EAAeC,EAAoBC,EAAgCC,GACzH,IAAIC,EAAS,KACb,IAAIC,EAAS,MACb,MAAMC,EAAWC,IACf,GAAIA,IAASxD,EAAM,OAAO,KAC1B,MAAOwD,GAAQA,IAASxD,EAAM,CAC5B,GAAIwD,EAAKjD,YAAcN,GAAOuD,EAAKhD,aAAa,QAAS,OAAO,MAChEgD,EAAOA,EAAKC,cACZ,IAAKP,EAAW,OAAOM,IAASxD,C,CAElC,OAAOwD,IAASxD,CAAI,EAEtB,MAAM0D,EAAU,KACd,IAAKL,GAAUC,EAAQ,OACvBA,EAAS,KACTK,gBAAe,KAAQL,EAAS,MAAO,GAAID,EAAQD,EAAQD,EAAKnD,GAAM,GAAI,EAE5E,MAAM4D,EAAYC,IAChB,MAAMC,EAASD,EAAaC,OAC5B,GAAIA,GAAQvD,YAAcN,GAAOsD,EAAQO,GAASJ,GAAS,EAE7D,MAAMK,SAAkBC,mBAAqB,YAAcpD,UAAY,IAAIoD,kBAAiBC,IAC1F,GAAIA,EAAQnB,MAAKf,GAAUA,EAAOmC,OAAS,YACvCnC,EAAO+B,SAAW9D,GAASkD,GAAanB,EAAO+B,OAAOK,WAAa,GAAKZ,EAAQxB,EAAO+B,QACvF/B,EAAO+B,OAAOK,WAAa,GAAMpC,EAAO+B,OAAmBvD,YAAcN,IAAQ8B,EAAO+B,OAAOL,gBAAkBzD,GAASkD,GAAaK,EAAQxB,EAAO+B,OAAOL,kBAAmBC,GAAS,IAE/LK,GAAUK,QAAQpE,EAAM,CAAEqE,UAAW,KAAMC,WAAY,KAAMC,gBAAiB,CAAC,QAASC,QAAS,OACjGxE,EAAKyE,iBAAiBxB,EAAOW,GAC7BR,EAAQD,EAAKnD,IACb,MAAO,KAAQqD,EAAS,MAAOU,GAAUW,aAAc1E,EAAK2E,oBAAoB1B,EAAOW,EAAS,CAClG,CAEO,MAAMgB,EAAmB,CAAC5E,EAAmBoD,IAClDJ,EAAYhD,EAAM,eAAgBZ,EAAkB,KAAM0B,EAAesC,GACpE,MAAMyB,EAAyB,CAAC7E,EAAmBoD,IACxDJ,EAAYhD,EAAM,qBAAsBX,EAAwB,MAAOoD,EAAqBW,U","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as t,H as s,c as i,h as e,d as o,t as n}from"./p-B37-0L5e.js";import{b as r,c as a,r as h,d as l,i as p,p as c}from"./p-B_K-3G0S.js";import{c as d}from"./p-mwCGMdmr.js";const m=()=>`:host(:not([data-awc-motion-ready])),:host(:not([data-awc-motion-ready]))::before,:host(:not([data-awc-motion-ready]))::after,:host(:not([data-awc-motion-ready])) *,:host(:not([data-awc-motion-ready])) *::before,:host(:not([data-awc-motion-ready])) *::after{transition-property:none !important}`;const u=()=>`:host{display:inline-block;position:relative}.md-tooltip__popup{position:fixed;z-index:var(--md-sys-z-index-tooltip, 1500);pointer-events:none;box-sizing:border-box;width:max-content;opacity:0;visibility:hidden;transform:scale(0.9);transition:opacity var(--md-sys-motion-duration-short2, 100ms) var(--md-sys-motion-easing-standard, ease), transform var(--md-sys-motion-duration-short2, 100ms) var(--md-sys-motion-easing-standard, ease), visibility 0ms linear var(--md-sys-motion-duration-short2, 100ms)}.md-tooltip__popup--visible{opacity:1;visibility:visible;transform:scale(1);pointer-events:auto;transition:opacity var(--md-sys-motion-duration-short2, 100ms) var(--md-sys-motion-easing-standard, ease), transform var(--md-sys-motion-duration-short2, 100ms) var(--md-sys-motion-easing-standard, ease), visibility 0ms linear 0ms}.md-tooltip__popup--plain{--_container-color:var(--md-tooltip-plain-container-color, var(--md-sys-color-inverse-surface, #313033));--_text-color:var(--md-tooltip-plain-text-color, var(--md-sys-color-inverse-on-surface, #F4EFF4));--_shape:var(--md-tooltip-container-shape, var(--md-sys-shape-corner-extra-small, 4px));background-color:var(--_container-color);color:var(--_text-color);border-radius:var(--_shape);padding-block:var(--md-sys-spacing-inset-xs, 4px);padding-inline:var(--md-sys-spacing-inset-sm, 8px);min-block-size:max(20px, calc(24px + var(--md-sys-density-scale, 0) * 1px));max-inline-size:min(var(--md-tooltip-plain-max-inline-size, 280px), calc(100vw - 16px));font-family:var(--md-sys-typescale-body-small-font-family, Roboto, sans-serif);font-size:max(10px, calc(12px + var(--md-sys-density-scale, 0) * 0.5px));font-weight:var(--md-sys-typescale-body-small-font-weight, 400);line-height:max(14px, calc(16px + var(--md-sys-density-scale, 0) * 0.5px));letter-spacing:var(--md-sys-typescale-body-small-letter-spacing, 0.4px);white-space:normal;display:flex;align-items:center}.md-tooltip__text{overflow-wrap:anywhere}.md-tooltip__popup--rich{--_container-color:var(--md-tooltip-rich-container-color, var(--md-sys-color-surface-container, #F3EDF7));--_subhead-color:var(--md-tooltip-rich-subhead-color, var(--md-sys-color-on-surface-variant, #49454F));--_text-color:var(--md-tooltip-rich-text-color, var(--md-sys-color-on-surface-variant, #49454F));--_action-color:var(--md-tooltip-rich-action-color, var(--md-sys-color-primary, #6750A4));--_shape:var(--md-tooltip-rich-container-shape, var(--md-sys-shape-corner-medium, 12px));background-color:var(--_container-color);color:var(--_text-color);border-radius:var(--_shape);padding-block-start:var(--md-sys-spacing-inset-md, 12px);padding-block-end:var(--md-sys-spacing-inset-sm, 8px);padding-inline:var(--md-sys-spacing-inset-lg, 16px);min-inline-size:var(--md-tooltip-rich-min-inline-size, 120px);max-inline-size:min(var(--md-tooltip-rich-max-inline-size, 320px), calc(100vw - 16px));white-space:normal;box-shadow:var(--md-sys-elevation-2, 0 1px 3px 1px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.3))}.md-tooltip__subhead{font-family:var(--md-sys-typescale-title-small-font-family, Roboto, sans-serif);font-size:max(11px, calc(14px + var(--md-sys-density-scale, 0) * 0.5px));font-weight:var(--md-sys-typescale-title-small-font-weight, 500);line-height:max(16px, calc(20px + var(--md-sys-density-scale, 0) * 1px));letter-spacing:var(--md-sys-typescale-title-small-letter-spacing, 0.1px);color:var(--_subhead-color);margin-block-end:var(--md-sys-spacing-gap-xs, 4px)}.md-tooltip__supporting-text{font-family:var(--md-sys-typescale-body-medium-font-family, Roboto, sans-serif);font-size:max(11px, calc(14px + var(--md-sys-density-scale, 0) * 0.5px));font-weight:var(--md-sys-typescale-body-medium-font-weight, 400);line-height:max(16px, calc(20px + var(--md-sys-density-scale, 0) * 1px));letter-spacing:var(--md-sys-typescale-body-medium-letter-spacing, 0.25px);color:var(--_text-color)}.md-tooltip__actions{display:flex;gap:var(--md-sys-spacing-gap-sm, 8px);justify-content:flex-end;margin-block-start:var(--md-sys-spacing-gap-md, 12px);color:var(--_action-color)}.md-tooltip__actions--empty{display:none}::slotted([slot="actions"]){color:var(--_action-color)}.md-tooltip__popup--top,.md-tooltip__popup--top-start,.md-tooltip__popup--top-end{transform-origin:bottom center}.md-tooltip__popup--bottom,.md-tooltip__popup--bottom-start,.md-tooltip__popup--bottom-end{transform-origin:top center}.md-tooltip__popup--left,.md-tooltip__popup--left-start,.md-tooltip__popup--left-end{transform-origin:center right}.md-tooltip__popup--right,.md-tooltip__popup--right-start,.md-tooltip__popup--right-end{transform-origin:center left}:host-context([dir="rtl"]) .md-tooltip__actions{justify-content:flex-start}@media (forced-colors: active){.md-tooltip__popup{border:1px solid CanvasText}}@media (prefers-reduced-motion: reduce){.md-tooltip__popup,.md-tooltip__popup--visible{transition:none;transform:none}}:host([density='-1']){--md-sys-density-scale:-1}:host([density='-2']){--md-sys-density-scale:-2}:host([density='-3']){--md-sys-density-scale:-3}:host([density='-4']){--md-sys-density-scale:-4}:host([hidden]){display:none !important}`;const f=8;const y=t(class t extends s{constructor(t){super();if(t!==false){this.__registerHost()}this.__attachShadow();this.mdOpen=i(this,"mdOpen",1);this.mdClose=i(this,"mdClose",1);this.text="";this.subhead="";this.variant="plain";this.position="top";this.autoPosition=true;this.offset=8;this.crossOffset=0;this.open=false;this.showDelay=500;this.hideDelay=200;this.disabled=false;this.density=0;this.isVisible=false;this.resolvedPlacement="top";this.hasSlottedActions=false;this.hasSlottedSubhead=false;this.tooltipId=d("md-tooltip");this.scrollListenerBound=false;this.escapeListenerBound=false;this.hostHoverBound=false;this.hasLoaded=false;this.suppressed=false;this.onTriggerSlotChange=()=>{const t=this.triggerSlot?.assignedElements();if(t&&t.length>0)this.bindTrigger(t[0])};this.handleTriggerEnter=()=>this.scheduleShow();this.handleTriggerLeave=()=>{this.suppressed=false;this.scheduleHide()};this.handleTriggerFocus=()=>this.scheduleShow();this.handleTriggerBlur=t=>{if(t.relatedTarget&&this.el.contains(t.relatedTarget))return;this.suppressed=false;this.scheduleHide()};this.handleHostFocusOut=t=>{if(this.variant!=="rich"||!this.isVisible)return;if(t.relatedTarget&&this.el.contains(t.relatedTarget))return;this.scheduleHide()};this.handlePopupEnter=()=>{this.clearTimers()};this.handlePopupLeave=()=>{this.scheduleHide()};this.handleGlobalEscape=t=>{if(t.key!=="Escape"||!this.isVisible)return;t.preventDefault();this.clearTimers();this.suppressed=true;const s=this.getDeepActiveElement();const i=!!s&&(this.el.contains(s)||s===this.triggerEl);this.open=false;if(i&&this.triggerEl)this.triggerEl.focus()};this.lastGeom={at:0,al:0,aw:0,ah:0,pw:0,ph:0,vw:0,vh:0,ex:0,ey:0};this.watchdogFrame=0;this.handleScroll=()=>{if(this.isVisible)this.updatePosition()}}componentWillLoad(){r(this);this.syncSlotFlags();if(this.open&&!this.disabled)this.isVisible=true}componentDidLoad(){try{this.hasLoaded=true;this.setup();if(this.open)this.showTooltip()}finally{a(this)}}connectedCallback(){h(this);if(!this.hasLoaded)return;this.setup();if(this.isVisible&&!this.disabled){this.addScrollListener();this.addEscapeListener();this.schedulePositionUpdate();this.startPositionWatchdog()}else if(this.open&&!this.isVisible&&!this.disabled){this.showTooltip()}}setup(){const t=this.el.shadowRoot;if(!t)return;this.triggerSlot=t.querySelector("slot:not([name])")??undefined;this.triggerSlot?.addEventListener("slotchange",this.onTriggerSlotChange);this.el.addEventListener("focusout",this.handleHostFocusOut);this.syncSlotFlags();if(typeof MutationObserver!=="undefined"&&!this.slotObserver){this.slotObserver=new MutationObserver((()=>{this.syncSlotFlags();if(this.triggerEl)this.updateTriggerAria(this.triggerEl)}));this.slotObserver.observe(this.el,{childList:true,subtree:true,characterData:true})}const s=this.triggerSlot?.assignedElements()[0];if(s)this.bindTrigger(s)}syncSlotFlags(){const t=Array.from(this.el.children);this.hasSlottedActions=t.some((t=>t.getAttribute("slot")==="actions"));this.hasSlottedSubhead=t.some((t=>t.getAttribute("slot")==="subhead"))}disconnectedCallback(){l(this);this.clearTimers();this.stopPositionWatchdog();this.unbindTrigger();this.removeScrollListener();this.removeEscapeListener();this.el.removeEventListener("focusout",this.handleHostFocusOut);this.triggerSlot?.removeEventListener("slotchange",this.onTriggerSlotChange);this.triggerSlot=undefined;this.slotObserver?.disconnect();this.slotObserver=undefined}onOpenChange(t){if(t){this.showTooltip()}else{this.hideTooltip()}}onDisabledChange(t){if(t){this.clearTimers();if(this.open)this.open=false;this.triggerEl?.removeAttribute("aria-description")}else if(this.triggerEl){this.updateTriggerAria(this.triggerEl)}}onDescriptionChange(){if(this.triggerEl)this.updateTriggerAria(this.triggerEl)}async show(){if(this.disabled)return;this.open=true}async hide(){this.open=false}bindTrigger(t){this.unbindTrigger();this.triggerEl=t;if(this.useHostHover(t)){this.el.addEventListener("mouseenter",this.handleTriggerEnter);this.el.addEventListener("mouseleave",this.handleTriggerLeave);this.hostHoverBound=true}else{t.addEventListener("mouseenter",this.handleTriggerEnter);t.addEventListener("mouseleave",this.handleTriggerLeave)}t.addEventListener("focus",this.handleTriggerFocus);t.addEventListener("blur",this.handleTriggerBlur);this.updateTriggerAria(t)}unbindTrigger(){if(this.hostHoverBound){this.el.removeEventListener("mouseenter",this.handleTriggerEnter);this.el.removeEventListener("mouseleave",this.handleTriggerLeave);this.hostHoverBound=false}else if(this.triggerEl){this.triggerEl.removeEventListener("mouseenter",this.handleTriggerEnter);this.triggerEl.removeEventListener("mouseleave",this.handleTriggerLeave)}if(!this.triggerEl)return;this.triggerEl.removeEventListener("focus",this.handleTriggerFocus);this.triggerEl.removeEventListener("blur",this.handleTriggerBlur);this.triggerEl.removeAttribute("aria-description");this.triggerEl=undefined}useHostHover(t){const s=t.tagName.toLowerCase();if(s==="button"||s==="a"||s==="input"||s==="select"||s==="textarea"){return false}if(t.hasAttribute("tabindex")&&t.tabIndex>=0)return false;if(s.startsWith("md-"))return false;return true}updateTriggerAria(t){if(this.disabled){t.removeAttribute("aria-description");return}const s=this.computeDescription();if(s){t.setAttribute("aria-description",s)}else{t.removeAttribute("aria-description")}}computeDescription(){if(this.text)return this.text;if(this.subhead)return this.subhead;const t=[];for(const s of Array.from(this.el.children)){const i=s.getAttribute("slot");if(i==="subhead"||i==="content"){const i=(s.textContent||"").trim();if(i)t.push(i)}}return t.join(". ")}scheduleShow(){if(this.disabled||this.suppressed)return;this.clearTimers();this.showTimer=setTimeout((()=>{this.open=true}),this.showDelay)}scheduleHide(){this.clearTimers();this.hideTimer=setTimeout((()=>{this.open=false}),this.hideDelay)}getDeepActiveElement(){if(typeof document==="undefined")return null;let t=document.activeElement;while(t&&t.shadowRoot&&t.shadowRoot.activeElement)t=t.shadowRoot.activeElement;return t}addEscapeListener(){if(!this.escapeListenerBound){document.addEventListener("keydown",this.handleGlobalEscape,true);this.escapeListenerBound=true}}removeEscapeListener(){if(this.escapeListenerBound){document.removeEventListener("keydown",this.handleGlobalEscape,true);this.escapeListenerBound=false}}showTooltip(){if(this.disabled)return;if(!this.el.isConnected)return;this.isVisible=true;this.mdOpen.emit();this.addScrollListener();this.addEscapeListener();this.schedulePositionUpdate();this.startPositionWatchdog()}schedulePositionUpdate(t=0){requestAnimationFrame((()=>{const s=this.updatePosition();if(!s&&t<3){this.schedulePositionUpdate(t+1)}}))}startPositionWatchdog(){if(typeof requestAnimationFrame!=="function")return;this.stopPositionWatchdog();const t=()=>{if(!this.isVisible||!this.el.isConnected){this.watchdogFrame=0;return}const s=this.popupEl;if(s&&this.triggerEl){const t=s.offsetWidth;const i=s.offsetHeight;if(t!==0||i!==0){const e=this.getAnchorRect();const o=s.getBoundingClientRect();const n=this.lastGeom;const r=e.top!==n.at||e.left!==n.al||e.width!==n.aw||e.height!==n.ah||t!==n.pw||i!==n.ph||Math.abs(o.top-n.ey)>.5||Math.abs(o.left-n.ex)>.5||window.innerWidth!==n.vw||window.innerHeight!==n.vh;if(r)this.updatePosition()}}this.watchdogFrame=requestAnimationFrame(t)};this.watchdogFrame=requestAnimationFrame(t)}stopPositionWatchdog(){if(this.watchdogFrame&&typeof cancelAnimationFrame==="function"){cancelAnimationFrame(this.watchdogFrame)}this.watchdogFrame=0}hideTooltip(){if(!this.isVisible)return;this.isVisible=false;this.mdClose.emit();this.removeScrollListener();this.removeEscapeListener();this.stopPositionWatchdog()}clearTimers(){if(this.showTimer!=null){clearTimeout(this.showTimer);this.showTimer=undefined}if(this.hideTimer!=null){clearTimeout(this.hideTimer);this.hideTimer=undefined}}addScrollListener(){if(!this.scrollListenerBound){window.addEventListener("scroll",this.handleScroll,{capture:true,passive:true});this.scrollListenerBound=true}}removeScrollListener(){if(this.scrollListenerBound){window.removeEventListener("scroll",this.handleScroll,true);this.scrollListenerBound=false}}updatePosition(){if(!this.popupEl||!this.triggerEl)return false;const t=this.getAnchorRect();const s=this.popupEl.offsetWidth;const i=this.popupEl.offsetHeight;if(s===0&&i===0)return false;let e=this.physicalPlacement(this.position);if(this.autoPosition){e=this.findBestPlacement(t,s,i,e)}const o=this.calcCoords(t.width,t.height,s,i,e);if(e.startsWith("top")||e.startsWith("bottom")){o.left+=this.crossOffset}else{o.top+=this.crossOffset}if(this.autoPosition){const n=e.startsWith("top")||e.startsWith("bottom");const r=f;if(n){const i=t.left+o.left;const e=window.innerWidth-s-r;const n=Math.min(Math.max(i,r),Math.max(r,e));o.left+=n-i}else{const s=t.top+o.top;const e=window.innerHeight-i-r;const n=Math.min(Math.max(s,r),Math.max(r,e));o.top+=n-s}}const n=this.toFixedCoords(t.top+o.top,t.left+o.left);this.popupEl.style.top=`${n.top}px`;this.popupEl.style.left=`${n.left}px`;this.popupEl.style.insetBlockStart="";this.popupEl.style.insetInlineStart="";this.resolvedPlacement=e;this.lastGeom={at:t.top,al:t.left,aw:t.width,ah:t.height,pw:s,ph:i,vw:window.innerWidth,vh:window.innerHeight,ex:t.left+o.left,ey:t.top+o.top};return true}getAnchorRect(){if(this.triggerEl){const t=this.triggerEl.getBoundingClientRect();if(t.width>0||t.height>0)return t}return this.el.getBoundingClientRect()}toFixedCoords(t,s){const i=this.getFixedContainingBlock();if(!i){return{top:t,left:s}}const e=i.getBoundingClientRect();return{top:t-e.top,left:s-e.left}}createsFixedContainingBlock(t){const s=t;if(t.transform&&t.transform!=="none"||t.filter&&t.filter!=="none"||t.perspective&&t.perspective!=="none")return true;if(s.translate&&s.translate!=="none"||s.rotate&&s.rotate!=="none"||s.scale&&s.scale!=="none")return true;if(s.backdropFilter&&s.backdropFilter!=="none")return true;if(/\b(transform|perspective|filter|translate|rotate|scale)\b/.test(t.willChange||""))return true;if(/(layout|paint|strict|content)\b/.test(s.contain||""))return true;if(s.contentVisibility==="auto"||s.contentVisibility==="hidden")return true;if(s.containerType&&/\bsize\b/.test(s.containerType))return true;return false}getFixedContainingBlock(){let t=this.el;while(t){if(this.createsFixedContainingBlock(getComputedStyle(t))){return t}if(t.parentElement){t=t.parentElement}else if(t.parentNode instanceof ShadowRoot){t=t.parentNode.host}else{t=null}}return null}physicalPlacement(t){if(typeof window==="undefined")return t;const s=getComputedStyle(this.el).direction==="rtl";if(!s)return t;const[i,e=""]=[t.split("-")[0],t.split("-").slice(1).join("-")];const o=i==="left"?"right":i==="right"?"left":i;const n=i==="top"||i==="bottom"?e==="start"?"end":e==="end"?"start":e:e;return n?`${o}-${n}`:o}calcCoords(t,s,i,e,o){const n=this.offset;switch(o){case"top":return{top:-(e+n),left:(t-i)/2};case"top-start":return{top:-(e+n),left:0};case"top-end":return{top:-(e+n),left:t-i};case"bottom":return{top:s+n,left:(t-i)/2};case"bottom-start":return{top:s+n,left:0};case"bottom-end":return{top:s+n,left:t-i};case"left":return{top:(s-e)/2,left:-(i+n)};case"left-start":return{top:0,left:-(i+n)};case"left-end":return{top:s-e,left:-(i+n)};case"right":return{top:(s-e)/2,left:t+n};case"right-start":return{top:0,left:t+n};case"right-end":return{top:s-e,left:t+n};default:return{top:-(e+n),left:(t-i)/2}}}fitsMainAxis(t,s,i,e,o,n){const r=n.startsWith("top")||n.startsWith("bottom");if(r){const s=t.top+e;return s>=0&&s+i<=window.innerHeight}const a=t.left+o;return a>=0&&a+s<=window.innerWidth}getOppositePlacement(t){const[s,i]=[t.split("-")[0],t.split("-").slice(1).join("-")];const e={top:"bottom",bottom:"top",left:"right",right:"left"};return i?`${e[s]}-${i}`:e[s]}findBestPlacement(t,s,i,e){const o=e=>{const o=this.calcCoords(t.width,t.height,s,i,e);return this.fitsMainAxis(t,s,i,o.top,o.left,e)};if(o(e))return e;const n=this.getOppositePlacement(e);if(o(n))return n;const r=e.split("-")[1]||"";const a=["top","bottom","right","left"];for(const t of a){const s=r?`${t}-${r}`:t;if(s!==e&&s!==n&&o(s)){return s}}return e}render(){const t=this.variant==="rich";const s=!!this.subhead||this.hasSlottedSubhead;const i=this.hasSlottedActions;return e(o,{key:"991f053cbeffaab6e5d0e3fc9f5d1edfc359a09e",class:"md-tooltip-wrapper"},e("slot",{key:"74090d650d6e70555f6b7bcd5da2b37bd143c8a8"}),e("div",{key:"000f78a5737c3db131e9f4cf9591c663c5c558e3",class:{"md-tooltip__popup":true,"md-tooltip__popup--plain":!t,"md-tooltip__popup--rich":t,"md-tooltip__popup--visible":this.isVisible,[`md-tooltip__popup--${this.resolvedPlacement}`]:true},id:this.tooltipId,role:"tooltip",part:"popup","aria-hidden":this.isVisible?"false":"true",ref:t=>this.popupEl=t,onMouseEnter:this.handlePopupEnter,onMouseLeave:this.handlePopupLeave},t?[s&&e("div",{class:"md-tooltip__subhead",part:"subhead",key:"subhead"},e("slot",{name:"subhead"},this.subhead)),e("div",{class:"md-tooltip__supporting-text",part:"supporting-text",key:"text"},e("slot",{name:"content"},this.text)),e("div",{class:{"md-tooltip__actions":true,"md-tooltip__actions--empty":!i},part:"actions",key:"actions"},e("slot",{name:"actions"}))]:e("span",{class:"md-tooltip__text",part:"text"},this.text)))}componentDidRender(){p(this)}componentShouldUpdate(){c(this);return true}get el(){return this}static get watchers(){return{open:[{onOpenChange:0}],disabled:[{onDisabledChange:0}],text:[{onDescriptionChange:0}],subhead:[{onDescriptionChange:0}]}}static get style(){return m()+u()}},[257,"md-tooltip",{text:[1],subhead:[1],variant:[513],position:[1],autoPosition:[4,"auto-position"],offset:[2],crossOffset:[2,"cross-offset"],open:[1540],showDelay:[2,"show-delay"],hideDelay:[2,"hide-delay"],disabled:[516],density:[514],isVisible:[32],resolvedPlacement:[32],hasSlottedActions:[32],hasSlottedSubhead:[32],show:[64],hide:[64]},undefined,{open:[{onOpenChange:0}],disabled:[{onDisabledChange:0}],text:[{onDescriptionChange:0}],subhead:[{onDescriptionChange:0}]}]);function v(){if(typeof customElements==="undefined"){return}const t=["md-tooltip"];t.forEach((t=>{switch(t){case"md-tooltip":if(!customElements.get(n(t))){customElements.define(n(t),y)}break}}))}v();export{y as M,v as d};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as t,H as s,c as i,h as e,d as o,t as n}from"./p-dBZ_5SDM.js";import{b as r,c as a,r as h,d as l,i as p,p as c}from"./p-D9cIx3li.js";import{c as d}from"./p-mwCGMdmr.js";const m=()=>`:host(:not([data-awc-motion-ready])),:host(:not([data-awc-motion-ready]))::before,:host(:not([data-awc-motion-ready]))::after,:host(:not([data-awc-motion-ready])) *,:host(:not([data-awc-motion-ready])) *::before,:host(:not([data-awc-motion-ready])) *::after{transition-property:none !important}`;const u=()=>`:host{display:inline-block;position:relative}.md-tooltip__popup{position:fixed;z-index:var(--md-sys-z-index-tooltip, 1500);pointer-events:none;box-sizing:border-box;width:max-content;opacity:0;visibility:hidden;transform:scale(0.9);transition:opacity var(--md-sys-motion-duration-short2, 100ms) var(--md-sys-motion-easing-standard, ease), transform var(--md-sys-motion-duration-short2, 100ms) var(--md-sys-motion-easing-standard, ease), visibility 0ms linear var(--md-sys-motion-duration-short2, 100ms)}.md-tooltip__popup--visible{opacity:1;visibility:visible;transform:scale(1);pointer-events:auto;transition:opacity var(--md-sys-motion-duration-short2, 100ms) var(--md-sys-motion-easing-standard, ease), transform var(--md-sys-motion-duration-short2, 100ms) var(--md-sys-motion-easing-standard, ease), visibility 0ms linear 0ms}.md-tooltip__popup--plain{--_container-color:var(--md-tooltip-plain-container-color, var(--md-sys-color-inverse-surface, #313033));--_text-color:var(--md-tooltip-plain-text-color, var(--md-sys-color-inverse-on-surface, #F4EFF4));--_shape:var(--md-tooltip-container-shape, var(--md-sys-shape-corner-extra-small, 4px));background-color:var(--_container-color);color:var(--_text-color);border-radius:var(--_shape);padding-block:var(--md-sys-spacing-inset-xs, 4px);padding-inline:var(--md-sys-spacing-inset-sm, 8px);min-block-size:max(20px, calc(24px + var(--md-sys-density-scale, 0) * 1px));max-inline-size:min(var(--md-tooltip-plain-max-inline-size, 280px), calc(100vw - 16px));font-family:var(--md-sys-typescale-body-small-font-family, Roboto, sans-serif);font-size:max(10px, calc(12px + var(--md-sys-density-scale, 0) * 0.5px));font-weight:var(--md-sys-typescale-body-small-font-weight, 400);line-height:max(14px, calc(16px + var(--md-sys-density-scale, 0) * 0.5px));letter-spacing:var(--md-sys-typescale-body-small-letter-spacing, 0.4px);white-space:normal;display:flex;align-items:center}.md-tooltip__text{overflow-wrap:anywhere}.md-tooltip__popup--rich{--_container-color:var(--md-tooltip-rich-container-color, var(--md-sys-color-surface-container, #F3EDF7));--_subhead-color:var(--md-tooltip-rich-subhead-color, var(--md-sys-color-on-surface-variant, #49454F));--_text-color:var(--md-tooltip-rich-text-color, var(--md-sys-color-on-surface-variant, #49454F));--_action-color:var(--md-tooltip-rich-action-color, var(--md-sys-color-primary, #6750A4));--_shape:var(--md-tooltip-rich-container-shape, var(--md-sys-shape-corner-medium, 12px));background-color:var(--_container-color);color:var(--_text-color);border-radius:var(--_shape);padding-block-start:var(--md-sys-spacing-inset-md, 12px);padding-block-end:var(--md-sys-spacing-inset-sm, 8px);padding-inline:var(--md-sys-spacing-inset-lg, 16px);min-inline-size:var(--md-tooltip-rich-min-inline-size, 120px);max-inline-size:min(var(--md-tooltip-rich-max-inline-size, 320px), calc(100vw - 16px));white-space:normal;box-shadow:var(--md-sys-elevation-2, 0 1px 3px 1px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.3))}.md-tooltip__subhead{font-family:var(--md-sys-typescale-title-small-font-family, Roboto, sans-serif);font-size:max(11px, calc(14px + var(--md-sys-density-scale, 0) * 0.5px));font-weight:var(--md-sys-typescale-title-small-font-weight, 500);line-height:max(16px, calc(20px + var(--md-sys-density-scale, 0) * 1px));letter-spacing:var(--md-sys-typescale-title-small-letter-spacing, 0.1px);color:var(--_subhead-color);margin-block-end:var(--md-sys-spacing-gap-xs, 4px)}.md-tooltip__supporting-text{font-family:var(--md-sys-typescale-body-medium-font-family, Roboto, sans-serif);font-size:max(11px, calc(14px + var(--md-sys-density-scale, 0) * 0.5px));font-weight:var(--md-sys-typescale-body-medium-font-weight, 400);line-height:max(16px, calc(20px + var(--md-sys-density-scale, 0) * 1px));letter-spacing:var(--md-sys-typescale-body-medium-letter-spacing, 0.25px);color:var(--_text-color)}.md-tooltip__actions{display:flex;gap:var(--md-sys-spacing-gap-sm, 8px);justify-content:flex-end;margin-block-start:var(--md-sys-spacing-gap-md, 12px);color:var(--_action-color)}.md-tooltip__actions--empty{display:none}::slotted([slot="actions"]){color:var(--_action-color)}.md-tooltip__popup--top,.md-tooltip__popup--top-start,.md-tooltip__popup--top-end{transform-origin:bottom center}.md-tooltip__popup--bottom,.md-tooltip__popup--bottom-start,.md-tooltip__popup--bottom-end{transform-origin:top center}.md-tooltip__popup--left,.md-tooltip__popup--left-start,.md-tooltip__popup--left-end{transform-origin:center right}.md-tooltip__popup--right,.md-tooltip__popup--right-start,.md-tooltip__popup--right-end{transform-origin:center left}:host-context([dir="rtl"]) .md-tooltip__actions{justify-content:flex-start}@media (forced-colors: active){.md-tooltip__popup{border:1px solid CanvasText}}@media (prefers-reduced-motion: reduce){.md-tooltip__popup,.md-tooltip__popup--visible{transition:none;transform:none}}:host([density='-1']){--md-sys-density-scale:-1}:host([density='-2']){--md-sys-density-scale:-2}:host([density='-3']){--md-sys-density-scale:-3}:host([density='-4']){--md-sys-density-scale:-4}:host([hidden]){display:none !important}`;const f=8;const y=t(class t extends s{constructor(t){super();if(t!==false){this.__registerHost()}this.__attachShadow();this.mdOpen=i(this,"mdOpen",1);this.mdClose=i(this,"mdClose",1);this.text="";this.subhead="";this.variant="plain";this.position="top";this.autoPosition=true;this.offset=8;this.crossOffset=0;this.open=false;this.showDelay=500;this.hideDelay=200;this.disabled=false;this.density=0;this.isVisible=false;this.resolvedPlacement="top";this.hasSlottedActions=false;this.hasSlottedSubhead=false;this.tooltipId=d("md-tooltip");this.scrollListenerBound=false;this.escapeListenerBound=false;this.hostHoverBound=false;this.hasLoaded=false;this.suppressed=false;this.onTriggerSlotChange=()=>{const t=this.triggerSlot?.assignedElements();if(t&&t.length>0)this.bindTrigger(t[0])};this.handleTriggerEnter=()=>this.scheduleShow();this.handleTriggerLeave=()=>{this.suppressed=false;this.scheduleHide()};this.handleTriggerFocus=()=>this.scheduleShow();this.handleTriggerBlur=t=>{if(t.relatedTarget&&this.el.contains(t.relatedTarget))return;this.suppressed=false;this.scheduleHide()};this.handleHostFocusOut=t=>{if(this.variant!=="rich"||!this.isVisible)return;if(t.relatedTarget&&this.el.contains(t.relatedTarget))return;this.scheduleHide()};this.handlePopupEnter=()=>{this.clearTimers()};this.handlePopupLeave=()=>{this.scheduleHide()};this.handleGlobalEscape=t=>{if(t.key!=="Escape"||!this.isVisible)return;t.preventDefault();this.clearTimers();this.suppressed=true;const s=this.getDeepActiveElement();const i=!!s&&(this.el.contains(s)||s===this.triggerEl);this.open=false;if(i&&this.triggerEl)this.triggerEl.focus()};this.lastGeom={at:0,al:0,aw:0,ah:0,pw:0,ph:0,vw:0,vh:0,ex:0,ey:0};this.watchdogFrame=0;this.handleScroll=()=>{if(this.isVisible)this.updatePosition()}}componentWillLoad(){r(this);this.syncSlotFlags();if(this.open&&!this.disabled)this.isVisible=true}componentDidLoad(){try{this.hasLoaded=true;this.setup();if(this.open)this.showTooltip()}finally{a(this)}}connectedCallback(){h(this);if(!this.hasLoaded)return;this.setup();if(this.isVisible&&!this.disabled){this.addScrollListener();this.addEscapeListener();this.schedulePositionUpdate();this.startPositionWatchdog()}else if(this.open&&!this.isVisible&&!this.disabled){this.showTooltip()}}setup(){const t=this.el.shadowRoot;if(!t)return;this.triggerSlot=t.querySelector("slot:not([name])")??undefined;this.triggerSlot?.addEventListener("slotchange",this.onTriggerSlotChange);this.el.addEventListener("focusout",this.handleHostFocusOut);this.syncSlotFlags();if(typeof MutationObserver!=="undefined"&&!this.slotObserver){this.slotObserver=new MutationObserver((()=>{this.syncSlotFlags();if(this.triggerEl)this.updateTriggerAria(this.triggerEl)}));this.slotObserver.observe(this.el,{childList:true,subtree:true,characterData:true})}const s=this.triggerSlot?.assignedElements()[0];if(s)this.bindTrigger(s)}syncSlotFlags(){const t=Array.from(this.el.children);this.hasSlottedActions=t.some((t=>t.getAttribute("slot")==="actions"));this.hasSlottedSubhead=t.some((t=>t.getAttribute("slot")==="subhead"))}disconnectedCallback(){l(this);this.clearTimers();this.stopPositionWatchdog();this.unbindTrigger();this.removeScrollListener();this.removeEscapeListener();this.el.removeEventListener("focusout",this.handleHostFocusOut);this.triggerSlot?.removeEventListener("slotchange",this.onTriggerSlotChange);this.triggerSlot=undefined;this.slotObserver?.disconnect();this.slotObserver=undefined}onOpenChange(t){if(t){this.showTooltip()}else{this.hideTooltip()}}onDisabledChange(t){if(t){this.clearTimers();if(this.open)this.open=false;this.triggerEl?.removeAttribute("aria-description")}else if(this.triggerEl){this.updateTriggerAria(this.triggerEl)}}onDescriptionChange(){if(this.triggerEl)this.updateTriggerAria(this.triggerEl)}async show(){if(this.disabled)return;this.open=true}async hide(){this.open=false}bindTrigger(t){this.unbindTrigger();this.triggerEl=t;if(this.useHostHover(t)){this.el.addEventListener("mouseenter",this.handleTriggerEnter);this.el.addEventListener("mouseleave",this.handleTriggerLeave);this.hostHoverBound=true}else{t.addEventListener("mouseenter",this.handleTriggerEnter);t.addEventListener("mouseleave",this.handleTriggerLeave)}t.addEventListener("focus",this.handleTriggerFocus);t.addEventListener("blur",this.handleTriggerBlur);this.updateTriggerAria(t)}unbindTrigger(){if(this.hostHoverBound){this.el.removeEventListener("mouseenter",this.handleTriggerEnter);this.el.removeEventListener("mouseleave",this.handleTriggerLeave);this.hostHoverBound=false}else if(this.triggerEl){this.triggerEl.removeEventListener("mouseenter",this.handleTriggerEnter);this.triggerEl.removeEventListener("mouseleave",this.handleTriggerLeave)}if(!this.triggerEl)return;this.triggerEl.removeEventListener("focus",this.handleTriggerFocus);this.triggerEl.removeEventListener("blur",this.handleTriggerBlur);this.triggerEl.removeAttribute("aria-description");this.triggerEl=undefined}useHostHover(t){const s=t.tagName.toLowerCase();if(s==="button"||s==="a"||s==="input"||s==="select"||s==="textarea"){return false}if(t.hasAttribute("tabindex")&&t.tabIndex>=0)return false;if(s.startsWith("md-"))return false;return true}updateTriggerAria(t){if(this.disabled){t.removeAttribute("aria-description");return}const s=this.computeDescription();if(s){t.setAttribute("aria-description",s)}else{t.removeAttribute("aria-description")}}computeDescription(){if(this.text)return this.text;if(this.subhead)return this.subhead;const t=[];for(const s of Array.from(this.el.children)){const i=s.getAttribute("slot");if(i==="subhead"||i==="content"){const i=(s.textContent||"").trim();if(i)t.push(i)}}return t.join(". ")}scheduleShow(){if(this.disabled||this.suppressed)return;this.clearTimers();this.showTimer=setTimeout((()=>{this.open=true}),this.showDelay)}scheduleHide(){this.clearTimers();this.hideTimer=setTimeout((()=>{this.open=false}),this.hideDelay)}getDeepActiveElement(){if(typeof document==="undefined")return null;let t=document.activeElement;while(t&&t.shadowRoot&&t.shadowRoot.activeElement)t=t.shadowRoot.activeElement;return t}addEscapeListener(){if(!this.escapeListenerBound){document.addEventListener("keydown",this.handleGlobalEscape,true);this.escapeListenerBound=true}}removeEscapeListener(){if(this.escapeListenerBound){document.removeEventListener("keydown",this.handleGlobalEscape,true);this.escapeListenerBound=false}}showTooltip(){if(this.disabled)return;if(!this.el.isConnected)return;this.isVisible=true;this.mdOpen.emit();this.addScrollListener();this.addEscapeListener();this.schedulePositionUpdate();this.startPositionWatchdog()}schedulePositionUpdate(t=0){requestAnimationFrame((()=>{const s=this.updatePosition();if(!s&&t<3){this.schedulePositionUpdate(t+1)}}))}startPositionWatchdog(){if(typeof requestAnimationFrame!=="function")return;this.stopPositionWatchdog();const t=()=>{if(!this.isVisible||!this.el.isConnected){this.watchdogFrame=0;return}const s=this.popupEl;if(s&&this.triggerEl){const t=s.offsetWidth;const i=s.offsetHeight;if(t!==0||i!==0){const e=this.getAnchorRect();const o=s.getBoundingClientRect();const n=this.lastGeom;const r=e.top!==n.at||e.left!==n.al||e.width!==n.aw||e.height!==n.ah||t!==n.pw||i!==n.ph||Math.abs(o.top-n.ey)>.5||Math.abs(o.left-n.ex)>.5||window.innerWidth!==n.vw||window.innerHeight!==n.vh;if(r)this.updatePosition()}}this.watchdogFrame=requestAnimationFrame(t)};this.watchdogFrame=requestAnimationFrame(t)}stopPositionWatchdog(){if(this.watchdogFrame&&typeof cancelAnimationFrame==="function"){cancelAnimationFrame(this.watchdogFrame)}this.watchdogFrame=0}hideTooltip(){if(!this.isVisible)return;this.isVisible=false;this.mdClose.emit();this.removeScrollListener();this.removeEscapeListener();this.stopPositionWatchdog()}clearTimers(){if(this.showTimer!=null){clearTimeout(this.showTimer);this.showTimer=undefined}if(this.hideTimer!=null){clearTimeout(this.hideTimer);this.hideTimer=undefined}}addScrollListener(){if(!this.scrollListenerBound){window.addEventListener("scroll",this.handleScroll,{capture:true,passive:true});this.scrollListenerBound=true}}removeScrollListener(){if(this.scrollListenerBound){window.removeEventListener("scroll",this.handleScroll,true);this.scrollListenerBound=false}}updatePosition(){if(!this.popupEl||!this.triggerEl)return false;const t=this.getAnchorRect();const s=this.popupEl.offsetWidth;const i=this.popupEl.offsetHeight;if(s===0&&i===0)return false;let e=this.physicalPlacement(this.position);if(this.autoPosition){e=this.findBestPlacement(t,s,i,e)}const o=this.calcCoords(t.width,t.height,s,i,e);if(e.startsWith("top")||e.startsWith("bottom")){o.left+=this.crossOffset}else{o.top+=this.crossOffset}if(this.autoPosition){const n=e.startsWith("top")||e.startsWith("bottom");const r=f;if(n){const i=t.left+o.left;const e=window.innerWidth-s-r;const n=Math.min(Math.max(i,r),Math.max(r,e));o.left+=n-i}else{const s=t.top+o.top;const e=window.innerHeight-i-r;const n=Math.min(Math.max(s,r),Math.max(r,e));o.top+=n-s}}const n=this.toFixedCoords(t.top+o.top,t.left+o.left);this.popupEl.style.top=`${n.top}px`;this.popupEl.style.left=`${n.left}px`;this.popupEl.style.insetBlockStart="";this.popupEl.style.insetInlineStart="";this.resolvedPlacement=e;this.lastGeom={at:t.top,al:t.left,aw:t.width,ah:t.height,pw:s,ph:i,vw:window.innerWidth,vh:window.innerHeight,ex:t.left+o.left,ey:t.top+o.top};return true}getAnchorRect(){if(this.triggerEl){const t=this.triggerEl.getBoundingClientRect();if(t.width>0||t.height>0)return t}return this.el.getBoundingClientRect()}toFixedCoords(t,s){const i=this.getFixedContainingBlock();if(!i){return{top:t,left:s}}const e=i.getBoundingClientRect();return{top:t-e.top,left:s-e.left}}createsFixedContainingBlock(t){const s=t;if(t.transform&&t.transform!=="none"||t.filter&&t.filter!=="none"||t.perspective&&t.perspective!=="none")return true;if(s.translate&&s.translate!=="none"||s.rotate&&s.rotate!=="none"||s.scale&&s.scale!=="none")return true;if(s.backdropFilter&&s.backdropFilter!=="none")return true;if(/\b(transform|perspective|filter|translate|rotate|scale)\b/.test(t.willChange||""))return true;if(/(layout|paint|strict|content)\b/.test(s.contain||""))return true;if(s.contentVisibility==="auto"||s.contentVisibility==="hidden")return true;if(s.containerType&&/\bsize\b/.test(s.containerType))return true;return false}getFixedContainingBlock(){let t=this.el;while(t){if(this.createsFixedContainingBlock(getComputedStyle(t))){return t}if(t.parentElement){t=t.parentElement}else if(t.parentNode instanceof ShadowRoot){t=t.parentNode.host}else{t=null}}return null}physicalPlacement(t){if(typeof window==="undefined")return t;const s=getComputedStyle(this.el).direction==="rtl";if(!s)return t;const[i,e=""]=[t.split("-")[0],t.split("-").slice(1).join("-")];const o=i==="left"?"right":i==="right"?"left":i;const n=i==="top"||i==="bottom"?e==="start"?"end":e==="end"?"start":e:e;return n?`${o}-${n}`:o}calcCoords(t,s,i,e,o){const n=this.offset;switch(o){case"top":return{top:-(e+n),left:(t-i)/2};case"top-start":return{top:-(e+n),left:0};case"top-end":return{top:-(e+n),left:t-i};case"bottom":return{top:s+n,left:(t-i)/2};case"bottom-start":return{top:s+n,left:0};case"bottom-end":return{top:s+n,left:t-i};case"left":return{top:(s-e)/2,left:-(i+n)};case"left-start":return{top:0,left:-(i+n)};case"left-end":return{top:s-e,left:-(i+n)};case"right":return{top:(s-e)/2,left:t+n};case"right-start":return{top:0,left:t+n};case"right-end":return{top:s-e,left:t+n};default:return{top:-(e+n),left:(t-i)/2}}}fitsMainAxis(t,s,i,e,o,n){const r=n.startsWith("top")||n.startsWith("bottom");if(r){const s=t.top+e;return s>=0&&s+i<=window.innerHeight}const a=t.left+o;return a>=0&&a+s<=window.innerWidth}getOppositePlacement(t){const[s,i]=[t.split("-")[0],t.split("-").slice(1).join("-")];const e={top:"bottom",bottom:"top",left:"right",right:"left"};return i?`${e[s]}-${i}`:e[s]}findBestPlacement(t,s,i,e){const o=e=>{const o=this.calcCoords(t.width,t.height,s,i,e);return this.fitsMainAxis(t,s,i,o.top,o.left,e)};if(o(e))return e;const n=this.getOppositePlacement(e);if(o(n))return n;const r=e.split("-")[1]||"";const a=["top","bottom","right","left"];for(const t of a){const s=r?`${t}-${r}`:t;if(s!==e&&s!==n&&o(s)){return s}}return e}render(){const t=this.variant==="rich";const s=!!this.subhead||this.hasSlottedSubhead;const i=this.hasSlottedActions;return e(o,{key:"21bcca8ebbb72fb3d218461483b52c45868bab86",class:"md-tooltip-wrapper"},e("slot",{key:"d0a71d7fa77f60ec04fc464bb7bf48d4ac55be60"}),e("div",{key:"c08cdcabc19a4f96fb55962856abe9697b3d6b04",class:{"md-tooltip__popup":true,"md-tooltip__popup--plain":!t,"md-tooltip__popup--rich":t,"md-tooltip__popup--visible":this.isVisible,[`md-tooltip__popup--${this.resolvedPlacement}`]:true},id:this.tooltipId,role:"tooltip",part:"popup","aria-hidden":this.isVisible?"false":"true",ref:t=>this.popupEl=t,onMouseEnter:this.handlePopupEnter,onMouseLeave:this.handlePopupLeave},t?[s&&e("div",{class:"md-tooltip__subhead",part:"subhead",key:"subhead"},e("slot",{name:"subhead"},this.subhead)),e("div",{class:"md-tooltip__supporting-text",part:"supporting-text",key:"text"},e("slot",{name:"content"},this.text)),e("div",{class:{"md-tooltip__actions":true,"md-tooltip__actions--empty":!i},part:"actions",key:"actions"},e("slot",{name:"actions"}))]:e("span",{class:"md-tooltip__text",part:"text"},this.text)))}componentDidRender(){p(this)}componentShouldUpdate(){c(this);return true}get el(){return this}static get watchers(){return{open:[{onOpenChange:0}],disabled:[{onDisabledChange:0}],text:[{onDescriptionChange:0}],subhead:[{onDescriptionChange:0}]}}static get style(){return m()+u()}},[257,"md-tooltip",{text:[1],subhead:[1],variant:[513],position:[1],autoPosition:[4,"auto-position"],offset:[2],crossOffset:[2,"cross-offset"],open:[1540],showDelay:[2,"show-delay"],hideDelay:[2,"hide-delay"],disabled:[516],density:[514],isVisible:[32],resolvedPlacement:[32],hasSlottedActions:[32],hasSlottedSubhead:[32],show:[64],hide:[64]},undefined,{open:[{onOpenChange:0}],disabled:[{onDisabledChange:0}],text:[{onDescriptionChange:0}],subhead:[{onDescriptionChange:0}]}]);function v(){if(typeof customElements==="undefined"){return}const t=["md-tooltip"];t.forEach((t=>{switch(t){case"md-tooltip":if(!customElements.get(n(t))){customElements.define(n(t),y)}break}}))}v();export{y as M,v as d};
|
|
2
|
+
//# sourceMappingURL=p-D-dmT5kY.js.map
|