@ids-group-ltd/ids-design-system 0.14.3 → 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 +279 -0
- package/components.md +16 -16
- package/docs/agent/INDEX.md +1 -1
- package/docs/agent/charts/column-series-component.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/charts/line-series-component.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 -131
- 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 +109 -105
- 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 +190 -439
- 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 -124
- 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 -164
- 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 +29 -84
- 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 +55 -169
- 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 -121
- 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 +64 -96
- 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 +163 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs.map +1 -0
- 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 -82
- 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 -571
- 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/fesm2022/ids-group-ltd-ids-design-system.mjs +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.14.4.json +231 -0
- package/migrations/0.14.5.json +311 -0
- package/package.json +9 -1
- package/schematics/check-overrides/surface.json +30 -2
- package/styles/_breakpoints.scss +6 -23
- package/styles/_chart-data-table.scss +3 -11
- package/styles/_chart-frame.scss +14 -65
- 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 +8 -3
- package/styles/_tokens-charts.scss +31 -90
- package/styles/_tokens.scss +115 -154
- 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 +31 -49
- package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +165 -382
- 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 -125
- 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 +19 -83
- 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 +54 -163
- 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 +25 -94
- 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 +58 -0
- 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 -67
- package/types/ids-group-ltd-ids-design-system-components.d.ts +266 -410
- package/types/ids-group-ltd-ids-design-system-core.d.ts +134 -259
- 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
- package/types/ids-group-ltd-ids-design-system.d.ts +1 -0
|
@@ -3,12 +3,9 @@ import { InjectionToken, Provider, Signal } from '@angular/core';
|
|
|
3
3
|
/**
|
|
4
4
|
* Dismiss-on-backdrop for a backdrop that WRAPS its dialog.
|
|
5
5
|
*
|
|
6
|
-
* `click` cannot be trusted there:
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* `target === currentTarget` check waves it through. Hence tracking the press:
|
|
10
|
-
* dismiss only when press AND release both land on the backdrop itself. `ds-drawer` needs none of this because its scrim
|
|
11
|
-
* is a SIBLING of the panel, which makes their common ancestor a third element.
|
|
6
|
+
* `click` cannot be trusted there: it fires at the nearest common ancestor of press and release,
|
|
7
|
+
* so a drag from inside the dialog to the backdrop fires `click` ON THE BACKDROP. Dismiss only
|
|
8
|
+
* when press AND release both land on the backdrop itself.
|
|
12
9
|
* @internal
|
|
13
10
|
*/
|
|
14
11
|
declare function backdropDismiss(): {
|
|
@@ -19,96 +16,75 @@ declare function backdropDismiss(): {
|
|
|
19
16
|
type CardElevation = 'flat' | 'raised' | 'hover' | 'interactive';
|
|
20
17
|
type CardPadding = 'none' | 'sm' | 'md' | 'lg';
|
|
21
18
|
|
|
22
|
-
/** Whether the label-and-value table under a chart's plot is offered, and how. It is the
|
|
23
|
-
* route to the numbers
|
|
24
|
-
* page. */
|
|
19
|
+
/** Whether the label-and-value table under a chart's plot is offered, and how. It is the
|
|
20
|
+
* non-visual route to the numbers: use `'none'` only if the page already has the data in a table. */
|
|
25
21
|
type ChartDataTable = 'toggle' | 'visible' | 'none';
|
|
26
|
-
/** Whether a chart draws its own bordered, padded box
|
|
27
|
-
* chart bare, for a chart placed inside a card the page has already drawn. */
|
|
22
|
+
/** Whether a chart draws its own bordered, padded box; `'none'` for a chart inside a card. */
|
|
28
23
|
type ChartFrame = 'auto' | 'none';
|
|
29
24
|
/** Where a chart-value formatter is printing: the compact `'tick'` label on the value axis, or
|
|
30
|
-
* `'tooltip'`
|
|
31
|
-
* generated description, and a value printed beside a mark. */
|
|
25
|
+
* `'tooltip'` for every value spelled out in full (annex table, description, beside a mark). */
|
|
32
26
|
type ChartFormatLocation = 'tick' | 'tooltip';
|
|
33
|
-
/** Formats every value a chart prints
|
|
34
|
-
*
|
|
35
|
-
* spell the value out everywhere else. */
|
|
27
|
+
/** Formats every value a chart prints, annex table and generated description included.
|
|
28
|
+
* Receives the location, so one function can abbreviate on the axis only. */
|
|
36
29
|
type ChartValueFormat = (value: number, location: ChartFormatLocation) => string;
|
|
37
|
-
/** How a reference line is stroked.
|
|
38
|
-
* design system's to retune once and the same word draws the same line on every chart. */
|
|
30
|
+
/** How a reference line is stroked. */
|
|
39
31
|
type ChartThresholdDash = 'solid' | 'dashed' | 'dotted';
|
|
40
32
|
/** A line drawn across a chart's plot at one reading - a target, a budget, an SLA - or, with `to`,
|
|
41
|
-
* the band between two of them.
|
|
42
|
-
*
|
|
43
|
-
* ONE number, not a coordinate pair: a horizontal line has a single reading, and a shape that
|
|
44
|
-
* makes it write that reading twice is a shape whose two ends can drift apart. */
|
|
33
|
+
* the band between two of them. */
|
|
45
34
|
interface ChartThreshold {
|
|
46
35
|
readonly value: number;
|
|
47
|
-
/** Printed at the line's left end and named in the generated description
|
|
48
|
-
* reads as "Threshold" there. */
|
|
36
|
+
/** Printed at the line's left end and named in the generated description (default "Threshold"). */
|
|
49
37
|
readonly label?: string;
|
|
50
38
|
/** Any CSS colour. Unset takes `--ds-chart-threshold-color`. */
|
|
51
39
|
readonly color?: string;
|
|
52
|
-
/** The band's other end
|
|
53
|
-
* readings rather than a line; either order reads the same. */
|
|
40
|
+
/** The band's other end: the threshold is drawn as a filled region between the two readings. */
|
|
54
41
|
readonly to?: number;
|
|
55
|
-
/** Defaults to `'dashed'
|
|
56
|
-
* nothing on a band, which is a fill. */
|
|
42
|
+
/** Defaults to `'dashed'`. Ignored on a band. */
|
|
57
43
|
readonly dash?: ChartThresholdDash;
|
|
58
44
|
}
|
|
59
45
|
/** Which of a chart's two value axes a mark is measured against. */
|
|
60
46
|
type ChartAxis = 'primary' | 'secondary';
|
|
61
|
-
/** How a chart's second value axis relates to its first.
|
|
62
|
-
* GRIDLINES, which is the only thing the four modes actually differ in.
|
|
47
|
+
/** How a chart's second value axis relates to its first.
|
|
63
48
|
*
|
|
64
|
-
* - `'aligned'` - one set of gridlines
|
|
65
|
-
*
|
|
66
|
-
* - `'exact'` - one set of gridlines
|
|
67
|
-
*
|
|
49
|
+
* - `'aligned'` - one set of gridlines; the secondary axis rounds its step up, so its series
|
|
50
|
+
* stops short of the top.
|
|
51
|
+
* - `'exact'` - one set of gridlines; the secondary axis ends exactly at its largest reading,
|
|
52
|
+
* so the labels are not round.
|
|
68
53
|
* - `'dual-grid'` - each axis is scaled and gridded on its own.
|
|
69
54
|
* - `'split'` - two plots one above the other, sharing the category axis. */
|
|
70
55
|
type ChartAxisMode = 'aligned' | 'exact' | 'dual-grid' | 'split';
|
|
71
|
-
/** How a line joins its readings. `'
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
* trough the readings do not contain, which a Catmull-Rom does. */
|
|
56
|
+
/** How a line joins its readings. `'step'` holds each reading until the next, for a quantity that
|
|
57
|
+
* CHANGES at a moment. `'smooth'` is a monotone cubic: it never draws a peak or trough the
|
|
58
|
+
* readings do not contain. */
|
|
75
59
|
type ChartCurve = 'linear' | 'step' | 'smooth';
|
|
76
60
|
/** What a `null` reading draws: a hole in the line, or a point at zero. */
|
|
77
61
|
type ChartGaps = 'break' | 'zero';
|
|
78
62
|
/** How several series share one category's band.
|
|
79
63
|
*
|
|
80
|
-
* - `'none'` - every series draws from the baseline at the band's centre
|
|
81
|
-
* series case and what a chart that was handed one list has always done.
|
|
64
|
+
* - `'none'` - every series draws from the baseline at the band's centre.
|
|
82
65
|
* - `'grouped'` - each series takes its own slot inside the band, side by side.
|
|
83
|
-
* - `'stacked'` - each series starts where the one before it ended
|
|
84
|
-
*
|
|
85
|
-
* - `'normalized'` - stacked, then divided by the category's own total, so every band is full and
|
|
86
|
-
* the axis reads in shares rather than in the data's own unit.
|
|
87
|
-
*
|
|
88
|
-
* Unrelated to `ChartAxisMode`'s `'split'`, which puts two PLOTS one above the other. */
|
|
66
|
+
* - `'stacked'` - each series starts where the one before it ended.
|
|
67
|
+
* - `'normalized'` - stacked, then divided by the category's total: the axis reads in shares. */
|
|
89
68
|
type ChartStackMode = 'none' | 'grouped' | 'stacked' | 'normalized';
|
|
90
|
-
/** How charts build themselves on a long page, set
|
|
91
|
-
* Everything is off unless `deferUntilVisible` is on
|
|
92
|
-
* once, with nothing waiting and nothing to flicker. */
|
|
69
|
+
/** How charts build themselves on a long page, set in `DS_CONFIG.chart.rendering`.
|
|
70
|
+
* Everything is off unless `deferUntilVisible` is on. */
|
|
93
71
|
interface ChartRendering {
|
|
94
72
|
/** Build a chart only when it comes near the viewport; until then it shows its loading
|
|
95
|
-
* placeholder at its own height
|
|
96
|
-
* Default `false`. For a page with dozens of charts - a dashboard, a report - where building
|
|
97
|
-
* them all at once stalls the page. */
|
|
73
|
+
* placeholder at its own height. Default `false`. For pages with dozens of charts. */
|
|
98
74
|
deferUntilVisible?: boolean;
|
|
99
75
|
/** How far outside the viewport a deferred chart is built, as an `IntersectionObserver`
|
|
100
|
-
* `rootMargin`. Default `'10% 0px'
|
|
76
|
+
* `rootMargin`. Default `'10% 0px'`. */
|
|
101
77
|
visibleMargin?: string;
|
|
102
|
-
/** Also build
|
|
103
|
-
*
|
|
78
|
+
/** Also build deferred charts within `buildAheadMargin` while the page is idle. Default `true`.
|
|
79
|
+
* Skipped where `requestIdleCallback` does not exist. */
|
|
104
80
|
buildAheadWhileIdle?: boolean;
|
|
105
81
|
/** The reach of `buildAheadWhileIdle`, as a `rootMargin`. Default `'100% 0px'`, one viewport. */
|
|
106
82
|
buildAheadMargin?: string;
|
|
107
|
-
/** Milliseconds of chart building one task may spend before it yields
|
|
108
|
-
*
|
|
83
|
+
/** Milliseconds of chart building one task may spend before it yields. Default `8`. A single
|
|
84
|
+
* chart that takes longer is still built whole. */
|
|
109
85
|
frameBudgetMs?: number;
|
|
110
|
-
/** With `deferUntilVisible`, also
|
|
111
|
-
*
|
|
86
|
+
/** With `deferUntilVisible`, also skip a built chart's style, layout and paint while off screen
|
|
87
|
+
* (`content-visibility: auto`). Default `true`. */
|
|
112
88
|
skipWhileOffscreen?: boolean;
|
|
113
89
|
}
|
|
114
90
|
|
|
@@ -200,15 +176,12 @@ declare const ICONS: {
|
|
|
200
176
|
readonly wifi: "<path d=\"M2 9.5a15 15 0 0 1 20 0\" /><path d=\"M5 13a10 10 0 0 1 14 0\" /><path d=\"M8.5 16.5a5 5 0 0 1 7 0\" /><path d=\"M12 20h.01\" />";
|
|
201
177
|
readonly 'wifi-off': "<path d=\"m3 3 18 18\" /><path d=\"M12 20h.01\" /><path d=\"M8.5 16.5a5 5 0 0 1 7 0\" /><path d=\"M5 13a10 10 0 0 1 3.5-2.3\" /><path d=\"M11 8.6A10 10 0 0 1 19 13\" /><path d=\"M2 9.5a15 15 0 0 1 5.7-3.2\" /><path d=\"M11.6 5.6A15 15 0 0 1 22 9.5\" />";
|
|
202
178
|
};
|
|
203
|
-
/** Built-in DS icon names. Consumers
|
|
204
|
-
*
|
|
205
|
-
* autocomplete for those custom names). */
|
|
179
|
+
/** Built-in DS icon names. Consumers extend the runtime set via `provideDsIcons({...})`; the
|
|
180
|
+
* type widens to `string` so a custom name is accepted, without autocomplete. */
|
|
206
181
|
type IconName = keyof typeof ICONS | (string & {});
|
|
207
182
|
|
|
208
183
|
/**
|
|
209
|
-
* Canonical control-size scale
|
|
210
|
-
* `size` input to. A component that needs extra steps extends this base with its
|
|
211
|
-
* own (component-named) type, kept inside that component.
|
|
184
|
+
* Canonical control-size scale that components bind their `size` input to.
|
|
212
185
|
*/
|
|
213
186
|
type DsSize = 'sm' | 'md' | 'lg';
|
|
214
187
|
|
|
@@ -223,36 +196,25 @@ interface DsToastPosition {
|
|
|
223
196
|
type PaginationLayout = 'grouped' | 'spread';
|
|
224
197
|
|
|
225
198
|
interface DsConfig {
|
|
226
|
-
/** BCP-47 locale every component formats numbers and dates in
|
|
227
|
-
*
|
|
228
|
-
* `LOCALE_ID`, which is `'en-US'` unless the app provides it, so the library prints numbers
|
|
229
|
-
* the way the app's own `| number` does. Set it here only where the library must differ
|
|
230
|
-
* from `LOCALE_ID`. A section key that names a locale (`datePicker.locale`) wins over this. */
|
|
199
|
+
/** BCP-47 locale every component formats numbers and dates in. Default is Angular's
|
|
200
|
+
* `LOCALE_ID`. A section key that names a locale (`datePicker.locale`) wins over this. */
|
|
231
201
|
locale?: string;
|
|
232
202
|
field?: {
|
|
233
|
-
/** Default for every field's `reserveMessage`
|
|
234
|
-
*
|
|
235
|
-
* EVERY field in the injector's subtree, which is rarely what a whole app
|
|
236
|
-
* wants; prefer `dsReserveMessages` on the individual form that validates. */
|
|
203
|
+
/** Default for every field's `reserveMessage`. Default `false`. `true` applies to EVERY field
|
|
204
|
+
* in the injector's subtree; prefer `dsReserveMessages` on the form that validates. */
|
|
237
205
|
reserveMessage?: boolean;
|
|
238
|
-
/** Fallback text per validation-error kind, for
|
|
239
|
-
*
|
|
240
|
-
* `required`, `minlength`, `email` and friends get their wording. A message
|
|
241
|
-
* on the error itself always wins, so one shared map here plus a per-case
|
|
242
|
-
* override at the validator covers both. Unmapped kinds warn in dev. */
|
|
206
|
+
/** Fallback text per validation-error kind, for validators with no `message` (Angular's
|
|
207
|
+
* built-ins never carry one). A message on the error itself wins. Unmapped kinds warn in dev. */
|
|
243
208
|
errorMessages?: Record<string, string>;
|
|
244
|
-
/** Leading glyph on a field's message line, per state. Defaults carry one for
|
|
245
|
-
* `
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
* The glyphs exist because warning and success differ from each other by hue
|
|
250
|
-
* and nothing else, which WCAG 1.4.1 forbids a state from resting on. */
|
|
209
|
+
/** Leading glyph on a field's message line, per state. Defaults carry one for `error`,
|
|
210
|
+
* `warning` and `success` (WCAG 1.4.1: not hue alone) and NONE for `hint`. Each key is
|
|
211
|
+
* independent: a glyph name replaces the default, `false` removes it, and
|
|
212
|
+
* `stateIcons: false` removes all four. */
|
|
251
213
|
stateIcons?: false | {
|
|
252
214
|
error?: IconName | false;
|
|
253
215
|
warning?: IconName | false;
|
|
254
216
|
success?: IconName | false;
|
|
255
|
-
/** The `default` state
|
|
217
|
+
/** The `default` state (the hint line). Off unless set. */
|
|
256
218
|
hint?: IconName | false;
|
|
257
219
|
};
|
|
258
220
|
};
|
|
@@ -261,18 +223,17 @@ interface DsConfig {
|
|
|
261
223
|
clickable?: boolean;
|
|
262
224
|
};
|
|
263
225
|
timePicker?: {
|
|
264
|
-
/** Display format for `ds-time-picker` / date-picker time
|
|
226
|
+
/** Display format for `ds-time-picker` / date-picker time - 24h or 12h AM/PM. Default `'24h'`. */
|
|
265
227
|
format?: '24h' | '12h';
|
|
266
228
|
};
|
|
267
229
|
avatar?: {
|
|
268
|
-
/** How `ds-avatar` turns its `name` into initials, app-wide. The built-in rule
|
|
269
|
-
*
|
|
270
|
-
* follow another convention supplies its own here. */
|
|
230
|
+
/** How `ds-avatar` turns its `name` into initials, app-wide. The built-in rule takes the
|
|
231
|
+
* first two words (a Latin-script guess). */
|
|
271
232
|
initials?: (name: string) => string;
|
|
272
233
|
};
|
|
273
234
|
brand?: {
|
|
274
|
-
/** Brand text for `ds-sidenav` and `ds-auth-layout
|
|
275
|
-
*
|
|
235
|
+
/** Brand text for `ds-sidenav` and `ds-auth-layout`: the wordmark, and the source of the
|
|
236
|
+
* letter-mark's glyph when `logoLetter` is unset. */
|
|
276
237
|
name?: string;
|
|
277
238
|
/** Letter-mark glyph when it differs from the brand's first character. */
|
|
278
239
|
logoLetter?: string;
|
|
@@ -280,54 +241,42 @@ interface DsConfig {
|
|
|
280
241
|
tagline?: string;
|
|
281
242
|
};
|
|
282
243
|
modal?: {
|
|
283
|
-
/** Default for `dividers` on `ds-modal` and `ds-modal-card`. Default `true`.
|
|
284
|
-
* Configurable app-wide because a `ModalService` confirm renders a card with no
|
|
285
|
-
* `ds-modal` ancestor to bind — an attribute cannot reach it. */
|
|
244
|
+
/** Default for `dividers` on `ds-modal` and `ds-modal-card`. Default `true`. */
|
|
286
245
|
dividers?: boolean;
|
|
287
246
|
};
|
|
288
247
|
banner?: {
|
|
289
|
-
/** Default for every `ds-banner`'s `announce`. Default `false
|
|
290
|
-
*
|
|
291
|
-
*
|
|
292
|
-
* raises banners in response to events, and bind `[announce]="false"` on the
|
|
293
|
-
* furniture. `ds-alert` has its own key, so the two can differ. */
|
|
248
|
+
/** Default for every `ds-banner`'s `announce`. Default `false`: an `alert` region fires on
|
|
249
|
+
* INSERTION, so page-furniture banners would interrupt on every route. Set `true` where banners
|
|
250
|
+
* answer events, and bind `[announce]="false"` on the furniture. `ds-alert` has its own key. */
|
|
294
251
|
announce?: boolean;
|
|
295
252
|
};
|
|
296
253
|
alert?: {
|
|
297
|
-
/** Default for every `ds-alert`'s `announce`. Default `false`,
|
|
298
|
-
* under `banner.announce`. */
|
|
254
|
+
/** Default for every `ds-alert`'s `announce`. Default `false`, as `banner.announce`. */
|
|
299
255
|
announce?: boolean;
|
|
300
256
|
};
|
|
301
257
|
toast?: {
|
|
302
258
|
/** Where the stack sits. Merged field by field over the built-in
|
|
303
|
-
* `right` / `top` / `var(--space-6)
|
|
259
|
+
* `right` / `top` / `var(--space-6)`. */
|
|
304
260
|
position?: Partial<DsToastPosition>;
|
|
305
|
-
/** Maximum number of toasts visible at once.
|
|
306
|
-
* earlier ones dismiss. Default `5`; `0` means unlimited. */
|
|
261
|
+
/** Maximum number of toasts visible at once; extras queue. Default `5`; `0` is unlimited. */
|
|
307
262
|
maxVisible?: number;
|
|
308
263
|
/** Show a `+N` strip while toasts wait behind `maxVisible`. Default `true`. */
|
|
309
264
|
showQueueCount?: boolean;
|
|
310
265
|
};
|
|
311
266
|
picker?: {
|
|
312
|
-
/** Default for `ds-multi-select
|
|
313
|
-
*
|
|
314
|
-
*
|
|
315
|
-
* app is the point: left to each call site, two panels of the same length in
|
|
316
|
-
* the same screen end up disagreeing. */
|
|
267
|
+
/** Default for `ds-multi-select`'s `searchable`. `true` always shows the panel's filter row,
|
|
268
|
+
* `false` never, and a NUMBER is a threshold: the row appears once there are at least that
|
|
269
|
+
* many options. Default `true`. */
|
|
317
270
|
searchable?: boolean | number;
|
|
318
271
|
};
|
|
319
272
|
control?: {
|
|
320
|
-
/** Default `size` for every control on the field-height contract. Default `'md'`.
|
|
321
|
-
*
|
|
322
|
-
* A different axis from `[data-density]`: that tier rewrites hit targets and
|
|
323
|
-
* padding in CSS, this picks which of the three declared sizes a control renders
|
|
324
|
-
* at. A screen that differs still binds `size` per element. */
|
|
273
|
+
/** Default `size` for every control on the field-height contract. Default `'md'`. A different
|
|
274
|
+
* axis from `[data-density]`, which rewrites hit targets and padding in CSS. */
|
|
325
275
|
size?: DsSize;
|
|
326
276
|
};
|
|
327
277
|
pagination?: {
|
|
328
278
|
/** Default `size` for every pager, `ds-table`'s footer included. Unset falls back to
|
|
329
|
-
* `control.size
|
|
330
|
-
* controls without resizing them all. */
|
|
279
|
+
* `control.size`. */
|
|
331
280
|
size?: DsSize;
|
|
332
281
|
/** Default `layout` for every pager, `ds-table`'s footer included. Default `'grouped'`. */
|
|
333
282
|
layout?: PaginationLayout;
|
|
@@ -339,18 +288,12 @@ interface DsConfig {
|
|
|
339
288
|
padding?: CardPadding;
|
|
340
289
|
};
|
|
341
290
|
table?: {
|
|
342
|
-
/** Default for `ds-table`'s `stickyScrollbar`
|
|
343
|
-
* horizontal bar reachable on a tall table. Default `false`. Here rather than
|
|
344
|
-
* per table because every new table is one forgotten binding away from
|
|
345
|
-
* scrolling invisibly. */
|
|
291
|
+
/** Default for `ds-table`'s `stickyScrollbar` (keeps the horizontal bar reachable). Default `false`. */
|
|
346
292
|
stickyScrollbar?: boolean;
|
|
347
|
-
/** Default for `ds-table`'s `bordered`
|
|
348
|
-
* Default `false`. */
|
|
293
|
+
/** Default for `ds-table`'s `bordered` (the outer border and radius). Default `false`. */
|
|
349
294
|
bordered?: boolean;
|
|
350
|
-
/** Default for `ds-table`'s `stickyScrollbarOffset
|
|
351
|
-
*
|
|
352
|
-
* padding and cancels it, which puts the bar on the edge the reader sees; set this for an app
|
|
353
|
-
* whose scrollports end somewhere else, so every table agrees without a binding each. */
|
|
295
|
+
/** Default for `ds-table`'s `stickyScrollbarOffset`, as any CSS length. Unset, each table
|
|
296
|
+
* cancels its scroll container's bottom padding. */
|
|
354
297
|
stickyScrollbarOffset?: string;
|
|
355
298
|
};
|
|
356
299
|
icon?: {
|
|
@@ -358,76 +301,56 @@ interface DsConfig {
|
|
|
358
301
|
size?: number;
|
|
359
302
|
};
|
|
360
303
|
badge?: {
|
|
361
|
-
/** Default for `ds-badge`'s `withDot`
|
|
304
|
+
/** Default for `ds-badge`'s `withDot` (the leading status dot). Default `false`. */
|
|
362
305
|
withDot?: boolean;
|
|
363
306
|
};
|
|
364
307
|
chart?: {
|
|
365
|
-
/** Default `dataTable` for
|
|
366
|
-
* rather than a per-chart taste — whether the numbers behind a plot have a non-visual route is
|
|
367
|
-
* decided once for an app, not thirty times, so an app that wants the annex everywhere sets
|
|
368
|
-
* `'toggle'` here once rather than on every chart. Off by default: a chart usually sits in a
|
|
369
|
-
* page that already carries its numbers, and an unasked-for disclosure under every plot is
|
|
370
|
-
* chrome the page did not ask for. */
|
|
308
|
+
/** Default `dataTable` for every chart. Default `'none'`; `'toggle'` offers the annex everywhere. */
|
|
371
309
|
dataTable?: ChartDataTable;
|
|
372
|
-
/** Whether every chart draws its own bordered, padded box. Default `'auto'`, which draws it.
|
|
373
|
-
* Whether charts live inside cards is decided once for an app — a page that puts every chart
|
|
374
|
-
* in a card sets `'none'` here rather than reaching into five components' chrome from a
|
|
375
|
-
* global stylesheet. */
|
|
310
|
+
/** Whether every chart draws its own bordered, padded box. Default `'auto'`, which draws it. */
|
|
376
311
|
frame?: ChartFrame;
|
|
377
|
-
/** How long
|
|
378
|
-
* Default
|
|
379
|
-
* 1.4.13's hoverable clause — which is a property of what an app puts in its tooltips rather
|
|
380
|
-
* than of one plot. About 140 is enough to cross the gap at an ordinary pointer speed. */
|
|
312
|
+
/** How long a chart's tooltip stays after the pointer leaves the mark, in milliseconds.
|
|
313
|
+
* Default 500; zero closes it at once. */
|
|
381
314
|
tooltipLingerMs?: number;
|
|
382
|
-
/** Whether a click on a mark
|
|
383
|
-
*
|
|
384
|
-
* second click, Escape or a press elsewhere lets go. A tap holds whatever this says. */
|
|
315
|
+
/** Whether a click on a mark or category holds its tooltip and highlight. Default `true`.
|
|
316
|
+
* A second click, Escape or a press elsewhere releases. A tap holds whatever this says. */
|
|
385
317
|
pinOnClick?: boolean;
|
|
386
|
-
/**
|
|
387
|
-
*
|
|
388
|
-
*
|
|
389
|
-
* that pins answer at once. */
|
|
318
|
+
/** Milliseconds the pointer rests on a mark, category or legend entry before the chart answers.
|
|
319
|
+
* Default 0. After one answer the next is immediate until the pointer leaves the chart;
|
|
320
|
+
* focus, a tap and a pinning click are always immediate. */
|
|
390
321
|
hoverDelayMs?: number;
|
|
391
|
-
/**
|
|
392
|
-
*
|
|
393
|
-
|
|
394
|
-
|
|
322
|
+
/** Whether a chart's tooltip draws a colour dot beside each reading. Unset draws them for two
|
|
323
|
+
* to four readings. */
|
|
324
|
+
tooltipSwatches?: boolean;
|
|
325
|
+
/** How charts format values, annex table and description included. Default groups digits in
|
|
326
|
+
* `locale` and abbreviates on a tick (`1.2M`). */
|
|
395
327
|
valueFormat?: ChartValueFormat;
|
|
396
|
-
/** How charts build themselves on a long page
|
|
397
|
-
* ahead while idle, skip the ones off screen. All off by default. */
|
|
328
|
+
/** How charts build themselves on a long page. All off by default. */
|
|
398
329
|
rendering?: ChartRendering;
|
|
399
330
|
};
|
|
400
331
|
datePicker?: {
|
|
401
332
|
/** BCP-47 locale for `ds-date-picker` names and value format. Unset falls back to
|
|
402
333
|
* `locale`, then `LOCALE_ID`. */
|
|
403
334
|
locale?: string;
|
|
404
|
-
/** Explicit token format e.g. `'MM/DD/YYYY'`; overrides the locale-derived order. */
|
|
335
|
+
/** Explicit token format, e.g. `'MM/DD/YYYY'`; overrides the locale-derived order. */
|
|
405
336
|
dateFormat?: string;
|
|
406
|
-
/** First weekday column: 0=Sunday
|
|
337
|
+
/** First weekday column: 0=Sunday to 6=Saturday. Default `1` (Monday). */
|
|
407
338
|
firstDayOfWeek?: number;
|
|
408
339
|
};
|
|
409
340
|
}
|
|
410
341
|
declare const DS_CONFIG: InjectionToken<DsConfig>;
|
|
411
|
-
/**
|
|
412
|
-
*
|
|
413
|
-
* providers: [provideDsConfig({ control: { size: 'sm' } })]
|
|
342
|
+
/** Provides DS-level defaults: `providers: [provideDsConfig({ control: { size: 'sm' } })]`.
|
|
414
343
|
*
|
|
415
|
-
* Works at the app root, on a `Route`, or on a component/directive
|
|
416
|
-
* resolves through the element-injector chain, so a subtree can differ from the
|
|
417
|
-
* app. Component inputs (e.g. `<ds-card padding="lg">`) still win.
|
|
344
|
+
* Works at the app root, on a `Route`, or on a component/directive. Component inputs still win.
|
|
418
345
|
*
|
|
419
|
-
* A nested call MERGES with the config above it section by section; only the keys
|
|
420
|
-
*
|
|
421
|
-
* `providers` array both resolve their parent with `skipSelf`, so the later wins
|
|
422
|
-
* and the earlier is silently lost.
|
|
346
|
+
* A nested call MERGES with the config above it section by section; only the keys you name are
|
|
347
|
+
* replaced. Several calls in one `providers` array merge in order, the later winning per key.
|
|
423
348
|
*/
|
|
424
349
|
declare function provideDsConfig(config: DsConfig): Provider;
|
|
425
350
|
/**
|
|
426
|
-
* The factory body behind `provideDsConfig`, exported so a directive can put the
|
|
427
|
-
*
|
|
428
|
-
*
|
|
429
|
-
* side-effectful and costs the consumer its tree-shaking (measured at +566 kB
|
|
430
|
-
* moved into the eager chunk).
|
|
351
|
+
* The factory body behind `provideDsConfig`, exported so a directive can put the provider in its
|
|
352
|
+
* metadata as an object literal: calling `provideDsConfig` there makes the module side-effectful
|
|
353
|
+
* and defeats tree-shaking.
|
|
431
354
|
*
|
|
432
355
|
* Must be called from an injection context.
|
|
433
356
|
*/
|
|
@@ -436,31 +359,21 @@ declare function inheritDsConfig(config: DsConfig): DsConfig;
|
|
|
436
359
|
/**
|
|
437
360
|
* Resolve an input against `DS_CONFIG`, then a built-in default.
|
|
438
361
|
*
|
|
439
|
-
* The input must be typed `T | null` and default to `null`: a signal input cannot
|
|
440
|
-
*
|
|
441
|
-
* value. Precedence is input → config → built-in. Call from an injection context.
|
|
362
|
+
* The input must be typed `T | null` and default to `null`: a signal input cannot report
|
|
363
|
+
* whether it was bound. Precedence is input → config → built-in. Call from an injection context.
|
|
442
364
|
* @internal
|
|
443
365
|
*/
|
|
444
366
|
declare function resolveWithConfig<T>(value: Signal<T | null>, pick: (config: DsConfig) => T | undefined, fallback: T): Signal<T>;
|
|
445
367
|
|
|
446
368
|
/**
|
|
447
|
-
* Warns once per distinct message
|
|
448
|
-
*
|
|
449
|
-
* on every keystroke.
|
|
450
|
-
*
|
|
451
|
-
* Returning the message from the condition keeps the two together — a condition
|
|
452
|
-
* that drifts from its message is how a warning ends up describing a state that
|
|
453
|
-
* cannot happen any more.
|
|
369
|
+
* Warns once per distinct message: the effect re-runs whenever a signal the condition reads
|
|
370
|
+
* changes, so a static misconfiguration would otherwise log on every keystroke.
|
|
454
371
|
*
|
|
455
372
|
* Must be called from an injection context.
|
|
456
373
|
*
|
|
457
|
-
* Callers wrap this in `if (typeof ngDevMode === 'undefined' || ngDevMode)
|
|
458
|
-
* a
|
|
459
|
-
*
|
|
460
|
-
* call — can never allow. It cannot become a helper function for the same reason.
|
|
461
|
-
*
|
|
462
|
-
* It does work: `ds-stat`, `ds-split-button` and `ds-toast-region` keep no message text in the
|
|
463
|
-
* shipped bundle.
|
|
374
|
+
* Callers wrap this in `if (typeof ngDevMode === 'undefined' || ngDevMode)`: a BUILD-time
|
|
375
|
+
* expression a minifier folds away with the message, which the opaque `isDevMode()` call never
|
|
376
|
+
* allows. It cannot become a helper function for the same reason.
|
|
464
377
|
* @internal
|
|
465
378
|
*/
|
|
466
379
|
declare function devWarn(message: () => string | null): void;
|
|
@@ -474,12 +387,10 @@ interface AnnounceState {
|
|
|
474
387
|
announce: boolean | null;
|
|
475
388
|
}
|
|
476
389
|
/**
|
|
477
|
-
*
|
|
478
|
-
*
|
|
479
|
-
*
|
|
480
|
-
*
|
|
481
|
-
* in dev mode only; the caller wraps the call in the `typeof ngDevMode` guard (see `devWarn`).
|
|
482
|
-
* Must be called from an injection context.
|
|
390
|
+
* Warns about two undecided `announce` cases on `ds-banner` / `ds-alert`: an assertive element
|
|
391
|
+
* left unbound while `DS_CONFIG.<section>.announce` is unset (not heard), and a polite one that
|
|
392
|
+
* announces only because that key is `true`. Once per instance, dev mode only; the caller wraps
|
|
393
|
+
* the call in the `typeof ngDevMode` guard (see `devWarn`). Must be called from an injection context.
|
|
483
394
|
* @internal
|
|
484
395
|
*/
|
|
485
396
|
declare function warnAnnounceOversight(tag: 'ds-banner' | 'ds-alert', section: 'banner' | 'alert', state: () => AnnounceState): void;
|
|
@@ -525,7 +436,7 @@ interface DsIntl {
|
|
|
525
436
|
readonly removeChip: (label: string) => string;
|
|
526
437
|
/** `'selected'` - multi-select compact trigger badge `countLabel`. */
|
|
527
438
|
readonly selectedNoun: string;
|
|
528
|
-
/** `'No results'` / `'1 result'` / `` `${n} results` `` - picker
|
|
439
|
+
/** `'No results'` / `'1 result'` / `` `${n} results` `` - picker live region. */
|
|
529
440
|
readonly resultCount: (count: number) => string;
|
|
530
441
|
};
|
|
531
442
|
readonly datePicker: {
|
|
@@ -739,9 +650,7 @@ interface DsIntl {
|
|
|
739
650
|
readonly failed: string;
|
|
740
651
|
};
|
|
741
652
|
readonly chart: {
|
|
742
|
-
/** Was `DS_CONFIG.chart.emptyText`'s default. */
|
|
743
653
|
readonly empty: string;
|
|
744
|
-
/** Was `DS_CONFIG.chart.errorText`'s default. */
|
|
745
654
|
readonly error: string;
|
|
746
655
|
/** `'Chart'` - accessible-name fallback, 6 charts. */
|
|
747
656
|
readonly title: string;
|
|
@@ -816,14 +725,13 @@ declare const DS_INTL: InjectionToken<Signal<DsIntl>>;
|
|
|
816
725
|
* providers: [provideDsIntl({ picker: { selectAll: 'Выбрать все' } })]
|
|
817
726
|
*
|
|
818
727
|
* Pass an object for a fixed language, or a factory returning a signal for a language that
|
|
819
|
-
* changes at runtime
|
|
820
|
-
* language service:
|
|
728
|
+
* changes at runtime (the factory runs in an injection context):
|
|
821
729
|
*
|
|
822
730
|
* provideDsIntl(() => { const language = inject(LanguageService); return computed(() => language.dictionary().ds); })
|
|
823
731
|
*
|
|
824
|
-
* Works at the root, on a `Route` or on a component
|
|
825
|
-
*
|
|
826
|
-
*
|
|
732
|
+
* Works at the root, on a `Route` or on a component; a nested call MERGES section by section,
|
|
733
|
+
* as `provideDsConfig` does, and several calls in one `providers` array merge in order. Numbers
|
|
734
|
+
* and dates follow `DsConfig.locale`, then `LOCALE_ID`. */
|
|
827
735
|
declare function provideDsIntl(overrides: DsIntlOverrides | (() => Signal<DsIntlOverrides>)): Provider;
|
|
828
736
|
|
|
829
737
|
/** English wording for every string the library invents. Used unless `provideDsIntl` overrides
|
|
@@ -838,13 +746,8 @@ declare const DS_INTL_DEFAULTS: DsIntl;
|
|
|
838
746
|
declare function injectDsLocale(): string;
|
|
839
747
|
|
|
840
748
|
/**
|
|
841
|
-
* Signal forms binds `min`, `max`, `minLength` and `maxLength` BY NAME and sends
|
|
842
|
-
*
|
|
843
|
-
* `null`, so the write type has to accept both while the read type stays what it
|
|
844
|
-
* always was — otherwise every internal use and every consumer moves for nothing.
|
|
845
|
-
*
|
|
846
|
-
* Declared once here because it was copy-pasted across three controls, and an
|
|
847
|
-
* explanation in three places is an explanation that drifts in two of them.
|
|
749
|
+
* Signal forms binds `min`, `max`, `minLength` and `maxLength` BY NAME and sends `undefined`
|
|
750
|
+
* for no bound; the DS spells it `null`, so the write type accepts both.
|
|
848
751
|
* @internal
|
|
849
752
|
*/
|
|
850
753
|
declare function optionalBound(value: number | null | undefined): number | null;
|
|
@@ -853,28 +756,20 @@ declare function optionalBound(value: number | null | undefined): number | null;
|
|
|
853
756
|
*/
|
|
854
757
|
declare function boundOr(fallback: number): (value: number | undefined) => number;
|
|
855
758
|
|
|
856
|
-
/** True when the key landed on a control that consumes its own keystrokes
|
|
857
|
-
* container listening on the way up must leave the event alone.
|
|
759
|
+
/** True when the key landed on a control that consumes its own keystrokes.
|
|
858
760
|
* @internal
|
|
859
761
|
*/
|
|
860
762
|
declare function isTextEntryTarget(event: Event): boolean;
|
|
861
763
|
|
|
862
764
|
/** True when `element` is showing less text than it holds, horizontally.
|
|
863
765
|
*
|
|
864
|
-
* Descendants count: a template-driven cell puts the ellipsis on a child
|
|
865
|
-
*
|
|
866
|
-
* `single-line-ellipsis` mixin earn a disclosure.
|
|
867
|
-
*
|
|
868
|
-
* Only horizontal. A clamped block hides whole LINES and its `scrollWidth` matches its
|
|
869
|
-
* `clientWidth`, so a caller that clamps has to compare line counts instead.
|
|
766
|
+
* Descendants count: a template-driven cell puts the ellipsis on a child. Only horizontal:
|
|
767
|
+
* a clamped block hides whole LINES with `scrollWidth` equal to `clientWidth`.
|
|
870
768
|
*/
|
|
871
769
|
declare function isTextClipped(element: HTMLElement): boolean;
|
|
872
770
|
|
|
873
771
|
/**
|
|
874
|
-
* Index arithmetic for a keyboard cursor over
|
|
875
|
-
*
|
|
876
|
-
* Every picker walks the same four ways — next, previous, first, last — skipping
|
|
877
|
-
* whatever is disabled and wrapping at the ends.
|
|
772
|
+
* Index arithmetic for a keyboard cursor over options: skips disabled entries, wraps at the ends.
|
|
878
773
|
*/
|
|
879
774
|
interface DsListCursorList {
|
|
880
775
|
length: number;
|
|
@@ -889,35 +784,25 @@ declare function lastEnabledIndex(list: DsListCursorList): number;
|
|
|
889
784
|
/**
|
|
890
785
|
* The next enabled index `step` away from `from`, wrapping at both ends.
|
|
891
786
|
*
|
|
892
|
-
* `from` of -1 means "no cursor yet"
|
|
893
|
-
* enabled entry and stepping back on the last, which is what a reader expects
|
|
894
|
-
* from a freshly opened panel.
|
|
787
|
+
* `from` of -1 means "no cursor yet".
|
|
895
788
|
* @internal
|
|
896
789
|
*/
|
|
897
790
|
declare function nextEnabledIndex(list: DsListCursorList, from: number, step: number): number;
|
|
898
791
|
|
|
899
792
|
/**
|
|
900
|
-
* The shape every picker's option shares
|
|
901
|
-
*
|
|
902
|
-
* own exported name: those are public API.
|
|
903
|
-
*
|
|
904
|
-
* `T` exists because autocomplete carries typed values; the other two are keyed
|
|
905
|
-
* by string.
|
|
793
|
+
* The shape every picker's option shares (select, multi-select, autocomplete). Each keeps its
|
|
794
|
+
* own exported name. `T` exists because autocomplete carries typed values.
|
|
906
795
|
*/
|
|
907
796
|
interface DsOption<T = string> {
|
|
908
797
|
value: T;
|
|
909
798
|
label: string;
|
|
910
799
|
disabled?: boolean;
|
|
911
|
-
/** Why this option cannot be picked
|
|
912
|
-
* reader hears the reason instead of only meeting a dead row. Ignored unless
|
|
913
|
-
* `disabled` is set. */
|
|
800
|
+
/** Why this option cannot be picked; reaches the row as `aria-describedby`. Needs `disabled`. */
|
|
914
801
|
disabledReason?: string;
|
|
915
|
-
/** Rendered before the label at 16px
|
|
802
|
+
/** Rendered before the label at 16px. */
|
|
916
803
|
icon?: IconName;
|
|
917
804
|
}
|
|
918
|
-
/**
|
|
919
|
-
* A labelled section of options. `disabled` turns the whole section off.
|
|
920
|
-
*/
|
|
805
|
+
/** A labelled section of options. `disabled` turns the whole section off. */
|
|
921
806
|
interface DsOptionGroup<T = string> {
|
|
922
807
|
label: string;
|
|
923
808
|
options: DsOption<T>[];
|
|
@@ -925,8 +810,6 @@ interface DsOptionGroup<T = string> {
|
|
|
925
810
|
}
|
|
926
811
|
/**
|
|
927
812
|
* What a picker's `options` input takes: flat options, groups, or both mixed.
|
|
928
|
-
* One input rather than two, because a second `optionGroups` input can only
|
|
929
|
-
* answer "what if both are set" by silently ignoring one.
|
|
930
813
|
*/
|
|
931
814
|
type DsOptionItem<T = string> = DsOption<T> | DsOptionGroup<T>;
|
|
932
815
|
declare function isDsOptionGroup<T>(item: DsOptionItem<T>): item is DsOptionGroup<T>;
|
|
@@ -936,9 +819,8 @@ declare function flattenDsOptions<T>(items: readonly DsOptionItem<T>[]): DsOptio
|
|
|
936
819
|
/** Canonical status vocabulary shared across status-bearing components. */
|
|
937
820
|
type DsStatus = 'info' | 'success' | 'warning' | 'error';
|
|
938
821
|
/**
|
|
939
|
-
*
|
|
940
|
-
*
|
|
941
|
-
* via declaration merging to get autocomplete on the `status` input:
|
|
822
|
+
* Registry of product status keys for ds-badge / ds-status-dot. Ships EMPTY; register keys via
|
|
823
|
+
* declaration merging to get autocomplete on `status`:
|
|
942
824
|
*
|
|
943
825
|
* declare module '@ids-group-ltd/ids-design-system' {
|
|
944
826
|
* interface DsStatusRegistry { shipped: true; delivered: true; }
|
|
@@ -947,26 +829,20 @@ type DsStatus = 'info' | 'success' | 'warning' | 'error';
|
|
|
947
829
|
interface DsStatusRegistry {
|
|
948
830
|
}
|
|
949
831
|
/**
|
|
950
|
-
* The `status` input type
|
|
951
|
-
*
|
|
952
|
-
* union of their keys (autocomplete). The tuple wrap avoids `never` distribution.
|
|
832
|
+
* The `status` input type: an open `string` until a consumer augments `DsStatusRegistry`, then
|
|
833
|
+
* the union of their keys. The tuple wrap avoids `never` distribution.
|
|
953
834
|
*/
|
|
954
835
|
type DsStatusKey = [keyof DsStatusRegistry] extends [never] ? string : keyof DsStatusRegistry;
|
|
955
836
|
|
|
956
837
|
/**
|
|
957
838
|
* What a picker's trigger shows.
|
|
958
839
|
*
|
|
959
|
-
* `full` is the control's own display
|
|
840
|
+
* `full` is the control's own display: chips, or the selected value.
|
|
960
841
|
*
|
|
961
|
-
* `count` is a caption and a selected-count badge at intrinsic width, for a filter
|
|
962
|
-
*
|
|
963
|
-
* same footprint but names what is selected instead of counting it, cut to what the
|
|
964
|
-
* trigger is wide enough for, with the rest behind "+N" — the same measurement the
|
|
965
|
-
* chips already use.
|
|
842
|
+
* `count` is a caption and a selected-count badge at intrinsic width, for a filter toolbar.
|
|
843
|
+
* `labels` has the same footprint but names the selection, cut to what fits, the rest behind "+N".
|
|
966
844
|
*
|
|
967
|
-
* Only pickers that hold several values offer the other two
|
|
968
|
-
* has nothing to count and nothing to list, and its `full` trigger is already the
|
|
969
|
-
* caption plus the value.
|
|
845
|
+
* Only pickers that hold several values offer the other two.
|
|
970
846
|
*/
|
|
971
847
|
type DsTriggerDisplay = 'full' | 'count' | 'labels';
|
|
972
848
|
|
|
@@ -974,9 +850,8 @@ type DsTriggerDisplay = 'full' | 'count' | 'labels';
|
|
|
974
850
|
* How a control sizes itself and its overlay panel.
|
|
975
851
|
*
|
|
976
852
|
* `fill` stretches to the container and pins the panel to the trigger's width.
|
|
977
|
-
* `content` hugs the trigger and takes that width as the panel's FLOOR, so the
|
|
978
|
-
*
|
|
979
|
-
* too narrow to read.
|
|
853
|
+
* `content` hugs the trigger and takes that width as the panel's FLOOR, so the panel still
|
|
854
|
+
* grows to its options.
|
|
980
855
|
*/
|
|
981
856
|
type DsControlWidth = 'fill' | 'content';
|
|
982
857
|
|