@ids-group-ltd/ids-design-system 0.14.4 → 0.14.5
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/CHANGELOG.md +160 -0
- package/components.md +14 -14
- package/docs/agent/INDEX.md +1 -1
- package/docs/agent/charts/ds-bar-chart.md +1 -1
- package/docs/agent/charts/ds-chart.md +1 -1
- package/docs/agent/charts/ds-column-chart.md +1 -1
- package/docs/agent/charts/ds-funnel-chart.md +1 -1
- package/docs/agent/charts/ds-heatmap-chart.md +1 -1
- package/docs/agent/charts/ds-line-chart.md +1 -1
- package/docs/agent/charts/ds-pie-chart.md +3 -3
- package/docs/agent/charts/ds-scatter-chart.md +1 -1
- package/docs/agent/charts/ds-waterfall-chart.md +1 -1
- package/docs/agent/navigation/ds-breadcrumbs.md +1 -1
- package/docs/agent/overlays/ds-tooltip.md +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +4 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +58 -163
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +21 -34
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +34 -105
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +3 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +22 -48
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +7 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +6 -10
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +28 -130
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs +11 -29
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +10 -28
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +16 -13
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +3 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +42 -69
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +15 -20
- package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +6 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +3 -10
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +12 -28
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +58 -112
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +182 -432
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +8 -12
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +8 -22
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +28 -123
- package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +45 -116
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +3 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs +4 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +7 -16
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +7 -8
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +3 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +16 -45
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +10 -14
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +19 -41
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +48 -163
- package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +27 -85
- package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +17 -25
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +21 -41
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +3 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +50 -166
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +7 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +6 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +19 -36
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +30 -57
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +37 -103
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +5 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +9 -15
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +8 -12
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +9 -24
- package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +32 -120
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +14 -24
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +15 -24
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs +9 -16
- package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +27 -91
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +16 -41
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +8 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +18 -52
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +4 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +30 -49
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +8 -12
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +6 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs +29 -13
- package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +3 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +8 -9
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +5 -20
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +3 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +5 -9
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +11 -23
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +7 -16
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs +9 -43
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +167 -353
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +33 -86
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +7 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +23 -47
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +21 -49
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +35 -63
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +38 -50
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +3 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +3 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +28 -85
- package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +325 -579
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +51 -85
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +4 -21
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs +4 -13
- package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs +1 -2
- package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs.map +1 -1
- package/migrations/0.14.5.json +311 -0
- package/package.json +1 -1
- package/schematics/check-overrides/surface.json +17 -2
- package/styles/_breakpoints.scss +6 -23
- package/styles/_chart-data-table.scss +3 -11
- package/styles/_chart-frame.scss +14 -63
- package/styles/_chart-interactive.scss +8 -36
- package/styles/_chart-motion.scss +11 -39
- package/styles/_check-box.scss +7 -26
- package/styles/_check-mark.scss +7 -23
- package/styles/_chip-row.scss +3 -14
- package/styles/_clear-button.scss +2 -7
- package/styles/_control-label.scss +2 -13
- package/styles/_control-line.scss +2 -6
- package/styles/_dropdown-overlay.scss +8 -33
- package/styles/_ds-color.scss +9 -28
- package/styles/_field-box.scss +4 -16
- package/styles/_field-group-segment.scss +6 -6
- package/styles/_field-label.scss +3 -14
- package/styles/_field-state.scss +5 -10
- package/styles/_focus.scss +20 -60
- package/styles/_icon-base.scss +0 -2
- package/styles/_layout-utils.scss +0 -3
- package/styles/_link.scss +4 -18
- package/styles/_overlay-motion.scss +15 -38
- package/styles/_page-grid.scss +4 -29
- package/styles/_press.scss +5 -18
- package/styles/_reset.scss +1 -14
- package/styles/_scrollbar.scss +0 -2
- package/styles/_skeleton-shimmer.scss +3 -14
- package/styles/_status.scss +5 -13
- package/styles/_surface-motion.scss +7 -34
- package/styles/_table-controls.scss +3 -6
- package/styles/_text-clip.scss +2 -6
- package/styles/_theme-activation.scss +7 -20
- package/styles/_toast-overlay.scss +2 -6
- package/styles/_tokens-charts.scss +31 -90
- package/styles/_tokens.scss +111 -156
- package/styles/_typography.scss +6 -13
- package/styles/_visually-hidden.scss +2 -3
- package/styles/ds.scss +2 -10
- package/themes/_base-palette.scss +12 -35
- package/themes/_semantic.scss +29 -98
- package/themes/dark/_palette.scss +15 -29
- package/themes/dark/_theme.scss +14 -32
- package/themes/light/_palette.scss +2 -17
- package/themes/light/_theme.scss +1 -7
- package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +2 -6
- package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +2 -3
- package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +45 -119
- package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +19 -32
- package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +29 -92
- package/types/ids-group-ltd-ids-design-system-components-avatar-group.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-avatar.d.ts +23 -46
- package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +5 -5
- package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +4 -8
- package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +27 -136
- package/types/ids-group-ltd-ids-design-system-components-bar.d.ts +13 -32
- package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +6 -12
- package/types/ids-group-ltd-ids-design-system-components-breadcrumbs.d.ts +6 -9
- package/types/ids-group-ltd-ids-design-system-components-button-group.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +36 -55
- package/types/ids-group-ltd-ids-design-system-components-calendar-day.d.ts +13 -18
- package/types/ids-group-ltd-ids-design-system-components-card.d.ts +2 -2
- package/types/ids-group-ltd-ids-design-system-components-chart-data-table.d.ts +5 -11
- package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +10 -26
- package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +27 -49
- package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +161 -385
- package/types/ids-group-ltd-ids-design-system-components-checkbox.d.ts +6 -10
- package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +5 -14
- package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +29 -124
- package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +23 -70
- package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +3 -3
- package/types/ids-group-ltd-ids-design-system-components-divider.d.ts +3 -7
- package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +1 -3
- package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +6 -8
- package/types/ids-group-ltd-ids-design-system-components-empty-state.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-field-group.d.ts +17 -50
- package/types/ids-group-ltd-ids-design-system-components-field-message.d.ts +8 -12
- package/types/ids-group-ltd-ids-design-system-components-filter-bar.d.ts +13 -28
- package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +25 -113
- package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +17 -85
- package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +15 -23
- package/types/ids-group-ltd-ids-design-system-components-input.d.ts +18 -37
- package/types/ids-group-ltd-ids-design-system-components-layout.d.ts +3 -3
- package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +51 -160
- package/types/ids-group-ltd-ids-design-system-components-list.d.ts +3 -3
- package/types/ids-group-ltd-ids-design-system-components-loading-overlay.d.ts +4 -9
- package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +13 -21
- package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +15 -28
- package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +27 -83
- package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +5 -6
- package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +5 -7
- package/types/ids-group-ltd-ids-design-system-components-page-footer.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +6 -10
- package/types/ids-group-ltd-ids-design-system-components-password-rules.d.ts +8 -22
- package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +18 -102
- package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +7 -11
- package/types/ids-group-ltd-ids-design-system-components-radio-group.d.ts +14 -25
- package/types/ids-group-ltd-ids-design-system-components-reserve-messages.d.ts +7 -12
- package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +21 -96
- package/types/ids-group-ltd-ids-design-system-components-search.d.ts +12 -33
- package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +6 -7
- package/types/ids-group-ltd-ids-design-system-components-select.d.ts +12 -41
- package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +8 -15
- package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +23 -40
- package/types/ids-group-ltd-ids-design-system-components-skeleton.d.ts +3 -5
- package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +4 -4
- package/types/ids-group-ltd-ids-design-system-components-sparkline.d.ts +14 -10
- package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +6 -7
- package/types/ids-group-ltd-ids-design-system-components-stat.d.ts +2 -15
- package/types/ids-group-ltd-ids-design-system-components-status-dot.d.ts +2 -2
- package/types/ids-group-ltd-ids-design-system-components-stepper.d.ts +4 -6
- package/types/ids-group-ltd-ids-design-system-components-switch.d.ts +5 -9
- package/types/ids-group-ltd-ids-design-system-components-table-columns.d.ts +3 -7
- package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +4 -8
- package/types/ids-group-ltd-ids-design-system-components-table-resize.d.ts +9 -43
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +160 -369
- package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +21 -49
- package/types/ids-group-ltd-ids-design-system-components-tag.d.ts +5 -5
- package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +17 -34
- package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +17 -38
- package/types/ids-group-ltd-ids-design-system-components-timeline.d.ts +2 -2
- package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +20 -37
- package/types/ids-group-ltd-ids-design-system-components-toggle-button.d.ts +2 -3
- package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +17 -36
- package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +2 -2
- package/types/ids-group-ltd-ids-design-system-components-w3w.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +21 -70
- package/types/ids-group-ltd-ids-design-system-components.d.ts +262 -415
- package/types/ids-group-ltd-ids-design-system-core.d.ts +133 -260
- package/types/ids-group-ltd-ids-design-system-icons.d.ts +2 -24
- package/types/ids-group-ltd-ids-design-system-overlay.d.ts +4 -13
- package/types/ids-group-ltd-ids-design-system-theme.d.ts +4 -6
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, booleanAttribute,
|
|
3
|
-
import { formatPercent, chartRenderGate, leaveMark,
|
|
2
|
+
import { input, booleanAttribute, output, numberAttribute, contentChild, computed, signal, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
|
|
3
|
+
import { formatPercent, DsChartBase, chartRenderGate, leaveMark, staggerDelay, rovingMarks, chartDwell, markAt, chartColors, CHART_RAMP_COLORS, describeSeries } from '@ids-group-ltd/ids-design-system/components';
|
|
4
4
|
import { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';
|
|
5
5
|
import { IconComponent } from '@ids-group-ltd/ids-design-system/icons';
|
|
6
6
|
import { ChartDataTableComponent } from '@ids-group-ltd/ids-design-system/components/chart-data-table';
|
|
7
|
-
import { DS_INTL } from '@ids-group-ltd/ids-design-system/core';
|
|
8
7
|
import { chartActiveMark, ChartTooltipDirective } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
|
|
9
8
|
|
|
10
|
-
/** Bottom width of the fixed silhouette, as a fraction of the full width.
|
|
11
|
-
* tail carries a label, so it never narrows past this. */
|
|
9
|
+
/** Bottom width of the fixed silhouette, as a fraction of the full width; the tail carries a label. */
|
|
12
10
|
const FUNNEL_TAIL_WIDTH = 0.38;
|
|
13
|
-
/** Ramp step for one stage, spread across the whole ramp rather than
|
|
14
|
-
* first `rampedCount` entries — a three-stage funnel that used steps 1-3 would
|
|
15
|
-
* never reach the deep end the ramp exists to provide. */
|
|
11
|
+
/** Ramp step for one stage, spread across the whole ramp rather than its first `rampedCount` entries. */
|
|
16
12
|
function rampPosition(index, rampedCount, rampLength) {
|
|
17
13
|
if (rampLength <= 0 || rampedCount <= 1) {
|
|
18
14
|
return 0;
|
|
@@ -20,18 +16,12 @@ function rampPosition(index, rampedCount, rampLength) {
|
|
|
20
16
|
const position = Math.round((index / (rampedCount - 1)) * (rampLength - 1));
|
|
21
17
|
return Math.min(Math.max(position, 0), rampLength - 1);
|
|
22
18
|
}
|
|
23
|
-
/** The viewBox is normalised: depth runs 0..100 whatever the stage count, and
|
|
24
|
-
* the rendered block size carries the real height. */
|
|
25
19
|
const FUNNEL_VIEW_BOX_WIDTH = 100;
|
|
26
20
|
const FUNNEL_VIEW_BOX_HEIGHT = 100;
|
|
27
|
-
/** One inter-stage gap
|
|
28
|
-
* not a count of units, because the viewBox depth is normalised: a fixed
|
|
29
|
-
* number of units would grow on screen with every stage added. */
|
|
21
|
+
/** One inter-stage gap as a share of a stage's depth. */
|
|
30
22
|
const FUNNEL_STAGE_GAP_SHARE = 0.14;
|
|
31
|
-
/** Every value as a finite, non-negative number
|
|
32
|
-
*
|
|
33
|
-
* attribute as `NaN`, where the renderer drops the whole shape without an
|
|
34
|
-
* error. */
|
|
23
|
+
/** Every value as a finite, non-negative number: a negative mirrors a stage about its centre line, and
|
|
24
|
+
* `NaN` in an SVG attribute drops the whole shape silently. */
|
|
35
25
|
function sanitizeValues(values) {
|
|
36
26
|
return values.map((value) => Number.isFinite(value) ? Math.max(value, 0) : 0);
|
|
37
27
|
}
|
|
@@ -47,17 +37,13 @@ function widthAtDepth(depth, tailWidth) {
|
|
|
47
37
|
function largestValue(values) {
|
|
48
38
|
return values.reduce((largest, value) => (value > largest ? value : largest), 0);
|
|
49
39
|
}
|
|
50
|
-
/** The depth at which `areaShare` of the silhouette's area lies above
|
|
51
|
-
*
|
|
52
|
-
* `(1 + tail) / 2`, so the depth is a root of that quadratic rather than a
|
|
53
|
-
* ratio — this is the step that makes area, not width, carry the value. The
|
|
54
|
-
* discriminant bottoms out at `tail²`, so the root is always real. */
|
|
40
|
+
/** The depth at which `areaShare` of the silhouette's area lies above: the quadratic root of
|
|
41
|
+
* `t - (1 - tail) * t² / 2 = areaShare * (1 + tail) / 2`, always real. */
|
|
55
42
|
function depthForAreaShare(areaShare, tailWidth) {
|
|
56
43
|
const share = clampFraction(areaShare);
|
|
57
44
|
const tail = clampFraction(tailWidth);
|
|
58
45
|
const narrowing = 1 - tail;
|
|
59
|
-
// A
|
|
60
|
-
// depth and the quadratic degenerates to 0/0.
|
|
46
|
+
// A rectangle: area is linear in depth and the quadratic degenerates to 0/0.
|
|
61
47
|
if (narrowing <= 0) {
|
|
62
48
|
return share;
|
|
63
49
|
}
|
|
@@ -95,19 +81,12 @@ function boundaryWidths(values, shape, depths, tailWidth) {
|
|
|
95
81
|
if (!Number.isFinite(largest) || largest <= 0) {
|
|
96
82
|
return depths.map(() => 0);
|
|
97
83
|
}
|
|
98
|
-
// The last boundary repeats the last value
|
|
99
|
-
// there is no following stage to taper towards.
|
|
84
|
+
// The last boundary repeats the last value: no following stage to taper towards.
|
|
100
85
|
return Array.from({ length: count + 1 }, (_, index) => clampFraction(values[Math.min(index, count - 1)] / largest));
|
|
101
86
|
}
|
|
102
|
-
/** One trapezoid per stage, in fractions of the full width and of the total
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
* `'taper'` and `'area'` share one fixed silhouette — full width at the top,
|
|
106
|
-
* `FUNNEL_TAIL_WIDTH` at the bottom — and differ only in where the stage
|
|
107
|
-
* boundaries land on it: evenly spaced for `'taper'`, so width encodes
|
|
108
|
-
* nothing, and at the depths that make each band's area proportional to its
|
|
109
|
-
* value for `'area'`. `'width'` abandons the silhouette and reads every
|
|
110
|
-
* boundary straight off the values. */
|
|
87
|
+
/** One trapezoid per stage, in fractions of the full width and of the total depth. `'taper'` and
|
|
88
|
+
* `'area'` share one silhouette and differ in boundary depths: even for `'taper'`, area-proportional
|
|
89
|
+
* for `'area'`. `'width'` reads every boundary off the values. */
|
|
111
90
|
function funnelGeometry(values, shape, tailWidth = FUNNEL_TAIL_WIDTH) {
|
|
112
91
|
const safeValues = sanitizeValues(values);
|
|
113
92
|
if (safeValues.length === 0) {
|
|
@@ -125,9 +104,8 @@ function funnelGeometry(values, shape, tailWidth = FUNNEL_TAIL_WIDTH) {
|
|
|
125
104
|
bottomWidth: widths[index + 1],
|
|
126
105
|
}));
|
|
127
106
|
}
|
|
128
|
-
/** The fall from `previousValue` to `value`, as a fraction of `previousValue`.
|
|
129
|
-
*
|
|
130
|
-
* makes the ratio 0/0. Negative where the stage grew, which is real data. */
|
|
107
|
+
/** The fall from `previousValue` to `value`, as a fraction of `previousValue`. Null for a zero or
|
|
108
|
+
* non-finite predecessor; negative where the stage grew. */
|
|
131
109
|
function stageDrop(previousValue, value) {
|
|
132
110
|
if (!Number.isFinite(previousValue) || !Number.isFinite(value)) {
|
|
133
111
|
return null;
|
|
@@ -137,13 +115,10 @@ function stageDrop(previousValue, value) {
|
|
|
137
115
|
}
|
|
138
116
|
return (previousValue - value) / previousValue;
|
|
139
117
|
}
|
|
140
|
-
/** The drop into each stage. The first entry is null
|
|
141
|
-
* `0%` there would claim nobody fell away, rather than that there was no
|
|
142
|
-
* earlier stage to fall from. */
|
|
118
|
+
/** The drop into each stage. The first entry is null, not zero: `0%` would claim nobody fell away. */
|
|
143
119
|
function stageDrops(values) {
|
|
144
120
|
return values.map((value, index) => index === 0 ? null : stageDrop(values[index - 1], value));
|
|
145
121
|
}
|
|
146
|
-
/** Depth of one inter-stage gap, in viewBox units. */
|
|
147
122
|
function stageGapUnits(stageCount, viewBoxHeight) {
|
|
148
123
|
if (!Number.isFinite(stageCount) ||
|
|
149
124
|
!Number.isFinite(viewBoxHeight) ||
|
|
@@ -155,9 +130,8 @@ function stageGapUnits(stageCount, viewBoxHeight) {
|
|
|
155
130
|
function roundCoordinate(value) {
|
|
156
131
|
return Math.round(value * 1000) / 1000;
|
|
157
132
|
}
|
|
158
|
-
/** The stage's four corners as an SVG `points` value, or an empty string when
|
|
159
|
-
*
|
|
160
|
-
* renderer without an error, so the shape would go missing in silence. */
|
|
133
|
+
/** The stage's four corners as an SVG `points` value, or an empty string when any input is
|
|
134
|
+
* non-finite (`NaN` in the attribute drops the shape silently). */
|
|
161
135
|
function stagePolygonPoints(geometry, viewBoxWidth, viewBoxHeight, gapUnits) {
|
|
162
136
|
const inputs = [
|
|
163
137
|
geometry.topWidth,
|
|
@@ -182,9 +156,7 @@ function stagePolygonPoints(geometry, viewBoxWidth, viewBoxHeight, gapUnits) {
|
|
|
182
156
|
bottom = bandTop;
|
|
183
157
|
}
|
|
184
158
|
else if (bottom - top < halfGap) {
|
|
185
|
-
// A band shallower than
|
|
186
|
-
// shape lands. It keeps half a gap of depth about its own middle so it stays a visible mark;
|
|
187
|
-
// the neighbours are inset by half a gap, so a quarter gap still separates them.
|
|
159
|
+
// A band shallower than its gap keeps half a gap of depth about its middle so it stays visible.
|
|
188
160
|
const middle = Math.min(Math.max((bandTop + bandBottom) / 2, halfGap / 2), viewBoxHeight - halfGap / 2);
|
|
189
161
|
top = middle - halfGap / 2;
|
|
190
162
|
bottom = middle + halfGap / 2;
|
|
@@ -192,10 +164,7 @@ function stagePolygonPoints(geometry, viewBoxWidth, viewBoxHeight, gapUnits) {
|
|
|
192
164
|
const horizontalCentre = viewBoxWidth / 2;
|
|
193
165
|
const topWidth = clampFraction(geometry.topWidth);
|
|
194
166
|
const bottomWidth = clampFraction(geometry.bottomWidth);
|
|
195
|
-
//
|
|
196
|
-
// Drawing the boundary widths at the inset depths makes every band overhang the silhouette at its
|
|
197
|
-
// top and fall short of it at its bottom, so the stack reads as a fir tree rather than a funnel.
|
|
198
|
-
// The silhouette is linear in depth for every shape, so the drawn widths interpolate exactly.
|
|
167
|
+
// Boundary widths at the inset depths would draw a fir tree; the silhouette is linear, so interpolate.
|
|
199
168
|
const widthAt = (depth) => bandDepth > 0
|
|
200
169
|
? topWidth +
|
|
201
170
|
(bottomWidth - topWidth) * clampFraction((depth - bandTop) / bandDepth)
|
|
@@ -209,8 +178,7 @@ function stagePolygonPoints(geometry, viewBoxWidth, viewBoxHeight, gapUnits) {
|
|
|
209
178
|
`${roundCoordinate(horizontalCentre - halfBottomWidth)},${roundCoordinate(bottom)}`,
|
|
210
179
|
].join(' ');
|
|
211
180
|
}
|
|
212
|
-
/** The middle of a band, for placing a marker inside it.
|
|
213
|
-
* funnel band is symmetrical about it, whatever its two widths.
|
|
181
|
+
/** The middle of a band, for placing a marker inside it.
|
|
214
182
|
*
|
|
215
183
|
* @internal */
|
|
216
184
|
function stageCenter(geometry, viewBoxWidth, viewBoxHeight) {
|
|
@@ -219,8 +187,6 @@ function stageCenter(geometry, viewBoxWidth, viewBoxHeight) {
|
|
|
219
187
|
return { x: viewBoxWidth / 2, y: (top + bottom) / 2 };
|
|
220
188
|
}
|
|
221
189
|
|
|
222
|
-
/** The Drop cell, in whichever unit the chart was asked for. A null fall is the first stage, which
|
|
223
|
-
* has nothing above it to fall from. */
|
|
224
190
|
function formatDrop(fraction, count, mode, format, locale) {
|
|
225
191
|
if (mode === 'none' || fraction === null) {
|
|
226
192
|
return '—';
|
|
@@ -230,104 +196,41 @@ function formatDrop(fraction, count, mode, format, locale) {
|
|
|
230
196
|
: formatPercent(fraction, 1, locale);
|
|
231
197
|
}
|
|
232
198
|
const SKELETON_STAGE_WIDTHS = ['88%', '62%', '80%', '54%', '72%'];
|
|
233
|
-
class FunnelChartComponent {
|
|
199
|
+
class FunnelChartComponent extends DsChartBase {
|
|
234
200
|
renderReady = chartRenderGate();
|
|
235
201
|
leaveMark = leaveMark;
|
|
236
|
-
/** Drawn in the order given
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
*
|
|
241
|
-
* `'width'` reads the widths straight off the values, which collapses the tail of a steep
|
|
242
|
-
* funnel below a labellable width. `'taper'` encodes NOTHING: the shape is fixed whatever the
|
|
243
|
-
* data, and the numbers are read from the table beside it. */
|
|
202
|
+
/** Drawn in the order given; stages are never sorted, since their order is the meaning. */
|
|
203
|
+
data = input([], ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
|
|
204
|
+
/** What the silhouette encodes. `'area'` (default) makes each stage's area proportional to its
|
|
205
|
+
* value. `'width'` reads widths straight off the values, which collapses the tail of a steep
|
|
206
|
+
* funnel. `'taper'` encodes nothing: the shape is fixed. */
|
|
244
207
|
shape = input('area', ...(ngDevMode ? [{ debugName: "shape" }] : /* istanbul ignore next */ []));
|
|
245
|
-
/** The value, percent and drop table printed under the funnel.
|
|
246
|
-
* `dataTable`: while this is on, the disclosure every chart carries would
|
|
247
|
-
* repeat a strict subset of these same numbers, so it is not rendered. */
|
|
208
|
+
/** The value, percent and drop table printed under the funnel. While on, `dataTable` is not rendered. */
|
|
248
209
|
showTable = input(true, { ...(ngDevMode ? { debugName: "showTable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
249
|
-
/**
|
|
250
|
-
* `'none'
|
|
251
|
-
* Unset falls back to `DS_CONFIG.chart.frame`, then `'auto'` — whether charts live inside cards
|
|
252
|
-
* is one decision per app rather than per plot. */
|
|
253
|
-
frame = input(null, ...(ngDevMode ? [{ debugName: "frame" }] : /* istanbul ignore next */ []));
|
|
254
|
-
/** Whether the tooltip draws a colour dot beside each reading. Unset falls back to
|
|
255
|
-
* `DS_CONFIG.chart.tooltipSwatches`, then draws them for up to four readings. */
|
|
256
|
-
tooltipSwatches = input(null, { ...(ngDevMode ? { debugName: "tooltipSwatches" } : /* istanbul ignore next */ {}), transform: (value) => value == null ? null : booleanAttribute(value) });
|
|
257
|
-
/** How long the tooltip stays after the pointer leaves the mark, in milliseconds. The default,
|
|
258
|
-
* 500, lets the pointer cross to the next mark and find the same panel, which glides there
|
|
259
|
-
* instead of closing and opening again. Zero takes it away at once. Unset falls back to
|
|
260
|
-
* `DS_CONFIG.chart.tooltipLingerMs`, then 500. */
|
|
261
|
-
tooltipLingerMs = input(null, { ...(ngDevMode ? { debugName: "tooltipLingerMs" } : /* istanbul ignore next */ {}), transform: (raw) => (raw == null ? null : numberAttribute(raw)) });
|
|
262
|
-
/** Printed above the plot as the chart's visible title, and reused as the annex table's
|
|
263
|
-
* caption. */
|
|
264
|
-
caption = input(null, ...(ngDevMode ? [{ debugName: "caption" }] : /* istanbul ignore next */ []));
|
|
265
|
-
/** Accessible name. Generated from the data when omitted. */
|
|
266
|
-
summary = input(null, ...(ngDevMode ? [{ debugName: "summary" }] : /* istanbul ignore next */ []));
|
|
267
|
-
/** The label-and-value disclosure every chart carries. Ignored while `showTable` is on, which
|
|
268
|
-
* already prints every label and value. Unset falls back to `DS_CONFIG.chart.dataTable`, then
|
|
269
|
-
* `'toggle'`. */
|
|
210
|
+
/** The label-and-value disclosure. Ignored while `showTable` is on. Unset falls back to
|
|
211
|
+
* `DS_CONFIG.chart.dataTable`, then `'none'`. */
|
|
270
212
|
dataTable = input(null, ...(ngDevMode ? [{ debugName: "dataTable" }] : /* istanbul ignore next */ []));
|
|
271
|
-
/** What the Drop column reports: `'relative'` (
|
|
272
|
-
*
|
|
213
|
+
/** What the Drop column reports: `'relative'` (default) the share that leaked at this stage,
|
|
214
|
+
* `'absolute'` the count, `'none'` no column. */
|
|
273
215
|
drop = input('relative', ...(ngDevMode ? [{ debugName: "drop" }] : /* istanbul ignore next */ []));
|
|
274
|
-
/** Draws skeleton marks in place of the data, at the same count, so the chart does not resize
|
|
275
|
-
* when the data lands. */
|
|
276
|
-
loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
277
|
-
/** Shown in place of the plot when `data` is empty. Unset falls back to
|
|
278
|
-
* `DS_INTL.chart.empty`. */
|
|
279
|
-
emptyText = input(null, ...(ngDevMode ? [{ debugName: "emptyText" }] : /* istanbul ignore next */ []));
|
|
280
|
-
/** Shows `errorText` in place of the plot. Separate from `loading` and from an empty `data`,
|
|
281
|
-
* because "the request failed" and "there is nothing to show" read the same to a reader and
|
|
282
|
-
* mean opposite things. */
|
|
283
|
-
error = input(false, { ...(ngDevMode ? { debugName: "error" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
284
|
-
/** The message the error state prints. Unset falls back to `DS_INTL.chart.error`. */
|
|
285
|
-
errorText = input(null, ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
286
|
-
/** Formats every value the chart prints, the annex table and the generated description
|
|
287
|
-
* included. Unset falls back to `DS_CONFIG.chart.valueFormat`, then `DS_CONFIG.locale` /
|
|
288
|
-
* `LOCALE_ID`. */
|
|
289
|
-
valueFormat = input(null, ...(ngDevMode ? [{ debugName: "valueFormat" }] : /* istanbul ignore next */ []));
|
|
290
|
-
/** Holds the clicked mark and its tooltip in place, with a pin disc on it, until a second click,
|
|
291
|
-
* Escape or a press outside releases it. Unset falls back to `DS_CONFIG.chart.pinOnClick`, then
|
|
292
|
-
* `true`. `stageClicked` fires either way - pinning is a state, not a handler. */
|
|
293
|
-
pinOnClick = input(null, { ...(ngDevMode ? { debugName: "pinOnClick" } : /* istanbul ignore next */ {}), transform: (value) => (value == null ? null : booleanAttribute(value)) });
|
|
294
|
-
// Declared after every input it reads: it takes each signal off `this` when it runs.
|
|
295
|
-
defaults = resolveChartDefaults(this);
|
|
296
|
-
intl = inject(DS_INTL);
|
|
297
|
-
frameResolved = this.defaults.frame;
|
|
298
216
|
dataTableResolved = this.defaults.dataTable;
|
|
299
|
-
|
|
300
|
-
errorTextResolved = this.defaults.errorText;
|
|
301
|
-
valueFormatResolved = this.defaults.valueFormat;
|
|
302
|
-
/** Turns on the click affordance — the pointer cursor and any hover tint.
|
|
303
|
-
* The click output fires whether or not this is set, so a consumer that
|
|
304
|
-
* binds the output and forgets the flag still receives every click. */
|
|
305
|
-
interactive = input(false, { ...(ngDevMode ? { debugName: "interactive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
306
|
-
/** The stage that was clicked, or activated with Enter or Space. Fires whether or not
|
|
307
|
-
* `interactive` is set. */
|
|
217
|
+
/** The stage clicked or activated with Enter or Space, whether or not `interactive` is set. */
|
|
308
218
|
stageClicked = output();
|
|
309
|
-
/** Dims every OTHER mark while one is hovered or focused
|
|
310
|
-
* one under the pointer. Off by default: the dimming costs the separation BETWEEN the dimmed
|
|
311
|
-
* marks — measured 2026-09-13, the worst pair of three dimmed series falls from dE 14.8 at full
|
|
312
|
-
* opacity to 2.1 at `--ds-chart-dim-opacity`'s default 0.3 — so it buys loudness for one mark
|
|
313
|
-
* and pays for it with the rest of the chart. */
|
|
219
|
+
/** Dims every OTHER mark while one is hovered or focused. */
|
|
314
220
|
dimOthers = input(false, { ...(ngDevMode ? { debugName: "dimOthers" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
315
|
-
/** Milliseconds between one stage's entrance and the next, top to bottom
|
|
316
|
-
*
|
|
317
|
-
* 260ms to start, so a long funnel does not crawl in. */
|
|
221
|
+
/** Milliseconds between one stage's entrance and the next, top to bottom; `0` turns it off. The
|
|
222
|
+
* step narrows to keep the spread within 260ms. */
|
|
318
223
|
staggerMs = input(60, { ...(ngDevMode ? { debugName: "staggerMs" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
319
224
|
markStagger(index) {
|
|
320
225
|
return `${staggerDelay(index, this.stages().length, this.staggerMs())}ms`;
|
|
321
226
|
}
|
|
322
|
-
/** Whether a hovered or focused stage opens a tooltip.
|
|
323
|
-
* funnel's stages are its categories, so an axis tooltip would repeat the item one. */
|
|
227
|
+
/** Whether a hovered or focused stage opens a tooltip. */
|
|
324
228
|
tooltip = input('item', ...(ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []));
|
|
325
229
|
tooltipTemplate = contentChild('dsChartTooltip', ...(ngDevMode ? [{ debugName: "tooltipTemplate" }] : /* istanbul ignore next */ []));
|
|
326
230
|
tooltipLingerResolved = this.defaults.tooltipLingerMs;
|
|
327
231
|
activeMark = chartActiveMark(() => this.tooltipLingerResolved(), () => this.defaults.hoverDelayMs());
|
|
328
|
-
/**
|
|
329
|
-
*
|
|
330
|
-
* card, and anything measured in user units stretches with it. */
|
|
232
|
+
/** Badge position as a percentage of the shape's box, not viewBox units: the svg is
|
|
233
|
+
* `preserveAspectRatio="none"` and stretches horizontally. */
|
|
331
234
|
pinnedCenter = computed(() => {
|
|
332
235
|
const entry = this.stages()[this.activeMark.index()];
|
|
333
236
|
if (!this.activeMark.pinned() || !entry) {
|
|
@@ -351,8 +254,6 @@ class FunnelChartComponent {
|
|
|
351
254
|
}
|
|
352
255
|
rowHighlight = signal(-1, ...(ngDevMode ? [{ debugName: "rowHighlight" }] : /* istanbul ignore next */ []));
|
|
353
256
|
rowDwell = chartDwell(() => this.defaults.hoverDelayMs());
|
|
354
|
-
/** A table row stands for its band, so it opens the band's tooltip over the BAND and dims the
|
|
355
|
-
* others - the same state hovering the band itself produces. */
|
|
356
257
|
onRowEnter(index, event) {
|
|
357
258
|
this.rowDwell.schedule(index, () => this.rowHighlight.set(index), event);
|
|
358
259
|
this.activeMark.enter(index, event, markAt(event.currentTarget.closest('figure'), index, '.stage'));
|
|
@@ -363,8 +264,6 @@ class FunnelChartComponent {
|
|
|
363
264
|
this.activeMark.leave();
|
|
364
265
|
}
|
|
365
266
|
isDimmed(index) {
|
|
366
|
-
// Naming a stage in the table fades the rest whether or not `dimOthers` is set;
|
|
367
|
-
// `dimOthers` governs what a pointer over the funnel does.
|
|
368
267
|
const rowHighlight = this.rowHighlight();
|
|
369
268
|
if (rowHighlight !== -1) {
|
|
370
269
|
return rowHighlight !== index;
|
|
@@ -397,9 +296,7 @@ class FunnelChartComponent {
|
|
|
397
296
|
};
|
|
398
297
|
}, ...(ngDevMode ? [{ debugName: "tooltipContext" }] : /* istanbul ignore next */ []));
|
|
399
298
|
viewBox = `0 0 ${FUNNEL_VIEW_BOX_WIDTH} ${FUNNEL_VIEW_BOX_HEIGHT}`;
|
|
400
|
-
/**
|
|
401
|
-
* edge it is drawn on, so each band claims half the gap above it and half below — the gap stays
|
|
402
|
-
* exactly as wide to the eye and stops being dead space to the pointer. */
|
|
299
|
+
/** Gap between two bands, painted as a transparent stroke on each so the gap still answers the pointer. */
|
|
403
300
|
hitGapUnits = computed(() => stageGapUnits(this.data().length, FUNNEL_VIEW_BOX_HEIGHT), ...(ngDevMode ? [{ debugName: "hitGapUnits" }] : /* istanbul ignore next */ []));
|
|
404
301
|
tableRows = computed(() => this.stages().map((entry) => ({
|
|
405
302
|
key: entry.stage.id,
|
|
@@ -412,19 +309,14 @@ class FunnelChartComponent {
|
|
|
412
309
|
const drops = stageDrops(values);
|
|
413
310
|
const gapUnits = stageGapUnits(data.length, FUNNEL_VIEW_BOX_HEIGHT);
|
|
414
311
|
const format = (value) => this.valueFormatResolved()(value, 'tooltip');
|
|
415
|
-
//
|
|
416
|
-
// the stages are nested subsets, so they do not add up to 100%.
|
|
312
|
+
// A share of the funnel's mouth, not of the column total: the stages are nested subsets.
|
|
417
313
|
const firstValue = values.length ? values[0] : 0;
|
|
418
|
-
// The stages are one quantity draining, not eight categories, so they take a
|
|
419
|
-
// single-hue ramp. The last one is the outcome the funnel is read for, so it
|
|
420
|
-
// leaves the ramp and takes the accent.
|
|
421
314
|
const lastIndex = data.length - 1;
|
|
422
315
|
return data.map((stage, index) => {
|
|
423
316
|
const drop = drops[index];
|
|
424
317
|
return {
|
|
425
318
|
stage,
|
|
426
|
-
//
|
|
427
|
-
// centre of its own, and its bounding box centre drifts outside a steeply tapered band.
|
|
319
|
+
// A polygon has no centre, and its bounding box centre drifts outside a steeply tapered band.
|
|
428
320
|
center: stageCenter(geometry[index], FUNNEL_VIEW_BOX_WIDTH, FUNNEL_VIEW_BOX_HEIGHT),
|
|
429
321
|
points: stagePolygonPoints(geometry[index], FUNNEL_VIEW_BOX_WIDTH, FUNNEL_VIEW_BOX_HEIGHT, gapUnits),
|
|
430
322
|
formattedValue: format(stage.value),
|
|
@@ -445,7 +337,6 @@ class FunnelChartComponent {
|
|
|
445
337
|
return `${entry.stage.label}, ${entry.formattedValue}`;
|
|
446
338
|
}
|
|
447
339
|
onStageKey(stage, event) {
|
|
448
|
-
// A key pressed on a control inside the stage belongs to that control.
|
|
449
340
|
if (!this.interactive() || event.target !== event.currentTarget) {
|
|
450
341
|
return;
|
|
451
342
|
}
|
|
@@ -455,16 +346,10 @@ class FunnelChartComponent {
|
|
|
455
346
|
isEmpty = computed(() => this.data().length === 0, ...(ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []));
|
|
456
347
|
showDataTable = computed(() => this.dataTableResolved() !== 'none' && !this.showTable(), ...(ngDevMode ? [{ debugName: "showDataTable" }] : /* istanbul ignore next */ []));
|
|
457
348
|
chartHeight = computed(() => `calc(var(--_funnel-chart-stage-height) * ${Math.max(this.data().length, 1)})`, ...(ngDevMode ? [{ debugName: "chartHeight" }] : /* istanbul ignore next */ []));
|
|
458
|
-
/** Placeholder
|
|
459
|
-
* count so the chart does not resize when the data lands, falling back to
|
|
460
|
-
* three when `data` is still empty. The widths vary — and deliberately do
|
|
461
|
-
* not narrow in order — because a column of equal full-width bars is
|
|
462
|
-
* indistinguishable from a funnel whose stages have all gone grey, and a
|
|
463
|
-
* narrowing one just reads as the funnel itself. Same reasoning as the
|
|
464
|
-
* table's skeleton rows. */
|
|
349
|
+
/** Placeholder widths deliberately do not narrow in order: equal bars read as a grey funnel. */
|
|
465
350
|
skeletonStages = computed(() => Array.from({ length: Math.max(this.data().length, 3) }, (unusedEntry, index) => SKELETON_STAGE_WIDTHS[index % SKELETON_STAGE_WIDTHS.length]), ...(ngDevMode ? [{ debugName: "skeletonStages" }] : /* istanbul ignore next */ []));
|
|
466
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: FunnelChartComponent, deps:
|
|
467
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: FunnelChartComponent, isStandalone: true, selector: "ds-funnel-chart", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, showTable: { classPropertyName: "showTable", publicName: "showTable", isSignal: true, isRequired: false, transformFunction: null }, frame: { classPropertyName: "frame", publicName: "frame", isSignal: true, isRequired: false, transformFunction: null }, tooltipSwatches: { classPropertyName: "tooltipSwatches", publicName: "tooltipSwatches", isSignal: true, isRequired: false, transformFunction: null }, tooltipLingerMs: { classPropertyName: "tooltipLingerMs", publicName: "tooltipLingerMs", isSignal: true, isRequired: false, transformFunction: null }, caption: { classPropertyName: "caption", publicName: "caption", isSignal: true, isRequired: false, transformFunction: null }, summary: { classPropertyName: "summary", publicName: "summary", isSignal: true, isRequired: false, transformFunction: null }, dataTable: { classPropertyName: "dataTable", publicName: "dataTable", isSignal: true, isRequired: false, transformFunction: null }, drop: { classPropertyName: "drop", publicName: "drop", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, valueFormat: { classPropertyName: "valueFormat", publicName: "valueFormat", isSignal: true, isRequired: false, transformFunction: null }, pinOnClick: { classPropertyName: "pinOnClick", publicName: "pinOnClick", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null }, dimOthers: { classPropertyName: "dimOthers", publicName: "dimOthers", isSignal: true, isRequired: false, transformFunction: null }, staggerMs: { classPropertyName: "staggerMs", publicName: "staggerMs", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { stageClicked: "stageClicked" }, host: { properties: { "class.framed": "frameResolved() === 'auto'" } }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["dsChartTooltip"], descendants: true, isSignal: true }], ngImport: i0, template: "<figure class=\"funnel-chart\">\n @if (activeMark.pinned()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"activeMark.release()\">\n {{ intl().chart.unpin }}\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading() || !renderReady()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n @for (placeholderWidth of skeletonStages(); track $index) {\n <ds-skeleton\n height=\"calc(var(--_funnel-chart-stage-height) - var(--_funnel-chart-stage-gap))\"\n [shimmer]=\"loading()\"\n [width]=\"placeholderWidth\" />\n }\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <div\n class=\"shape\"\n [class.dims-others]=\"dimOthers()\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipSwatches]=\"defaults.tooltipSwatches()\"\n [dsChartTooltipPinned]=\"activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate() ?? null\">\n <svg\n preserveAspectRatio=\"none\"\n [attr.aria-hidden]=\"interactive() ? null : true\"\n [attr.viewBox]=\"viewBox\"\n [style.block-size]=\"chartHeight()\">\n @for (entry of stages(); track entry.stage.id; let index = $index) {\n <polygon\n class=\"stage\"\n [attr.stroke-width]=\"hitGapUnits()\"\n [style.--_chart-mark-stagger]=\"markStagger(index)\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"defaults.pinOnClick()\"\n [class.is-active]=\"activeMark.index() === index\"\n [class.is-pinned]=\"\n activeMark.pinned() && activeMark.index() === index\n \"\n [class.is-dimmed]=\"isDimmed(index)\"\n [attr.points]=\"entry.points\"\n [attr.fill]=\"entry.color\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"\n interactive() ? (index === roving.tabStop() ? 0 : -1) : null\n \"\n [attr.data-mark-index]=\"index\"\n [attr.aria-label]=\"interactive() ? entryLabel(entry) : null\"\n (animate.leave)=\"leaveMark($event)\"\n (pointerenter)=\"activeMark.enter(index, $event)\"\n (pointerleave)=\"activeMark.leave()\"\n (focus)=\"onMarkFocus(index, $event)\"\n (blur)=\"activeMark.leave()\"\n (keydown)=\"onMarkNavigation($event, index)\"\n (click)=\"onMarkClick(entry.stage, index, $event)\"\n (keydown.enter)=\"onStageKey(entry.stage, $event)\"\n (keydown.space)=\"onStageKey(entry.stage, $event)\">\n </polygon>\n }\n </svg>\n\n @if (pinnedCenter(); as center) {\n <span\n class=\"pin-marker\"\n [style.left.%]=\"center.xPercent\"\n [style.top.%]=\"center.yPercent\">\n <ds-icon\n name=\"pin\"\n [size]=\"13\" />\n </span>\n }\n </div>\n\n @if (showTable()) {\n <table class=\"stage-table\">\n <caption class=\"visually-hidden\">\n {{\n intl().chart.funnelCaption\n }}\n </caption>\n\n <thead>\n <tr>\n <th scope=\"col\">\n {{ intl().chart.stageColumn }}\n </th>\n\n <th scope=\"col\">\n {{ intl().chart.valueColumn }}\n </th>\n\n <th scope=\"col\">\n {{ intl().chart.percentColumn }}\n </th>\n\n @if (drop() !== 'none') {\n <th scope=\"col\">\n {{ intl().chart.dropColumn }}\n </th>\n }\n </tr>\n </thead>\n\n <tbody>\n @for (entry of stages(); track entry.stage.id; let index = $index) {\n <tr\n [style.--_chart-mark-stagger]=\"markStagger(index)\"\n (pointerenter)=\"onRowEnter(index, $event)\"\n (pointerleave)=\"onRowLeave()\">\n <th scope=\"row\">\n <span\n class=\"swatch\"\n aria-hidden=\"true\"\n [style.background]=\"entry.color\">\n </span>\n\n {{ entry.stage.label }}\n </th>\n\n <td>\n {{ entry.formattedValue }}\n </td>\n\n <td>\n {{ entry.formattedPercent }}\n </td>\n\n @if (drop() !== 'none') {\n <td>\n {{ entry.formattedDrop }}\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n }\n\n @if (showDataTable()) {\n <ds-chart-data-table\n [columns]=\"[intl().chart.labelColumn, intl().chart.valueColumn]\"\n [rows]=\"tableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\" />\n }\n }\n</figure>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}@keyframes ds-chart-mark-grow-y{0%{transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-rise{0%{opacity:0;transform:translateY(var(--_chart-rise-distance, 4px))}}@keyframes ds-chart-mark-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-ring-sweep{0%{opacity:0;transform:rotate(-30deg) scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}.stage{animation:ds-chart-mark-rise var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.stage{animation-delay:0ms}}.stage{transform-box:fill-box}.stage.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.stage-table tbody>tr>*{animation:ds-chart-mark-rise var(--ds-motion-chart-mark-detail-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--ds-motion-chart-mark-enter-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.stage-table tbody>tr>*{animation-delay:0ms}}:host{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color);border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table,.stage-table{-webkit-user-select:text;user-select:text}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:var(--font-weight-semibold);-webkit-user-select:text;user-select:text}.empty.is-error,.empty-text.is-error{color:var(--error)}@media not (forced-colors:active){.stage:focus{outline:none}}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}.funnel-chart{--_funnel-chart-stage-height: var(--ds-funnel-chart-stage-height, 44px);--_funnel-chart-stage-gap: var(--ds-funnel-chart-stage-gap, var(--ds-chart-bar-gap));--_funnel-chart-row-gap: var(--ds-funnel-chart-row-gap, var(--space-4));--_funnel-chart-focus-color: var(--ds-funnel-chart-focus-color, var(--focus-ring-color));--_funnel-chart-focus-width: var(--ds-funnel-chart-focus-width, var(--focus-ring-width));--_funnel-chart-row-hover-bg-color: var(--ds-chart-legend-hover-bg-color, var(--surface-secondary));--_funnel-chart-row-hover-text-color: var(--ds-chart-legend-hover-text-color, var(--text-primary));--ds-chart-focus-ring-color: var(--_funnel-chart-focus-color);--focus-ring-color: var(--_funnel-chart-focus-color);--focus-ring-width: var(--_funnel-chart-focus-width);position:relative;overflow:auto hidden;margin:0}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.empty{display:grid;place-items:center;min-block-size:calc(3 * (var(--_funnel-chart-stage-height) + var(--_funnel-chart-stage-gap)));margin:0;color:var(--text-secondary);text-align:center}.shape{display:block}svg{--_chart-rise-distance: 10%;display:block;inline-size:100%}.stage{stroke:transparent}@media not (forced-colors:active){.stage.interactive:focus-visible{outline:none}}.stage.interactive:focus-visible{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color))}.skeleton{display:grid;row-gap:var(--_funnel-chart-stage-gap)}.stage-table{inline-size:100%;margin-block-start:var(--_funnel-chart-row-gap);border-collapse:collapse;font-variant-numeric:tabular-nums}.stage-table th,.stage-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.stage-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.stage-table thead th:first-child{text-align:start}.stage-table td{padding-inline-start:var(--space-3)}.stage-table th[scope=row]{color:var(--text-secondary);font-weight:400;text-align:start}.stage-table tbody>tr{margin:calc(-1 * var(--space-0-5)) calc(-1 * var(--space-1-5));padding:var(--space-0-5) var(--space-1-5);border-radius:var(--radius-sm);transition:background-color var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),color var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.stage-table tbody>tr:hover,.stage-table tbody>tr:focus-visible,.stage-table tbody>tr:has(:focus-visible){background-color:var(--_funnel-chart-row-hover-bg-color)}.stage-table tbody>tr:hover>*,.stage-table tbody>tr:focus-visible>*,.stage-table tbody>tr:has(:focus-visible)>*{color:var(--_funnel-chart-row-hover-text-color)}.swatch{display:inline-block;inline-size:var(--space-2);block-size:var(--space-2);margin-inline-end:var(--space-2);border-radius:var(--radius-sm)}.shape .stage{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.shape .stage.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.shape.dims-others:not(:has(.stage.is-pinned)):has(.stage.is-active) .stage:not(.is-active),.shape.dims-others:has(.stage.is-pinned) .stage:not(.is-pinned){opacity:var(--ds-chart-dim-opacity)}.shape .stage.interactive,.shape .stage.pins{cursor:pointer}@media(forced-colors:active){.axis-line,.grid-line{stroke:CanvasText}.axis-label,.category-label{fill:CanvasText}:focus-visible{stroke:Highlight;filter:none}}:host{position:relative}:host(.framed){--_chart-pin-reset-inset: var(--ds-chart-frame-padding)}:host:has(.pin-reset) figure>figcaption{padding-inline-end:calc(5rem + var(--space-2))}.pin-reset{position:absolute;inset-block-start:var(--_chart-pin-reset-inset, 0);inset-inline-end:var(--_chart-pin-reset-inset, 0);z-index:1;display:inline-flex;align-items:center;gap:var(--space-1);block-size:var(--space-6);padding:0 var(--space-2-5);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-secondary);font-size:var(--font-size-xs);line-height:1;box-shadow:var(--shadow-1);cursor:pointer}.pin-reset:before{position:absolute;inset:50% auto auto 50%;inline-size:max(100%,var(--hit-comfy));block-size:var(--hit-comfy);transform:translate(-50%,-50%);content:\"\"}.pin-reset:hover{color:var(--text-primary);border-color:var(--border-strong)}.pin-marker{display:grid;place-items:center;inline-size:var(--ds-chart-pin-size, 22px);block-size:var(--ds-chart-pin-size, 22px);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-primary);box-shadow:var(--shadow-1);pointer-events:none}.shape{position:relative}.pin-marker{position:absolute;transform:translate(-50%,-50%)}\n"], dependencies: [{ kind: "component", type: SkeletonComponent, selector: "ds-skeleton", inputs: ["width", "height", "circle", "inline", "shimmer"] }, { kind: "directive", type: ChartTooltipDirective, selector: "[dsChartTooltip]", inputs: ["dsChartTooltip", "dsChartTooltipOrigin", "dsChartTooltipTemplate", "dsChartTooltipExtraGap", "dsChartTooltipPinned", "dsChartTooltipSwatches"] }, { kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "component", type: ChartDataTableComponent, selector: "ds-chart-data-table", inputs: ["columns", "rows", "caption", "open", "rowHeader"], outputs: ["toggled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
351
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: FunnelChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
352
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: FunnelChartComponent, isStandalone: true, selector: "ds-funnel-chart", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, showTable: { classPropertyName: "showTable", publicName: "showTable", isSignal: true, isRequired: false, transformFunction: null }, dataTable: { classPropertyName: "dataTable", publicName: "dataTable", isSignal: true, isRequired: false, transformFunction: null }, drop: { classPropertyName: "drop", publicName: "drop", isSignal: true, isRequired: false, transformFunction: null }, dimOthers: { classPropertyName: "dimOthers", publicName: "dimOthers", isSignal: true, isRequired: false, transformFunction: null }, staggerMs: { classPropertyName: "staggerMs", publicName: "staggerMs", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { stageClicked: "stageClicked" }, host: { properties: { "class.framed": "frameResolved() === 'auto'" } }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["dsChartTooltip"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<figure class=\"funnel-chart\">\n @if (activeMark.pinned()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"activeMark.release()\">\n {{ intl().chart.unpin }}\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading() || !renderReady()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n @for (placeholderWidth of skeletonStages(); track $index) {\n <ds-skeleton\n height=\"calc(var(--_funnel-chart-stage-height) - var(--_funnel-chart-stage-gap))\"\n [shimmer]=\"loading()\"\n [width]=\"placeholderWidth\" />\n }\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <div\n class=\"shape\"\n [class.dims-others]=\"dimOthers()\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipSwatches]=\"defaults.tooltipSwatches()\"\n [dsChartTooltipPinned]=\"activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate() ?? null\">\n <svg\n preserveAspectRatio=\"none\"\n [attr.aria-hidden]=\"interactive() ? null : true\"\n [attr.viewBox]=\"viewBox\"\n [style.block-size]=\"chartHeight()\">\n @for (entry of stages(); track entry.stage.id; let index = $index) {\n <polygon\n class=\"stage\"\n [attr.stroke-width]=\"hitGapUnits()\"\n [style.--_chart-mark-stagger]=\"markStagger(index)\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"defaults.pinOnClick()\"\n [class.is-active]=\"activeMark.index() === index\"\n [class.is-pinned]=\"\n activeMark.pinned() && activeMark.index() === index\n \"\n [class.is-dimmed]=\"isDimmed(index)\"\n [attr.points]=\"entry.points\"\n [attr.fill]=\"entry.color\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"\n interactive() ? (index === roving.tabStop() ? 0 : -1) : null\n \"\n [attr.data-mark-index]=\"index\"\n [attr.aria-label]=\"interactive() ? entryLabel(entry) : null\"\n (animate.leave)=\"leaveMark($event)\"\n (pointerenter)=\"activeMark.enter(index, $event)\"\n (pointerleave)=\"activeMark.leave()\"\n (focus)=\"onMarkFocus(index, $event)\"\n (blur)=\"activeMark.leave()\"\n (keydown)=\"onMarkNavigation($event, index)\"\n (click)=\"onMarkClick(entry.stage, index, $event)\"\n (keydown.enter)=\"onStageKey(entry.stage, $event)\"\n (keydown.space)=\"onStageKey(entry.stage, $event)\">\n </polygon>\n }\n </svg>\n\n @if (pinnedCenter(); as center) {\n <span\n class=\"pin-marker\"\n [style.left.%]=\"center.xPercent\"\n [style.top.%]=\"center.yPercent\">\n <ds-icon\n name=\"pin\"\n [size]=\"13\" />\n </span>\n }\n </div>\n\n @if (showTable()) {\n <table class=\"stage-table\">\n <caption class=\"visually-hidden\">\n {{\n intl().chart.funnelCaption\n }}\n </caption>\n\n <thead>\n <tr>\n <th scope=\"col\">\n {{ intl().chart.stageColumn }}\n </th>\n\n <th scope=\"col\">\n {{ intl().chart.valueColumn }}\n </th>\n\n <th scope=\"col\">\n {{ intl().chart.percentColumn }}\n </th>\n\n @if (drop() !== 'none') {\n <th scope=\"col\">\n {{ intl().chart.dropColumn }}\n </th>\n }\n </tr>\n </thead>\n\n <tbody>\n @for (entry of stages(); track entry.stage.id; let index = $index) {\n <tr\n [style.--_chart-mark-stagger]=\"markStagger(index)\"\n (pointerenter)=\"onRowEnter(index, $event)\"\n (pointerleave)=\"onRowLeave()\">\n <th scope=\"row\">\n <span\n class=\"swatch\"\n aria-hidden=\"true\"\n [style.background]=\"entry.color\">\n </span>\n\n {{ entry.stage.label }}\n </th>\n\n <td>\n {{ entry.formattedValue }}\n </td>\n\n <td>\n {{ entry.formattedPercent }}\n </td>\n\n @if (drop() !== 'none') {\n <td>\n {{ entry.formattedDrop }}\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n }\n\n @if (showDataTable()) {\n <ds-chart-data-table\n [columns]=\"[intl().chart.labelColumn, intl().chart.valueColumn]\"\n [rows]=\"tableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\" />\n }\n }\n</figure>\n", styles: [":where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}@keyframes ds-chart-mark-grow-y{0%{transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-rise{0%{opacity:0;transform:translateY(var(--_chart-rise-distance, 4px))}}@keyframes ds-chart-mark-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-ring-sweep{0%{opacity:0;transform:rotate(-30deg) scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}.stage{animation:ds-chart-mark-rise var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.stage{animation-delay:0ms}}.stage{transform-box:fill-box}.stage.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.stage-table tbody>tr>*{animation:ds-chart-mark-rise var(--ds-motion-chart-mark-detail-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--ds-motion-chart-mark-enter-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.stage-table tbody>tr>*{animation-delay:0ms}}:host{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color, var(--ds-chart-bg-color));border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table,.stage-table{-webkit-user-select:text;user-select:text}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:var(--font-weight-semibold);-webkit-user-select:text;user-select:text}.empty.is-error,.empty-text.is-error{color:var(--error)}@media not (forced-colors:active){.stage:focus{outline:none}}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}.funnel-chart{--_funnel-chart-stage-height: var(--ds-funnel-chart-stage-height, 44px);--_funnel-chart-stage-gap: var(--ds-funnel-chart-stage-gap, var(--ds-chart-bar-gap));--_funnel-chart-row-gap: var(--ds-funnel-chart-row-gap, var(--space-4));--_funnel-chart-focus-color: var(--ds-funnel-chart-focus-color, var(--focus-ring-color));--_funnel-chart-focus-width: var(--ds-funnel-chart-focus-width, var(--focus-ring-width));--_funnel-chart-row-hover-bg-color: var(--ds-chart-legend-hover-bg-color, var(--surface-secondary));--_funnel-chart-row-hover-text-color: var(--ds-chart-legend-hover-text-color, var(--text-primary));--ds-chart-focus-ring-color: var(--_funnel-chart-focus-color);--focus-ring-color: var(--_funnel-chart-focus-color);--focus-ring-width: var(--_funnel-chart-focus-width);position:relative;overflow:auto hidden;margin:0}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.empty{display:grid;place-items:center;min-block-size:calc(3 * (var(--_funnel-chart-stage-height) + var(--_funnel-chart-stage-gap)));margin:0;color:var(--text-secondary);text-align:center}.shape{display:block}svg{--_chart-rise-distance: 10%;display:block;inline-size:100%}.stage{stroke:transparent}@media not (forced-colors:active){.stage.interactive:focus-visible{outline:none}}.stage.interactive:focus-visible{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color, var(--ds-chart-bg-color)))}.skeleton{display:grid;row-gap:var(--_funnel-chart-stage-gap)}.stage-table{inline-size:100%;margin-block-start:var(--_funnel-chart-row-gap);border-collapse:collapse;font-variant-numeric:tabular-nums}.stage-table th,.stage-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.stage-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.stage-table thead th:first-child{text-align:start}.stage-table td{padding-inline-start:var(--space-3)}.stage-table th[scope=row]{color:var(--text-secondary);font-weight:400;text-align:start}.stage-table tbody>tr{margin:calc(-1 * var(--space-0-5)) calc(-1 * var(--space-1-5));padding:var(--space-0-5) var(--space-1-5);border-radius:var(--radius-sm);transition:background-color var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),color var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.stage-table tbody>tr:hover,.stage-table tbody>tr:focus-visible,.stage-table tbody>tr:has(:focus-visible){background-color:var(--_funnel-chart-row-hover-bg-color)}.stage-table tbody>tr:hover>*,.stage-table tbody>tr:focus-visible>*,.stage-table tbody>tr:has(:focus-visible)>*{color:var(--_funnel-chart-row-hover-text-color)}.swatch{display:inline-block;inline-size:var(--space-2);block-size:var(--space-2);margin-inline-end:var(--space-2);border-radius:var(--radius-sm)}.shape .stage{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.shape .stage.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.shape.dims-others:not(:has(.stage.is-pinned)):has(.stage.is-active) .stage:not(.is-active),.shape.dims-others:has(.stage.is-pinned) .stage:not(.is-pinned){opacity:var(--ds-chart-dim-opacity)}.shape .stage.interactive,.shape .stage.pins{cursor:pointer}@media(forced-colors:active){.axis-line,.grid-line{stroke:CanvasText}.axis-label,.category-label{fill:CanvasText}:focus-visible{stroke:Highlight;filter:none}}:host{position:relative}:host(.framed){--_chart-pin-reset-inset: var(--ds-chart-frame-padding)}:host:has(.pin-reset) figure>figcaption{padding-inline-end:calc(5rem + var(--space-2))}.pin-reset{position:absolute;inset-block-start:var(--_chart-pin-reset-inset, 0);inset-inline-end:var(--_chart-pin-reset-inset, 0);z-index:1;display:inline-flex;align-items:center;gap:var(--space-1);block-size:var(--space-6);padding:0 var(--space-2-5);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-secondary);font-size:var(--font-size-xs);line-height:1;box-shadow:var(--shadow-1);cursor:pointer}.pin-reset:before{position:absolute;inset:50% auto auto 50%;inline-size:max(100%,var(--hit-comfy));block-size:var(--hit-comfy);transform:translate(-50%,-50%);content:\"\"}.pin-reset:hover{color:var(--text-primary);border-color:var(--border-strong)}.pin-marker{display:grid;place-items:center;inline-size:var(--ds-chart-pin-size, 22px);block-size:var(--ds-chart-pin-size, 22px);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-primary);box-shadow:var(--shadow-1);pointer-events:none}.shape{position:relative}.pin-marker{position:absolute;transform:translate(-50%,-50%)}\n"], dependencies: [{ kind: "component", type: SkeletonComponent, selector: "ds-skeleton", inputs: ["width", "height", "circle", "inline", "shimmer"] }, { kind: "directive", type: ChartTooltipDirective, selector: "[dsChartTooltip]", inputs: ["dsChartTooltip", "dsChartTooltipOrigin", "dsChartTooltipTemplate", "dsChartTooltipExtraGap", "dsChartTooltipPinned", "dsChartTooltipSwatches"] }, { kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "component", type: ChartDataTableComponent, selector: "ds-chart-data-table", inputs: ["columns", "rows", "caption", "open", "rowHeader"], outputs: ["toggled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
468
353
|
}
|
|
469
354
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: FunnelChartComponent, decorators: [{
|
|
470
355
|
type: Component,
|
|
@@ -473,8 +358,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
473
358
|
ChartTooltipDirective,
|
|
474
359
|
IconComponent,
|
|
475
360
|
ChartDataTableComponent,
|
|
476
|
-
], host: { '[class.framed]': "frameResolved() === 'auto'" }, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<figure class=\"funnel-chart\">\n @if (activeMark.pinned()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"activeMark.release()\">\n {{ intl().chart.unpin }}\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading() || !renderReady()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n @for (placeholderWidth of skeletonStages(); track $index) {\n <ds-skeleton\n height=\"calc(var(--_funnel-chart-stage-height) - var(--_funnel-chart-stage-gap))\"\n [shimmer]=\"loading()\"\n [width]=\"placeholderWidth\" />\n }\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <div\n class=\"shape\"\n [class.dims-others]=\"dimOthers()\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipSwatches]=\"defaults.tooltipSwatches()\"\n [dsChartTooltipPinned]=\"activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate() ?? null\">\n <svg\n preserveAspectRatio=\"none\"\n [attr.aria-hidden]=\"interactive() ? null : true\"\n [attr.viewBox]=\"viewBox\"\n [style.block-size]=\"chartHeight()\">\n @for (entry of stages(); track entry.stage.id; let index = $index) {\n <polygon\n class=\"stage\"\n [attr.stroke-width]=\"hitGapUnits()\"\n [style.--_chart-mark-stagger]=\"markStagger(index)\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"defaults.pinOnClick()\"\n [class.is-active]=\"activeMark.index() === index\"\n [class.is-pinned]=\"\n activeMark.pinned() && activeMark.index() === index\n \"\n [class.is-dimmed]=\"isDimmed(index)\"\n [attr.points]=\"entry.points\"\n [attr.fill]=\"entry.color\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"\n interactive() ? (index === roving.tabStop() ? 0 : -1) : null\n \"\n [attr.data-mark-index]=\"index\"\n [attr.aria-label]=\"interactive() ? entryLabel(entry) : null\"\n (animate.leave)=\"leaveMark($event)\"\n (pointerenter)=\"activeMark.enter(index, $event)\"\n (pointerleave)=\"activeMark.leave()\"\n (focus)=\"onMarkFocus(index, $event)\"\n (blur)=\"activeMark.leave()\"\n (keydown)=\"onMarkNavigation($event, index)\"\n (click)=\"onMarkClick(entry.stage, index, $event)\"\n (keydown.enter)=\"onStageKey(entry.stage, $event)\"\n (keydown.space)=\"onStageKey(entry.stage, $event)\">\n </polygon>\n }\n </svg>\n\n @if (pinnedCenter(); as center) {\n <span\n class=\"pin-marker\"\n [style.left.%]=\"center.xPercent\"\n [style.top.%]=\"center.yPercent\">\n <ds-icon\n name=\"pin\"\n [size]=\"13\" />\n </span>\n }\n </div>\n\n @if (showTable()) {\n <table class=\"stage-table\">\n <caption class=\"visually-hidden\">\n {{\n intl().chart.funnelCaption\n }}\n </caption>\n\n <thead>\n <tr>\n <th scope=\"col\">\n {{ intl().chart.stageColumn }}\n </th>\n\n <th scope=\"col\">\n {{ intl().chart.valueColumn }}\n </th>\n\n <th scope=\"col\">\n {{ intl().chart.percentColumn }}\n </th>\n\n @if (drop() !== 'none') {\n <th scope=\"col\">\n {{ intl().chart.dropColumn }}\n </th>\n }\n </tr>\n </thead>\n\n <tbody>\n @for (entry of stages(); track entry.stage.id; let index = $index) {\n <tr\n [style.--_chart-mark-stagger]=\"markStagger(index)\"\n (pointerenter)=\"onRowEnter(index, $event)\"\n (pointerleave)=\"onRowLeave()\">\n <th scope=\"row\">\n <span\n class=\"swatch\"\n aria-hidden=\"true\"\n [style.background]=\"entry.color\">\n </span>\n\n {{ entry.stage.label }}\n </th>\n\n <td>\n {{ entry.formattedValue }}\n </td>\n\n <td>\n {{ entry.formattedPercent }}\n </td>\n\n @if (drop() !== 'none') {\n <td>\n {{ entry.formattedDrop }}\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n }\n\n @if (showDataTable()) {\n <ds-chart-data-table\n [columns]=\"[intl().chart.labelColumn, intl().chart.valueColumn]\"\n [rows]=\"tableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\" />\n }\n }\n</figure>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}@keyframes ds-chart-mark-grow-y{0%{transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-rise{0%{opacity:0;transform:translateY(var(--_chart-rise-distance, 4px))}}@keyframes ds-chart-mark-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-ring-sweep{0%{opacity:0;transform:rotate(-30deg) scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}.stage{animation:ds-chart-mark-rise var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.stage{animation-delay:0ms}}.stage{transform-box:fill-box}.stage.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.stage-table tbody>tr>*{animation:ds-chart-mark-rise var(--ds-motion-chart-mark-detail-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--ds-motion-chart-mark-enter-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.stage-table tbody>tr>*{animation-delay:0ms}}:host{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color);border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table,.stage-table{-webkit-user-select:text;user-select:text}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:var(--font-weight-semibold);-webkit-user-select:text;user-select:text}.empty.is-error,.empty-text.is-error{color:var(--error)}@media not (forced-colors:active){.stage:focus{outline:none}}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}.funnel-chart{--_funnel-chart-stage-height: var(--ds-funnel-chart-stage-height, 44px);--_funnel-chart-stage-gap: var(--ds-funnel-chart-stage-gap, var(--ds-chart-bar-gap));--_funnel-chart-row-gap: var(--ds-funnel-chart-row-gap, var(--space-4));--_funnel-chart-focus-color: var(--ds-funnel-chart-focus-color, var(--focus-ring-color));--_funnel-chart-focus-width: var(--ds-funnel-chart-focus-width, var(--focus-ring-width));--_funnel-chart-row-hover-bg-color: var(--ds-chart-legend-hover-bg-color, var(--surface-secondary));--_funnel-chart-row-hover-text-color: var(--ds-chart-legend-hover-text-color, var(--text-primary));--ds-chart-focus-ring-color: var(--_funnel-chart-focus-color);--focus-ring-color: var(--_funnel-chart-focus-color);--focus-ring-width: var(--_funnel-chart-focus-width);position:relative;overflow:auto hidden;margin:0}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.empty{display:grid;place-items:center;min-block-size:calc(3 * (var(--_funnel-chart-stage-height) + var(--_funnel-chart-stage-gap)));margin:0;color:var(--text-secondary);text-align:center}.shape{display:block}svg{--_chart-rise-distance: 10%;display:block;inline-size:100%}.stage{stroke:transparent}@media not (forced-colors:active){.stage.interactive:focus-visible{outline:none}}.stage.interactive:focus-visible{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color))}.skeleton{display:grid;row-gap:var(--_funnel-chart-stage-gap)}.stage-table{inline-size:100%;margin-block-start:var(--_funnel-chart-row-gap);border-collapse:collapse;font-variant-numeric:tabular-nums}.stage-table th,.stage-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.stage-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.stage-table thead th:first-child{text-align:start}.stage-table td{padding-inline-start:var(--space-3)}.stage-table th[scope=row]{color:var(--text-secondary);font-weight:400;text-align:start}.stage-table tbody>tr{margin:calc(-1 * var(--space-0-5)) calc(-1 * var(--space-1-5));padding:var(--space-0-5) var(--space-1-5);border-radius:var(--radius-sm);transition:background-color var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),color var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.stage-table tbody>tr:hover,.stage-table tbody>tr:focus-visible,.stage-table tbody>tr:has(:focus-visible){background-color:var(--_funnel-chart-row-hover-bg-color)}.stage-table tbody>tr:hover>*,.stage-table tbody>tr:focus-visible>*,.stage-table tbody>tr:has(:focus-visible)>*{color:var(--_funnel-chart-row-hover-text-color)}.swatch{display:inline-block;inline-size:var(--space-2);block-size:var(--space-2);margin-inline-end:var(--space-2);border-radius:var(--radius-sm)}.shape .stage{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.shape .stage.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.shape.dims-others:not(:has(.stage.is-pinned)):has(.stage.is-active) .stage:not(.is-active),.shape.dims-others:has(.stage.is-pinned) .stage:not(.is-pinned){opacity:var(--ds-chart-dim-opacity)}.shape .stage.interactive,.shape .stage.pins{cursor:pointer}@media(forced-colors:active){.axis-line,.grid-line{stroke:CanvasText}.axis-label,.category-label{fill:CanvasText}:focus-visible{stroke:Highlight;filter:none}}:host{position:relative}:host(.framed){--_chart-pin-reset-inset: var(--ds-chart-frame-padding)}:host:has(.pin-reset) figure>figcaption{padding-inline-end:calc(5rem + var(--space-2))}.pin-reset{position:absolute;inset-block-start:var(--_chart-pin-reset-inset, 0);inset-inline-end:var(--_chart-pin-reset-inset, 0);z-index:1;display:inline-flex;align-items:center;gap:var(--space-1);block-size:var(--space-6);padding:0 var(--space-2-5);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-secondary);font-size:var(--font-size-xs);line-height:1;box-shadow:var(--shadow-1);cursor:pointer}.pin-reset:before{position:absolute;inset:50% auto auto 50%;inline-size:max(100%,var(--hit-comfy));block-size:var(--hit-comfy);transform:translate(-50%,-50%);content:\"\"}.pin-reset:hover{color:var(--text-primary);border-color:var(--border-strong)}.pin-marker{display:grid;place-items:center;inline-size:var(--ds-chart-pin-size, 22px);block-size:var(--ds-chart-pin-size, 22px);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-primary);box-shadow:var(--shadow-1);pointer-events:none}.shape{position:relative}.pin-marker{position:absolute;transform:translate(-50%,-50%)}\n"] }]
|
|
477
|
-
}], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required:
|
|
361
|
+
], host: { '[class.framed]': "frameResolved() === 'auto'" }, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<figure class=\"funnel-chart\">\n @if (activeMark.pinned()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"activeMark.release()\">\n {{ intl().chart.unpin }}\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading() || !renderReady()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n @for (placeholderWidth of skeletonStages(); track $index) {\n <ds-skeleton\n height=\"calc(var(--_funnel-chart-stage-height) - var(--_funnel-chart-stage-gap))\"\n [shimmer]=\"loading()\"\n [width]=\"placeholderWidth\" />\n }\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <div\n class=\"shape\"\n [class.dims-others]=\"dimOthers()\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipSwatches]=\"defaults.tooltipSwatches()\"\n [dsChartTooltipPinned]=\"activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate() ?? null\">\n <svg\n preserveAspectRatio=\"none\"\n [attr.aria-hidden]=\"interactive() ? null : true\"\n [attr.viewBox]=\"viewBox\"\n [style.block-size]=\"chartHeight()\">\n @for (entry of stages(); track entry.stage.id; let index = $index) {\n <polygon\n class=\"stage\"\n [attr.stroke-width]=\"hitGapUnits()\"\n [style.--_chart-mark-stagger]=\"markStagger(index)\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"defaults.pinOnClick()\"\n [class.is-active]=\"activeMark.index() === index\"\n [class.is-pinned]=\"\n activeMark.pinned() && activeMark.index() === index\n \"\n [class.is-dimmed]=\"isDimmed(index)\"\n [attr.points]=\"entry.points\"\n [attr.fill]=\"entry.color\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"\n interactive() ? (index === roving.tabStop() ? 0 : -1) : null\n \"\n [attr.data-mark-index]=\"index\"\n [attr.aria-label]=\"interactive() ? entryLabel(entry) : null\"\n (animate.leave)=\"leaveMark($event)\"\n (pointerenter)=\"activeMark.enter(index, $event)\"\n (pointerleave)=\"activeMark.leave()\"\n (focus)=\"onMarkFocus(index, $event)\"\n (blur)=\"activeMark.leave()\"\n (keydown)=\"onMarkNavigation($event, index)\"\n (click)=\"onMarkClick(entry.stage, index, $event)\"\n (keydown.enter)=\"onStageKey(entry.stage, $event)\"\n (keydown.space)=\"onStageKey(entry.stage, $event)\">\n </polygon>\n }\n </svg>\n\n @if (pinnedCenter(); as center) {\n <span\n class=\"pin-marker\"\n [style.left.%]=\"center.xPercent\"\n [style.top.%]=\"center.yPercent\">\n <ds-icon\n name=\"pin\"\n [size]=\"13\" />\n </span>\n }\n </div>\n\n @if (showTable()) {\n <table class=\"stage-table\">\n <caption class=\"visually-hidden\">\n {{\n intl().chart.funnelCaption\n }}\n </caption>\n\n <thead>\n <tr>\n <th scope=\"col\">\n {{ intl().chart.stageColumn }}\n </th>\n\n <th scope=\"col\">\n {{ intl().chart.valueColumn }}\n </th>\n\n <th scope=\"col\">\n {{ intl().chart.percentColumn }}\n </th>\n\n @if (drop() !== 'none') {\n <th scope=\"col\">\n {{ intl().chart.dropColumn }}\n </th>\n }\n </tr>\n </thead>\n\n <tbody>\n @for (entry of stages(); track entry.stage.id; let index = $index) {\n <tr\n [style.--_chart-mark-stagger]=\"markStagger(index)\"\n (pointerenter)=\"onRowEnter(index, $event)\"\n (pointerleave)=\"onRowLeave()\">\n <th scope=\"row\">\n <span\n class=\"swatch\"\n aria-hidden=\"true\"\n [style.background]=\"entry.color\">\n </span>\n\n {{ entry.stage.label }}\n </th>\n\n <td>\n {{ entry.formattedValue }}\n </td>\n\n <td>\n {{ entry.formattedPercent }}\n </td>\n\n @if (drop() !== 'none') {\n <td>\n {{ entry.formattedDrop }}\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n }\n\n @if (showDataTable()) {\n <ds-chart-data-table\n [columns]=\"[intl().chart.labelColumn, intl().chart.valueColumn]\"\n [rows]=\"tableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\" />\n }\n }\n</figure>\n", styles: [":where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}@keyframes ds-chart-mark-grow-y{0%{transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-rise{0%{opacity:0;transform:translateY(var(--_chart-rise-distance, 4px))}}@keyframes ds-chart-mark-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-ring-sweep{0%{opacity:0;transform:rotate(-30deg) scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}.stage{animation:ds-chart-mark-rise var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.stage{animation-delay:0ms}}.stage{transform-box:fill-box}.stage.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.stage-table tbody>tr>*{animation:ds-chart-mark-rise var(--ds-motion-chart-mark-detail-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--ds-motion-chart-mark-enter-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.stage-table tbody>tr>*{animation-delay:0ms}}:host{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color, var(--ds-chart-bg-color));border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table,.stage-table{-webkit-user-select:text;user-select:text}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:var(--font-weight-semibold);-webkit-user-select:text;user-select:text}.empty.is-error,.empty-text.is-error{color:var(--error)}@media not (forced-colors:active){.stage:focus{outline:none}}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}.funnel-chart{--_funnel-chart-stage-height: var(--ds-funnel-chart-stage-height, 44px);--_funnel-chart-stage-gap: var(--ds-funnel-chart-stage-gap, var(--ds-chart-bar-gap));--_funnel-chart-row-gap: var(--ds-funnel-chart-row-gap, var(--space-4));--_funnel-chart-focus-color: var(--ds-funnel-chart-focus-color, var(--focus-ring-color));--_funnel-chart-focus-width: var(--ds-funnel-chart-focus-width, var(--focus-ring-width));--_funnel-chart-row-hover-bg-color: var(--ds-chart-legend-hover-bg-color, var(--surface-secondary));--_funnel-chart-row-hover-text-color: var(--ds-chart-legend-hover-text-color, var(--text-primary));--ds-chart-focus-ring-color: var(--_funnel-chart-focus-color);--focus-ring-color: var(--_funnel-chart-focus-color);--focus-ring-width: var(--_funnel-chart-focus-width);position:relative;overflow:auto hidden;margin:0}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.empty{display:grid;place-items:center;min-block-size:calc(3 * (var(--_funnel-chart-stage-height) + var(--_funnel-chart-stage-gap)));margin:0;color:var(--text-secondary);text-align:center}.shape{display:block}svg{--_chart-rise-distance: 10%;display:block;inline-size:100%}.stage{stroke:transparent}@media not (forced-colors:active){.stage.interactive:focus-visible{outline:none}}.stage.interactive:focus-visible{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color, var(--ds-chart-bg-color)))}.skeleton{display:grid;row-gap:var(--_funnel-chart-stage-gap)}.stage-table{inline-size:100%;margin-block-start:var(--_funnel-chart-row-gap);border-collapse:collapse;font-variant-numeric:tabular-nums}.stage-table th,.stage-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.stage-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.stage-table thead th:first-child{text-align:start}.stage-table td{padding-inline-start:var(--space-3)}.stage-table th[scope=row]{color:var(--text-secondary);font-weight:400;text-align:start}.stage-table tbody>tr{margin:calc(-1 * var(--space-0-5)) calc(-1 * var(--space-1-5));padding:var(--space-0-5) var(--space-1-5);border-radius:var(--radius-sm);transition:background-color var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),color var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.stage-table tbody>tr:hover,.stage-table tbody>tr:focus-visible,.stage-table tbody>tr:has(:focus-visible){background-color:var(--_funnel-chart-row-hover-bg-color)}.stage-table tbody>tr:hover>*,.stage-table tbody>tr:focus-visible>*,.stage-table tbody>tr:has(:focus-visible)>*{color:var(--_funnel-chart-row-hover-text-color)}.swatch{display:inline-block;inline-size:var(--space-2);block-size:var(--space-2);margin-inline-end:var(--space-2);border-radius:var(--radius-sm)}.shape .stage{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.shape .stage.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.shape.dims-others:not(:has(.stage.is-pinned)):has(.stage.is-active) .stage:not(.is-active),.shape.dims-others:has(.stage.is-pinned) .stage:not(.is-pinned){opacity:var(--ds-chart-dim-opacity)}.shape .stage.interactive,.shape .stage.pins{cursor:pointer}@media(forced-colors:active){.axis-line,.grid-line{stroke:CanvasText}.axis-label,.category-label{fill:CanvasText}:focus-visible{stroke:Highlight;filter:none}}:host{position:relative}:host(.framed){--_chart-pin-reset-inset: var(--ds-chart-frame-padding)}:host:has(.pin-reset) figure>figcaption{padding-inline-end:calc(5rem + var(--space-2))}.pin-reset{position:absolute;inset-block-start:var(--_chart-pin-reset-inset, 0);inset-inline-end:var(--_chart-pin-reset-inset, 0);z-index:1;display:inline-flex;align-items:center;gap:var(--space-1);block-size:var(--space-6);padding:0 var(--space-2-5);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-secondary);font-size:var(--font-size-xs);line-height:1;box-shadow:var(--shadow-1);cursor:pointer}.pin-reset:before{position:absolute;inset:50% auto auto 50%;inline-size:max(100%,var(--hit-comfy));block-size:var(--hit-comfy);transform:translate(-50%,-50%);content:\"\"}.pin-reset:hover{color:var(--text-primary);border-color:var(--border-strong)}.pin-marker{display:grid;place-items:center;inline-size:var(--ds-chart-pin-size, 22px);block-size:var(--ds-chart-pin-size, 22px);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-primary);box-shadow:var(--shadow-1);pointer-events:none}.shape{position:relative}.pin-marker{position:absolute;transform:translate(-50%,-50%)}\n"] }]
|
|
362
|
+
}], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], shape: [{ type: i0.Input, args: [{ isSignal: true, alias: "shape", required: false }] }], showTable: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTable", required: false }] }], dataTable: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataTable", required: false }] }], drop: [{ type: i0.Input, args: [{ isSignal: true, alias: "drop", required: false }] }], stageClicked: [{ type: i0.Output, args: ["stageClicked"] }], dimOthers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dimOthers", required: false }] }], staggerMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "staggerMs", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], tooltipTemplate: [{ type: i0.ContentChild, args: ['dsChartTooltip', { isSignal: true }] }] } });
|
|
478
363
|
|
|
479
364
|
/**
|
|
480
365
|
* Generated bundle index. Do not edit.
|