@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
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
Method,
|
|
12
12
|
Watch,
|
|
13
13
|
} from '@stencil/core';
|
|
14
|
+
import { observeChartSeries } from '../../utils/charts/series-elements';
|
|
14
15
|
import {
|
|
15
16
|
buildChartSummary,
|
|
16
17
|
buildDataTableHtml,
|
|
@@ -74,6 +75,13 @@ import {
|
|
|
74
75
|
export class MdLineChart {
|
|
75
76
|
@Element() el!: HTMLElement;
|
|
76
77
|
|
|
78
|
+
@State() private childSeries: MdChartXYSeries[] | undefined;
|
|
79
|
+
private disposeSeriesWatch?: () => void;
|
|
80
|
+
|
|
81
|
+
private get effectiveSeries(): MdChartXYSeries[] {
|
|
82
|
+
return this.childSeries ?? this.series;
|
|
83
|
+
}
|
|
84
|
+
|
|
77
85
|
/** Optional chart title rendered above the plot. */
|
|
78
86
|
@Prop() label: string = '';
|
|
79
87
|
|
|
@@ -95,7 +103,8 @@ export class MdLineChart {
|
|
|
95
103
|
* irregular data needs: uneven sampling, or several series measured on
|
|
96
104
|
* completely different dates. Set `xAxis.scale = 'time'` (or `'value'`) so
|
|
97
105
|
* the gaps render proportionally; series carrying their own x need no
|
|
98
|
-
* `xAxis.data` at all.
|
|
106
|
+
* `xAxis.data` at all. Direct, unslotted `md-chart-series` children take
|
|
107
|
+
* precedence; this array remains the fallback when no such children exist.
|
|
99
108
|
*/
|
|
100
109
|
@Prop() series: MdChartXYSeries[] = [];
|
|
101
110
|
|
|
@@ -381,6 +390,8 @@ export class MdLineChart {
|
|
|
381
390
|
|
|
382
391
|
disconnectedCallback() {
|
|
383
392
|
disconnectInteractionMotion(this);
|
|
393
|
+
this.disposeSeriesWatch?.();
|
|
394
|
+
this.disposeSeriesWatch = undefined;
|
|
384
395
|
this.ro?.disconnect();
|
|
385
396
|
this.ro = null;
|
|
386
397
|
this.engine?.dispose();
|
|
@@ -532,7 +543,7 @@ export class MdLineChart {
|
|
|
532
543
|
*/
|
|
533
544
|
private seriesKeys(): string[] {
|
|
534
545
|
const seen = new Map<string, number>();
|
|
535
|
-
return this.
|
|
546
|
+
return this.effectiveSeries.map((s, i) => {
|
|
536
547
|
const base = s.id != null ? `id:${s.id}` : s.label != null ? `label:${s.label}` : `pos:${i}`;
|
|
537
548
|
const n = seen.get(base) ?? 0;
|
|
538
549
|
seen.set(base, n + 1);
|
|
@@ -572,9 +583,9 @@ export class MdLineChart {
|
|
|
572
583
|
const scale = this.xAxis?.scale ?? 'category';
|
|
573
584
|
const axis = this.xAxis?.data;
|
|
574
585
|
const c = this.mergeCache;
|
|
575
|
-
if (c && c.series === this.
|
|
576
|
-
const out = normalizeSeriesX(this.
|
|
577
|
-
this.mergeCache = { series: this.
|
|
586
|
+
if (c && c.series === this.effectiveSeries && c.axis === axis && c.scale === scale) return c.out;
|
|
587
|
+
const out = normalizeSeriesX(this.effectiveSeries ?? [], axis, scale);
|
|
588
|
+
this.mergeCache = { series: this.effectiveSeries, axis, scale, out };
|
|
578
589
|
return out;
|
|
579
590
|
}
|
|
580
591
|
|
|
@@ -873,7 +884,7 @@ export class MdLineChart {
|
|
|
873
884
|
// series that blips out of the feed for a frame must keep its toggle when it
|
|
874
885
|
// returns. Growth is bounded in rememberLegendToggle instead.
|
|
875
886
|
const keys = this.seriesKeys();
|
|
876
|
-
// Zoom is a view: slice what the engine draws, leave `this.
|
|
887
|
+
// Zoom is a view: slice what the engine draws, leave `this.effectiveSeries` alone.
|
|
877
888
|
// Anything index-addressed (dashAfter, pointSymbols, markIndices, markLines
|
|
878
889
|
// on a category axis) is rebased into window coordinates, and anything that
|
|
879
890
|
// falls outside the window is dropped.
|
|
@@ -893,7 +904,7 @@ export class MdLineChart {
|
|
|
893
904
|
// addressed options (pointSymbols, dashAfter) are rebased onto it before
|
|
894
905
|
// the zoom window rebases them again.
|
|
895
906
|
const m = this.merged;
|
|
896
|
-
const series = this.
|
|
907
|
+
const series = this.effectiveSeries.map((s, i) => {
|
|
897
908
|
const key = keys[i];
|
|
898
909
|
const remembered = this.legendHidden.get(key);
|
|
899
910
|
const toMerged = m.toMerged[i];
|
|
@@ -1020,7 +1031,7 @@ export class MdLineChart {
|
|
|
1020
1031
|
this.rememberLegendToggle(item.seriesIndex, !!item.hidden);
|
|
1021
1032
|
this.mdLegendClick.emit({
|
|
1022
1033
|
seriesIndex: item.seriesIndex,
|
|
1023
|
-
seriesId: this.
|
|
1034
|
+
seriesId: this.effectiveSeries[item.seriesIndex]?.id,
|
|
1024
1035
|
selected: !item.hidden,
|
|
1025
1036
|
});
|
|
1026
1037
|
},
|
|
@@ -1056,7 +1067,7 @@ export class MdLineChart {
|
|
|
1056
1067
|
* index, not the merged one).
|
|
1057
1068
|
*/
|
|
1058
1069
|
private clickDetail(si: number, di: number, e: PointerEvent): MdChartClickDetail<MdChartXYSeries> | null {
|
|
1059
|
-
const s = this.
|
|
1070
|
+
const s = this.effectiveSeries[si];
|
|
1060
1071
|
if (!s) return null;
|
|
1061
1072
|
const abs = di + (this.zoomWin ? this.win().start : 0);
|
|
1062
1073
|
const own = this.ownIndex(si, abs);
|
|
@@ -1100,7 +1111,7 @@ export class MdLineChart {
|
|
|
1100
1111
|
const own = this.ownIndex(v.seriesIndex, abs);
|
|
1101
1112
|
return {
|
|
1102
1113
|
seriesIndex: v.seriesIndex,
|
|
1103
|
-
seriesId: this.
|
|
1114
|
+
seriesId: this.effectiveSeries[v.seriesIndex]?.id,
|
|
1104
1115
|
label: v.label,
|
|
1105
1116
|
dataIndex: v.value == null ? -1 : own,
|
|
1106
1117
|
value: v.value,
|
|
@@ -1115,9 +1126,9 @@ export class MdLineChart {
|
|
|
1115
1126
|
const hp = this.engine?.getScene()?.hoverPoints;
|
|
1116
1127
|
if (hp) return hp.map((h) => h.seriesIndex);
|
|
1117
1128
|
const keys = this.seriesKeys();
|
|
1118
|
-
return this.
|
|
1129
|
+
return this.effectiveSeries
|
|
1119
1130
|
.map((_, i) => i)
|
|
1120
|
-
.filter((i) => !(this.
|
|
1131
|
+
.filter((i) => !(this.effectiveSeries[i].hidden ?? this.legendHidden.get(keys[i]) ?? false));
|
|
1121
1132
|
}
|
|
1122
1133
|
|
|
1123
1134
|
private rebuildA11yTable() {
|
|
@@ -1132,7 +1143,7 @@ export class MdLineChart {
|
|
|
1132
1143
|
xValueFormatter: this.xAxis?.valueFormatter ?? ((v: MdChartAxisValue) => defaultValueFormatter(v, this.locale)),
|
|
1133
1144
|
locale: this.locale,
|
|
1134
1145
|
labels: this.tableLabels,
|
|
1135
|
-
series: this.
|
|
1146
|
+
series: this.effectiveSeries.map((s, i) => ({ label: s.label, data: m.data[i] ?? [] })),
|
|
1136
1147
|
valueFormatter: this.valueFormatter,
|
|
1137
1148
|
});
|
|
1138
1149
|
}
|
|
@@ -1199,7 +1210,7 @@ export class MdLineChart {
|
|
|
1199
1210
|
buildChartSummary({
|
|
1200
1211
|
title: this.label,
|
|
1201
1212
|
chartType: this.area ? 'area' : 'line',
|
|
1202
|
-
seriesCount: this.
|
|
1213
|
+
seriesCount: this.effectiveSeries.length,
|
|
1203
1214
|
xMin: xValues[0] as MdChartAxisValue | undefined,
|
|
1204
1215
|
xMax: xValues[xValues.length - 1] as MdChartAxisValue | undefined,
|
|
1205
1216
|
locale: this.locale,
|
|
@@ -1207,7 +1218,7 @@ export class MdLineChart {
|
|
|
1207
1218
|
|
|
1208
1219
|
// While loading, the loader owns the box — an empty-state message under it
|
|
1209
1220
|
// would just be the wrong answer to "where is my data?".
|
|
1210
|
-
const empty = this.
|
|
1221
|
+
const empty = this.effectiveSeries.length === 0 && !this.loading;
|
|
1211
1222
|
|
|
1212
1223
|
return (
|
|
1213
1224
|
<Host
|
|
@@ -1318,6 +1329,11 @@ export class MdLineChart {
|
|
|
1318
1329
|
|
|
1319
1330
|
connectedCallback() {
|
|
1320
1331
|
reconnectInteractionMotion(this);
|
|
1332
|
+
this.disposeSeriesWatch?.();
|
|
1333
|
+
this.disposeSeriesWatch = observeChartSeries(this.el, series => {
|
|
1334
|
+
this.childSeries = series;
|
|
1335
|
+
this.onAnyPropChange();
|
|
1336
|
+
});
|
|
1321
1337
|
}
|
|
1322
1338
|
|
|
1323
1339
|
componentShouldUpdate() {
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
Method,
|
|
12
12
|
Watch,
|
|
13
13
|
} from '@stencil/core';
|
|
14
|
+
import { observeChartSeries } from '../../utils/charts/series-elements';
|
|
14
15
|
import {
|
|
15
16
|
buildChartSummary,
|
|
16
17
|
buildDataTableHtml,
|
|
@@ -29,7 +30,7 @@ import {
|
|
|
29
30
|
type MdChartClickDetail,
|
|
30
31
|
type MdChartHoverDetail,
|
|
31
32
|
type MdChartLegendPosition,
|
|
32
|
-
type MdChartSeries,
|
|
33
|
+
type MdChartSeries as MdChartSeriesData,
|
|
33
34
|
type MdChartStackMode,
|
|
34
35
|
type MdChartTitleAlign,
|
|
35
36
|
type MdChartTooltipRenderer,
|
|
@@ -57,6 +58,13 @@ import {
|
|
|
57
58
|
export class MdBarChart {
|
|
58
59
|
@Element() el!: HTMLElement;
|
|
59
60
|
|
|
61
|
+
@State() private childSeries: MdChartSeriesData[] | undefined;
|
|
62
|
+
private disposeSeriesWatch?: () => void;
|
|
63
|
+
|
|
64
|
+
private get effectiveSeries(): MdChartSeriesData[] {
|
|
65
|
+
return this.childSeries ?? this.series;
|
|
66
|
+
}
|
|
67
|
+
|
|
60
68
|
@Prop() label: string = '';
|
|
61
69
|
/**
|
|
62
70
|
* A quieter line under the title — a source, a unit, the caveat a title
|
|
@@ -65,7 +73,8 @@ export class MdBarChart {
|
|
|
65
73
|
@Prop() subtitle: string | undefined;
|
|
66
74
|
/** Title alignment over the plot: `start` (left), `center`, or `end` (right). */
|
|
67
75
|
@Prop({ attribute: 'title-align' }) titleAlign: MdChartTitleAlign = 'start';
|
|
68
|
-
|
|
76
|
+
/** Data fallback when no direct, unslotted `md-chart-series` children are present. */
|
|
77
|
+
@Prop() series: MdChartSeriesData[] = [];
|
|
69
78
|
|
|
70
79
|
/** Category axis configuration. */
|
|
71
80
|
@Prop() xAxis: MdChartAxis | undefined;
|
|
@@ -187,7 +196,7 @@ export class MdBarChart {
|
|
|
187
196
|
*/
|
|
188
197
|
@Prop({ attribute: 'clickable' }) clickable: boolean = false;
|
|
189
198
|
|
|
190
|
-
@Event() mdBarClick!: EventEmitter<MdChartClickDetail<
|
|
199
|
+
@Event() mdBarClick!: EventEmitter<MdChartClickDetail<MdChartSeriesData>>;
|
|
191
200
|
@Event() mdLegendClick!: EventEmitter<{ seriesIndex: number; seriesId?: string; selected: boolean }>;
|
|
192
201
|
@Event() mdHover!: EventEmitter<MdChartHoverDetail>;
|
|
193
202
|
@Event() mdReady!: EventEmitter<void>;
|
|
@@ -277,7 +286,7 @@ export class MdBarChart {
|
|
|
277
286
|
* collision so two series sharing a label do not share a toggle. */
|
|
278
287
|
private seriesKeys(): string[] {
|
|
279
288
|
const seen = new Map<string, number>();
|
|
280
|
-
return this.
|
|
289
|
+
return this.effectiveSeries.map((s, i) => {
|
|
281
290
|
const base = s.id != null ? `id:${s.id}` : s.label != null ? `label:${s.label}` : `pos:${i}`;
|
|
282
291
|
const n = seen.get(base) ?? 0;
|
|
283
292
|
seen.set(base, n + 1);
|
|
@@ -311,6 +320,8 @@ export class MdBarChart {
|
|
|
311
320
|
}
|
|
312
321
|
disconnectedCallback() {
|
|
313
322
|
disconnectInteractionMotion(this);
|
|
323
|
+
this.disposeSeriesWatch?.();
|
|
324
|
+
this.disposeSeriesWatch = undefined;
|
|
314
325
|
this.ro?.disconnect();
|
|
315
326
|
this.ro = null;
|
|
316
327
|
this.engine?.dispose();
|
|
@@ -477,7 +488,7 @@ export class MdBarChart {
|
|
|
477
488
|
|
|
478
489
|
/** Number of categories — the longest series, or the category axis if longer. */
|
|
479
490
|
private dataLength(): number {
|
|
480
|
-
const s = (this.
|
|
491
|
+
const s = (this.effectiveSeries ?? []).reduce((acc, d) => Math.max(acc, d?.data?.length ?? 0), 0);
|
|
481
492
|
return Math.max(s, this.xAxis?.data?.length ?? 0);
|
|
482
493
|
}
|
|
483
494
|
|
|
@@ -743,7 +754,7 @@ export class MdBarChart {
|
|
|
743
754
|
const percentage = this.stack === 'percentage';
|
|
744
755
|
const vFmt = (v: number) => (this.valueFormatter ? this.valueFormatter(v) : v.toLocaleString(this.locale || undefined));
|
|
745
756
|
const keys = this.seriesKeys();
|
|
746
|
-
// Zoom is a view: slice what the engine draws, leave `this.
|
|
757
|
+
// Zoom is a view: slice what the engine draws, leave `this.effectiveSeries` alone.
|
|
747
758
|
// Per-category options (`data`, `range`) are sliced; index-keyed maps
|
|
748
759
|
// (`pointWidths`, `pointColors`) are rebased into window coordinates and
|
|
749
760
|
// anything outside the window is dropped.
|
|
@@ -760,7 +771,7 @@ export class MdBarChart {
|
|
|
760
771
|
return out;
|
|
761
772
|
};
|
|
762
773
|
return {
|
|
763
|
-
series: this.
|
|
774
|
+
series: this.effectiveSeries.map((s, i) => {
|
|
764
775
|
let pointColors: Record<number, string> | undefined;
|
|
765
776
|
if (s.pointColors) {
|
|
766
777
|
const resolved: Record<number, string> = {};
|
|
@@ -860,12 +871,12 @@ export class MdBarChart {
|
|
|
860
871
|
this.rememberLegendToggle(item.seriesIndex, !!item.hidden);
|
|
861
872
|
this.mdLegendClick.emit({
|
|
862
873
|
seriesIndex: item.seriesIndex,
|
|
863
|
-
seriesId: this.
|
|
874
|
+
seriesId: this.effectiveSeries[item.seriesIndex]?.id,
|
|
864
875
|
selected: !item.hidden,
|
|
865
876
|
});
|
|
866
877
|
},
|
|
867
878
|
onPointClick: (si, di, e) => {
|
|
868
|
-
const s = this.
|
|
879
|
+
const s = this.effectiveSeries[si];
|
|
869
880
|
if (!s) return;
|
|
870
881
|
const abs = di + this.winStart(); // windowed → absolute (see onHover)
|
|
871
882
|
this.mdBarClick.emit({
|
|
@@ -887,7 +898,7 @@ export class MdBarChart {
|
|
|
887
898
|
private visibleSeriesIndices(): number[] {
|
|
888
899
|
const hp = this.engine?.getScene()?.hoverPoints;
|
|
889
900
|
if (hp) return hp.map((h) => h.seriesIndex);
|
|
890
|
-
return this.
|
|
901
|
+
return this.effectiveSeries.map((_, i) => i).filter((i) => !this.effectiveSeries[i].hidden);
|
|
891
902
|
}
|
|
892
903
|
|
|
893
904
|
private rebuildA11yTable() {
|
|
@@ -898,7 +909,7 @@ export class MdBarChart {
|
|
|
898
909
|
xAxisData: this.xAxis?.data,
|
|
899
910
|
xValueFormatter: this.xAxis?.valueFormatter ?? ((v: MdChartAxisValue) => defaultValueFormatter(v, this.locale)),
|
|
900
911
|
locale: this.locale,
|
|
901
|
-
series: this.
|
|
912
|
+
series: this.effectiveSeries,
|
|
902
913
|
valueFormatter: this.valueFormatter,
|
|
903
914
|
});
|
|
904
915
|
}
|
|
@@ -953,7 +964,7 @@ export class MdBarChart {
|
|
|
953
964
|
* series present at that category. */
|
|
954
965
|
private emitBarClickForCategory(dataIndex: number, nativeEvent: KeyboardEvent): void {
|
|
955
966
|
const si = this.visibleSeriesIndices()[0] ?? 0;
|
|
956
|
-
const s = this.
|
|
967
|
+
const s = this.effectiveSeries[si];
|
|
957
968
|
if (!s) return;
|
|
958
969
|
// `dataIndex` is the keyboard cursor, which walks the windowed scene —
|
|
959
970
|
// rebase to absolute before reporting / indexing the full series.
|
|
@@ -998,13 +1009,13 @@ export class MdBarChart {
|
|
|
998
1009
|
render() {
|
|
999
1010
|
const xValues = this.xAxis?.data ?? [];
|
|
1000
1011
|
const summary = buildChartSummary({
|
|
1001
|
-
title: this.label, chartType: 'bar', seriesCount: this.
|
|
1012
|
+
title: this.label, chartType: 'bar', seriesCount: this.effectiveSeries.length,
|
|
1002
1013
|
xMin: xValues[0] as MdChartAxisValue | undefined,
|
|
1003
1014
|
xMax: xValues[xValues.length - 1] as MdChartAxisValue | undefined,
|
|
1004
1015
|
});
|
|
1005
1016
|
// While loading, the loader owns the box — an empty-state message under it
|
|
1006
1017
|
// answers "no data" to a question nobody asked yet.
|
|
1007
|
-
const empty = this.
|
|
1018
|
+
const empty = this.effectiveSeries.length === 0 && !this.loading;
|
|
1008
1019
|
return (
|
|
1009
1020
|
<Host
|
|
1010
1021
|
class={{
|
|
@@ -1095,6 +1106,11 @@ export class MdBarChart {
|
|
|
1095
1106
|
|
|
1096
1107
|
connectedCallback() {
|
|
1097
1108
|
reconnectInteractionMotion(this);
|
|
1109
|
+
this.disposeSeriesWatch?.();
|
|
1110
|
+
this.disposeSeriesWatch = observeChartSeries(this.el, series => {
|
|
1111
|
+
this.childSeries = series as MdChartSeriesData[] | undefined;
|
|
1112
|
+
this.onAnyPropChange();
|
|
1113
|
+
});
|
|
1098
1114
|
}
|
|
1099
1115
|
|
|
1100
1116
|
componentShouldUpdate() {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:host { display: none !important; }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:host { display: none !important; }
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { AttrDeserialize, Component, Element, Prop, Watch } from '@stencil/core';
|
|
2
|
+
import type { MdChartColorRole, MdChartCurve, MdChartDatum, MdChartLineStyle, MdChartRangeDatum, MdChartSymbol } from '../../utils/charts';
|
|
3
|
+
import { CHART_SERIES_CHANGE, readSeriesField } from '../../utils/charts/series-elements';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Declarative series data for md-line-chart, md-area-chart and md-bar-chart.
|
|
7
|
+
* Direct, unslotted children replace the parent's series array in DOM order.
|
|
8
|
+
* This is a nonvisual descriptor; assign arrays and maps as JavaScript properties.
|
|
9
|
+
*/
|
|
10
|
+
@Component({ tag: 'md-chart-series', styleUrl: 'md-chart-series.css', shadow: true })
|
|
11
|
+
export class MdChartSeries {
|
|
12
|
+
@Element() el!: HTMLElement;
|
|
13
|
+
|
|
14
|
+
/** Series name in legends/tooltips, separate from the parent chart's title. */
|
|
15
|
+
@Prop() label?: string;
|
|
16
|
+
/** Y values (number/null); md-line-chart also accepts {x,y} points and [x,y] tuples. Reassign to update. */
|
|
17
|
+
@Prop() data: MdChartDatum[] = [];
|
|
18
|
+
/** Draw the series outline; unset inherits the parent chart default. */
|
|
19
|
+
@Prop() stroke?: boolean;
|
|
20
|
+
/** Fill the series area; unset inherits the parent chart default. */
|
|
21
|
+
@Prop() fill?: boolean;
|
|
22
|
+
/** Low/high range samples. Assign as a property and reassign to update. */
|
|
23
|
+
@Prop() range?: MdChartRangeDatum[];
|
|
24
|
+
/** MD color role or CSS color for this series. */
|
|
25
|
+
@Prop() color?: MdChartColorRole | string;
|
|
26
|
+
/** Stack group key, separate from the parent chart's stacking strategy. */
|
|
27
|
+
@Prop() stack?: string;
|
|
28
|
+
/** Per-series curve interpolation. */
|
|
29
|
+
@Prop() curve?: MdChartCurve;
|
|
30
|
+
/** Per-series stroke dash style. */
|
|
31
|
+
@Prop() dash?: MdChartLineStyle;
|
|
32
|
+
/** Series visibility override. Standard DOM hidden does not hide a series. */
|
|
33
|
+
@Prop({ attribute: 'series-hidden' }) seriesHidden?: boolean;
|
|
34
|
+
/** Connect across null samples. */
|
|
35
|
+
@Prop({ attribute: 'connect-nulls' }) connectNulls?: boolean;
|
|
36
|
+
/** Show data-point markers. */
|
|
37
|
+
@Prop({ attribute: 'show-marks' }) showMarks?: boolean;
|
|
38
|
+
/** Marker symbol or custom path. */
|
|
39
|
+
@Prop() symbol?: MdChartSymbol | (string & {});
|
|
40
|
+
/** Marker symbols indexed by data position. Assign as a property. */
|
|
41
|
+
@Prop({ attribute: 'point-symbols' }) pointSymbols?: Record<number, MdChartSymbol | string>;
|
|
42
|
+
/** Colors indexed by data position. Assign as a property. */
|
|
43
|
+
@Prop({ attribute: 'point-colors' }) pointColors?: Record<number, MdChartColorRole | string>;
|
|
44
|
+
/** Bar width ratios indexed by data position. Assign as a property. */
|
|
45
|
+
@Prop({ attribute: 'point-widths' }) pointWidths?: Record<number, number>;
|
|
46
|
+
/** Overlay bars instead of reserving a group position. */
|
|
47
|
+
@Prop() overlay?: boolean;
|
|
48
|
+
/** Relative bar width for this series. */
|
|
49
|
+
@Prop({ attribute: 'width-ratio' }) widthRatio?: number;
|
|
50
|
+
/** Stable series identity in events and legend state. Standard DOM id is unrelated. */
|
|
51
|
+
@Prop({ attribute: 'series-id' }) seriesId?: string;
|
|
52
|
+
/** Index of the y-axis used by this series. */
|
|
53
|
+
@Prop({ attribute: 'y-axis-index' }) yAxisIndex?: number;
|
|
54
|
+
/** Data index after which the line is dashed. */
|
|
55
|
+
@Prop({ attribute: 'dash-after' }) dashAfter?: number;
|
|
56
|
+
/** Hollow point markers. */
|
|
57
|
+
@Prop() hollow?: boolean;
|
|
58
|
+
/** Stroke width in CSS pixels. */
|
|
59
|
+
@Prop({ attribute: 'line-width' }) lineWidth?: number;
|
|
60
|
+
/** Marker radius in CSS pixels. */
|
|
61
|
+
@Prop({ attribute: 'mark-size' }) markSize?: number;
|
|
62
|
+
|
|
63
|
+
// Pure: the hydrate runtime calls deserializers before constructing an instance.
|
|
64
|
+
@AttrDeserialize('data') @AttrDeserialize('range') @AttrDeserialize('pointSymbols')
|
|
65
|
+
@AttrDeserialize('pointColors') @AttrDeserialize('pointWidths')
|
|
66
|
+
deserializeStructuredProp(value?: unknown, prop = ''): unknown {
|
|
67
|
+
const parsed = value == null ? undefined : readSeriesField(prop, value);
|
|
68
|
+
return parsed === undefined && prop === 'data' ? [] : parsed;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
componentDidLoad() { this.notifyChange(); }
|
|
72
|
+
|
|
73
|
+
@Watch('label') @Watch('data') @Watch('stroke') @Watch('fill') @Watch('range')
|
|
74
|
+
@Watch('color') @Watch('stack') @Watch('curve') @Watch('dash') @Watch('seriesHidden')
|
|
75
|
+
@Watch('connectNulls') @Watch('showMarks') @Watch('symbol') @Watch('pointSymbols')
|
|
76
|
+
@Watch('pointColors') @Watch('pointWidths') @Watch('overlay') @Watch('widthRatio')
|
|
77
|
+
@Watch('seriesId') @Watch('yAxisIndex') @Watch('dashAfter') @Watch('hollow')
|
|
78
|
+
@Watch('lineWidth') @Watch('markSize')
|
|
79
|
+
notifyChange() {
|
|
80
|
+
this.el.dispatchEvent(new CustomEvent(CHART_SERIES_CHANGE, { bubbles: true, composed: true }));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
render() { return null; }
|
|
84
|
+
}
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
Method,
|
|
12
12
|
Watch,
|
|
13
13
|
} from '@stencil/core';
|
|
14
|
+
import { observeChartSeries } from '../../utils/charts/series-elements';
|
|
14
15
|
import {
|
|
15
16
|
buildChartSummary,
|
|
16
17
|
buildDataTableHtml,
|
|
@@ -30,7 +31,7 @@ import {
|
|
|
30
31
|
type MdChartClickDetail,
|
|
31
32
|
type MdChartHoverDetail,
|
|
32
33
|
type MdChartLegendPosition,
|
|
33
|
-
type MdChartSeries,
|
|
34
|
+
type MdChartSeries as MdChartSeriesData,
|
|
34
35
|
type MdChartStackMode,
|
|
35
36
|
type MdChartTitleAlign,
|
|
36
37
|
type MdChartTooltipRenderer,
|
|
@@ -57,13 +58,21 @@ import {
|
|
|
57
58
|
export class MdAreaChart {
|
|
58
59
|
@Element() el!: HTMLElement;
|
|
59
60
|
|
|
61
|
+
@State() private childSeries: MdChartSeriesData[] | undefined;
|
|
62
|
+
private disposeSeriesWatch?: () => void;
|
|
63
|
+
|
|
64
|
+
private get effectiveSeries(): MdChartSeriesData[] {
|
|
65
|
+
return this.childSeries ?? this.series;
|
|
66
|
+
}
|
|
67
|
+
|
|
60
68
|
@Prop() label: string = '';
|
|
61
69
|
|
|
62
70
|
/** Sub-title, drawn under the title in the muted text colour. */
|
|
63
71
|
@Prop() subtitle: string | undefined;
|
|
64
72
|
/** Title alignment over the plot: `start` (left), `center`, or `end` (right). */
|
|
65
73
|
@Prop({ attribute: 'title-align' }) titleAlign: MdChartTitleAlign = 'start';
|
|
66
|
-
|
|
74
|
+
/** Data fallback when no direct, unslotted `md-chart-series` children are present. */
|
|
75
|
+
@Prop() series: MdChartSeriesData[] = [];
|
|
67
76
|
@Prop() xAxis: MdChartAxis | undefined;
|
|
68
77
|
@Prop() yAxis: MdChartAxis | undefined;
|
|
69
78
|
@Prop() curve: 'linear' | 'smooth' | 'monotone' | 'step' | 'step-before' | 'step-middle' = 'smooth';
|
|
@@ -164,15 +173,15 @@ export class MdAreaChart {
|
|
|
164
173
|
/** Print each point's value as a data label beside its marker. */
|
|
165
174
|
@Prop({ attribute: 'show-labels' }) showLabels: boolean = false;
|
|
166
175
|
|
|
167
|
-
@Event() mdMarkerClick!: EventEmitter<MdChartClickDetail<
|
|
176
|
+
@Event() mdMarkerClick!: EventEmitter<MdChartClickDetail<MdChartSeriesData>>;
|
|
168
177
|
|
|
169
178
|
/** Fires when a series' drawn line is clicked *between* its data points (a
|
|
170
179
|
* click on a point emits `mdMarkerClick` instead). */
|
|
171
|
-
@Event() mdLineClick!: EventEmitter<MdChartClickDetail<
|
|
180
|
+
@Event() mdLineClick!: EventEmitter<MdChartClickDetail<MdChartSeriesData>>;
|
|
172
181
|
|
|
173
182
|
/** Fires when a series' filled area is clicked — the band between its line
|
|
174
183
|
* and its base (its own band when stacked), excluding its line and points. */
|
|
175
|
-
@Event() mdAreaClick!: EventEmitter<MdChartClickDetail<
|
|
184
|
+
@Event() mdAreaClick!: EventEmitter<MdChartClickDetail<MdChartSeriesData>>;
|
|
176
185
|
|
|
177
186
|
/** Fires when the plot background is clicked (inside the plot, but not on a
|
|
178
187
|
* mark, line or area): the nearest x plus every visible series' value there. */
|
|
@@ -247,7 +256,7 @@ export class MdAreaChart {
|
|
|
247
256
|
* collision so two series sharing a label do not share a toggle. */
|
|
248
257
|
private seriesKeys(): string[] {
|
|
249
258
|
const seen = new Map<string, number>();
|
|
250
|
-
return this.
|
|
259
|
+
return this.effectiveSeries.map((s, i) => {
|
|
251
260
|
const base = s.id != null ? `id:${s.id}` : s.label != null ? `label:${s.label}` : `pos:${i}`;
|
|
252
261
|
const n = seen.get(base) ?? 0;
|
|
253
262
|
seen.set(base, n + 1);
|
|
@@ -282,6 +291,8 @@ export class MdAreaChart {
|
|
|
282
291
|
|
|
283
292
|
disconnectedCallback() {
|
|
284
293
|
disconnectInteractionMotion(this);
|
|
294
|
+
this.disposeSeriesWatch?.();
|
|
295
|
+
this.disposeSeriesWatch = undefined;
|
|
285
296
|
this.ro?.disconnect();
|
|
286
297
|
this.ro = null;
|
|
287
298
|
this.engine?.dispose();
|
|
@@ -395,7 +406,7 @@ export class MdAreaChart {
|
|
|
395
406
|
|
|
396
407
|
/** Number of datapoints along x — the longest series, or the axis if longer. */
|
|
397
408
|
private dataLength(): number {
|
|
398
|
-
const longest = this.
|
|
409
|
+
const longest = this.effectiveSeries.reduce(
|
|
399
410
|
(acc, s) => Math.max(acc, s.range?.length ?? s.data?.length ?? 0),
|
|
400
411
|
0,
|
|
401
412
|
);
|
|
@@ -662,7 +673,7 @@ export class MdAreaChart {
|
|
|
662
673
|
private buildSpec(t: ReturnType<typeof readMdChartTheme>): LineChartSpec {
|
|
663
674
|
const percentage = this.stack === 'percentage';
|
|
664
675
|
const yFmt = (v: number) => (this.valueFormatter ? this.valueFormatter(v) : v.toLocaleString(this.locale || undefined));
|
|
665
|
-
// Zoom is a view: slice what the engine draws, leave `this.
|
|
676
|
+
// Zoom is a view: slice what the engine draws, leave `this.effectiveSeries` alone.
|
|
666
677
|
// Index-addressed options (pointSymbols) are rebased into window
|
|
667
678
|
// coordinates, and anything outside the window is dropped.
|
|
668
679
|
const zw = this.zoomWin ? this.win() : null;
|
|
@@ -679,7 +690,7 @@ export class MdAreaChart {
|
|
|
679
690
|
};
|
|
680
691
|
const keys = this.seriesKeys();
|
|
681
692
|
return {
|
|
682
|
-
series: this.
|
|
693
|
+
series: this.effectiveSeries.map((s, i) => ({
|
|
683
694
|
label: s.label ?? `Series ${i + 1}`,
|
|
684
695
|
color: resolveSeriesColor(this.el, s.color, pickPaletteColor(t.palette, i)),
|
|
685
696
|
// A range series draws from its band; `data` only keeps the row count
|
|
@@ -762,7 +773,7 @@ export class MdAreaChart {
|
|
|
762
773
|
this.rememberLegendToggle(item.seriesIndex, !!item.hidden);
|
|
763
774
|
this.mdLegendClick.emit({
|
|
764
775
|
seriesIndex: item.seriesIndex,
|
|
765
|
-
seriesId: this.
|
|
776
|
+
seriesId: this.effectiveSeries[item.seriesIndex]?.id,
|
|
766
777
|
selected: !item.hidden,
|
|
767
778
|
});
|
|
768
779
|
},
|
|
@@ -785,7 +796,7 @@ export class MdAreaChart {
|
|
|
785
796
|
axisValue: this.xAxis?.data?.[abs],
|
|
786
797
|
seriesValues: values.map((v) => ({
|
|
787
798
|
seriesIndex: v.seriesIndex,
|
|
788
|
-
seriesId: this.
|
|
799
|
+
seriesId: this.effectiveSeries[v.seriesIndex]?.id,
|
|
789
800
|
label: v.label,
|
|
790
801
|
dataIndex: v.value == null ? -1 : abs,
|
|
791
802
|
value: v.value,
|
|
@@ -805,8 +816,8 @@ export class MdAreaChart {
|
|
|
805
816
|
|
|
806
817
|
/** The payload shared by the three per-series click events (marker / line /
|
|
807
818
|
* area) — same shape, different gesture. */
|
|
808
|
-
private clickDetail(si: number, di: number, e: PointerEvent): MdChartClickDetail<
|
|
809
|
-
const s = this.
|
|
819
|
+
private clickDetail(si: number, di: number, e: PointerEvent): MdChartClickDetail<MdChartSeriesData> | null {
|
|
820
|
+
const s = this.effectiveSeries[si];
|
|
810
821
|
if (!s) return null;
|
|
811
822
|
const abs = di + (this.zoomWin ? this.win().start : 0);
|
|
812
823
|
return {
|
|
@@ -823,7 +834,7 @@ export class MdAreaChart {
|
|
|
823
834
|
private visibleSeriesIndices(): number[] {
|
|
824
835
|
const hp = this.engine?.getScene()?.hoverPoints;
|
|
825
836
|
if (hp) return hp.map((h) => h.seriesIndex);
|
|
826
|
-
return this.
|
|
837
|
+
return this.effectiveSeries.map((_, i) => i).filter((i) => !this.effectiveSeries[i].hidden);
|
|
827
838
|
}
|
|
828
839
|
|
|
829
840
|
private rebuildA11yTable() {
|
|
@@ -834,7 +845,7 @@ export class MdAreaChart {
|
|
|
834
845
|
xAxisData: this.xAxis?.data,
|
|
835
846
|
xValueFormatter: this.xAxis?.valueFormatter ?? ((v: MdChartAxisValue) => defaultValueFormatter(v, this.locale)),
|
|
836
847
|
locale: this.locale,
|
|
837
|
-
series: this.
|
|
848
|
+
series: this.effectiveSeries,
|
|
838
849
|
valueFormatter: this.valueFormatter,
|
|
839
850
|
labels: this.tableLabels,
|
|
840
851
|
});
|
|
@@ -911,14 +922,14 @@ export class MdAreaChart {
|
|
|
911
922
|
buildChartSummary({
|
|
912
923
|
title: this.label,
|
|
913
924
|
chartType: 'area',
|
|
914
|
-
seriesCount: this.
|
|
925
|
+
seriesCount: this.effectiveSeries.length,
|
|
915
926
|
locale: this.locale,
|
|
916
927
|
xMin: xValues[0] as MdChartAxisValue | undefined,
|
|
917
928
|
xMax: xValues[xValues.length - 1] as MdChartAxisValue | undefined,
|
|
918
929
|
});
|
|
919
930
|
// While loading, the loader owns the box — an empty-state message under it
|
|
920
931
|
// would just be the wrong answer to "where is my data?".
|
|
921
|
-
const empty = this.
|
|
932
|
+
const empty = this.effectiveSeries.length === 0 && !this.loading;
|
|
922
933
|
|
|
923
934
|
return (
|
|
924
935
|
<Host
|
|
@@ -1007,6 +1018,11 @@ export class MdAreaChart {
|
|
|
1007
1018
|
|
|
1008
1019
|
connectedCallback() {
|
|
1009
1020
|
reconnectInteractionMotion(this);
|
|
1021
|
+
this.disposeSeriesWatch?.();
|
|
1022
|
+
this.disposeSeriesWatch = observeChartSeries(this.el, series => {
|
|
1023
|
+
this.childSeries = series as MdChartSeriesData[] | undefined;
|
|
1024
|
+
this.onAnyPropChange();
|
|
1025
|
+
});
|
|
1010
1026
|
}
|
|
1011
1027
|
|
|
1012
1028
|
componentShouldUpdate() {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { AttrDeserialize, Component, Element, Prop, Watch, h } from '@stencil/core';
|
|
2
|
+
import type { MdPieDatum } from '../md-pie-chart/md-pie-chart.types';
|
|
3
|
+
import { PIE_SLICE_CHANGE, readPieChildren } from '../../utils/charts/data-elements';
|
|
4
|
+
|
|
5
|
+
/** Nonvisual pie datum. Direct default-slot slices override the parent's data array. */
|
|
6
|
+
@Component({ tag: 'md-pie-slice', styleUrl: 'md-pie-slice.css', shadow: true })
|
|
7
|
+
export class MdPieSlice {
|
|
8
|
+
@Element() el!: HTMLElement;
|
|
9
|
+
/** Slice name in the legend, tooltip and accessible table. */
|
|
10
|
+
@Prop() label: string = '';
|
|
11
|
+
/** Value proportional to the slice's angle. */
|
|
12
|
+
@Prop() value: number = 0;
|
|
13
|
+
/** Material color role or CSS color. */
|
|
14
|
+
@Prop() color?: string;
|
|
15
|
+
/** Explode this slice outward. */
|
|
16
|
+
@Prop() selected?: boolean;
|
|
17
|
+
/** Relative outer radius, interpreted by the pie chart. */
|
|
18
|
+
@Prop() radius?: number;
|
|
19
|
+
/** Stable datum identity; the standard DOM id remains independent. */
|
|
20
|
+
@Prop({ attribute: 'slice-id' }) sliceId?: string;
|
|
21
|
+
/** Datum visibility; the standard DOM hidden attribute remains independent. */
|
|
22
|
+
@Prop({ attribute: 'slice-hidden' }) sliceHidden?: boolean;
|
|
23
|
+
/** Child-data fallback when there are no direct default-slot md-pie-slice children. Reassign to update. */
|
|
24
|
+
@Prop({ attribute: 'child-slices' }) childSlices?: MdPieDatum[];
|
|
25
|
+
|
|
26
|
+
// Pure: the hydrate runtime calls this before constructing an instance.
|
|
27
|
+
@AttrDeserialize('childSlices')
|
|
28
|
+
deserializeChildren(value?: unknown): MdPieDatum[] | null | undefined { return value == null ? undefined : readPieChildren(value); }
|
|
29
|
+
|
|
30
|
+
componentDidLoad() { this.notifyChange(); }
|
|
31
|
+
@Watch('label') @Watch('value') @Watch('color') @Watch('selected') @Watch('radius')
|
|
32
|
+
@Watch('sliceId') @Watch('sliceHidden') @Watch('childSlices')
|
|
33
|
+
notifyChange() { this.el.dispatchEvent(new CustomEvent(PIE_SLICE_CHANGE, { bubbles: true, composed: true })); }
|
|
34
|
+
render() { return <slot />; }
|
|
35
|
+
}
|