@awc-ui/core 1.2.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 +254 -1
- package/dist/cjs/data-elements-Cs49KP5R.js +151 -0
- package/dist/cjs/data-elements-Cs49KP5R.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/md-accordion-item.cjs.entry.js +3 -3
- package/dist/cjs/md-app-bar.cjs.entry.js +1 -1
- package/dist/cjs/md-area-chart.cjs.entry.js +2 -2
- package/dist/cjs/md-avatar_2.cjs.entry.js +1 -1
- package/dist/cjs/md-badge.cjs.entry.js +2 -2
- package/dist/cjs/md-bar-chart.cjs.entry.js +2 -2
- package/dist/cjs/md-bottom-sheet.cjs.entry.js +4 -4
- package/dist/cjs/md-button_6.cjs.entry.js +9 -9
- package/dist/cjs/md-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/md-chip.cjs.entry.js +2 -2
- package/dist/cjs/md-dialog.cjs.entry.js +2 -2
- package/dist/cjs/md-divider.cjs.entry.js +2 -2
- package/dist/cjs/md-fab-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/md-fab-menu.cjs.entry.js +2 -2
- package/dist/cjs/md-fab.cjs.entry.js +2 -2
- package/dist/cjs/md-line-chart.cjs.entry.js +2 -2
- package/dist/cjs/md-menu-item-group.cjs.entry.js +1 -1
- package/dist/cjs/md-menu_2.cjs.entry.js +5 -5
- package/dist/cjs/md-meter.cjs.entry.js +2 -2
- package/dist/cjs/md-multi-select.cjs.entry.js +2 -2
- package/dist/cjs/md-navigation-rail-tab.cjs.entry.js +1 -1
- package/dist/cjs/md-navigation-rail.cjs.entry.js +2 -2
- package/dist/cjs/md-pie-chart.cjs.entry.js +23 -13
- 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 +1 -1
- package/dist/cjs/md-rating.cjs.entry.js +2 -2
- package/dist/cjs/md-segmented-button-set.cjs.entry.js +2 -2
- package/dist/cjs/md-segmented-button.cjs.entry.js +3 -3
- package/dist/cjs/md-select-option.cjs.entry.js +1 -1
- package/dist/cjs/md-select.cjs.entry.js +2 -2
- package/dist/cjs/md-side-sheet.cjs.entry.js +3 -3
- package/dist/cjs/md-skeleton.cjs.entry.js +1 -1
- 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 +20 -10
- package/dist/cjs/md-sparkline.cjs.entry.js.map +1 -1
- package/dist/cjs/md-split-button.cjs.entry.js +3 -3
- package/dist/cjs/md-status-dot.cjs.entry.js +1 -1
- package/dist/cjs/md-step.cjs.entry.js +6 -6
- package/dist/cjs/md-stepper.cjs.entry.js +3 -3
- package/dist/cjs/md-sub-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/md-switch.cjs.entry.js +2 -2
- package/dist/cjs/md-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/md-tab-panels.cjs.entry.js +1 -1
- package/dist/cjs/md-tab.cjs.entry.js +4 -4
- package/dist/cjs/md-table-body.cjs.entry.js +1 -1
- package/dist/cjs/md-table-cell.cjs.entry.js +2 -2
- package/dist/cjs/md-table-container.cjs.entry.js +2 -2
- package/dist/cjs/md-table-expand-toggle.cjs.entry.js +2 -2
- package/dist/cjs/md-table-foot.cjs.entry.js +1 -1
- package/dist/cjs/md-table-head.cjs.entry.js +1 -1
- package/dist/cjs/md-table-pagination.cjs.entry.js +2 -2
- package/dist/cjs/md-table-row.cjs.entry.js +4 -4
- package/dist/cjs/md-table-sort-label.cjs.entry.js +2 -2
- package/dist/cjs/md-table-toolbar.cjs.entry.js +3 -3
- package/dist/cjs/md-table.cjs.entry.js +3 -3
- package/dist/cjs/md-tabs.cjs.entry.js +2 -2
- package/dist/cjs/md-text-field.cjs.entry.js +7 -7
- package/dist/cjs/md-time-picker.cjs.entry.js +1 -1
- package/dist/cjs/md-toolbar.cjs.entry.js +3 -3
- package/dist/cjs/md-transfer-list.cjs.entry.js +1 -1
- package/dist/cjs/md3.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/md-accordion-item/md-accordion-item.js +3 -3
- package/dist/collection/components/md-app-bar/md-app-bar.js +1 -1
- package/dist/collection/components/md-area-chart/md-area-chart.js +2 -2
- package/dist/collection/components/md-badge/md-badge.js +2 -2
- package/dist/collection/components/md-bar-chart/md-bar-chart.js +2 -2
- package/dist/collection/components/md-bottom-sheet/md-bottom-sheet.js +4 -4
- package/dist/collection/components/md-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 +2 -2
- package/dist/collection/components/md-menu/md-menu.js +3 -3
- package/dist/collection/components/md-menu-item/md-menu-item.js +2 -2
- package/dist/collection/components/md-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/utils/charts/data-elements.js +138 -0
- package/dist/collection/utils/charts/data-elements.js.map +1 -0
- package/dist/components/md-accordion-item.js +1 -1
- package/dist/components/md-app-bar.js +1 -1
- package/dist/components/md-area-chart.js +1 -1
- package/dist/components/md-autocomplete.js +1 -1
- package/dist/components/md-badge.js +1 -1
- package/dist/components/md-bar-chart.js +1 -1
- package/dist/components/md-bottom-sheet.js +1 -1
- package/dist/components/md-breadcrumb-item.js +1 -1
- package/dist/components/md-button.js +1 -1
- package/dist/components/md-card.js +1 -1
- package/dist/components/md-checkbox.js +1 -1
- package/dist/components/md-chip.js +1 -1
- package/dist/components/md-date-picker.js +1 -1
- package/dist/components/md-dialog.js +1 -1
- package/dist/components/md-dialog.js.map +1 -1
- package/dist/components/md-divider.js +1 -1
- package/dist/components/md-fab-menu-item.js +1 -1
- package/dist/components/md-fab-menu-item.js.map +1 -1
- package/dist/components/md-fab-menu.js +1 -1
- package/dist/components/md-fab.js +1 -1
- package/dist/components/md-icon-button.js +1 -1
- package/dist/components/md-line-chart.js +1 -1
- package/dist/components/md-list-item.js +1 -1
- package/dist/components/md-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-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-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-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/components/{p-C84E82vc.js → p-8ZntJ7QX.js} +2 -2
- package/dist/components/{p-lK_nIs4o.js → p-Be_QxD6y.js} +2 -2
- package/dist/components/{p-P38YgsfT.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-3GSjLPGH.js → p-CXuNI4mJ.js} +2 -2
- package/dist/components/{p-BzXHX-ab.js → p-CjebvGxr.js} +2 -2
- package/dist/components/{p-CMkPI5PO.js → p-Cui8F6rf.js} +2 -2
- package/dist/components/{p-CuijKuQR.js → p-DoQ8iQ1K.js} +2 -2
- package/dist/components/{p-CXPZ-DjB.js → p-OutEvCQi.js} +2 -2
- package/dist/components/{p-CoxMxFp3.js → p-bn_S0ywb.js} +2 -2
- package/dist/components/{p-0IF02V78.js → p-xuLJPnDM.js} +2 -2
- package/dist/components/{p-DfuTvIyO.js → p-y5Rx7xpR.js} +2 -2
- package/dist/components-csr/md-accordion-item.js +1 -1
- package/dist/components-csr/md-app-bar.js +1 -1
- package/dist/components-csr/md-area-chart.js +1 -1
- package/dist/components-csr/md-autocomplete.js +1 -1
- package/dist/components-csr/md-badge.js +1 -1
- package/dist/components-csr/md-bar-chart.js +1 -1
- package/dist/components-csr/md-bottom-sheet.js +1 -1
- package/dist/components-csr/md-breadcrumb-item.js +1 -1
- package/dist/components-csr/md-button.js +1 -1
- package/dist/components-csr/md-card.js +1 -1
- package/dist/components-csr/md-checkbox.js +1 -1
- package/dist/components-csr/md-chip.js +1 -1
- package/dist/components-csr/md-date-picker.js +1 -1
- package/dist/components-csr/md-dialog.js +1 -1
- package/dist/components-csr/md-dialog.js.map +1 -1
- package/dist/components-csr/md-divider.js +1 -1
- package/dist/components-csr/md-fab-menu-item.js +1 -1
- package/dist/components-csr/md-fab-menu-item.js.map +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-list-item.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-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-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-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-CJoJbayQ.js → p--clgeNUW.js} +2 -2
- package/dist/components-csr/{p-pIQRKNpB.js → p-17dQVZNR.js} +2 -2
- package/dist/components-csr/{p-BrkO_ex-.js → p-B28l7X5i.js} +2 -2
- package/dist/components-csr/{p-DNOD_gWq.js → p-B2vk3_BC.js} +2 -2
- package/dist/components-csr/{p-iDisQkYG.js → p-BwQyYHuZ.js} +2 -2
- package/dist/components-csr/{p-B_7E_AYp.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-CgwYzoLw.js → p-D-dmT5kY.js} +2 -2
- package/dist/components-csr/{p-DtvcCARI.js → p-D6ADzLya.js} +2 -2
- package/dist/components-csr/{p-CSbYwMnb.js → p-D7AEBQIw.js} +2 -2
- package/dist/components-csr/{p-B0CFxLUh.js → p-DERBQrj5.js} +2 -2
- package/dist/components-csr/{p-GBA16NLW.js → p-jG7JIK7t.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/loader.js +1 -1
- package/dist/esm/md-accordion-item.entry.js +3 -3
- package/dist/esm/md-app-bar.entry.js +1 -1
- package/dist/esm/md-area-chart.entry.js +2 -2
- package/dist/esm/md-avatar_2.entry.js +1 -1
- package/dist/esm/md-badge.entry.js +2 -2
- package/dist/esm/md-bar-chart.entry.js +2 -2
- package/dist/esm/md-bottom-sheet.entry.js +4 -4
- package/dist/esm/md-button_6.entry.js +9 -9
- package/dist/esm/md-checkbox.entry.js +3 -3
- package/dist/esm/md-chip.entry.js +2 -2
- package/dist/esm/md-dialog.entry.js +2 -2
- package/dist/esm/md-divider.entry.js +2 -2
- package/dist/esm/md-fab-menu-item.entry.js +2 -2
- package/dist/esm/md-fab-menu.entry.js +2 -2
- package/dist/esm/md-fab.entry.js +2 -2
- package/dist/esm/md-line-chart.entry.js +2 -2
- package/dist/esm/md-menu-item-group.entry.js +1 -1
- package/dist/esm/md-menu_2.entry.js +5 -5
- package/dist/esm/md-meter.entry.js +2 -2
- package/dist/esm/md-multi-select.entry.js +2 -2
- package/dist/esm/md-navigation-rail-tab.entry.js +1 -1
- package/dist/esm/md-navigation-rail.entry.js +2 -2
- package/dist/esm/md-pie-chart.entry.js +23 -13
- 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 +1 -1
- package/dist/esm/md-rating.entry.js +2 -2
- package/dist/esm/md-segmented-button-set.entry.js +2 -2
- package/dist/esm/md-segmented-button.entry.js +3 -3
- package/dist/esm/md-select-option.entry.js +1 -1
- package/dist/esm/md-select.entry.js +2 -2
- package/dist/esm/md-side-sheet.entry.js +3 -3
- package/dist/esm/md-skeleton.entry.js +1 -1
- 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 +20 -10
- package/dist/esm/md-sparkline.entry.js.map +1 -1
- package/dist/esm/md-split-button.entry.js +3 -3
- package/dist/esm/md-status-dot.entry.js +1 -1
- package/dist/esm/md-step.entry.js +6 -6
- package/dist/esm/md-stepper.entry.js +3 -3
- package/dist/esm/md-sub-menu-item.entry.js +2 -2
- package/dist/esm/md-switch.entry.js +2 -2
- package/dist/esm/md-tab-panel.entry.js +1 -1
- package/dist/esm/md-tab-panels.entry.js +1 -1
- package/dist/esm/md-tab.entry.js +4 -4
- package/dist/esm/md-table-body.entry.js +1 -1
- package/dist/esm/md-table-cell.entry.js +2 -2
- package/dist/esm/md-table-container.entry.js +2 -2
- package/dist/esm/md-table-expand-toggle.entry.js +2 -2
- package/dist/esm/md-table-foot.entry.js +1 -1
- package/dist/esm/md-table-head.entry.js +1 -1
- package/dist/esm/md-table-pagination.entry.js +2 -2
- package/dist/esm/md-table-row.entry.js +4 -4
- package/dist/esm/md-table-sort-label.entry.js +2 -2
- package/dist/esm/md-table-toolbar.entry.js +3 -3
- package/dist/esm/md-table.entry.js +3 -3
- package/dist/esm/md-tabs.entry.js +2 -2
- package/dist/esm/md-text-field.entry.js +7 -7
- package/dist/esm/md-time-picker.entry.js +1 -1
- package/dist/esm/md-toolbar.entry.js +3 -3
- package/dist/esm/md-transfer-list.entry.js +1 -1
- package/dist/esm/md3.js +1 -1
- 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-b133fc2b.entry.js.map → p-02e4b894.entry.js.map} +1 -1
- package/dist/md3/p-08ef6b8f.entry.js +2 -0
- package/dist/md3/{p-f5ba0d4c.entry.js.map → p-08ef6b8f.entry.js.map} +1 -1
- package/dist/md3/{p-37f1060f.entry.js → p-1020166c.entry.js} +2 -2
- package/dist/md3/{p-de71d1e9.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-3be8439d.entry.js → p-18a1fe71.entry.js} +2 -2
- package/dist/md3/p-19222f36.entry.js +2 -0
- package/dist/md3/{p-42a51853.entry.js.map → p-19222f36.entry.js.map} +1 -1
- package/dist/md3/{p-3fc88c67.entry.js → p-197f8e6c.entry.js} +2 -2
- package/dist/md3/{p-46759ada.entry.js → p-1c930a91.entry.js} +2 -2
- package/dist/md3/{p-427de13e.entry.js → p-28eb088f.entry.js} +2 -2
- package/dist/md3/{p-16e69a81.entry.js → p-292823f3.entry.js} +2 -2
- package/dist/md3/{p-ce494bd1.entry.js → p-2ab73869.entry.js} +2 -2
- package/dist/md3/{p-d8442714.entry.js → p-2b4ca89b.entry.js} +2 -2
- package/dist/md3/{p-d4d1259c.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-de52f723.entry.js → p-3e07b199.entry.js} +2 -2
- package/dist/md3/{p-941eb93e.entry.js → p-3fc79692.entry.js} +2 -2
- package/dist/md3/{p-e67f228c.entry.js → p-4c3e159a.entry.js} +2 -2
- package/dist/md3/{p-925d5156.entry.js → p-50dad3c7.entry.js} +2 -2
- package/dist/md3/{p-d147397f.entry.js → p-56529078.entry.js} +2 -2
- package/dist/md3/{p-cc3e468e.entry.js → p-57084546.entry.js} +2 -2
- package/dist/md3/{p-2fcada07.entry.js → p-58eaadac.entry.js} +2 -2
- package/dist/md3/{p-e86abc6c.entry.js → p-63669cbe.entry.js} +2 -2
- package/dist/md3/{p-a7e198c6.entry.js → p-63c26c74.entry.js} +2 -2
- package/dist/md3/{p-fc4034bf.entry.js → p-656be0be.entry.js} +2 -2
- package/dist/md3/{p-1d6e080c.entry.js → p-6b984e4d.entry.js} +2 -2
- package/dist/md3/{p-f741f2c7.entry.js → p-7a651133.entry.js} +2 -2
- package/dist/md3/{p-3aea8887.entry.js → p-7cbef5e9.entry.js} +2 -2
- package/dist/md3/{p-3552a619.entry.js → p-7ce532aa.entry.js} +2 -2
- package/dist/md3/{p-ff41fc7e.entry.js → p-81c1fc3e.entry.js} +2 -2
- package/dist/md3/{p-defc5e78.entry.js → p-891e5635.entry.js} +2 -2
- package/dist/md3/{p-64a05e9e.entry.js → p-8a037b98.entry.js} +2 -2
- package/dist/md3/{p-5c961827.entry.js → p-93d4cca0.entry.js} +2 -2
- package/dist/md3/{p-6d700596.entry.js → p-9ab44705.entry.js} +2 -2
- package/dist/md3/{p-4b299eb7.entry.js → p-9ed391e9.entry.js} +2 -2
- package/dist/md3/p-D_7JTg9V.js +2 -0
- package/dist/md3/p-D_7JTg9V.js.map +1 -0
- package/dist/md3/p-a003e769.entry.js +2 -0
- package/dist/md3/{p-1cd1a2fb.entry.js.map → p-a003e769.entry.js.map} +1 -1
- package/dist/md3/{p-9bada6da.entry.js → p-a7b61854.entry.js} +2 -2
- package/dist/md3/{p-966c3ada.entry.js → p-b3b6a95b.entry.js} +2 -2
- package/dist/md3/{p-1e67a61f.entry.js → p-b3fb40d3.entry.js} +2 -2
- package/dist/md3/{p-0208c7bd.entry.js → p-b68af555.entry.js} +2 -2
- package/dist/md3/{p-7b1fd787.entry.js → p-b7c0e652.entry.js} +2 -2
- package/dist/md3/{p-edf74454.entry.js → p-b88b8b01.entry.js} +2 -2
- package/dist/md3/{p-d2ee5d68.entry.js → p-ba7975b3.entry.js} +2 -2
- package/dist/md3/{p-d44c3521.entry.js → p-be7a6e2c.entry.js} +2 -2
- package/dist/md3/{p-f4f64aa2.entry.js → p-c60d37e8.entry.js} +2 -2
- package/dist/md3/{p-36651efa.entry.js → p-cfff8d6e.entry.js} +2 -2
- package/dist/md3/{p-3e194c1e.entry.js → p-d369a8c5.entry.js} +2 -2
- package/dist/md3/{p-fcbdf4ba.entry.js → p-d76f4326.entry.js} +2 -2
- package/dist/md3/{p-46711014.entry.js → p-d7a4c007.entry.js} +2 -2
- package/dist/md3/{p-b17357b9.entry.js → p-d8e45f74.entry.js} +2 -2
- package/dist/md3/{p-1b57b1a8.entry.js → p-d9e58e9d.entry.js} +2 -2
- package/dist/md3/{p-3595b838.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-e6091e31.entry.js +2 -0
- package/dist/md3/p-e6091e31.entry.js.map +1 -0
- package/dist/md3/{p-3277f812.entry.js → p-ede7415a.entry.js} +2 -2
- package/dist/md3/{p-b2ecdc9d.entry.js → p-f61cc27a.entry.js} +2 -2
- package/dist/md3/{p-78df4a72.entry.js → p-fbe29776.entry.js} +2 -2
- package/dist/md3/{p-c715010f.entry.js → p-fcfd76d6.entry.js} +2 -2
- package/dist/md3/p-feb6458b.entry.js +2 -0
- package/dist/md3/{p-6620fab1.entry.js.map → p-feb6458b.entry.js.map} +1 -1
- package/dist/sources/54db212ca26584b16f4acb70c806fc3f94f045143349e8ec72ca2008a5162a7a/md-sparkline-point.tsx +25 -0
- package/dist/sources/{31256da68371b553f1d4bcf905fb37affca24680ba4be391b39695839fd4d855 → 66e71d8e4dbd2ceea6f5d062c7103815560620a7b21193bfa57d29cddba5757e}/md-sparkline.tsx +23 -8
- 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/cd1f7d7eb12ae719865e4d72507e1c83935839f312f92c6006c0afda6006fc43/md-pie-slice.tsx +35 -0
- package/dist/sources/cf81dec71be5e02fb010aeb51bd2dab53f9abb5d4f38bd4e3fcf4fca7713a0fc/data-elements.ts +125 -0
- package/dist/sources/{7a73bbcfec9d73868501427987950513fe4f7261f768148ed765bd98327cf27e → e82b4aa8f83e6d24aaa681939bc983114812458c3973d18c664c2d59697e81bd}/md-pie-chart.tsx +25 -11
- 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 +156 -2
- package/dist/types/utils/charts/data-elements.d.ts +32 -0
- package/hydrate/index.js +427 -153
- package/hydrate/index.mjs +427 -153
- package/package.json +2 -2
- package/src/components/md-pie-slice/readme.md +21 -0
- package/src/components/md-sparkline-point/readme.md +19 -0
- package/dist/md3/p-1cd1a2fb.entry.js +0 -2
- package/dist/md3/p-3bd61073.entry.js +0 -2
- package/dist/md3/p-3bd61073.entry.js.map +0 -1
- package/dist/md3/p-42a51853.entry.js +0 -2
- package/dist/md3/p-6620fab1.entry.js +0 -2
- package/dist/md3/p-b133fc2b.entry.js +0 -2
- package/dist/md3/p-df417df4.entry.js +0 -2
- package/dist/md3/p-df417df4.entry.js.map +0 -1
- package/dist/md3/p-f5ba0d4c.entry.js +0 -2
- /package/dist/components/{p-C84E82vc.js.map → p-8ZntJ7QX.js.map} +0 -0
- /package/dist/components/{p-lK_nIs4o.js.map → p-Be_QxD6y.js.map} +0 -0
- /package/dist/components/{p-P38YgsfT.js.map → p-C9Z-3TKn.js.map} +0 -0
- /package/dist/components/{p-3GSjLPGH.js.map → p-CXuNI4mJ.js.map} +0 -0
- /package/dist/components/{p-BzXHX-ab.js.map → p-CjebvGxr.js.map} +0 -0
- /package/dist/components/{p-CMkPI5PO.js.map → p-Cui8F6rf.js.map} +0 -0
- /package/dist/components/{p-CuijKuQR.js.map → p-DoQ8iQ1K.js.map} +0 -0
- /package/dist/components/{p-CXPZ-DjB.js.map → p-OutEvCQi.js.map} +0 -0
- /package/dist/components/{p-CoxMxFp3.js.map → p-bn_S0ywb.js.map} +0 -0
- /package/dist/components/{p-0IF02V78.js.map → p-xuLJPnDM.js.map} +0 -0
- /package/dist/components/{p-DfuTvIyO.js.map → p-y5Rx7xpR.js.map} +0 -0
- /package/dist/components-csr/{p-CJoJbayQ.js.map → p--clgeNUW.js.map} +0 -0
- /package/dist/components-csr/{p-pIQRKNpB.js.map → p-17dQVZNR.js.map} +0 -0
- /package/dist/components-csr/{p-BrkO_ex-.js.map → p-B28l7X5i.js.map} +0 -0
- /package/dist/components-csr/{p-DNOD_gWq.js.map → p-B2vk3_BC.js.map} +0 -0
- /package/dist/components-csr/{p-iDisQkYG.js.map → p-BwQyYHuZ.js.map} +0 -0
- /package/dist/components-csr/{p-B_7E_AYp.js.map → p-C9XZMCL-.js.map} +0 -0
- /package/dist/components-csr/{p-CgwYzoLw.js.map → p-D-dmT5kY.js.map} +0 -0
- /package/dist/components-csr/{p-DtvcCARI.js.map → p-D6ADzLya.js.map} +0 -0
- /package/dist/components-csr/{p-CSbYwMnb.js.map → p-D7AEBQIw.js.map} +0 -0
- /package/dist/components-csr/{p-B0CFxLUh.js.map → p-DERBQrj5.js.map} +0 -0
- /package/dist/components-csr/{p-GBA16NLW.js.map → p-jG7JIK7t.js.map} +0 -0
- /package/dist/md3/{p-37f1060f.entry.js.map → p-1020166c.entry.js.map} +0 -0
- /package/dist/md3/{p-de71d1e9.entry.js.map → p-11531ae7.entry.js.map} +0 -0
- /package/dist/md3/{p-3be8439d.entry.js.map → p-18a1fe71.entry.js.map} +0 -0
- /package/dist/md3/{p-3fc88c67.entry.js.map → p-197f8e6c.entry.js.map} +0 -0
- /package/dist/md3/{p-46759ada.entry.js.map → p-1c930a91.entry.js.map} +0 -0
- /package/dist/md3/{p-427de13e.entry.js.map → p-28eb088f.entry.js.map} +0 -0
- /package/dist/md3/{p-16e69a81.entry.js.map → p-292823f3.entry.js.map} +0 -0
- /package/dist/md3/{p-ce494bd1.entry.js.map → p-2ab73869.entry.js.map} +0 -0
- /package/dist/md3/{p-d8442714.entry.js.map → p-2b4ca89b.entry.js.map} +0 -0
- /package/dist/md3/{p-d4d1259c.entry.js.map → p-2caf7fb6.entry.js.map} +0 -0
- /package/dist/md3/{p-de52f723.entry.js.map → p-3e07b199.entry.js.map} +0 -0
- /package/dist/md3/{p-941eb93e.entry.js.map → p-3fc79692.entry.js.map} +0 -0
- /package/dist/md3/{p-e67f228c.entry.js.map → p-4c3e159a.entry.js.map} +0 -0
- /package/dist/md3/{p-925d5156.entry.js.map → p-50dad3c7.entry.js.map} +0 -0
- /package/dist/md3/{p-d147397f.entry.js.map → p-56529078.entry.js.map} +0 -0
- /package/dist/md3/{p-cc3e468e.entry.js.map → p-57084546.entry.js.map} +0 -0
- /package/dist/md3/{p-2fcada07.entry.js.map → p-58eaadac.entry.js.map} +0 -0
- /package/dist/md3/{p-e86abc6c.entry.js.map → p-63669cbe.entry.js.map} +0 -0
- /package/dist/md3/{p-a7e198c6.entry.js.map → p-63c26c74.entry.js.map} +0 -0
- /package/dist/md3/{p-fc4034bf.entry.js.map → p-656be0be.entry.js.map} +0 -0
- /package/dist/md3/{p-1d6e080c.entry.js.map → p-6b984e4d.entry.js.map} +0 -0
- /package/dist/md3/{p-f741f2c7.entry.js.map → p-7a651133.entry.js.map} +0 -0
- /package/dist/md3/{p-3aea8887.entry.js.map → p-7cbef5e9.entry.js.map} +0 -0
- /package/dist/md3/{p-3552a619.entry.js.map → p-7ce532aa.entry.js.map} +0 -0
- /package/dist/md3/{p-ff41fc7e.entry.js.map → p-81c1fc3e.entry.js.map} +0 -0
- /package/dist/md3/{p-defc5e78.entry.js.map → p-891e5635.entry.js.map} +0 -0
- /package/dist/md3/{p-64a05e9e.entry.js.map → p-8a037b98.entry.js.map} +0 -0
- /package/dist/md3/{p-5c961827.entry.js.map → p-93d4cca0.entry.js.map} +0 -0
- /package/dist/md3/{p-6d700596.entry.js.map → p-9ab44705.entry.js.map} +0 -0
- /package/dist/md3/{p-4b299eb7.entry.js.map → p-9ed391e9.entry.js.map} +0 -0
- /package/dist/md3/{p-9bada6da.entry.js.map → p-a7b61854.entry.js.map} +0 -0
- /package/dist/md3/{p-966c3ada.entry.js.map → p-b3b6a95b.entry.js.map} +0 -0
- /package/dist/md3/{p-1e67a61f.entry.js.map → p-b3fb40d3.entry.js.map} +0 -0
- /package/dist/md3/{p-0208c7bd.entry.js.map → p-b68af555.entry.js.map} +0 -0
- /package/dist/md3/{p-7b1fd787.entry.js.map → p-b7c0e652.entry.js.map} +0 -0
- /package/dist/md3/{p-edf74454.entry.js.map → p-b88b8b01.entry.js.map} +0 -0
- /package/dist/md3/{p-d2ee5d68.entry.js.map → p-ba7975b3.entry.js.map} +0 -0
- /package/dist/md3/{p-d44c3521.entry.js.map → p-be7a6e2c.entry.js.map} +0 -0
- /package/dist/md3/{p-f4f64aa2.entry.js.map → p-c60d37e8.entry.js.map} +0 -0
- /package/dist/md3/{p-36651efa.entry.js.map → p-cfff8d6e.entry.js.map} +0 -0
- /package/dist/md3/{p-3e194c1e.entry.js.map → p-d369a8c5.entry.js.map} +0 -0
- /package/dist/md3/{p-fcbdf4ba.entry.js.map → p-d76f4326.entry.js.map} +0 -0
- /package/dist/md3/{p-46711014.entry.js.map → p-d7a4c007.entry.js.map} +0 -0
- /package/dist/md3/{p-b17357b9.entry.js.map → p-d8e45f74.entry.js.map} +0 -0
- /package/dist/md3/{p-1b57b1a8.entry.js.map → p-d9e58e9d.entry.js.map} +0 -0
- /package/dist/md3/{p-3595b838.entry.js.map → p-da4139f6.entry.js.map} +0 -0
- /package/dist/md3/{p-3277f812.entry.js.map → p-ede7415a.entry.js.map} +0 -0
- /package/dist/md3/{p-b2ecdc9d.entry.js.map → p-f61cc27a.entry.js.map} +0 -0
- /package/dist/md3/{p-78df4a72.entry.js.map → p-fbe29776.entry.js.map} +0 -0
- /package/dist/md3/{p-c715010f.entry.js.map → p-fcfd76d6.entry.js.map} +0 -0
|
@@ -28,6 +28,8 @@ import {
|
|
|
28
28
|
watchMdChartTheme,
|
|
29
29
|
} from '../../utils/charts';
|
|
30
30
|
|
|
31
|
+
import { observeSparklinePoints, resolveSparklineLabels, type SparklinePoints } from '../../utils/charts/data-elements';
|
|
32
|
+
|
|
31
33
|
export interface MdSparklineReferenceArea {
|
|
32
34
|
/** Range start (index into the data array). */
|
|
33
35
|
from: number;
|
|
@@ -56,7 +58,12 @@ export interface MdSparklineReferenceArea {
|
|
|
56
58
|
export class MdSparkline {
|
|
57
59
|
@Element() el!: HTMLElement;
|
|
58
60
|
|
|
59
|
-
|
|
61
|
+
@State() private childPoints: SparklinePoints | undefined;
|
|
62
|
+
private disposePointWatch?: () => void;
|
|
63
|
+
private get effectiveData(): MdChartDataPoint[] { return this.childPoints?.data ?? this.data; }
|
|
64
|
+
private get effectiveLabels(): MdChartAxisValue[] | undefined { return resolveSparklineLabels(this.childPoints, this.labels); }
|
|
65
|
+
|
|
66
|
+
/** Numeric fallback when no direct default-slot md-sparkline-point children exist. Pass `null` for gaps. */
|
|
60
67
|
@Prop() data: MdChartDataPoint[] = [];
|
|
61
68
|
|
|
62
69
|
/** Optional category labels for tooltips / a11y. */
|
|
@@ -134,6 +141,8 @@ export class MdSparkline {
|
|
|
134
141
|
}
|
|
135
142
|
disconnectedCallback() {
|
|
136
143
|
disconnectInteractionMotion(this);
|
|
144
|
+
this.disposePointWatch?.();
|
|
145
|
+
this.disposePointWatch = undefined;
|
|
137
146
|
this.ro?.disconnect();
|
|
138
147
|
this.ro = null;
|
|
139
148
|
this.engine?.dispose();
|
|
@@ -204,7 +213,7 @@ export class MdSparkline {
|
|
|
204
213
|
|
|
205
214
|
private markIndices(): number[] {
|
|
206
215
|
const nums: { d: number; i: number }[] = [];
|
|
207
|
-
this.
|
|
216
|
+
this.effectiveData.forEach((d, i) => { if (typeof d === 'number') nums.push({ d, i }); });
|
|
208
217
|
if (!nums.length || this.showMarks === 'none') return [];
|
|
209
218
|
// `all` marks EVERY point (on a monotonic line the extremes ARE the edges, so
|
|
210
219
|
// `extremes`+`edges` collapsed to just the two ends — which read as "nothing").
|
|
@@ -247,7 +256,7 @@ export class MdSparkline {
|
|
|
247
256
|
series: [{
|
|
248
257
|
label: '',
|
|
249
258
|
color,
|
|
250
|
-
data: this.
|
|
259
|
+
data: this.effectiveData,
|
|
251
260
|
curve: this.curve,
|
|
252
261
|
connectNulls: true,
|
|
253
262
|
showMarks: false,
|
|
@@ -256,7 +265,7 @@ export class MdSparkline {
|
|
|
256
265
|
lineWidth: this.lineWidth,
|
|
257
266
|
markSize: this.markSize,
|
|
258
267
|
}],
|
|
259
|
-
xValues: this.
|
|
268
|
+
xValues: this.effectiveLabels ?? this.effectiveData.map((_, i) => i),
|
|
260
269
|
xScale: 'category',
|
|
261
270
|
xFormatter: (v) => String(v),
|
|
262
271
|
xHidden: true,
|
|
@@ -280,8 +289,8 @@ export class MdSparkline {
|
|
|
280
289
|
private buildBarSpec(color: string): BarChartSpec {
|
|
281
290
|
const fmt = (v: number) => (this.valueFormatter ? this.valueFormatter(v) : v.toLocaleString());
|
|
282
291
|
return {
|
|
283
|
-
series: [{ label: '', color, data: this.
|
|
284
|
-
categories: (this.
|
|
292
|
+
series: [{ label: '', color, data: this.effectiveData, hidden: false }],
|
|
293
|
+
categories: (this.effectiveLabels ?? this.effectiveData.map((_, i) => i)) as MdChartAxisValue[],
|
|
285
294
|
categoryFormatter: (v) => String(v),
|
|
286
295
|
categoryHidden: true,
|
|
287
296
|
valueScale: 'value',
|
|
@@ -310,7 +319,7 @@ export class MdSparkline {
|
|
|
310
319
|
const color = resolveSeriesColor(this.el, this.color, pickPaletteColor(t.palette, 0));
|
|
311
320
|
const theme = this.buildEngineTheme(t);
|
|
312
321
|
const onPointClick = (_si: number, di: number) => {
|
|
313
|
-
const v = this.
|
|
322
|
+
const v = this.effectiveData[di];
|
|
314
323
|
this.mdSparkClick.emit({ dataIndex: di, value: typeof v === 'number' ? v : null });
|
|
315
324
|
};
|
|
316
325
|
if (this.engine instanceof BarChartEngine) {
|
|
@@ -322,7 +331,7 @@ export class MdSparkline {
|
|
|
322
331
|
}
|
|
323
332
|
|
|
324
333
|
render() {
|
|
325
|
-
const finiteValues = this.
|
|
334
|
+
const finiteValues = this.effectiveData.filter((d): d is number => typeof d === 'number');
|
|
326
335
|
const last = finiteValues.length ? finiteValues[finiteValues.length - 1] : null;
|
|
327
336
|
const max = finiteValues.length ? Math.max(...finiteValues) : null;
|
|
328
337
|
const min = finiteValues.length ? Math.min(...finiteValues) : null;
|
|
@@ -346,6 +355,7 @@ export class MdSparkline {
|
|
|
346
355
|
aria-label={summary}
|
|
347
356
|
style={this.heightProp ? { blockSize: this.heightProp } : undefined}
|
|
348
357
|
>
|
|
358
|
+
<div hidden aria-hidden="true"><slot></slot></div>
|
|
349
359
|
<div class="md-sparkline__canvas" part="canvas" ref={el => this.bindChartHost(el as HTMLDivElement)}></div>
|
|
350
360
|
</Host>
|
|
351
361
|
);
|
|
@@ -361,6 +371,11 @@ export class MdSparkline {
|
|
|
361
371
|
|
|
362
372
|
connectedCallback() {
|
|
363
373
|
reconnectInteractionMotion(this);
|
|
374
|
+
this.disposePointWatch?.();
|
|
375
|
+
this.disposePointWatch = observeSparklinePoints(this.el, points => {
|
|
376
|
+
this.childPoints = points;
|
|
377
|
+
this.onAnyPropChange();
|
|
378
|
+
});
|
|
364
379
|
}
|
|
365
380
|
|
|
366
381
|
componentShouldUpdate() {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:host { display: none !important; }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:host { display: none !important; }
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import type { MdPieDatum } from '../../components/md-pie-chart/md-pie-chart.types';
|
|
2
|
+
import type { MdChartAxisValue } from './types';
|
|
3
|
+
|
|
4
|
+
/** Internal notifications; public interaction events stay on the chart. */
|
|
5
|
+
export const PIE_SLICE_CHANGE = 'mdPieSliceChange';
|
|
6
|
+
export const SPARKLINE_POINT_CHANGE = 'mdSparklinePointChange';
|
|
7
|
+
export const PIE_SLICE_FIELDS = {
|
|
8
|
+
label: 'label', value: 'value', color: 'color', selected: 'selected', radius: 'radius',
|
|
9
|
+
sliceId: 'id', sliceHidden: 'hidden', childSlices: 'children',
|
|
10
|
+
} as const satisfies Record<string, keyof MdPieDatum>;
|
|
11
|
+
|
|
12
|
+
const directChildren = (host: Element, tag: string) => Array.from(host.children)
|
|
13
|
+
.filter(child => child.localName === tag && !child.getAttribute('slot'));
|
|
14
|
+
|
|
15
|
+
/** Pure HTML/SSR decoder; typed arrays retain their identity. */
|
|
16
|
+
export function readPieChildren(value: unknown): MdPieDatum[] | null | undefined {
|
|
17
|
+
if (typeof value === 'string') {
|
|
18
|
+
try { value = JSON.parse(value); } catch { return undefined; }
|
|
19
|
+
}
|
|
20
|
+
return value === null || Array.isArray(value) ? value : undefined;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** No descriptors means the caller must keep its legacy array unchanged. */
|
|
24
|
+
export function readPieSlices(host: Element): MdPieDatum[] | undefined {
|
|
25
|
+
const children = directChildren(host, 'md-pie-slice');
|
|
26
|
+
if (!children.length) return undefined;
|
|
27
|
+
return children.map(child => {
|
|
28
|
+
const props = child as unknown as Record<string, unknown>;
|
|
29
|
+
const datum: Record<string, unknown> = { label: '', value: 0 };
|
|
30
|
+
for (const [prop, field] of Object.entries(PIE_SLICE_FIELDS)) {
|
|
31
|
+
const value = prop === 'childSlices' ? readPieChildren(props[prop]) : props[prop];
|
|
32
|
+
if (value !== undefined) datum[field] = value;
|
|
33
|
+
}
|
|
34
|
+
const nested = readPieSlices(child);
|
|
35
|
+
if (nested !== undefined) datum.children = nested;
|
|
36
|
+
return datum as unknown as MdPieDatum;
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** A missing, removed or explicit null attribute is a gap, never numeric zero. */
|
|
41
|
+
export function readSparklineValue(value: unknown): number | null {
|
|
42
|
+
if (typeof value === 'string') {
|
|
43
|
+
const text = value.trim();
|
|
44
|
+
if (!text || text === 'null') return null;
|
|
45
|
+
value = Number(text);
|
|
46
|
+
}
|
|
47
|
+
return typeof value === 'number' && Number.isFinite(value) ? value : null;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/** Preserve label types through SSR without treating ordinary HTML text as JSON. */
|
|
51
|
+
export function readSparklineLabel(value: unknown): unknown {
|
|
52
|
+
if (value == null) return undefined;
|
|
53
|
+
if (typeof value !== 'string') return value;
|
|
54
|
+
try {
|
|
55
|
+
const envelope: unknown = JSON.parse(value);
|
|
56
|
+
if (!envelope || typeof envelope !== 'object' || Array.isArray(envelope)) return value;
|
|
57
|
+
const record = envelope as Record<string, unknown>;
|
|
58
|
+
if (Object.keys(record).length !== 2 || !Object.prototype.hasOwnProperty.call(record, '$awcPointLabel') || !Object.prototype.hasOwnProperty.call(record, 'value')) return value;
|
|
59
|
+
if (record.$awcPointLabel === 'string' && typeof record.value === 'string') return record.value;
|
|
60
|
+
if (record.$awcPointLabel === 'number' && typeof record.value === 'number' && Number.isFinite(record.value)) return record.value;
|
|
61
|
+
if (record.$awcPointLabel === 'null' && record.value === null) return null;
|
|
62
|
+
if (record.$awcPointLabel === 'date' && typeof record.value === 'string') {
|
|
63
|
+
const date = new Date(record.value);
|
|
64
|
+
if (Number.isFinite(date.getTime()) && date.toISOString() === record.value) return date;
|
|
65
|
+
}
|
|
66
|
+
} catch { /* An ordinary HTML label is a literal string. */ }
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface SparklinePoints {
|
|
71
|
+
data: (number | null)[];
|
|
72
|
+
labels: (MdChartAxisValue | undefined)[];
|
|
73
|
+
}
|
|
74
|
+
export function readSparklinePoints(host: Element): SparklinePoints | undefined {
|
|
75
|
+
const children = directChildren(host, 'md-sparkline-point');
|
|
76
|
+
if (!children.length) return undefined;
|
|
77
|
+
return {
|
|
78
|
+
data: children.map(child => readSparklineValue((child as unknown as { value?: unknown }).value)),
|
|
79
|
+
labels: children.map(child => (child as unknown as { label?: MdChartAxisValue }).label),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/** Child labels are partial overrides; entirely omitted labels preserve identity. */
|
|
84
|
+
export function resolveSparklineLabels(points: SparklinePoints | undefined, labels: MdChartAxisValue[] | undefined): MdChartAxisValue[] | undefined {
|
|
85
|
+
if (!points || !points.labels.some(label => label !== undefined)) return labels;
|
|
86
|
+
return points.labels.map((label, index) => label !== undefined ? label : labels?.[index] !== undefined ? labels[index] : index);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** Observe only valid descriptor chains, including pie descendants at any depth. */
|
|
90
|
+
function observeData<T>(host: HTMLElement, tag: string, event: string, recursive: boolean, read: (host: HTMLElement) => T, changed: (value: T) => void): () => void {
|
|
91
|
+
let active = true;
|
|
92
|
+
let queued = false;
|
|
93
|
+
const belongs = (node: Element | null): boolean => {
|
|
94
|
+
if (node === host) return true;
|
|
95
|
+
while (node && node !== host) {
|
|
96
|
+
if (node.localName !== tag || node.getAttribute('slot')) return false;
|
|
97
|
+
node = node.parentElement;
|
|
98
|
+
if (!recursive) return node === host;
|
|
99
|
+
}
|
|
100
|
+
return node === host;
|
|
101
|
+
};
|
|
102
|
+
const refresh = () => {
|
|
103
|
+
if (!active || queued) return;
|
|
104
|
+
queued = true;
|
|
105
|
+
queueMicrotask(() => { queued = false; if (active) changed(read(host)); });
|
|
106
|
+
};
|
|
107
|
+
const onChange = (notification: Event) => {
|
|
108
|
+
const target = notification.target as Element | null;
|
|
109
|
+
if (target?.localName === tag && belongs(target)) refresh();
|
|
110
|
+
};
|
|
111
|
+
const observer = typeof MutationObserver === 'undefined' ? undefined : new MutationObserver(records => {
|
|
112
|
+
if (records.some(record => record.type === 'childList'
|
|
113
|
+
? record.target === host || (recursive && record.target.nodeType === 1 && belongs(record.target as Element))
|
|
114
|
+
: record.target.nodeType === 1 && (record.target as Element).localName === tag && (record.target.parentElement === host || (recursive && belongs(record.target.parentElement))))) refresh();
|
|
115
|
+
});
|
|
116
|
+
observer?.observe(host, { childList: true, attributes: true, attributeFilter: ['slot'], subtree: true });
|
|
117
|
+
host.addEventListener(event, onChange);
|
|
118
|
+
changed(read(host));
|
|
119
|
+
return () => { active = false; observer?.disconnect(); host.removeEventListener(event, onChange); };
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export const observePieSlices = (host: HTMLElement, changed: (slices: MdPieDatum[] | undefined) => void) =>
|
|
123
|
+
observeData(host, 'md-pie-slice', PIE_SLICE_CHANGE, true, readPieSlices, changed);
|
|
124
|
+
export const observeSparklinePoints = (host: HTMLElement, changed: (points: SparklinePoints | undefined) => void) =>
|
|
125
|
+
observeData(host, 'md-sparkline-point', SPARKLINE_POINT_CHANGE, false, readSparklinePoints, changed);
|
|
@@ -30,6 +30,7 @@ import {
|
|
|
30
30
|
type MdChartTooltipTrigger,
|
|
31
31
|
watchMdChartTheme,
|
|
32
32
|
} from '../../utils/charts';
|
|
33
|
+
import { observePieSlices } from '../../utils/charts/data-elements';
|
|
33
34
|
import { mirrorLegend } from '../../utils/charts/engine/rtl';
|
|
34
35
|
import type { MdPieDatum } from './md-pie-chart.types';
|
|
35
36
|
|
|
@@ -65,9 +66,14 @@ function findSiblings(items: MdPieDatum[], d: MdPieDatum): MdPieDatum[] | null {
|
|
|
65
66
|
export class MdPieChart {
|
|
66
67
|
@Element() el!: HTMLElement;
|
|
67
68
|
|
|
69
|
+
@State() private childSlices: MdPieDatum[] | undefined;
|
|
70
|
+
private disposeSliceWatch?: () => void;
|
|
71
|
+
private get effectiveData(): MdPieDatum[] { return this.childSlices ?? this.data; }
|
|
72
|
+
|
|
68
73
|
@Prop() label: string = '';
|
|
69
74
|
/** Title alignment over the chart: `start` (left), `center`, or `end` (right). */
|
|
70
75
|
@Prop({ attribute: 'title-align' }) titleAlign: MdChartTitleAlign = 'start';
|
|
76
|
+
/** Fallback when no direct default-slot md-pie-slice children are present. */
|
|
71
77
|
@Prop() data: MdPieDatum[] = [];
|
|
72
78
|
|
|
73
79
|
/** Inner radius (`"0%"` = pie, `"60%"` = donut, or px number). */
|
|
@@ -250,6 +256,8 @@ export class MdPieChart {
|
|
|
250
256
|
}
|
|
251
257
|
disconnectedCallback() {
|
|
252
258
|
disconnectInteractionMotion(this);
|
|
259
|
+
this.disposeSliceWatch?.();
|
|
260
|
+
this.disposeSliceWatch = undefined;
|
|
253
261
|
this.ro?.disconnect();
|
|
254
262
|
this.ro = null;
|
|
255
263
|
this.engine?.dispose();
|
|
@@ -422,7 +430,7 @@ export class MdPieChart {
|
|
|
422
430
|
if (d.children?.length) walk(d.children, level + 1, at, color);
|
|
423
431
|
});
|
|
424
432
|
};
|
|
425
|
-
walk(this.
|
|
433
|
+
walk(this.effectiveData ?? [], 0, undefined);
|
|
426
434
|
return out;
|
|
427
435
|
}
|
|
428
436
|
|
|
@@ -443,7 +451,7 @@ export class MdPieChart {
|
|
|
443
451
|
if (d.children?.length) walk(d.children);
|
|
444
452
|
}
|
|
445
453
|
};
|
|
446
|
-
walk(this.
|
|
454
|
+
walk(this.effectiveData ?? []);
|
|
447
455
|
return out;
|
|
448
456
|
}
|
|
449
457
|
|
|
@@ -452,7 +460,7 @@ export class MdPieChart {
|
|
|
452
460
|
// `t.palette` is the role cycle: primary, tertiary, secondary, error, then
|
|
453
461
|
// the containers. Take the three non-semantic accents off the front as the
|
|
454
462
|
// ramp's anchors.
|
|
455
|
-
const palette = harmonicPalette(t.palette.slice(0, 3), this.
|
|
463
|
+
const palette = harmonicPalette(t.palette.slice(0, 3), this.effectiveData.length, {
|
|
456
464
|
light: t.surface,
|
|
457
465
|
dark: t.textColor,
|
|
458
466
|
});
|
|
@@ -528,20 +536,20 @@ export class MdPieChart {
|
|
|
528
536
|
* behaviour can't drift from theirs the way the hand-rolled one did. */
|
|
529
537
|
private rebuildA11yTable() {
|
|
530
538
|
if (!this.a11yTableHost) return;
|
|
531
|
-
const total = this.
|
|
539
|
+
const total = this.effectiveData.reduce((acc, d) => acc + d.value, 0);
|
|
532
540
|
const lb = this.tableLabels ?? {};
|
|
533
541
|
this.a11yTableHost.innerHTML = buildDataTableHtml({
|
|
534
542
|
title: this.label,
|
|
535
543
|
xAxisLabel: lb.category ?? 'Category',
|
|
536
|
-
xAxisData: this.
|
|
544
|
+
xAxisData: this.effectiveData.map(d => d.label),
|
|
537
545
|
locale: this.locale,
|
|
538
546
|
// A pie's rows are its slices, so each "series" here is one column of the
|
|
539
547
|
// table: the value, and the share it represents.
|
|
540
548
|
series: [
|
|
541
|
-
{ label: lb.value ?? 'Value', data: this.
|
|
549
|
+
{ label: lb.value ?? 'Value', data: this.effectiveData.map(d => d.value) },
|
|
542
550
|
{
|
|
543
551
|
label: lb.share ?? 'Share',
|
|
544
|
-
data: this.
|
|
552
|
+
data: this.effectiveData.map(d => (total > 0 ? (d.value / total) * 100 : 0)),
|
|
545
553
|
},
|
|
546
554
|
],
|
|
547
555
|
valueFormatter: v => (v == null ? '—' : this.formatValue(v)),
|
|
@@ -633,8 +641,8 @@ export class MdPieChart {
|
|
|
633
641
|
// Against its OWN level, not the whole tree: a version is a share of its
|
|
634
642
|
// browser, and reading it as a share of every slice on the chart — parents
|
|
635
643
|
// and children together — would be a percentage of nothing.
|
|
636
|
-
const siblings = this.
|
|
637
|
-
? (findSiblings(this.
|
|
644
|
+
const siblings = this.effectiveData?.some((x) => x.children?.length)
|
|
645
|
+
? (findSiblings(this.effectiveData ?? [], d) ?? flat)
|
|
638
646
|
: flat;
|
|
639
647
|
const total = siblings.reduce((acc, x) => acc + x.value, 0);
|
|
640
648
|
const pct = total > 0 ? (d.value / total) * 100 : 0;
|
|
@@ -647,13 +655,13 @@ export class MdPieChart {
|
|
|
647
655
|
render() {
|
|
648
656
|
// While loading, the loader owns the box — an empty-state message under it
|
|
649
657
|
// would just be the wrong answer to "where is my data?".
|
|
650
|
-
const empty = this.
|
|
658
|
+
const empty = this.effectiveData.length === 0 && !this.loading;
|
|
651
659
|
const summary =
|
|
652
660
|
this.summary ||
|
|
653
661
|
buildChartSummary({
|
|
654
662
|
title: this.label,
|
|
655
663
|
chartType: 'pie',
|
|
656
|
-
seriesCount: this.
|
|
664
|
+
seriesCount: this.effectiveData.length,
|
|
657
665
|
locale: this.locale,
|
|
658
666
|
});
|
|
659
667
|
return (
|
|
@@ -669,6 +677,7 @@ export class MdPieChart {
|
|
|
669
677
|
aria-busy={this.loading ? 'true' : null}
|
|
670
678
|
style={this.heightProp ? { blockSize: this.heightProp } : undefined}
|
|
671
679
|
>
|
|
680
|
+
<div hidden aria-hidden="true"><slot></slot></div>
|
|
672
681
|
<header class="md-pie-chart__header" part="header"><slot name="header"></slot></header>
|
|
673
682
|
<div
|
|
674
683
|
class="md-pie-chart__canvas"
|
|
@@ -731,6 +740,11 @@ export class MdPieChart {
|
|
|
731
740
|
|
|
732
741
|
connectedCallback() {
|
|
733
742
|
reconnectInteractionMotion(this);
|
|
743
|
+
this.disposeSliceWatch?.();
|
|
744
|
+
this.disposeSliceWatch = observePieSlices(this.el, slices => {
|
|
745
|
+
this.childSlices = slices;
|
|
746
|
+
this.onAnyPropChange();
|
|
747
|
+
});
|
|
734
748
|
}
|
|
735
749
|
|
|
736
750
|
componentShouldUpdate() {
|
|
@@ -3,9 +3,13 @@ import { PieChartEngine, type MdChartAnimation, type MdChartClickDetail, type Md
|
|
|
3
3
|
import type { MdPieDatum } from './md-pie-chart.types.js';
|
|
4
4
|
export declare class MdPieChart {
|
|
5
5
|
el: HTMLElement;
|
|
6
|
+
private childSlices;
|
|
7
|
+
private disposeSliceWatch?;
|
|
8
|
+
private get effectiveData();
|
|
6
9
|
label: string;
|
|
7
10
|
/** Title alignment over the chart: `start` (left), `center`, or `end` (right). */
|
|
8
11
|
titleAlign: MdChartTitleAlign;
|
|
12
|
+
/** Fallback when no direct default-slot md-pie-slice children are present. */
|
|
9
13
|
data: MdPieDatum[];
|
|
10
14
|
/** Inner radius (`"0%"` = pie, `"60%"` = donut, or px number). */
|
|
11
15
|
innerRadius: string | number;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { MdPieDatum } from '../md-pie-chart/md-pie-chart.types.js';
|
|
2
|
+
/** Nonvisual pie datum. Direct default-slot slices override the parent's data array. */
|
|
3
|
+
export declare class MdPieSlice {
|
|
4
|
+
el: HTMLElement;
|
|
5
|
+
/** Slice name in the legend, tooltip and accessible table. */
|
|
6
|
+
label: string;
|
|
7
|
+
/** Value proportional to the slice's angle. */
|
|
8
|
+
value: number;
|
|
9
|
+
/** Material color role or CSS color. */
|
|
10
|
+
color?: string;
|
|
11
|
+
/** Explode this slice outward. */
|
|
12
|
+
selected?: boolean;
|
|
13
|
+
/** Relative outer radius, interpreted by the pie chart. */
|
|
14
|
+
radius?: number;
|
|
15
|
+
/** Stable datum identity; the standard DOM id remains independent. */
|
|
16
|
+
sliceId?: string;
|
|
17
|
+
/** Datum visibility; the standard DOM hidden attribute remains independent. */
|
|
18
|
+
sliceHidden?: boolean;
|
|
19
|
+
/** Child-data fallback when there are no direct default-slot md-pie-slice children. Reassign to update. */
|
|
20
|
+
childSlices?: MdPieDatum[];
|
|
21
|
+
deserializeChildren(value?: unknown): MdPieDatum[] | null | undefined;
|
|
22
|
+
componentDidLoad(): void;
|
|
23
|
+
notifyChange(): void;
|
|
24
|
+
render(): any;
|
|
25
|
+
}
|
|
@@ -21,7 +21,11 @@ export interface MdSparklineReferenceArea {
|
|
|
21
21
|
*/
|
|
22
22
|
export declare class MdSparkline {
|
|
23
23
|
el: HTMLElement;
|
|
24
|
-
|
|
24
|
+
private childPoints;
|
|
25
|
+
private disposePointWatch?;
|
|
26
|
+
private get effectiveData();
|
|
27
|
+
private get effectiveLabels();
|
|
28
|
+
/** Numeric fallback when no direct default-slot md-sparkline-point children exist. Pass `null` for gaps. */
|
|
25
29
|
data: MdChartDataPoint[];
|
|
26
30
|
/** Optional category labels for tooltips / a11y. */
|
|
27
31
|
labels: (string | number | Date)[] | undefined;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { MdChartAxisValue } from '../../utils/charts/types.js';
|
|
2
|
+
/** Nonvisual indexed sparkline point. Missing values retain their position as gaps. */
|
|
3
|
+
export declare class MdSparklinePoint {
|
|
4
|
+
el: HTMLElement;
|
|
5
|
+
/** Numeric value, or null for a gap. Omission, removal and value="null" are gaps. */
|
|
6
|
+
value: number | null;
|
|
7
|
+
/** Optional tooltip/category label; missing labels inherit the parent's label at this index. */
|
|
8
|
+
label?: MdChartAxisValue;
|
|
9
|
+
deserializeValue(value?: unknown): number | null;
|
|
10
|
+
deserializeLabel(value?: unknown): unknown;
|
|
11
|
+
componentDidLoad(): void;
|
|
12
|
+
notifyChange(): void;
|
|
13
|
+
render(): null;
|
|
14
|
+
}
|