@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
|
@@ -2,17 +2,17 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { input, computed, inject, ElementRef, afterRenderEffect, ChangeDetectionStrategy, ViewEncapsulation, Component, ViewContainerRef, effect, DestroyRef, Directive, signal } from '@angular/core';
|
|
3
3
|
import { Overlay } from '@angular/cdk/overlay';
|
|
4
4
|
import { ComponentPortal } from '@angular/cdk/portal';
|
|
5
|
-
import { closeOnScroll, disposeWithLeave, chartDwell } from '@ids-group-ltd/ids-design-system/components';
|
|
5
|
+
import { forwardOverlayTokens, closeOnScroll, disposeWithLeave, chartDwell } from '@ids-group-ltd/ids-design-system/components';
|
|
6
6
|
import { NgTemplateOutlet } from '@angular/common';
|
|
7
7
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
8
8
|
import { ICONS } from '@ids-group-ltd/ids-design-system/core';
|
|
9
9
|
|
|
10
|
-
//
|
|
11
|
-
|
|
10
|
+
// Below this the dot reads as the panel itself, as the palest heat step does on a light panel (1.14:1).
|
|
11
|
+
// A merely low-contrast hue still reads as a colour next to its label and takes no ring.
|
|
12
|
+
const SAME_AS_GROUND = 1.5;
|
|
12
13
|
let probe = null;
|
|
13
14
|
const blendsByPair = new Map();
|
|
14
|
-
// Painting
|
|
15
|
-
// `oklch()`, `color-mix()` and named colours included - where parsing the string would not.
|
|
15
|
+
// Painting and reading the pixel back resolves any CSS colour syntax (`oklch()`, `color-mix()`) to sRGB.
|
|
16
16
|
function srgbOf(color) {
|
|
17
17
|
if (!probe) {
|
|
18
18
|
const canvas = document.createElement('canvas');
|
|
@@ -36,8 +36,7 @@ function relativeLuminance([red, green, blue]) {
|
|
|
36
36
|
};
|
|
37
37
|
return 0.2126 * linear(red) + 0.7152 * linear(green) + 0.0722 * linear(blue);
|
|
38
38
|
}
|
|
39
|
-
/** Whether
|
|
40
|
-
* needs, and so has to be ringed to be seen. Both are computed CSS colours. */
|
|
39
|
+
/** Whether `color` is close enough to `ground` to vanish into it and needs a ring. Both are computed CSS colours. */
|
|
41
40
|
function swatchBlendsInto(color, ground) {
|
|
42
41
|
const pair = `${color}|${ground}`;
|
|
43
42
|
const known = blendsByPair.get(pair);
|
|
@@ -48,14 +47,13 @@ function swatchBlendsInto(color, ground) {
|
|
|
48
47
|
const groundLuminance = relativeLuminance(srgbOf(ground));
|
|
49
48
|
const ratio = (Math.max(swatchLuminance, groundLuminance) + 0.05) /
|
|
50
49
|
(Math.min(swatchLuminance, groundLuminance) + 0.05);
|
|
51
|
-
const blends = ratio <
|
|
50
|
+
const blends = ratio < SAME_AS_GROUND;
|
|
52
51
|
blendsByPair.set(pair, blends);
|
|
53
52
|
return blends;
|
|
54
53
|
}
|
|
55
54
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
const AUTO_SWATCH_LIMIT = 4;
|
|
55
|
+
const AUTO_SWATCH_MIN = 2;
|
|
56
|
+
const AUTO_SWATCH_MAX = 4;
|
|
59
57
|
class ChartTooltipPanelComponent {
|
|
60
58
|
/** The category and the readings the panel prints. */
|
|
61
59
|
context = input.required(...(ngDevMode ? [{ debugName: "context" }] : /* istanbul ignore next */ []));
|
|
@@ -64,13 +62,13 @@ class ChartTooltipPanelComponent {
|
|
|
64
62
|
swatches = input('auto', ...(ngDevMode ? [{ debugName: "swatches" }] : /* istanbul ignore next */ []));
|
|
65
63
|
showsSwatches = computed(() => {
|
|
66
64
|
const swatches = this.swatches();
|
|
65
|
+
const count = this.context().entries.length;
|
|
67
66
|
return swatches === 'auto'
|
|
68
|
-
?
|
|
67
|
+
? count >= AUTO_SWATCH_MIN && count <= AUTO_SWATCH_MAX
|
|
69
68
|
: swatches;
|
|
70
69
|
}, ...(ngDevMode ? [{ debugName: "showsSwatches" }] : /* istanbul ignore next */ []));
|
|
71
70
|
host = inject(ElementRef);
|
|
72
71
|
constructor() {
|
|
73
|
-
// Before the frame paints, so a ring never lands a frame after its row.
|
|
74
72
|
afterRenderEffect({
|
|
75
73
|
earlyRead: () => {
|
|
76
74
|
this.context();
|
|
@@ -89,28 +87,28 @@ class ChartTooltipPanelComponent {
|
|
|
89
87
|
});
|
|
90
88
|
}
|
|
91
89
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ChartTooltipPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
92
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ChartTooltipPanelComponent, isStandalone: true, selector: "ds-chart-tooltip-panel", inputs: { context: { classPropertyName: "context", publicName: "context", isSignal: true, isRequired: true, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null }, swatches: { classPropertyName: "swatches", publicName: "swatches", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "aria-hidden": "true" } }, ngImport: i0, template: "@if (template(); as projected) {\n <ng-container\n [ngTemplateOutlet]=\"projected\"\n [ngTemplateOutletContext]=\"{ $implicit: context() }\" />\n} @else {\n @if (context().category) {\n <p class=\"category\">\n {{ context().category }}\n </p>\n }\n\n <ul\n class=\"entries\"\n [class.no-swatches]=\"!showsSwatches()\">\n @for (entry of context().entries; track $index) {\n <li class=\"entry\">\n @if (showsSwatches()) {\n <span\n class=\"swatch\"\n [class.hatched]=\"entry.hatched\"\n [style.background-color]=\"entry.color\">\n </span>\n }\n\n <span class=\"label\">\n {{ entry.label }}\n </span>\n\n <span class=\"value\">\n {{ entry.formatted }}\n </span>\n\n @if (entry.detail) {\n <span class=\"detail\">\n {{ entry.detail }}\n </span>\n }\n </li>\n }\n </ul>\n}\n", styles: [":host{--_chart-tooltip-bg-color: var(--ds-chart-tooltip-bg-color);--_chart-tooltip-text-color: var(--ds-chart-tooltip-text-color);--_chart-tooltip-border-color: var(--ds-chart-tooltip-border-color);--_chart-tooltip-hatch-color: var(--ds-chart-hatch-color);--_chart-tooltip-hatch-width: var(--ds-chart-hatch-width);display:block;background:var(--_chart-tooltip-bg-color);color:var(--_chart-tooltip-text-color);border:var(--border-width-default) solid var(--_chart-tooltip-border-color);border-radius:var(--ds-radius-control);box-shadow:var(--ds-elevation-overlay);padding:var(--space-2) var(--space-2-5);max-width:var(--tooltip-maxw);max-height:calc(100dvh - 2 * var(--space-3));overflow-y:auto;z-index:var(--layer-tooltip);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);pointer-events:none}.category{margin:0 0 var(--space-1-5);font-weight:var(--font-weight-medium)}.entries{display:grid;gap:var(--space-1);margin:0;padding:0;list-style:none}.entry{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:var(--space-2)}.no-swatches .entry{grid-template-columns:1fr auto}.detail{grid-column:2/-1;margin-block-start:calc(var(--space-1) * -1);color:var(--_chart-tooltip-text-color);opacity:.7;font-size:var(--font-size-2xs)}.no-swatches .detail{grid-column:1/-1}.swatch{inline-size:var(--space-3);block-size:var(--space-3);border-radius:var(--radius-pill)}.swatch.ringed{box-shadow:inset 0 0 0 1.5px var(--_chart-tooltip-text-color)}.swatch.hatched{background-image:linear-gradient(-45deg,transparent calc(50% - var(--_chart-tooltip-hatch-width) / 2),var(--_chart-tooltip-hatch-color) calc(50% - var(--_chart-tooltip-hatch-width) / 2),var(--_chart-tooltip-hatch-color) calc(50% + var(--_chart-tooltip-hatch-width) / 2),transparent calc(50% + var(--_chart-tooltip-hatch-width) / 2))}.value{font-variant-numeric:tabular-nums;font-weight:var(--font-weight-medium)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
90
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ChartTooltipPanelComponent, isStandalone: true, selector: "ds-chart-tooltip-panel", inputs: { context: { classPropertyName: "context", publicName: "context", isSignal: true, isRequired: true, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null }, swatches: { classPropertyName: "swatches", publicName: "swatches", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "aria-hidden": "true" } }, ngImport: i0, template: "@if (template(); as projected) {\n <ng-container\n [ngTemplateOutlet]=\"projected\"\n [ngTemplateOutletContext]=\"{ $implicit: context() }\" />\n} @else {\n @if (context().category) {\n <p class=\"category\">\n {{ context().category }}\n </p>\n }\n\n <ul\n class=\"entries\"\n [class.no-swatches]=\"!showsSwatches()\">\n @for (entry of context().entries; track $index) {\n <li class=\"entry\">\n @if (showsSwatches()) {\n <span\n class=\"swatch\"\n [class.hatched]=\"entry.hatched\"\n [style.background-color]=\"entry.color\">\n </span>\n }\n\n <span class=\"label\">\n {{ entry.label }}\n </span>\n\n <span class=\"value\">\n {{ entry.formatted }}\n </span>\n\n @if (entry.detail) {\n <span class=\"detail\">\n {{ entry.detail }}\n </span>\n }\n </li>\n }\n </ul>\n}\n", styles: [":host{--_chart-tooltip-bg-color: var(--ds-chart-tooltip-bg-color);--_chart-tooltip-text-color: var(--ds-chart-tooltip-text-color);--_chart-tooltip-border-color: var(--ds-chart-tooltip-border-color);--_chart-tooltip-hatch-color: var(--ds-chart-hatch-color, var(--surface-default));--_chart-tooltip-hatch-width: var(--ds-chart-hatch-width);display:block;background:var(--_chart-tooltip-bg-color);color:var(--_chart-tooltip-text-color);border:var(--border-width-default) solid var(--_chart-tooltip-border-color);border-radius:var(--ds-radius-control);box-shadow:var(--ds-elevation-overlay);padding:var(--space-2) var(--space-2-5);max-width:var(--tooltip-maxw);max-height:calc(100dvh - 2 * var(--space-3));overflow-y:auto;z-index:var(--layer-tooltip);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);pointer-events:none}.category{margin:0 0 var(--space-1-5);font-weight:var(--font-weight-medium)}.entries{display:grid;gap:var(--space-1);margin:0;padding:0;list-style:none}.entry{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:var(--space-2)}.no-swatches .entry{grid-template-columns:1fr auto}.detail{grid-column:2/-1;margin-block-start:calc(var(--space-1) * -1);color:var(--_chart-tooltip-text-color);opacity:.7;font-size:var(--font-size-2xs)}.no-swatches .detail{grid-column:1/-1}.swatch{inline-size:var(--space-3);block-size:var(--space-3);border-radius:var(--radius-pill)}.swatch.ringed{box-shadow:inset 0 0 0 1.5px var(--_chart-tooltip-text-color)}.swatch.hatched{background-image:linear-gradient(-45deg,transparent calc(50% - var(--_chart-tooltip-hatch-width) / 2),var(--_chart-tooltip-hatch-color) calc(50% - var(--_chart-tooltip-hatch-width) / 2),var(--_chart-tooltip-hatch-color) calc(50% + var(--_chart-tooltip-hatch-width) / 2),transparent calc(50% + var(--_chart-tooltip-hatch-width) / 2))}.value{font-variant-numeric:tabular-nums;font-weight:var(--font-weight-medium)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
93
91
|
}
|
|
94
92
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ChartTooltipPanelComponent, decorators: [{
|
|
95
93
|
type: Component,
|
|
96
94
|
args: [{ selector: 'ds-chart-tooltip-panel', standalone: true, imports: [NgTemplateOutlet], host: {
|
|
97
|
-
// Hidden from
|
|
98
|
-
// carries the same label and value in its `aria-label`, so exposing the panel
|
|
99
|
-
// makes a screen reader read each reading twice.
|
|
95
|
+
// Hidden from AT: every interactive mark's `aria-label` already carries the reading.
|
|
100
96
|
'aria-hidden': 'true',
|
|
101
|
-
}, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (template(); as projected) {\n <ng-container\n [ngTemplateOutlet]=\"projected\"\n [ngTemplateOutletContext]=\"{ $implicit: context() }\" />\n} @else {\n @if (context().category) {\n <p class=\"category\">\n {{ context().category }}\n </p>\n }\n\n <ul\n class=\"entries\"\n [class.no-swatches]=\"!showsSwatches()\">\n @for (entry of context().entries; track $index) {\n <li class=\"entry\">\n @if (showsSwatches()) {\n <span\n class=\"swatch\"\n [class.hatched]=\"entry.hatched\"\n [style.background-color]=\"entry.color\">\n </span>\n }\n\n <span class=\"label\">\n {{ entry.label }}\n </span>\n\n <span class=\"value\">\n {{ entry.formatted }}\n </span>\n\n @if (entry.detail) {\n <span class=\"detail\">\n {{ entry.detail }}\n </span>\n }\n </li>\n }\n </ul>\n}\n", styles: [":host{--_chart-tooltip-bg-color: var(--ds-chart-tooltip-bg-color);--_chart-tooltip-text-color: var(--ds-chart-tooltip-text-color);--_chart-tooltip-border-color: var(--ds-chart-tooltip-border-color);--_chart-tooltip-hatch-color: var(--ds-chart-hatch-color);--_chart-tooltip-hatch-width: var(--ds-chart-hatch-width);display:block;background:var(--_chart-tooltip-bg-color);color:var(--_chart-tooltip-text-color);border:var(--border-width-default) solid var(--_chart-tooltip-border-color);border-radius:var(--ds-radius-control);box-shadow:var(--ds-elevation-overlay);padding:var(--space-2) var(--space-2-5);max-width:var(--tooltip-maxw);max-height:calc(100dvh - 2 * var(--space-3));overflow-y:auto;z-index:var(--layer-tooltip);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);pointer-events:none}.category{margin:0 0 var(--space-1-5);font-weight:var(--font-weight-medium)}.entries{display:grid;gap:var(--space-1);margin:0;padding:0;list-style:none}.entry{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:var(--space-2)}.no-swatches .entry{grid-template-columns:1fr auto}.detail{grid-column:2/-1;margin-block-start:calc(var(--space-1) * -1);color:var(--_chart-tooltip-text-color);opacity:.7;font-size:var(--font-size-2xs)}.no-swatches .detail{grid-column:1/-1}.swatch{inline-size:var(--space-3);block-size:var(--space-3);border-radius:var(--radius-pill)}.swatch.ringed{box-shadow:inset 0 0 0 1.5px var(--_chart-tooltip-text-color)}.swatch.hatched{background-image:linear-gradient(-45deg,transparent calc(50% - var(--_chart-tooltip-hatch-width) / 2),var(--_chart-tooltip-hatch-color) calc(50% - var(--_chart-tooltip-hatch-width) / 2),var(--_chart-tooltip-hatch-color) calc(50% + var(--_chart-tooltip-hatch-width) / 2),transparent calc(50% + var(--_chart-tooltip-hatch-width) / 2))}.value{font-variant-numeric:tabular-nums;font-weight:var(--font-weight-medium)}\n"] }]
|
|
97
|
+
}, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (template(); as projected) {\n <ng-container\n [ngTemplateOutlet]=\"projected\"\n [ngTemplateOutletContext]=\"{ $implicit: context() }\" />\n} @else {\n @if (context().category) {\n <p class=\"category\">\n {{ context().category }}\n </p>\n }\n\n <ul\n class=\"entries\"\n [class.no-swatches]=\"!showsSwatches()\">\n @for (entry of context().entries; track $index) {\n <li class=\"entry\">\n @if (showsSwatches()) {\n <span\n class=\"swatch\"\n [class.hatched]=\"entry.hatched\"\n [style.background-color]=\"entry.color\">\n </span>\n }\n\n <span class=\"label\">\n {{ entry.label }}\n </span>\n\n <span class=\"value\">\n {{ entry.formatted }}\n </span>\n\n @if (entry.detail) {\n <span class=\"detail\">\n {{ entry.detail }}\n </span>\n }\n </li>\n }\n </ul>\n}\n", styles: [":host{--_chart-tooltip-bg-color: var(--ds-chart-tooltip-bg-color);--_chart-tooltip-text-color: var(--ds-chart-tooltip-text-color);--_chart-tooltip-border-color: var(--ds-chart-tooltip-border-color);--_chart-tooltip-hatch-color: var(--ds-chart-hatch-color, var(--surface-default));--_chart-tooltip-hatch-width: var(--ds-chart-hatch-width);display:block;background:var(--_chart-tooltip-bg-color);color:var(--_chart-tooltip-text-color);border:var(--border-width-default) solid var(--_chart-tooltip-border-color);border-radius:var(--ds-radius-control);box-shadow:var(--ds-elevation-overlay);padding:var(--space-2) var(--space-2-5);max-width:var(--tooltip-maxw);max-height:calc(100dvh - 2 * var(--space-3));overflow-y:auto;z-index:var(--layer-tooltip);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);pointer-events:none}.category{margin:0 0 var(--space-1-5);font-weight:var(--font-weight-medium)}.entries{display:grid;gap:var(--space-1);margin:0;padding:0;list-style:none}.entry{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:var(--space-2)}.no-swatches .entry{grid-template-columns:1fr auto}.detail{grid-column:2/-1;margin-block-start:calc(var(--space-1) * -1);color:var(--_chart-tooltip-text-color);opacity:.7;font-size:var(--font-size-2xs)}.no-swatches .detail{grid-column:1/-1}.swatch{inline-size:var(--space-3);block-size:var(--space-3);border-radius:var(--radius-pill)}.swatch.ringed{box-shadow:inset 0 0 0 1.5px var(--_chart-tooltip-text-color)}.swatch.hatched{background-image:linear-gradient(-45deg,transparent calc(50% - var(--_chart-tooltip-hatch-width) / 2),var(--_chart-tooltip-hatch-color) calc(50% - var(--_chart-tooltip-hatch-width) / 2),var(--_chart-tooltip-hatch-color) calc(50% + var(--_chart-tooltip-hatch-width) / 2),transparent calc(50% + var(--_chart-tooltip-hatch-width) / 2))}.value{font-variant-numeric:tabular-nums;font-weight:var(--font-weight-medium)}\n"] }]
|
|
102
98
|
}], ctorParameters: () => [], propDecorators: { context: [{ type: i0.Input, args: [{ isSignal: true, alias: "context", required: true }] }], template: [{ type: i0.Input, args: [{ isSignal: true, alias: "template", required: false }] }], swatches: [{ type: i0.Input, args: [{ isSignal: true, alias: "swatches", required: false }] }] } });
|
|
103
99
|
|
|
104
100
|
const POINTER_GAP_PX = 10;
|
|
105
|
-
//
|
|
106
|
-
|
|
101
|
+
// Portaled to the body, so a chart's own values reach the panel only by being copied.
|
|
102
|
+
const CHART_TOOLTIP_TOKENS = [
|
|
103
|
+
'--ds-chart-tooltip-bg-color',
|
|
104
|
+
'--ds-chart-tooltip-text-color',
|
|
105
|
+
'--ds-chart-tooltip-border-color',
|
|
106
|
+
];
|
|
107
|
+
// A fingertip covers roughly 40 CSS px, so a touch-opened panel clears the tap point further.
|
|
107
108
|
const TOUCH_GAP_PX = 48;
|
|
108
|
-
//
|
|
109
|
-
// `max-height`. The two have to agree: CDK pushes against this margin, and a panel allowed to grow
|
|
110
|
-
// past what the margin leaves is one push cannot fit.
|
|
109
|
+
// Must equal the `--space-3` in the panel's `max-height`.
|
|
111
110
|
const VIEWPORT_MARGIN_PX = 12;
|
|
112
|
-
// Four fallbacks
|
|
113
|
-
// clipped by it. Above first, held or not: the panel opens over the mark it is about.
|
|
111
|
+
// Four fallbacks let the panel flip out of a small card instead of being clipped. Above first.
|
|
114
112
|
function positionsFor(gap) {
|
|
115
113
|
return [
|
|
116
114
|
{
|
|
@@ -143,28 +141,20 @@ function positionsFor(gap) {
|
|
|
143
141
|
},
|
|
144
142
|
];
|
|
145
143
|
}
|
|
146
|
-
/**
|
|
147
|
-
* The chart tooltip, driven entirely by the context a chart hands it: non-null opens the
|
|
148
|
-
* panel, null closes it. Pointer and keyboard therefore share one path — a chart that
|
|
149
|
-
* sets the context on `focus` gets the panel with no pointer involved.
|
|
150
|
-
*
|
|
151
|
-
* @internal
|
|
152
|
-
*/
|
|
144
|
+
/** The chart tooltip: a non-null context opens the panel, null closes it. @internal */
|
|
153
145
|
class ChartTooltipDirective {
|
|
154
146
|
overlay = inject(Overlay);
|
|
155
147
|
viewContainerRef = inject(ViewContainerRef);
|
|
148
|
+
host = inject(ElementRef);
|
|
156
149
|
dsChartTooltip = input(null, ...(ngDevMode ? [{ debugName: "dsChartTooltip" }] : /* istanbul ignore next */ []));
|
|
157
150
|
dsChartTooltipOrigin = input(null, ...(ngDevMode ? [{ debugName: "dsChartTooltipOrigin" }] : /* istanbul ignore next */ []));
|
|
158
151
|
dsChartTooltipTemplate = input(null, ...(ngDevMode ? [{ debugName: "dsChartTooltipTemplate" }] : /* istanbul ignore next */ []));
|
|
159
|
-
/** Extra clearance between the mark and the panel,
|
|
160
|
-
* prints something ABOVE its mark — a column with its value on top — needs the panel to clear
|
|
161
|
-
* that text as well as the mark, or the two overlap. Ignored for touch, where the gap is already
|
|
162
|
-
* sized for a fingertip. */
|
|
152
|
+
/** Extra clearance between the mark and the panel, for text printed above the mark. Ignored for touch. */
|
|
163
153
|
dsChartTooltipExtraGap = input(0, ...(ngDevMode ? [{ debugName: "dsChartTooltipExtraGap" }] : /* istanbul ignore next */ []));
|
|
164
|
-
/** A held panel takes the pointer
|
|
165
|
-
* the
|
|
154
|
+
/** A held panel takes the pointer so its text can be selected; a following one stays inert or
|
|
155
|
+
* the mark under it never sees the pointer. */
|
|
166
156
|
dsChartTooltipPinned = input(false, ...(ngDevMode ? [{ debugName: "dsChartTooltipPinned" }] : /* istanbul ignore next */ []));
|
|
167
|
-
/** Whether each reading carries its colour dot. `'auto'` draws them for
|
|
157
|
+
/** Whether each reading carries its colour dot. `'auto'` draws them for two to four readings. */
|
|
168
158
|
dsChartTooltipSwatches = input('auto', ...(ngDevMode ? [{ debugName: "dsChartTooltipSwatches" }] : /* istanbul ignore next */ []));
|
|
169
159
|
overlayRef = null;
|
|
170
160
|
panelRef = null;
|
|
@@ -184,13 +174,11 @@ class ChartTooltipDirective {
|
|
|
184
174
|
inject(DestroyRef).onDestroy(() => this.close());
|
|
185
175
|
}
|
|
186
176
|
open(context, origin) {
|
|
187
|
-
// Measured before the
|
|
188
|
-
// where it is on screen rather than jumping to where that glide was heading.
|
|
177
|
+
// Measured before the in-flight glide is dropped, so a mid-glide re-aim starts from the visible position.
|
|
189
178
|
const from = this.overlayRef?.overlayElement.getBoundingClientRect() ?? null;
|
|
190
179
|
this.glide?.cancel();
|
|
191
180
|
this.glide = null;
|
|
192
|
-
// Reposition
|
|
193
|
-
// OverlayRef per mark restarts the enter transition on every band it crosses.
|
|
181
|
+
// Reposition, not re-create: a fresh OverlayRef restarts the enter transition.
|
|
194
182
|
if (!this.overlayRef) {
|
|
195
183
|
this.overlayRef = this.overlay.create({
|
|
196
184
|
positionStrategy: this.strategyFor(origin),
|
|
@@ -198,11 +186,9 @@ class ChartTooltipDirective {
|
|
|
198
186
|
scrollStrategy: this.overlay.scrollStrategies.reposition(),
|
|
199
187
|
});
|
|
200
188
|
this.panelRef = this.overlayRef.attach(new ComponentPortal(ChartTooltipPanelComponent, this.viewContainerRef));
|
|
201
|
-
|
|
202
|
-
// `overflow: auto` container. A panel
|
|
203
|
-
//
|
|
204
|
-
// the pointer crossed. A PINNED panel moves: its mark stops answering pointer moves, so a close
|
|
205
|
-
// would be permanent, leaving the pin glyph and the Unpin control over a reading that is gone.
|
|
189
|
+
forwardOverlayTokens(this.overlayRef, this.host.nativeElement, CHART_TOOLTIP_TOKENS);
|
|
190
|
+
// CDK's reposition strategy misses an app's own `overflow: auto` container. A following panel
|
|
191
|
+
// closes; a pinned one moves, or a close would strand the pin glyph and Unpin.
|
|
206
192
|
this.detachScrollReposition = closeOnScroll(this.overlayRef, () => this.dsChartTooltipPinned()
|
|
207
193
|
? this.overlayRef?.updatePosition()
|
|
208
194
|
: this.close());
|
|
@@ -216,15 +202,13 @@ class ChartTooltipDirective {
|
|
|
216
202
|
this.panelRef?.setInput('template', this.dsChartTooltipTemplate());
|
|
217
203
|
this.panelRef?.setInput('swatches', this.dsChartTooltipSwatches());
|
|
218
204
|
if (from) {
|
|
219
|
-
//
|
|
220
|
-
// lands where the old one would have.
|
|
205
|
+
// Render the new reading first, or a resized panel lands where the old one would.
|
|
221
206
|
this.panelRef?.changeDetectorRef.detectChanges();
|
|
222
207
|
this.overlayRef.updatePosition();
|
|
223
208
|
this.glideFrom(from, this.overlayRef.overlayElement);
|
|
224
209
|
}
|
|
225
210
|
}
|
|
226
|
-
// `translate`, not `transform`: the pane's
|
|
227
|
-
// that replaced it would cut an entrance short.
|
|
211
|
+
// `translate`, not `transform`: the pane's enter and leave animate `transform`.
|
|
228
212
|
glideFrom(from, pane) {
|
|
229
213
|
const to = pane.getBoundingClientRect();
|
|
230
214
|
const deltaX = from.left - to.left;
|
|
@@ -256,10 +240,7 @@ class ChartTooltipDirective {
|
|
|
256
240
|
.withViewportMargin(VIEWPORT_MARGIN_PX)
|
|
257
241
|
.withPositions(positionsFor(gap));
|
|
258
242
|
}
|
|
259
|
-
// WCAG 1.4.13
|
|
260
|
-
// out "move off the mark". Nothing re-opens it afterwards: the effect re-runs on a CHANGE to the
|
|
261
|
-
// context or the origin, and neither changes while the pointer rests where it already is — so the
|
|
262
|
-
// reader keeps the screen they cleared until they visit another mark.
|
|
243
|
+
// WCAG 1.4.13: dismissable without moving pointer or focus. Stays closed until the context or origin changes.
|
|
263
244
|
closeOnEscape() {
|
|
264
245
|
if (typeof document === 'undefined') {
|
|
265
246
|
return () => undefined;
|
|
@@ -277,9 +258,6 @@ class ChartTooltipDirective {
|
|
|
277
258
|
this.detachEscape = null;
|
|
278
259
|
this.detachScrollReposition?.();
|
|
279
260
|
this.detachScrollReposition = null;
|
|
280
|
-
// A dismissal, never a selection: the panel closes when the reader leaves the plot, and the
|
|
281
|
-
// family's answer to that is a fade. Moving between marks repositions this overlay rather than
|
|
282
|
-
// closing it, so nothing here can lag behind the pointer.
|
|
283
261
|
disposeWithLeave(this.overlayRef, 'dismiss');
|
|
284
262
|
this.glide = null;
|
|
285
263
|
this.overlayRef = null;
|
|
@@ -309,32 +287,25 @@ function coarsePointer() {
|
|
|
309
287
|
|
|
310
288
|
/**
|
|
311
289
|
* The pointer-and-focus target the tooltip reads, for a chart whose marks are elements.
|
|
312
|
-
* Pointer and keyboard write the same pair
|
|
313
|
-
* `enter` and gets one code path rather than two.
|
|
290
|
+
* Pointer and keyboard write the same pair: wire `pointerenter` and `focus` to `enter`.
|
|
314
291
|
*
|
|
315
|
-
* A
|
|
316
|
-
*
|
|
292
|
+
* A pointer is answered after resting `hoverDelayMs` on a mark (at once while the chart has
|
|
293
|
+
* already answered); focus, a tap and a pin are answered at once.
|
|
317
294
|
*
|
|
318
|
-
* A
|
|
319
|
-
*
|
|
320
|
-
* from an injection context — the release listener is torn down with the component.
|
|
295
|
+
* A tap latches: touch fires `pointerleave` on lift, so the panel stays until the next tap
|
|
296
|
+
* outside the mark. Call from an injection context.
|
|
321
297
|
*
|
|
322
298
|
* @internal
|
|
323
299
|
*/
|
|
324
300
|
function chartActiveMark(lingerMs = () => 0, hoverDelayMs = () => 0) {
|
|
325
301
|
const index = signal(-1, ...(ngDevMode ? [{ debugName: "index" }] : /* istanbul ignore next */ []));
|
|
326
302
|
const origin = signal(null, ...(ngDevMode ? [{ debugName: "origin" }] : /* istanbul ignore next */ []));
|
|
327
|
-
// One flag for two ways of arriving at the same state: a tap, which has no hover to hold the
|
|
328
|
-
// panel open, and a deliberate click under `pinOnClick`. Both release the same way.
|
|
329
303
|
const pinned = signal(false, ...(ngDevMode ? [{ debugName: "pinned" }] : /* istanbul ignore next */ []));
|
|
330
|
-
//
|
|
331
|
-
// to the tap, and must not read as the second press that lets go.
|
|
304
|
+
// The click after a latching tap belongs to the tap, not to a press that lets go.
|
|
332
305
|
let tapLatched = false;
|
|
333
306
|
let pendingClear = null;
|
|
334
|
-
//
|
|
335
|
-
//
|
|
336
|
-
// it misses this, or a click on the cell beside the bar would release the pin and immediately
|
|
337
|
-
// re-take it, leaving the pin looking stuck.
|
|
307
|
+
// Owns the handlers (a column anchors to the bar, the whole cell takes the pointer). A press is
|
|
308
|
+
// outside only when it misses this, or a click beside the bar releases and re-takes the pin.
|
|
338
309
|
let host = null;
|
|
339
310
|
const dwell = chartDwell(hoverDelayMs);
|
|
340
311
|
const clear = () => {
|
|
@@ -348,18 +319,14 @@ function chartActiveMark(lingerMs = () => 0, hoverDelayMs = () => 0) {
|
|
|
348
319
|
document.removeEventListener('keydown', releaseOnEscape, true);
|
|
349
320
|
document.removeEventListener('pointerover', trackPointer, true);
|
|
350
321
|
};
|
|
351
|
-
//
|
|
352
|
-
//
|
|
353
|
-
// over the column it is about. A selector is resolved INSIDE the box; a legend item's mark is not
|
|
354
|
-
// inside it, so that caller passes the element.
|
|
322
|
+
// Anchors to the mark, not the pointer-catching box (a column cell spans the plot height). A
|
|
323
|
+
// selector resolves inside the box; a legend item's mark is outside it, so its caller passes the element.
|
|
355
324
|
const aim = (at, event, anchor, mark = event.currentTarget) => {
|
|
356
325
|
const target = mark;
|
|
357
326
|
if (target instanceof Element) {
|
|
358
327
|
host = target;
|
|
359
328
|
const mark = typeof anchor === 'string' ? target.querySelector(anchor) : anchor;
|
|
360
|
-
// A
|
|
361
|
-
// bar its width - and an overlay anchored to it lands at that edge rather than near the
|
|
362
|
-
// reading. Both dimensions have to be real. The hover target always is.
|
|
329
|
+
// A zero-value mark has no height or width and would anchor to an edge.
|
|
363
330
|
const box = mark?.getBoundingClientRect();
|
|
364
331
|
const aimable = box && box.width > 0 && box.height > 0;
|
|
365
332
|
origin.set(aimable ? (mark ?? target) : target);
|
|
@@ -372,8 +339,6 @@ function chartActiveMark(lingerMs = () => 0, hoverDelayMs = () => 0) {
|
|
|
372
339
|
document.addEventListener('pointerdown', release, true);
|
|
373
340
|
document.addEventListener('keydown', releaseOnEscape, true);
|
|
374
341
|
};
|
|
375
|
-
// Escape releases the mark as well as the panel. Without this the panel would go and the dimming
|
|
376
|
-
// it caused would stay, leaving the chart in a state with nothing on screen explaining it.
|
|
377
342
|
const releaseOnEscape = (event) => {
|
|
378
343
|
if (event.key === 'Escape') {
|
|
379
344
|
clear();
|
|
@@ -394,10 +359,8 @@ function chartActiveMark(lingerMs = () => 0, hoverDelayMs = () => 0) {
|
|
|
394
359
|
document.removeEventListener('pointerover', trackPointer, true);
|
|
395
360
|
}, Math.max(lingerMs(), 0));
|
|
396
361
|
};
|
|
397
|
-
//
|
|
398
|
-
//
|
|
399
|
-
// anything that is not the mark schedules a new one. Without the second half a panel the pointer
|
|
400
|
-
// once touched would never close, because the mark's own `pointerleave` has already fired.
|
|
362
|
+
// `pointerover` fires per element crossed: the panel cancels the clear, anything else but the mark
|
|
363
|
+
// schedules one. Without that a panel the pointer once touched never closes.
|
|
401
364
|
const trackPointer = (event) => {
|
|
402
365
|
if (!(event.target instanceof Element)) {
|
|
403
366
|
return;
|
|
@@ -406,15 +369,11 @@ function chartActiveMark(lingerMs = () => 0, hoverDelayMs = () => 0) {
|
|
|
406
369
|
cancelPendingClear();
|
|
407
370
|
return;
|
|
408
371
|
}
|
|
409
|
-
//
|
|
410
|
-
// elements, so testing the anchor would clear the panel the moment the pointer moved inside the
|
|
411
|
-
// legend item that opened it.
|
|
372
|
+
// Host, not anchor: a legend item and the arc its panel points at are disjoint.
|
|
412
373
|
if (!host || !host.contains(event.target)) {
|
|
413
374
|
scheduleClear();
|
|
414
375
|
}
|
|
415
376
|
};
|
|
416
|
-
// The chart the aimed mark belongs to. Every chart puts its plot in one `<figure>`, so this is
|
|
417
|
-
// what tells "pressed another mark of the same chart" apart from "pressed away".
|
|
418
377
|
const chartOf = (element) => element ? element.closest('figure') : null;
|
|
419
378
|
const release = (event) => {
|
|
420
379
|
if (!(event.target instanceof Element)) {
|
|
@@ -424,10 +383,7 @@ function chartActiveMark(lingerMs = () => 0, hoverDelayMs = () => 0) {
|
|
|
424
383
|
if (host && host.contains(event.target)) {
|
|
425
384
|
return;
|
|
426
385
|
}
|
|
427
|
-
//
|
|
428
|
-
// handler runs on `pointerdown`, the re-aim on the `click` after it, so clearing here would
|
|
429
|
-
// unmount the Unpin control and the pinned styling for a frame and mount them again — a
|
|
430
|
-
// flicker on every hop. The press is a re-aim when it lands on another mark of the same chart.
|
|
386
|
+
// Runs on `pointerdown`; the re-aim comes on `click`, so clearing here flickers the Unpin control.
|
|
431
387
|
const pressedMark = event.target.closest('[data-mark-index]');
|
|
432
388
|
if (pressedMark && chartOf(pressedMark) === chartOf(host)) {
|
|
433
389
|
return;
|
|
@@ -448,13 +404,10 @@ function chartActiveMark(lingerMs = () => 0, hoverDelayMs = () => 0) {
|
|
|
448
404
|
origin: origin.asReadonly(),
|
|
449
405
|
pinned: pinned.asReadonly(),
|
|
450
406
|
enter(at, event, anchor, mark) {
|
|
451
|
-
// A pin HOLDS. Without this the next mark the pointer crossed took the active slot straight
|
|
452
|
-
// back, so pinning appeared to work and then followed the pointer anyway — the one thing a
|
|
453
|
-
// pin exists not to do. It is released by Escape, or by a press outside the pinned mark.
|
|
454
407
|
if (pinned()) {
|
|
455
408
|
return;
|
|
456
409
|
}
|
|
457
|
-
//
|
|
410
|
+
// `currentTarget` is gone by the time a delayed answer runs.
|
|
458
411
|
const target = mark ?? event.currentTarget;
|
|
459
412
|
dwell.schedule(at, () => answer(at, event, anchor, target), event);
|
|
460
413
|
},
|
|
@@ -484,9 +437,6 @@ function chartActiveMark(lingerMs = () => 0, hoverDelayMs = () => 0) {
|
|
|
484
437
|
if (typeof document === 'undefined') {
|
|
485
438
|
return;
|
|
486
439
|
}
|
|
487
|
-
// The same gesture that set the pin clears it. A press on a DIFFERENT mark has already gone
|
|
488
|
-
// through `release` by the time the click lands, so this only ever sees a fresh mark or the
|
|
489
|
-
// pinned one.
|
|
490
440
|
if (pinned() && index() === at) {
|
|
491
441
|
if (tapLatched) {
|
|
492
442
|
tapLatched = false;
|
|
@@ -496,8 +446,7 @@ function chartActiveMark(lingerMs = () => 0, hoverDelayMs = () => 0) {
|
|
|
496
446
|
return;
|
|
497
447
|
}
|
|
498
448
|
tapLatched = false;
|
|
499
|
-
//
|
|
500
|
-
// it — the Unpin control, the held mark's styling — unmounts between the two marks.
|
|
449
|
+
// Keeps `pinned` true so the Unpin control stays mounted.
|
|
501
450
|
aim(at, event, anchor, mark);
|
|
502
451
|
if (!pinned()) {
|
|
503
452
|
hold();
|
|
@@ -522,21 +471,18 @@ function chartActiveMark(lingerMs = () => 0, hoverDelayMs = () => 0) {
|
|
|
522
471
|
}
|
|
523
472
|
}
|
|
524
473
|
|
|
525
|
-
/** Radius of the pin disc, in plot pixels.
|
|
526
|
-
* much room from its edge.
|
|
474
|
+
/** Radius of the pin disc, in plot pixels.
|
|
527
475
|
*
|
|
528
476
|
* @internal */
|
|
529
477
|
const CHART_PIN_RADIUS = 11;
|
|
530
|
-
/**
|
|
531
|
-
* the edge and reads as part of the mark rather than as a badge on it.
|
|
478
|
+
/** Gap between a disc and the top edge of what it holds.
|
|
532
479
|
*
|
|
533
480
|
* @internal */
|
|
534
481
|
const CHART_PIN_GAP = 4;
|
|
535
482
|
const GLYPH_SIZE = 14;
|
|
536
483
|
/**
|
|
537
|
-
* The disc an SVG chart draws on the mark or category it holds. Drawn
|
|
538
|
-
* `ds-icon`'s host is an
|
|
539
|
-
* nothing inside a canvas. The opaque disc is what keeps the glyph legible on any series colour.
|
|
484
|
+
* The disc an SVG chart draws on the mark or category it holds. Drawn, not composed:
|
|
485
|
+
* `ds-icon`'s host is an element SVG does not know, which renders nothing inside a canvas.
|
|
540
486
|
* Centred on the host's origin; place it with a `transform`.
|
|
541
487
|
*
|
|
542
488
|
* @internal
|