@ids-group-ltd/ids-design-system 0.15.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +214 -20
- package/{docs/agent → agent}/charts/ds-bar-chart.md +1 -1
- package/agent/charts/ds-chart.md +10 -0
- package/{docs/agent → agent}/charts/ds-column-chart.md +1 -1
- package/{docs/agent → agent}/charts/ds-funnel-chart.md +1 -1
- package/{docs/agent → agent}/charts/ds-heatmap-chart.md +1 -1
- package/{docs/agent → agent}/charts/ds-line-chart.md +1 -1
- package/{docs/agent → agent}/charts/ds-pie-chart.md +1 -1
- package/{docs/agent → agent}/charts/ds-scatter-chart.md +1 -1
- package/{docs/agent → agent}/charts/ds-waterfall-chart.md +1 -1
- package/{docs/agent → agent}/feedback/ds-empty-state.md +1 -1
- package/agent/forms/ds-autocomplete.md +13 -0
- package/{docs/agent → agent}/forms/ds-button.md +1 -1
- package/{docs/agent → agent}/forms/ds-checkbox.md +1 -1
- package/agent/forms/ds-color-picker.md +8 -0
- package/{docs/agent → agent}/forms/ds-date-picker.md +1 -1
- package/{docs/agent → agent}/forms/ds-input.md +1 -1
- package/{docs/agent → agent}/forms/ds-multi-select.md +1 -1
- package/agent/forms/ds-otp-input.md +8 -0
- package/{docs/agent → agent}/forms/ds-radio-group.md +1 -1
- package/{docs/agent → agent}/forms/ds-radio.md +1 -1
- package/{docs/agent → agent}/forms/ds-search.md +1 -1
- package/{docs/agent → agent}/forms/ds-segmented.md +1 -1
- package/{docs/agent → agent}/forms/ds-select.md +1 -1
- package/{docs/agent → agent}/forms/ds-slider.md +1 -1
- package/{docs/agent → agent}/forms/ds-switch.md +1 -1
- package/{docs/agent → agent}/forms/ds-textarea.md +1 -1
- package/agent/forms/ds-time-picker.md +8 -0
- package/{docs/agent → agent}/forms/the-picker-family-ds-select-ds-multi-select-ds-autocomplete.md +1 -1
- package/{docs/agent → agent}/overlays/ds-definition-term.md +1 -1
- package/agent/overlays/ds-tooltip.md +12 -0
- package/{docs/agent → agent}/platform/ds-config.md +2 -1
- package/{docs/agent → agent}/tables/ds-table.md +1 -1
- package/components.md +36 -35
- package/design-system.md +2 -2
- package/eslint/deprecated-api.json +224 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +4 -4
- 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 -2
- 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 +2 -2
- 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 +2 -2
- 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 +9 -6
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +12 -11
- 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 +12 -12
- 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 +2 -4
- 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 +2 -4
- 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 +2 -2
- 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 +17 -22
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs +3 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +4 -4
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +7 -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 +2 -2
- 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 +4 -4
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -4
- 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 +6 -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 +2 -2
- 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 +4 -4
- 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 +7 -3
- 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 +6 -6
- 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 +17 -8
- 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 +9 -6
- 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 +2 -2
- 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 +2 -4
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +4 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +2 -2
- 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 +5 -3
- 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 +2 -4
- 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 +9 -6
- 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 +2 -2
- 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 +6 -6
- 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 +4 -2
- 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 +2 -4
- 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 +2 -2
- 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 +7 -4
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-submitted.mjs +52 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-submitted.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +2 -4
- 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 +4 -4
- 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.mjs +71 -25
- 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 +2 -2
- 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 +2 -2
- 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 +2 -4
- 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 +276 -15
- 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 +9 -6
- 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 -2
- 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 +84 -31
- 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 +2 -2
- 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 +2 -2
- 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 +4 -4
- 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 +76 -45
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +27 -2
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +2 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.10.0.json +21 -23
- package/migrations/0.10.2.json +3 -5
- package/migrations/0.10.3.json +1 -3
- package/migrations/0.11.0.json +4 -6
- package/migrations/0.11.1.json +1 -3
- package/migrations/0.13.0.json +4 -4
- package/migrations/0.13.4.json +20 -4
- package/migrations/0.14.0.json +1 -2
- package/migrations/0.15.1.json +5 -5
- package/migrations/0.15.3.json +175 -0
- package/migrations/0.6.2.json +5 -3
- package/migrations/0.7.1.json +1 -2
- package/migrations/0.8.0.json +2 -2
- package/migrations/0.9.0.json +14 -19
- package/migrations/1.0.0.json +374 -0
- package/migrations/README.md +11 -11
- package/package.json +9 -1
- package/schematics/check-overrides/surface.json +12 -1
- package/styles/_component-base.scss +29 -39
- package/styles/_dropdown-overlay.scss +7 -3
- package/styles/_focus.scss +4 -4
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +2 -2
- package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +1 -2
- package/types/ids-group-ltd-ids-design-system-components-empty-state.d.ts +6 -2
- package/types/ids-group-ltd-ids-design-system-components-loading-overlay.d.ts +1 -0
- package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +1 -0
- package/types/ids-group-ltd-ids-design-system-components-submitted.d.ts +27 -0
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +30 -9
- package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +48 -3
- package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +1 -0
- package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +44 -12
- package/types/ids-group-ltd-ids-design-system-components.d.ts +36 -21
- package/types/ids-group-ltd-ids-design-system-core.d.ts +32 -7
- package/types/ids-group-ltd-ids-design-system.d.ts +5 -4
- package/docs/agent/charts/ds-chart.md +0 -10
- package/docs/agent/forms/ds-autocomplete.md +0 -13
- package/docs/agent/forms/ds-color-picker.md +0 -8
- package/docs/agent/forms/ds-otp-input.md +0 -8
- package/docs/agent/forms/ds-time-picker.md +0 -8
- package/docs/agent/overlays/ds-tooltip.md +0 -12
- /package/{docs/agent → agent}/INDEX.md +0 -0
- /package/{docs/agent → agent}/charts/chart-colour-which-palette-a-chart-takes.md +0 -0
- /package/{docs/agent → agent}/charts/chart-frame-the-box-a-chart-draws-around-itself.md +0 -0
- /package/{docs/agent → agent}/charts/column-series-component.md +0 -0
- /package/{docs/agent → agent}/charts/ds-chart-data-table.md +0 -0
- /package/{docs/agent → agent}/charts/ds-config.md +0 -0
- /package/{docs/agent → agent}/charts/line-series-component.md +0 -0
- /package/{docs/agent → agent}/charts/reference-label-component.md +0 -0
- /package/{docs/agent → agent}/charts/reference-line-component.md +0 -0
- /package/{docs/agent → agent}/charts/series-annotation-component.md +0 -0
- /package/{docs/agent → agent}/domain/ds-w3w.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-alert.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-avatar-group.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-avatar.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-badge.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-banner.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-bar.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-description-item.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-description-list.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-list-item.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-list.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-loading-overlay.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-skeleton.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-spinner.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-stat.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-status-dot.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-tag.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-timeline-item.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-toast-region.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-toast.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-tree.md +0 -0
- /package/{docs/agent → agent}/forms/ds-button-group.md +0 -0
- /package/{docs/agent → agent}/forms/ds-dropzone.md +0 -0
- /package/{docs/agent → agent}/forms/ds-field-group.md +0 -0
- /package/{docs/agent → agent}/forms/ds-filter-bar.md +0 -0
- /package/{docs/agent → agent}/forms/ds-icon-button.md +0 -0
- /package/{docs/agent → agent}/forms/ds-number-stepper.md +0 -0
- /package/{docs/agent → agent}/forms/ds-password-rules.md +0 -0
- /package/{docs/agent → agent}/forms/ds-split-button.md +0 -0
- /package/{docs/agent → agent}/forms/ds-toggle-button.md +0 -0
- /package/{docs/agent → agent}/forms/filter-item-directive.md +0 -0
- /package/{docs/agent → agent}/foundations/global-helper-classes.md +0 -0
- /package/{docs/agent → agent}/foundations/grid.md +0 -0
- /package/{docs/agent → agent}/foundations/tokens.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-app-layout.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-auth-layout.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-breadcrumbs.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-container.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-divider.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-inline.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-page-footer.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-page-header.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-pagination.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-sidenav-footer.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-sidenav-group.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-sidenav-item.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-sidenav.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-stack.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-stepper.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-tab.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-tabs.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-topbar.md +0 -0
- /package/{docs/agent → agent}/overlays/ds-bottom-sheet.md +0 -0
- /package/{docs/agent → agent}/overlays/ds-drawer.md +0 -0
- /package/{docs/agent → agent}/overlays/ds-info-hint.md +0 -0
- /package/{docs/agent → agent}/overlays/ds-menu.md +0 -0
- /package/{docs/agent → agent}/overlays/ds-modal-card.md +0 -0
- /package/{docs/agent → agent}/overlays/ds-modal.md +0 -0
- /package/{docs/agent → agent}/overlays/ds-popover.md +0 -0
- /package/{docs/agent → agent}/overlays/ds-tooltip-panel.md +0 -0
- /package/{docs/agent → agent}/platform/body-scroll-lock-service.md +0 -0
- /package/{docs/agent → agent}/platform/breadcrumbs-service.md +0 -0
- /package/{docs/agent → agent}/platform/ds-icon-registry.md +0 -0
- /package/{docs/agent → agent}/platform/ds-intl.md +0 -0
- /package/{docs/agent → agent}/platform/toast-service.md +0 -0
- /package/{docs/agent → agent}/surfaces/ds-accordion-item.md +0 -0
- /package/{docs/agent → agent}/surfaces/ds-accordion.md +0 -0
- /package/{docs/agent → agent}/surfaces/ds-card.md +0 -0
- /package/{docs/agent → agent}/tables/ds-cell-template.md +0 -0
- /package/{docs/agent → agent}/tables/ds-table-columns.md +0 -0
- /package/{docs/agent → agent}/tables/ds-table-export.md +0 -0
- /package/{docs/agent → agent}/tables/header-filter-directive.md +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids-group-ltd-ids-design-system-components-bar-chart.mjs","sources":["../../../src/lib/components/bar-chart/bar-chart.math.ts","../../../src/lib/components/bar-chart/bar-chart.component.ts","../../../src/lib/components/bar-chart/bar-chart.component.html","../../../src/lib/components/bar-chart/ids-group-ltd-ids-design-system-components-bar-chart.ts"],"sourcesContent":["import type { BarChartRow, BarChartValue } from './bar-chart.types';\n\n/** Where a row's bar starts and ends on the value axis. The track has no side below zero, so a\n * negative number draws an empty track; a pair is normalised (a negative width draws nothing); a\n * non-finite end collapses the extent to zero.\n *\n * @internal */\nexport function barExtent(value: BarChartValue): { low: number; high: number } {\n if (typeof value === 'number') {\n return Number.isFinite(value)\n ? { low: 0, high: Math.max(0, value) }\n : { low: 0, high: 0 };\n }\n const [first, second] = value;\n\n return Number.isFinite(first) && Number.isFinite(second)\n ? { low: Math.min(first, second), high: Math.max(first, second) }\n : { low: 0, high: 0 };\n}\n\n/** A plain row's value as given, so a negative one is still reported; null for a pair or a non-finite value.\n *\n * @internal */\nexport function plainValue(value: BarChartValue): number | null {\n return typeof value === 'number' && Number.isFinite(value) ? value : null;\n}\n\n/** True when a row has no reading to draw: a non-finite number, or a pair with a non-finite end.\n *\n * @internal */\nexport function isMissing(value: BarChartValue): boolean {\n return typeof value === 'number'\n ? !Number.isFinite(value)\n : !value.every((end) => Number.isFinite(end));\n}\n\n/** Largest finite value, or `explicitMax` when usable. One `Infinity` row must not become the track length. */\nexport function resolveMax(\n explicitMax: number | null,\n values: readonly number[],\n): number {\n if (explicitMax !== null && Number.isFinite(explicitMax) && explicitMax > 0) {\n return explicitMax;\n }\n const finite = values.filter((value) => Number.isFinite(value));\n\n return finite.length ? Math.max(...finite) : 0;\n}\n\n/** Track share in percent. No upper bound: an explicit `max` below the data overflows and `.fill` caps it. */\nexport function widthPercent(value: number, max: number): number {\n // Math.max(NaN, 0) is NaN, and `width: NaN%` is dropped silently.\n if (!Number.isFinite(value) || !Number.isFinite(max) || max <= 0) {\n return 0;\n }\n\n return Math.max((value / max) * 100, 0);\n}\n\n/** Each segment's share in percent, against the segments' OWN sum, never the row's `value`.\n * Returns none without a positive finite total. */\nexport function segmentWidths(values: readonly number[]): number[] {\n const total = values\n .filter((value) => Number.isFinite(value) && value > 0)\n .reduce((sum, value) => sum + value, 0);\n if (total <= 0) {\n return [];\n }\n\n return values.map((value) =>\n Number.isFinite(value) && value > 0 ? (value / total) * 100 : 0,\n );\n}\n\n/** A row placed in the drawn list: a top-level row, or one level of `children` under its parent.\n *\n * @internal */\nexport interface PlacedBarRow {\n readonly row: BarChartRow;\n readonly key: string;\n /** Null for a top-level row. */\n readonly parentKey: string | null;\n /** The span a child is measured against (its parent's); null for a top-level row, which uses `max`. */\n readonly scale: number | null;\n /** True on the first detached row after an attached one: a divider goes before it. */\n readonly startsDetached: boolean;\n}\n\n/** Every row with its children placed after it, whether or not they are shown.\n *\n * @internal */\nexport function placeRows(data: readonly BarChartRow[]): PlacedBarRow[] {\n return data.flatMap((row, index) => {\n const key = row.id ?? String(index);\n const extent = barExtent(row.value);\n const parent: PlacedBarRow = {\n row,\n key,\n parentKey: null,\n scale: null,\n startsDetached: !!row.detached && index > 0 && !data[index - 1].detached,\n };\n\n return [\n parent,\n ...(row.children ?? []).map((child, childIndex) => ({\n row: child,\n // Scoped to the parent: positional keys would otherwise collide with the top-level rows.\n key: `${key}/${child.id ?? childIndex}`,\n parentKey: key,\n scale: extent.high - extent.low,\n startsDetached: false,\n })),\n ];\n });\n}\n\n/** The placed rows a reader sees: every top-level row, and the children of the expanded ones.\n *\n * @internal */\nexport function shownRows<Row extends Pick<PlacedBarRow, 'parentKey'>>(\n placed: readonly Row[],\n expanded: ReadonlySet<string>,\n): Row[] {\n return placed.filter(\n (entry) => entry.parentKey === null || expanded.has(entry.parentKey),\n );\n}\n\n/** The spans `partOfWhole` divides, a detached row's left out as NaN so it takes no share and adds nothing to the total.\n *\n * @internal */\nexport function partSpans(data: readonly BarChartRow[]): number[] {\n return data.map((row) => {\n const extent = barExtent(row.value);\n\n return row.detached ? Number.NaN : extent.high - extent.low;\n });\n}\n","import type {\n ChartDimmable,\n ChartStaggered,\n ChartWithDataTable,\n ChartWithTooltipTrigger,\n} from '@ids-group-ltd/ids-design-system/components';\nimport {\n ChangeDetectionStrategy,\n Component,\n TemplateRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n contentChild,\n input,\n numberAttribute,\n output,\n signal,\n} from '@angular/core';\nimport {\n CHART_SERIES_COLORS,\n chartColors,\n describeSeries,\n formatPercent,\n describeShare,\n shareOfTotal,\n rovingMarks,\n leaveMark,\n staggerDelay,\n chartRenderGate,\n DsChartBase,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';\nimport { LoadingOverlayComponent } from '@ids-group-ltd/ids-design-system/components/loading-overlay';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { TooltipDirective } from '@ids-group-ltd/ids-design-system/components/tooltip';\nimport type { ChartDataTable } from '@ids-group-ltd/ids-design-system/core';\nimport {\n ChartTooltipDirective,\n ChartStatesComponent,\n chartActiveMark,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport type {\n ChartItemTooltipTrigger,\n ChartTooltipContext,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport {\n barExtent,\n isMissing,\n partSpans,\n placeRows,\n plainValue,\n resolveMax,\n segmentWidths,\n shownRows,\n widthPercent,\n} from './bar-chart.math';\nimport type {\n BarChartLabelPosition,\n BarChartRow,\n BarChartSegment,\n} from './bar-chart.types';\nimport { ChartDataTableComponent } from '@ids-group-ltd/ids-design-system/components/chart-data-table';\nimport type { ChartDataRow } from '@ids-group-ltd/ids-design-system/components/chart-data-table';\n\nconst MISSING_VALUE = '—';\n\nlet nextBarChartId = 0;\n\nfunction segmentsOf(\n row: BarChartRow,\n format: (value: number) => string,\n): readonly {\n key: string;\n segment: BarChartSegment;\n widthPercent: number;\n formattedValue: string;\n color: string;\n}[] {\n const parts = row.segments ?? [];\n const widths = segmentWidths(parts.map((part) => part.value));\n\n return widths.length\n ? parts.map((segment, index) => ({\n key: segment.id ?? String(index),\n segment,\n widthPercent: widths[index],\n formattedValue: format(segment.value),\n color:\n segment.color ??\n CHART_SERIES_COLORS[index % CHART_SERIES_COLORS.length],\n }))\n : [];\n}\n\n@Component({\n selector: 'ds-bar-chart',\n standalone: true,\n imports: [\n SkeletonComponent,\n LoadingOverlayComponent,\n ChartTooltipDirective,\n ChartStatesComponent,\n IconComponent,\n ChartDataTableComponent,\n TooltipDirective,\n ],\n templateUrl: './bar-chart.component.html',\n styleUrl: './bar-chart.component.scss',\n host: { '[class.framed]': \"frameResolved() === 'auto'\" },\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BarChartComponent\n extends DsChartBase\n implements\n ChartDimmable,\n ChartStaggered,\n ChartWithDataTable,\n ChartWithTooltipTrigger\n{\n protected readonly renderReady = chartRenderGate();\n\n protected readonly leaveMark = leaveMark;\n\n /** One row per bar, drawn in the order given. */\n readonly data = input<readonly BarChartRow[]>([]);\n\n /** Track length is relative to this. Null uses the largest value. */\n readonly max = input<number | null>(null, {\n transform: (raw: unknown) => (raw == null ? null : numberAttribute(raw)),\n });\n\n /** The label-and-value table under the plot: `'toggle'` puts it behind a disclosure,\n * `'visible'` opens it, `'none'` renders none. Unset falls back to `DS_CONFIG.chart.dataTable`,\n * then `'none'`. */\n readonly dataTable = input<ChartDataTable | null>(null);\n /** Declares the marks parts of one whole: each share appears on the tooltip's second line and in\n * the data table. */\n readonly partOfWhole = input(false, { transform: booleanAttribute });\n\n /** Prints each row's share of `max` beside its value. A row's own `showPercent` overrides it. */\n readonly showPercent = input(true, { transform: booleanAttribute });\n\n /** `'start'` puts each label in a column before its bar, on the bar's line, with the values in\n * aligned columns after it; `'top'` keeps the label on its own line above the bar. */\n readonly labelPosition = input<BarChartLabelPosition>('top');\n\n private readonly idPrefix = `ds-bar-chart-${++nextBarChartId}`;\n\n private readonly expanded = signal<ReadonlySet<string>>(new Set());\n\n protected isExpanded(key: string): boolean {\n return this.expanded().has(key);\n }\n\n protected toggleRow(key: string, event?: Event): void {\n event?.stopPropagation();\n this.expanded.update((open) => {\n const next = new Set(open);\n if (!next.delete(key)) {\n next.add(key);\n }\n\n return next;\n });\n }\n\n protected hintId(key: string): string {\n return `${this.idPrefix}-hint-${key}`;\n }\n\n /** A disclosure or a term button cannot live inside `role=\"img\"`, whose children are presentational. */\n protected readonly holdsControls = computed(() =>\n this.data().some((row) => !!row.hint || !!row.children?.length),\n );\n\n protected readonly percentColumn = computed(() =>\n this.rows().some((entry) => entry.showsPercent),\n );\n\n readonly dataTableResolved = this.defaults.dataTable;\n\n /** The row clicked or activated with Enter or Space, whether or not `interactive` is set. */\n readonly rowClicked = output<BarChartRow>();\n\n /** Dims every OTHER mark while one is hovered or focused. */\n readonly dimOthers = input(false, { transform: booleanAttribute });\n\n /** The segment to single out, by its `id` or its position as a string; every other segment\n * fades. Independent of `dimOthers`. */\n readonly highlighted = input<string | null>(null);\n\n protected isSegmentDimmed(key: string): boolean {\n const highlighted = this.highlighted();\n\n return highlighted !== null && highlighted !== key;\n }\n\n /** Milliseconds between one row's entrance and the next; `0` turns it off. The step narrows to keep the spread within 260ms. */\n readonly staggerMs = input(40, { transform: numberAttribute });\n\n protected markStagger(index: number): string {\n return `${staggerDelay(index, this.rows().length, this.staggerMs())}ms`;\n }\n\n /** Whether a hovered or focused row opens a tooltip. */\n readonly tooltip = input<ChartItemTooltipTrigger>('item');\n\n protected readonly tooltipTemplate =\n contentChild<TemplateRef<{ $implicit: ChartTooltipContext }>>(\n 'dsChartTooltip',\n );\n\n private readonly tooltipLingerResolved = this.defaults.tooltipLingerMs;\n\n protected readonly activeMark = chartActiveMark(\n () => this.tooltipLingerResolved(),\n () => this.defaults.hoverDelayMs(),\n );\n\n protected onMarkClick(\n payload: BarChartRow,\n index: number,\n event: Event,\n ): void {\n this.rowClicked.emit(payload);\n if (this.defaults.pinOnClick()) {\n this.activeMark.pin(index, event, '.fill');\n }\n }\n protected readonly roving = rovingMarks(() => this.rows().length);\n\n protected onMarkFocus(index: number, event: FocusEvent): void {\n this.roving.focus(index);\n this.activeMark.enter(index, event, '.fill');\n }\n\n // A tree's convention: Right opens a closed group and Left closes an open one; otherwise the arrows walk the rows.\n protected onMarkNavigation(event: KeyboardEvent, index: number): void {\n const entry = this.rows()[index];\n if (\n entry?.hasChildren &&\n (event.key === 'ArrowRight' || event.key === 'ArrowLeft') &&\n (event.key === 'ArrowRight') !== this.isExpanded(entry.key)\n ) {\n event.preventDefault();\n this.toggleRow(entry.key);\n\n return;\n }\n this.roving.navigate(\n event,\n index,\n (event.currentTarget as Element).closest('.rows'),\n );\n }\n\n protected readonly tooltipContext = computed<ChartTooltipContext | null>(\n () => {\n const entry = this.rows()[this.activeMark.index()];\n if (this.tooltip() === 'none' || !entry) {\n return null;\n }\n\n if (entry.segments.length) {\n const values = entry.segments.map((part) => part.segment.value);\n\n return {\n category: entry.row.label,\n entries: entry.segments.map((part, partIndex) => ({\n label: part.segment.label,\n value: part.segment.value,\n formatted: part.formattedValue,\n color: part.color,\n detail: describeShare(\n values,\n partIndex,\n this.defaults.locale,\n (share) => this.intl().chart.shareOfTotal(share),\n ),\n })),\n };\n }\n\n return {\n category: '',\n entries: [\n {\n label: entry.row.label,\n value: entry.missing\n ? Number.NaN\n : (plainValue(entry.row.value) ??\n barExtent(entry.row.value).high),\n formatted: entry.formattedValue,\n color: entry.color,\n detail:\n this.partOfWhole() && entry.dataIndex !== null\n ? describeShare(\n partSpans(this.data()),\n entry.dataIndex,\n this.defaults.locale,\n (share) => this.intl().chart.shareOfTotal(share),\n )\n : undefined,\n },\n ],\n };\n },\n );\n\n /** The track spans every bar end, target tick and outermost band. */\n protected readonly resolvedMax = computed(() =>\n resolveMax(\n this.max(),\n this.data().flatMap((row) => [\n barExtent(row.value).high,\n row.target ?? 0,\n ...(row.ranges ?? []),\n ]),\n ),\n );\n\n protected readonly dataTableColumns = computed<readonly string[]>(() =>\n this.partOfWhole()\n ? [\n this.intl().chart.labelColumn,\n this.intl().chart.valueColumn,\n this.intl().chart.shareColumn,\n ]\n : [this.intl().chart.labelColumn, this.intl().chart.valueColumn],\n );\n\n protected readonly dataTableRows = computed<readonly ChartDataRow[]>(() =>\n this.entries().flatMap((entry) => [\n {\n key: `bar:${entry.key}`,\n nested: entry.parentKey !== null,\n cells: this.partOfWhole()\n ? [\n [entry.row.label, entry.row.detail].filter(Boolean).join(' - '),\n entry.formattedValue,\n entry.share,\n ]\n : [\n [entry.row.label, entry.row.detail].filter(Boolean).join(' - '),\n entry.formattedValue,\n ],\n },\n ...entry.segments.map((part) => ({\n // Positional fallbacks are per scope: unprefixed, a bar and its first segment would both be \"0\".\n key: `segment:${entry.key}/${part.key}`,\n nested: true,\n cells: this.partOfWhole()\n ? [part.segment.label, part.formattedValue, '']\n : [part.segment.label, part.formattedValue],\n })),\n ]),\n );\n\n /** Every row, children included whether or not their group is open: the data table lists them all. */\n protected readonly entries = computed(() => {\n const chartMax = this.resolvedMax();\n const format = this.valueFormatResolved();\n const values = partSpans(this.data());\n const colors = new Map<string, string>();\n const percents = new Map<string, boolean | undefined>();\n let topIndex = -1;\n\n return placeRows(this.data()).map((placed) => {\n const { row, key, parentKey, scale, startsDetached } = placed;\n const max = scale ?? chartMax;\n const extent = barExtent(row.value);\n const span = extent.high - extent.low;\n const isRange = typeof row.value !== 'number';\n const missing = isMissing(row.value);\n const dataIndex = parentKey === null ? ++topIndex : null;\n const color =\n row.color ??\n (parentKey === null ? undefined : colors.get(parentKey)) ??\n chartColors.seriesDefault;\n if (parentKey === null) {\n colors.set(key, color);\n percents.set(key, row.showPercent);\n }\n\n return {\n key,\n parentKey,\n row,\n dataIndex,\n hasChildren: parentKey === null && !!row.children?.length,\n startsDetached,\n showsPercent:\n row.showPercent ??\n (parentKey === null ? undefined : percents.get(parentKey)) ??\n this.showPercent(),\n missing,\n offsetPercent: widthPercent(extent.low, max),\n widthPercent: widthPercent(span, max),\n formattedValue: missing\n ? MISSING_VALUE\n : isRange\n ? `${format(extent.low, 'tooltip')} - ${format(extent.high, 'tooltip')}`\n : format(plainValue(row.value) ?? extent.high, 'tooltip'),\n targetPercent:\n row.target === undefined ? null : widthPercent(row.target, max),\n formattedTarget:\n row.target === undefined ? '' : format(row.target, 'tooltip'),\n bands: (row.ranges ?? []).map((bound, bandIndex, all) => ({\n key: `${key}-band-${bandIndex}`,\n widthPercent: widthPercent(bound, max),\n opacity: (bandIndex + 1) / (all.length + 1),\n })),\n formattedPercent:\n row.percent !== undefined\n ? formatPercent(row.percent, 100, this.defaults.locale)\n : missing\n ? MISSING_VALUE\n : formatPercent(span, max, this.defaults.locale),\n share:\n !this.partOfWhole() || dataIndex === null || row.detached\n ? ''\n : missing\n ? MISSING_VALUE\n : shareOfTotal(values, dataIndex, this.defaults.locale),\n segments: segmentsOf(row, (value) => format(value, 'tooltip')),\n color,\n };\n });\n });\n\n /** The rows drawn: every top-level row, and the children of the open groups. */\n protected readonly rows = computed(() =>\n shownRows(this.entries(), this.expanded()),\n );\n\n protected readonly accessibleName = computed(() => {\n const summary = this.summary();\n if (summary !== null) {\n return summary;\n }\n const points = this.data().map((row) => ({\n label: row.label,\n value: isMissing(row.value)\n ? Number.NaN\n : (plainValue(row.value) ??\n barExtent(row.value).high - barExtent(row.value).low),\n }));\n const measured = points.filter((point) => Number.isFinite(point.value));\n const format = this.valueFormatResolved();\n\n return describeSeries(\n this.intl().chart,\n this.caption() ?? this.intl().chart.title,\n measured.length ? measured : points,\n (value) =>\n Number.isFinite(value) ? format(value, 'tooltip') : MISSING_VALUE,\n this.dataTableResolved() !== 'none',\n );\n });\n\n protected entryLabel(entry: { row: BarChartRow; formattedValue: string }) {\n return `${entry.row.label}, ${entry.formattedValue}`;\n }\n\n protected onRowKey(row: BarChartRow, event: Event): void {\n if (!this.interactive() || event.target !== event.currentTarget) {\n return;\n }\n event.preventDefault();\n this.rowClicked.emit(row);\n }\n\n protected readonly isEmpty = computed(() => this.data().length === 0);\n\n /** Skeleton rows only before there is a row to show; a reload keeps the rows under an overlay, as `ds-table` does. */\n protected readonly showsSkeleton = computed(\n () => (this.loading() && this.data().length === 0) || !this.renderReady(),\n );\n\n protected readonly reloading = computed(\n () => this.loading() && !this.showsSkeleton(),\n );\n\n /** One label width per placeholder row, varied so the column does not read as a solid block. */\n protected readonly skeletonRows = computed(() =>\n Array.from(\n { length: Math.max(this.data().length, 3) },\n (_, index) => `${[70, 90, 55][index % 3]}%`,\n ),\n );\n}\n","<!-- Over the whole card, not the rows: a scrim inside the padding ends in a blurred rectangle with hard edges. -->\n<ds-loading-overlay\n class=\"reload-overlay\"\n [loading]=\"reloading()\"\n [blur]=\"true\">\n <figure\n class=\"bar-chart\"\n dsChartStates\n morphGrowth=\"across\"\n [pinned]=\"activeMark.pinned()\"\n [caption]=\"caption()\"\n [error]=\"error()\"\n [errorText]=\"errorTextResolved()\"\n [pending]=\"showsSkeleton()\"\n [dataTable]=\"dataTableResolved()\"\n [empty]=\"isEmpty()\"\n [emptyText]=\"emptyTextResolved()\"\n [skeleton]=\"skeleton\"\n [body]=\"body\"\n (release)=\"activeMark.release()\">\n </figure>\n</ds-loading-overlay>\n\n<!-- The real row markup with placeholders in it, so every box takes the same geometry as a drawn row. -->\n<ng-template #skeleton>\n <div\n class=\"rows is-skeleton\"\n aria-hidden=\"true\"\n [class.labels-start]=\"labelPosition() === 'start'\"\n [class.has-percent]=\"showPercent()\">\n @for (labelWidth of skeletonRows(); track $index) {\n <div class=\"row\">\n <span class=\"label\">\n <ds-skeleton\n inline\n class=\"text-skeleton\"\n height=\"1em\"\n [width]=\"labelWidth\"\n [shimmer]=\"loading()\" />\n </span>\n\n <span class=\"value\">\n <ds-skeleton\n inline\n class=\"text-skeleton\"\n height=\"1em\"\n width=\"3.25em\"\n [shimmer]=\"loading()\" />\n </span>\n\n @if (showPercent()) {\n <span class=\"percent\">\n <ds-skeleton\n inline\n class=\"text-skeleton\"\n height=\"1em\"\n width=\"3.6em\"\n [shimmer]=\"loading()\" />\n </span>\n }\n\n <span class=\"track\">\n <ds-skeleton\n class=\"track-skeleton\"\n data-morph=\"mark\"\n height=\"100%\"\n [shimmer]=\"loading()\" />\n </span>\n </div>\n }\n </div>\n</ng-template>\n\n<ng-template #body>\n <div\n class=\"rows\"\n [class.dims-others]=\"dimOthers()\"\n [class.labels-start]=\"labelPosition() === 'start'\"\n [class.has-percent]=\"percentColumn()\"\n [attr.role]=\"interactive() || holdsControls() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipSwatches]=\"defaults.tooltipSwatches()\"\n [dsChartTooltipPinned]=\"activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate() ?? null\">\n @for (entry of rows(); track entry.key; let index = $index) {\n @if (entry.startsDetached) {\n <div\n class=\"divider\"\n aria-hidden=\"true\">\n </div>\n }\n\n <div\n class=\"row\"\n [style.--_chart-mark-stagger]=\"markStagger(index)\"\n [class.is-child]=\"entry.parentKey !== null\"\n [class.is-emphasis]=\"entry.row.emphasis\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"defaults.pinOnClick()\"\n [class.is-active]=\"activeMark.index() === index\"\n [class.is-pinned]=\"activeMark.pinned() && activeMark.index() === index\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"\n interactive() ? (index === roving.tabStop() ? 0 : -1) : null\n \"\n [attr.data-mark-index]=\"index\"\n [attr.aria-label]=\"interactive() ? entryLabel(entry) : null\"\n [attr.aria-expanded]=\"\n interactive() && entry.hasChildren ? isExpanded(entry.key) : null\n \"\n [attr.aria-describedby]=\"\n interactive() && entry.row.hint ? hintId(entry.key) : null\n \"\n (animate.leave)=\"leaveMark($event)\"\n (pointerenter)=\"activeMark.enter(index, $event, '.fill')\"\n (pointerleave)=\"activeMark.leave()\"\n (focus)=\"onMarkFocus(index, $event)\"\n (blur)=\"activeMark.leave()\"\n (keydown)=\"onMarkNavigation($event, index)\"\n (click)=\"onMarkClick(entry.row, index, $event)\"\n (keydown.enter)=\"onRowKey(entry.row, $event)\"\n (keydown.space)=\"onRowKey(entry.row, $event)\">\n <span class=\"label\">\n @if (!entry.row.hint) {\n {{ entry.row.label }}\n } @else if (interactive()) {\n <span\n class=\"term\"\n [dsTooltip]=\"entry.row.hint\"\n (pointerenter)=\"activeMark.leave()\">\n {{ entry.row.label }}\n </span>\n\n <span\n hidden\n [id]=\"hintId(entry.key)\">\n {{ entry.row.hint }}\n </span>\n } @else {\n <button\n type=\"button\"\n class=\"term\"\n [dsTooltip]=\"entry.row.hint\"\n (pointerenter)=\"activeMark.leave()\"\n (click)=\"$event.stopPropagation()\">\n {{ entry.row.label }}\n </button>\n }\n\n @if (entry.hasChildren) {\n <button\n type=\"button\"\n class=\"toggle\"\n [attr.aria-expanded]=\"isExpanded(entry.key)\"\n [attr.aria-label]=\"intl().chart.rowsUnder(entry.row.label)\"\n [attr.tabindex]=\"interactive() ? -1 : null\"\n [attr.aria-hidden]=\"interactive() ? 'true' : null\"\n (click)=\"toggleRow(entry.key, $event)\">\n <ds-icon\n [name]=\"isExpanded(entry.key) ? 'chevronDown' : 'chevronRight'\"\n [size]=\"14\" />\n </button>\n }\n\n @if (entry.row.detail) {\n <span class=\"detail\">\n {{ entry.row.detail }}\n </span>\n }\n </span>\n\n <span class=\"value\">\n {{ entry.formattedValue }}\n </span>\n\n @if (entry.showsPercent) {\n <span class=\"percent\">\n {{ entry.formattedPercent }}\n </span>\n }\n\n <span class=\"track\">\n @for (band of entry.bands; track band.key) {\n <span\n class=\"band\"\n [style.width.%]=\"band.widthPercent\"\n [style.opacity]=\"band.opacity\">\n </span>\n }\n\n @if (entry.targetPercent !== null) {\n <span\n class=\"target\"\n role=\"img\"\n [style.inset-inline-start.%]=\"entry.targetPercent\"\n [attr.aria-label]=\"intl().chart.target(entry.formattedTarget)\">\n </span>\n }\n\n <span\n class=\"fill\"\n data-morph=\"mark\"\n [style.margin-inline-start.%]=\"entry.offsetPercent\"\n [style.width.%]=\"entry.widthPercent\"\n [style.background]=\"entry.segments.length ? null : entry.color\">\n @for (part of entry.segments; track part.key) {\n <span\n class=\"segment\"\n [class.is-dimmed]=\"isSegmentDimmed(part.key)\"\n [style.width.%]=\"part.widthPercent\"\n [style.background]=\"part.color\">\n </span>\n }\n\n @if (activeMark.pinned() && activeMark.index() === index) {\n <ds-icon\n class=\"pin-marker\"\n name=\"pin\"\n [size]=\"14\" />\n }\n </span>\n </span>\n </div>\n }\n </div>\n\n @if (dataTableResolved() !== 'none') {\n <ds-chart-data-table\n [columns]=\"dataTableColumns()\"\n [rows]=\"dataTableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\" />\n }\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAEA;;;;AAIgB;AACV,SAAU,SAAS,CAAC,KAAoB,EAAA;AAC5C,IAAA,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;AAC7B,QAAA,OAAO,MAAM,CAAC,QAAQ,CAAC,KAAK;AAC1B,cAAE,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC;cAClC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE;IACzB;AACA,IAAA,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,KAAK;AAE7B,IAAA,OAAO,MAAM,CA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AA,OAAA,EACP;wBACP,iBAAiB;wBACjB,uBAAuB;wBACvB,qBAAqB;wBACrB,oBAAoB;wBACpB,aAAa;wBACb,uBAAuB;wBACvB,gBAAgB;AACjB,qBAAA,EAAA,IAAA,EAGK,EAAE,gBAAgB,EAAE,4BAA4B,EAAE,EAAA,aAAA,EACzC,iBAAiB,CAAC,QAAQ,EAAA,eAAA,EACxB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,muPAAA,EAAA,MAAA,EAAA,CAAA,4uWAAA,CAAA,EAAA;ulCAoG3C,gBAAgB,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEnNtB;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ids-group-ltd-ids-design-system-components-bar-chart.mjs","sources":["../../../src/lib/components/bar-chart/bar-chart.math.ts","../../../src/lib/components/bar-chart/bar-chart.component.ts","../../../src/lib/components/bar-chart/bar-chart.component.html","../../../src/lib/components/bar-chart/ids-group-ltd-ids-design-system-components-bar-chart.ts"],"sourcesContent":["import type { BarChartRow, BarChartValue } from './bar-chart.types';\n\n/** Where a row's bar starts and ends on the value axis. The track has no side below zero, so a\n * negative number draws an empty track; a pair is normalised (a negative width draws nothing); a\n * non-finite end collapses the extent to zero.\n *\n * @internal */\nexport function barExtent(value: BarChartValue): { low: number; high: number } {\n if (typeof value === 'number') {\n return Number.isFinite(value)\n ? { low: 0, high: Math.max(0, value) }\n : { low: 0, high: 0 };\n }\n const [first, second] = value;\n\n return Number.isFinite(first) && Number.isFinite(second)\n ? { low: Math.min(first, second), high: Math.max(first, second) }\n : { low: 0, high: 0 };\n}\n\n/** A plain row's value as given, so a negative one is still reported; null for a pair or a non-finite value.\n *\n * @internal */\nexport function plainValue(value: BarChartValue): number | null {\n return typeof value === 'number' && Number.isFinite(value) ? value : null;\n}\n\n/** True when a row has no reading to draw: a non-finite number, or a pair with a non-finite end.\n *\n * @internal */\nexport function isMissing(value: BarChartValue): boolean {\n return typeof value === 'number'\n ? !Number.isFinite(value)\n : !value.every((end) => Number.isFinite(end));\n}\n\n/** Largest finite value, or `explicitMax` when usable. One `Infinity` row must not become the track length. */\nexport function resolveMax(\n explicitMax: number | null,\n values: readonly number[],\n): number {\n if (explicitMax !== null && Number.isFinite(explicitMax) && explicitMax > 0) {\n return explicitMax;\n }\n const finite = values.filter((value) => Number.isFinite(value));\n\n return finite.length ? Math.max(...finite) : 0;\n}\n\n/** Track share in percent. No upper bound: an explicit `max` below the data overflows and `.fill` caps it. */\nexport function widthPercent(value: number, max: number): number {\n // Math.max(NaN, 0) is NaN, and `width: NaN%` is dropped silently.\n if (!Number.isFinite(value) || !Number.isFinite(max) || max <= 0) {\n return 0;\n }\n\n return Math.max((value / max) * 100, 0);\n}\n\n/** Each segment's share in percent, against the segments' OWN sum, never the row's `value`.\n * Returns none without a positive finite total. */\nexport function segmentWidths(values: readonly number[]): number[] {\n const total = values\n .filter((value) => Number.isFinite(value) && value > 0)\n .reduce((sum, value) => sum + value, 0);\n if (total <= 0) {\n return [];\n }\n\n return values.map((value) =>\n Number.isFinite(value) && value > 0 ? (value / total) * 100 : 0,\n );\n}\n\n/** A row placed in the drawn list: a top-level row, or one level of `children` under its parent.\n *\n * @internal */\nexport interface PlacedBarRow {\n readonly row: BarChartRow;\n readonly key: string;\n /** Null for a top-level row. */\n readonly parentKey: string | null;\n /** The span a child is measured against (its parent's); null for a top-level row, which uses `max`. */\n readonly scale: number | null;\n /** True on the first detached row after an attached one: a divider goes before it. */\n readonly startsDetached: boolean;\n}\n\n/** Every row with its children placed after it, whether or not they are shown.\n *\n * @internal */\nexport function placeRows(data: readonly BarChartRow[]): PlacedBarRow[] {\n return data.flatMap((row, index) => {\n const key = row.id ?? String(index);\n const extent = barExtent(row.value);\n const parent: PlacedBarRow = {\n row,\n key,\n parentKey: null,\n scale: null,\n startsDetached: !!row.detached && index > 0 && !data[index - 1].detached,\n };\n\n return [\n parent,\n ...(row.children ?? []).map((child, childIndex) => ({\n row: child,\n // Scoped to the parent: positional keys would otherwise collide with the top-level rows.\n key: `${key}/${child.id ?? childIndex}`,\n parentKey: key,\n scale: extent.high - extent.low,\n startsDetached: false,\n })),\n ];\n });\n}\n\n/** The placed rows a reader sees: every top-level row, and the children of the expanded ones.\n *\n * @internal */\nexport function shownRows<Row extends Pick<PlacedBarRow, 'parentKey'>>(\n placed: readonly Row[],\n expanded: ReadonlySet<string>,\n): Row[] {\n return placed.filter(\n (entry) => entry.parentKey === null || expanded.has(entry.parentKey),\n );\n}\n\n/** The spans `partOfWhole` divides, a detached row's left out as NaN so it takes no share and adds nothing to the total.\n *\n * @internal */\nexport function partSpans(data: readonly BarChartRow[]): number[] {\n return data.map((row) => {\n const extent = barExtent(row.value);\n\n return row.detached ? Number.NaN : extent.high - extent.low;\n });\n}\n","import type {\n ChartDimmable,\n ChartStaggered,\n ChartWithDataTable,\n ChartWithTooltipTrigger,\n} from '@ids-group-ltd/ids-design-system/components';\nimport {\n ChangeDetectionStrategy,\n Component,\n TemplateRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n contentChild,\n input,\n numberAttribute,\n output,\n signal,\n} from '@angular/core';\nimport {\n CHART_SERIES_COLORS,\n chartColors,\n describeSeries,\n formatPercent,\n describeShare,\n shareOfTotal,\n rovingMarks,\n leaveMark,\n staggerDelay,\n chartRenderGate,\n DsChartBase,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';\nimport { LoadingOverlayComponent } from '@ids-group-ltd/ids-design-system/components/loading-overlay';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { TooltipDirective } from '@ids-group-ltd/ids-design-system/components/tooltip';\nimport type { ChartDataTable } from '@ids-group-ltd/ids-design-system/core';\nimport {\n ChartTooltipDirective,\n ChartStatesComponent,\n chartActiveMark,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport type {\n ChartItemTooltipTrigger,\n ChartTooltipContext,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport {\n barExtent,\n isMissing,\n partSpans,\n placeRows,\n plainValue,\n resolveMax,\n segmentWidths,\n shownRows,\n widthPercent,\n} from './bar-chart.math';\nimport type {\n BarChartLabelPosition,\n BarChartRow,\n BarChartSegment,\n} from './bar-chart.types';\nimport { ChartDataTableComponent } from '@ids-group-ltd/ids-design-system/components/chart-data-table';\nimport type { ChartDataRow } from '@ids-group-ltd/ids-design-system/components/chart-data-table';\n\nconst MISSING_VALUE = '—';\n\nlet nextBarChartId = 0;\n\nfunction segmentsOf(\n row: BarChartRow,\n format: (value: number) => string,\n): readonly {\n key: string;\n segment: BarChartSegment;\n widthPercent: number;\n formattedValue: string;\n color: string;\n}[] {\n const parts = row.segments ?? [];\n const widths = segmentWidths(parts.map((part) => part.value));\n\n return widths.length\n ? parts.map((segment, index) => ({\n key: segment.id ?? String(index),\n segment,\n widthPercent: widths[index],\n formattedValue: format(segment.value),\n color:\n segment.color ??\n CHART_SERIES_COLORS[index % CHART_SERIES_COLORS.length],\n }))\n : [];\n}\n\n@Component({\n selector: 'ds-bar-chart',\n standalone: true,\n imports: [\n SkeletonComponent,\n LoadingOverlayComponent,\n ChartTooltipDirective,\n ChartStatesComponent,\n IconComponent,\n ChartDataTableComponent,\n TooltipDirective,\n ],\n templateUrl: './bar-chart.component.html',\n styleUrl: './bar-chart.component.scss',\n host: { '[class.framed]': \"frameResolved() === 'auto'\" },\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BarChartComponent\n extends DsChartBase\n implements\n ChartDimmable,\n ChartStaggered,\n ChartWithDataTable,\n ChartWithTooltipTrigger\n{\n protected readonly renderReady = chartRenderGate();\n\n protected readonly leaveMark = leaveMark;\n\n /** One row per bar, drawn in the order given. */\n readonly data = input<readonly BarChartRow[]>([]);\n\n /** Track length is relative to this. Null uses the largest value. */\n readonly max = input<number | null>(null, {\n transform: (raw: unknown) => (raw == null ? null : numberAttribute(raw)),\n });\n\n /** The label-and-value table under the plot: `'toggle'` puts it behind a disclosure,\n * `'visible'` opens it, `'none'` renders none. Unset falls back to `DS_CONFIG.chart.dataTable`,\n * then `'none'`. */\n readonly dataTable = input<ChartDataTable | null>(null);\n /** Declares the marks parts of one whole: each share appears on the tooltip's second line and in\n * the data table. */\n readonly partOfWhole = input(false, { transform: booleanAttribute });\n\n /** Prints each row's share of `max` beside its value. A row's own `showPercent` overrides it. */\n readonly showPercent = input(true, { transform: booleanAttribute });\n\n /** `'start'` puts each label in a column before its bar, on the bar's line, with the values in\n * aligned columns after it; `'top'` keeps the label on its own line above the bar. */\n readonly labelPosition = input<BarChartLabelPosition>('top');\n\n private readonly idPrefix = `ds-bar-chart-${++nextBarChartId}`;\n\n private readonly expanded = signal<ReadonlySet<string>>(new Set());\n\n protected isExpanded(key: string): boolean {\n return this.expanded().has(key);\n }\n\n protected toggleRow(key: string, event?: Event): void {\n event?.stopPropagation();\n this.expanded.update((open) => {\n const next = new Set(open);\n if (!next.delete(key)) {\n next.add(key);\n }\n\n return next;\n });\n }\n\n protected hintId(key: string): string {\n return `${this.idPrefix}-hint-${key}`;\n }\n\n /** A disclosure or a term button cannot live inside `role=\"img\"`, whose children are presentational. */\n protected readonly holdsControls = computed(() =>\n this.data().some((row) => !!row.hint || !!row.children?.length),\n );\n\n protected readonly percentColumn = computed(() =>\n this.rows().some((entry) => entry.showsPercent),\n );\n\n readonly dataTableResolved = this.defaults.dataTable;\n\n /** The row clicked or activated with Enter or Space, whether or not `interactive` is set. */\n readonly rowClicked = output<BarChartRow>();\n\n /** Dims every OTHER mark while one is hovered or focused. */\n readonly dimOthers = input(false, { transform: booleanAttribute });\n\n /** The segment to single out, by its `id` or its position as a string; every other segment\n * fades. Independent of `dimOthers`. */\n readonly highlighted = input<string | null>(null);\n\n protected isSegmentDimmed(key: string): boolean {\n const highlighted = this.highlighted();\n\n return highlighted !== null && highlighted !== key;\n }\n\n /** Milliseconds between one row's entrance and the next; `0` turns it off. The step narrows to keep the spread within 260ms. */\n readonly staggerMs = input(40, { transform: numberAttribute });\n\n protected markStagger(index: number): string {\n return `${staggerDelay(index, this.rows().length, this.staggerMs())}ms`;\n }\n\n /** Whether a hovered or focused row opens a tooltip. */\n readonly tooltip = input<ChartItemTooltipTrigger>('item');\n\n protected readonly tooltipTemplate =\n contentChild<TemplateRef<{ $implicit: ChartTooltipContext }>>(\n 'dsChartTooltip',\n );\n\n private readonly tooltipLingerResolved = this.defaults.tooltipLingerMs;\n\n protected readonly activeMark = chartActiveMark(\n () => this.tooltipLingerResolved(),\n () => this.defaults.hoverDelayMs(),\n );\n\n protected onMarkClick(\n payload: BarChartRow,\n index: number,\n event: Event,\n ): void {\n this.rowClicked.emit(payload);\n if (this.defaults.pinOnClick()) {\n this.activeMark.pin(index, event, '.fill');\n }\n }\n protected readonly roving = rovingMarks(() => this.rows().length);\n\n protected onMarkFocus(index: number, event: FocusEvent): void {\n this.roving.focus(index);\n this.activeMark.enter(index, event, '.fill');\n }\n\n // A tree's convention: Right opens a closed group and Left closes an open one; otherwise the arrows walk the rows.\n protected onMarkNavigation(event: KeyboardEvent, index: number): void {\n const entry = this.rows()[index];\n if (\n entry?.hasChildren &&\n (event.key === 'ArrowRight' || event.key === 'ArrowLeft') &&\n (event.key === 'ArrowRight') !== this.isExpanded(entry.key)\n ) {\n event.preventDefault();\n this.toggleRow(entry.key);\n\n return;\n }\n this.roving.navigate(\n event,\n index,\n (event.currentTarget as Element).closest('.rows'),\n );\n }\n\n protected readonly tooltipContext = computed<ChartTooltipContext | null>(\n () => {\n const entry = this.rows()[this.activeMark.index()];\n if (this.tooltip() === 'none' || !entry) {\n return null;\n }\n\n if (entry.segments.length) {\n const values = entry.segments.map((part) => part.segment.value);\n\n return {\n category: entry.row.label,\n entries: entry.segments.map((part, partIndex) => ({\n label: part.segment.label,\n value: part.segment.value,\n formatted: part.formattedValue,\n color: part.color,\n detail: describeShare(\n values,\n partIndex,\n this.defaults.locale,\n (share) => this.intl().chart.shareOfTotal(share),\n ),\n })),\n };\n }\n\n return {\n category: '',\n entries: [\n {\n label: entry.row.label,\n value: entry.missing\n ? Number.NaN\n : (plainValue(entry.row.value) ??\n barExtent(entry.row.value).high),\n formatted: entry.formattedValue,\n color: entry.color,\n detail:\n this.partOfWhole() && entry.dataIndex !== null\n ? describeShare(\n partSpans(this.data()),\n entry.dataIndex,\n this.defaults.locale,\n (share) => this.intl().chart.shareOfTotal(share),\n )\n : undefined,\n },\n ],\n };\n },\n );\n\n /** The track spans every bar end, target tick and outermost band. */\n protected readonly resolvedMax = computed(() =>\n resolveMax(\n this.max(),\n this.data().flatMap((row) => [\n barExtent(row.value).high,\n row.target ?? 0,\n ...(row.ranges ?? []),\n ]),\n ),\n );\n\n protected readonly dataTableColumns = computed<readonly string[]>(() =>\n this.partOfWhole()\n ? [\n this.intl().chart.labelColumn,\n this.intl().chart.valueColumn,\n this.intl().chart.shareColumn,\n ]\n : [this.intl().chart.labelColumn, this.intl().chart.valueColumn],\n );\n\n protected readonly dataTableRows = computed<readonly ChartDataRow[]>(() =>\n this.entries().flatMap((entry) => [\n {\n key: `bar:${entry.key}`,\n nested: entry.parentKey !== null,\n cells: this.partOfWhole()\n ? [\n [entry.row.label, entry.row.detail].filter(Boolean).join(' - '),\n entry.formattedValue,\n entry.share,\n ]\n : [\n [entry.row.label, entry.row.detail].filter(Boolean).join(' - '),\n entry.formattedValue,\n ],\n },\n ...entry.segments.map((part) => ({\n // Positional fallbacks are per scope: unprefixed, a bar and its first segment would both be \"0\".\n key: `segment:${entry.key}/${part.key}`,\n nested: true,\n cells: this.partOfWhole()\n ? [part.segment.label, part.formattedValue, '']\n : [part.segment.label, part.formattedValue],\n })),\n ]),\n );\n\n /** Every row, children included whether or not their group is open: the data table lists them all. */\n protected readonly entries = computed(() => {\n const chartMax = this.resolvedMax();\n const format = this.valueFormatResolved();\n const values = partSpans(this.data());\n const colors = new Map<string, string>();\n const percents = new Map<string, boolean | undefined>();\n let topIndex = -1;\n\n return placeRows(this.data()).map((placed) => {\n const { row, key, parentKey, scale, startsDetached } = placed;\n const max = scale ?? chartMax;\n const extent = barExtent(row.value);\n const span = extent.high - extent.low;\n const isRange = typeof row.value !== 'number';\n const missing = isMissing(row.value);\n const dataIndex = parentKey === null ? ++topIndex : null;\n const color =\n row.color ??\n (parentKey === null ? undefined : colors.get(parentKey)) ??\n chartColors.seriesDefault;\n if (parentKey === null) {\n colors.set(key, color);\n percents.set(key, row.showPercent);\n }\n\n return {\n key,\n parentKey,\n row,\n dataIndex,\n hasChildren: parentKey === null && !!row.children?.length,\n startsDetached,\n showsPercent:\n row.showPercent ??\n (parentKey === null ? undefined : percents.get(parentKey)) ??\n this.showPercent(),\n missing,\n offsetPercent: widthPercent(extent.low, max),\n widthPercent: widthPercent(span, max),\n formattedValue: missing\n ? MISSING_VALUE\n : isRange\n ? `${format(extent.low, 'tooltip')} - ${format(extent.high, 'tooltip')}`\n : format(plainValue(row.value) ?? extent.high, 'tooltip'),\n targetPercent:\n row.target === undefined ? null : widthPercent(row.target, max),\n formattedTarget:\n row.target === undefined ? '' : format(row.target, 'tooltip'),\n bands: (row.ranges ?? []).map((bound, bandIndex, all) => ({\n key: `${key}-band-${bandIndex}`,\n widthPercent: widthPercent(bound, max),\n opacity: (bandIndex + 1) / (all.length + 1),\n })),\n formattedPercent:\n row.percent !== undefined\n ? formatPercent(row.percent, 100, this.defaults.locale)\n : missing\n ? MISSING_VALUE\n : formatPercent(span, max, this.defaults.locale),\n share:\n !this.partOfWhole() || dataIndex === null || row.detached\n ? ''\n : missing\n ? MISSING_VALUE\n : shareOfTotal(values, dataIndex, this.defaults.locale),\n segments: segmentsOf(row, (value) => format(value, 'tooltip')),\n color,\n };\n });\n });\n\n /** The rows drawn: every top-level row, and the children of the open groups. */\n protected readonly rows = computed(() =>\n shownRows(this.entries(), this.expanded()),\n );\n\n protected readonly accessibleName = computed(() => {\n const summary = this.summary();\n if (summary !== null) {\n return summary;\n }\n const points = this.data().map((row) => ({\n label: row.label,\n value: isMissing(row.value)\n ? Number.NaN\n : (plainValue(row.value) ??\n barExtent(row.value).high - barExtent(row.value).low),\n }));\n const measured = points.filter((point) => Number.isFinite(point.value));\n const format = this.valueFormatResolved();\n\n return describeSeries(\n this.intl().chart,\n this.caption() ?? this.intl().chart.title,\n measured.length ? measured : points,\n (value) =>\n Number.isFinite(value) ? format(value, 'tooltip') : MISSING_VALUE,\n this.dataTableResolved() !== 'none',\n );\n });\n\n protected entryLabel(entry: { row: BarChartRow; formattedValue: string }) {\n return `${entry.row.label}, ${entry.formattedValue}`;\n }\n\n protected onRowKey(row: BarChartRow, event: Event): void {\n if (!this.interactive() || event.target !== event.currentTarget) {\n return;\n }\n event.preventDefault();\n this.rowClicked.emit(row);\n }\n\n protected readonly isEmpty = computed(() => this.data().length === 0);\n\n /** Skeleton rows only before there is a row to show; a reload keeps the rows under an overlay, as `ds-table` does. */\n protected readonly showsSkeleton = computed(\n () => (this.loading() && this.data().length === 0) || !this.renderReady(),\n );\n\n protected readonly reloading = computed(\n () => this.loading() && !this.showsSkeleton(),\n );\n\n /** One label width per placeholder row, varied so the column does not read as a solid block. */\n protected readonly skeletonRows = computed(() =>\n Array.from(\n { length: Math.max(this.data().length, 3) },\n (_, index) => `${[70, 90, 55][index % 3]}%`,\n ),\n );\n}\n","<!-- Over the whole card, not the rows: a scrim inside the padding ends in a blurred rectangle with hard edges. -->\n<ds-loading-overlay\n class=\"reload-overlay\"\n [loading]=\"reloading()\"\n [blur]=\"true\">\n <figure\n class=\"bar-chart\"\n dsChartStates\n morphGrowth=\"across\"\n [pinned]=\"activeMark.pinned()\"\n [caption]=\"caption()\"\n [error]=\"error()\"\n [errorText]=\"errorTextResolved()\"\n [pending]=\"showsSkeleton()\"\n [dataTable]=\"dataTableResolved()\"\n [empty]=\"isEmpty()\"\n [emptyText]=\"emptyTextResolved()\"\n [skeleton]=\"skeleton\"\n [body]=\"body\"\n (release)=\"activeMark.release()\">\n </figure>\n</ds-loading-overlay>\n\n<!-- The real row markup with placeholders in it, so every box takes the same geometry as a drawn row. -->\n<ng-template #skeleton>\n <div\n class=\"rows is-skeleton\"\n aria-hidden=\"true\"\n [class.labels-start]=\"labelPosition() === 'start'\"\n [class.has-percent]=\"showPercent()\">\n @for (labelWidth of skeletonRows(); track $index) {\n <div class=\"row\">\n <span class=\"label\">\n <ds-skeleton\n inline\n class=\"text-skeleton\"\n height=\"1em\"\n [width]=\"labelWidth\"\n [shimmer]=\"loading()\" />\n </span>\n\n <span class=\"value\">\n <ds-skeleton\n inline\n class=\"text-skeleton\"\n height=\"1em\"\n width=\"3.25em\"\n [shimmer]=\"loading()\" />\n </span>\n\n @if (showPercent()) {\n <span class=\"percent\">\n <ds-skeleton\n inline\n class=\"text-skeleton\"\n height=\"1em\"\n width=\"3.6em\"\n [shimmer]=\"loading()\" />\n </span>\n }\n\n <span class=\"track\">\n <ds-skeleton\n class=\"track-skeleton\"\n data-morph=\"mark\"\n height=\"100%\"\n [shimmer]=\"loading()\" />\n </span>\n </div>\n }\n </div>\n</ng-template>\n\n<ng-template #body>\n <div\n class=\"rows\"\n [class.dims-others]=\"dimOthers()\"\n [class.labels-start]=\"labelPosition() === 'start'\"\n [class.has-percent]=\"percentColumn()\"\n [attr.role]=\"interactive() || holdsControls() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipSwatches]=\"defaults.tooltipSwatches()\"\n [dsChartTooltipPinned]=\"activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate() ?? null\">\n @for (entry of rows(); track entry.key; let index = $index) {\n @if (entry.startsDetached) {\n <div\n class=\"divider\"\n aria-hidden=\"true\">\n </div>\n }\n\n <div\n class=\"row\"\n [style.--_chart-mark-stagger]=\"markStagger(index)\"\n [class.is-child]=\"entry.parentKey !== null\"\n [class.is-emphasis]=\"entry.row.emphasis\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"defaults.pinOnClick()\"\n [class.is-active]=\"activeMark.index() === index\"\n [class.is-pinned]=\"activeMark.pinned() && activeMark.index() === index\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"\n interactive() ? (index === roving.tabStop() ? 0 : -1) : null\n \"\n [attr.data-mark-index]=\"index\"\n [attr.aria-label]=\"interactive() ? entryLabel(entry) : null\"\n [attr.aria-expanded]=\"\n interactive() && entry.hasChildren ? isExpanded(entry.key) : null\n \"\n [attr.aria-describedby]=\"\n interactive() && entry.row.hint ? hintId(entry.key) : null\n \"\n (animate.leave)=\"leaveMark($event)\"\n (pointerenter)=\"activeMark.enter(index, $event, '.fill')\"\n (pointerleave)=\"activeMark.leave()\"\n (focus)=\"onMarkFocus(index, $event)\"\n (blur)=\"activeMark.leave()\"\n (keydown)=\"onMarkNavigation($event, index)\"\n (click)=\"onMarkClick(entry.row, index, $event)\"\n (keydown.enter)=\"onRowKey(entry.row, $event)\"\n (keydown.space)=\"onRowKey(entry.row, $event)\">\n <span class=\"label\">\n @if (!entry.row.hint) {\n {{ entry.row.label }}\n } @else if (interactive()) {\n <span\n class=\"term\"\n [dsTooltip]=\"entry.row.hint\"\n (pointerenter)=\"activeMark.leave()\">\n {{ entry.row.label }}\n </span>\n\n <span\n hidden\n [id]=\"hintId(entry.key)\">\n {{ entry.row.hint }}\n </span>\n } @else {\n <button\n type=\"button\"\n class=\"term\"\n [dsTooltip]=\"entry.row.hint\"\n (pointerenter)=\"activeMark.leave()\"\n (click)=\"$event.stopPropagation()\">\n {{ entry.row.label }}\n </button>\n }\n\n @if (entry.hasChildren) {\n <button\n type=\"button\"\n class=\"toggle\"\n [attr.aria-expanded]=\"isExpanded(entry.key)\"\n [attr.aria-label]=\"intl().chart.rowsUnder(entry.row.label)\"\n [attr.tabindex]=\"interactive() ? -1 : null\"\n [attr.aria-hidden]=\"interactive() ? 'true' : null\"\n (click)=\"toggleRow(entry.key, $event)\">\n <ds-icon\n [name]=\"isExpanded(entry.key) ? 'chevronDown' : 'chevronRight'\"\n [size]=\"14\" />\n </button>\n }\n\n @if (entry.row.detail) {\n <span class=\"detail\">\n {{ entry.row.detail }}\n </span>\n }\n </span>\n\n <span class=\"value\">\n {{ entry.formattedValue }}\n </span>\n\n @if (entry.showsPercent) {\n <span class=\"percent\">\n {{ entry.formattedPercent }}\n </span>\n }\n\n <span class=\"track\">\n @for (band of entry.bands; track band.key) {\n <span\n class=\"band\"\n [style.width.%]=\"band.widthPercent\"\n [style.opacity]=\"band.opacity\">\n </span>\n }\n\n @if (entry.targetPercent !== null) {\n <span\n class=\"target\"\n role=\"img\"\n [style.inset-inline-start.%]=\"entry.targetPercent\"\n [attr.aria-label]=\"intl().chart.target(entry.formattedTarget)\">\n </span>\n }\n\n <span\n class=\"fill\"\n data-morph=\"mark\"\n [style.margin-inline-start.%]=\"entry.offsetPercent\"\n [style.width.%]=\"entry.widthPercent\"\n [style.background]=\"entry.segments.length ? null : entry.color\">\n @for (part of entry.segments; track part.key) {\n <span\n class=\"segment\"\n [class.is-dimmed]=\"isSegmentDimmed(part.key)\"\n [style.width.%]=\"part.widthPercent\"\n [style.background]=\"part.color\">\n </span>\n }\n\n @if (activeMark.pinned() && activeMark.index() === index) {\n <ds-icon\n class=\"pin-marker\"\n name=\"pin\"\n [size]=\"14\" />\n }\n </span>\n </span>\n </div>\n }\n </div>\n\n @if (dataTableResolved() !== 'none') {\n <ds-chart-data-table\n [columns]=\"dataTableColumns()\"\n [rows]=\"dataTableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\" />\n }\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAEA;;;;AAIgB;AACV,SAAU,SAAS,CAAC,KAAoB,EAAA;AAC5C,IAAA,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;AAC7B,QAAA,OA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QAAA,EAAA,qCAAA,EAAA,MAAA,EAAA,CAAA,WAAA,EAAA,iBAAA,EAAA,oBAAA,EAAA,gBAAA,EAAA,gBAAA,EAAA,sBAAA,EAAA,qBAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAQP,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAlB7B,SAAS;+BACE,cAAc,EAAA,UAAA,EACZ,IAAI,EAAA,OAAA,EACP;wBACP,iBAAiB;wBACjB,uBAAuB;wBACvB,qBAAqB;wBACrB,oBAAoB;wBACpB,aAAa;wBACb,uBAAuB;wBACvB,gBAAgB;AACjB,qBAAA,EAAA,IAAA,EAGK,EAAE,gBAAgB,EAAE,4BAA4B,EAAE,EAAA,aAAA,EACzC,iBAAiB,CAAC,QAAQ,EAAA,eAAA,EACxB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,muPAAA,EAAA,MAAA,EAAA,CAAA,41WAAA,CAAA,EAAA;ulCAoG3C,gBAAgB,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEnNtB;;AAEG;;;;"}
|
|
@@ -51,7 +51,7 @@ class BarComponent {
|
|
|
51
51
|
}, ...(ngDevMode ? [{ debugName: "targetPercent" }] : /* istanbul ignore next */ []));
|
|
52
52
|
isIndet = computed(() => this.indeterminate() && this.semantics() === 'progress', ...(ngDevMode ? [{ debugName: "isIndet" }] : /* istanbul ignore next */ []));
|
|
53
53
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: BarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
54
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: BarComponent, isStandalone: true, selector: "ds-bar", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, semantics: { classPropertyName: "semantics", publicName: "semantics", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.role": "role()", "attr.aria-hidden": "semantics() === 'none' ? true : null", "attr.aria-valuemin": "role() ? 0 : null", "attr.aria-valuemax": "role() ? scale() : null", "attr.aria-valuenow": "role() && !isIndet() ? clampedValue() : null", "attr.aria-label": "ariaLabel()", "class.success": "variant() === 'success'", "class.warning": "variant() === 'warning'", "class.error": "variant() === 'error'", "class.indeterminate": "isIndet()" } }, ngImport: i0, template: "@if (isIndet()) {\n <span></span>\n} @else {\n <span\n [style.width.%]=\"valuePercent()\"\n [style.background]=\"color()\">\n </span>\n\n @if (targetPercent() !== null) {\n <div\n class=\"target\"\n [style.left.%]=\"targetPercent()\">\n </div>\n }\n}\n", styles: ["
|
|
54
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: BarComponent, isStandalone: true, selector: "ds-bar", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, semantics: { classPropertyName: "semantics", publicName: "semantics", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.role": "role()", "attr.aria-hidden": "semantics() === 'none' ? true : null", "attr.aria-valuemin": "role() ? 0 : null", "attr.aria-valuemax": "role() ? scale() : null", "attr.aria-valuenow": "role() && !isIndet() ? clampedValue() : null", "attr.aria-label": "ariaLabel()", "class.success": "variant() === 'success'", "class.warning": "variant() === 'warning'", "class.error": "variant() === 'error'", "class.indeterminate": "isIndet()" } }, ngImport: i0, template: "@if (isIndet()) {\n <span></span>\n} @else {\n <span\n [style.width.%]=\"valuePercent()\"\n [style.background]=\"color()\">\n </span>\n\n @if (targetPercent() !== null) {\n <div\n class=\"target\"\n [style.left.%]=\"targetPercent()\">\n </div>\n }\n}\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_bar-height: var(--ds-bar-height, var(--bar-h));--_bar-track-color: var(--ds-bar-track-color, var(--surface-muted));--_bar-fill-color: var(--ds-bar-fill-color, var(--accent));--_bar-target-color: var(--ds-bar-target-color, var(--text-primary));--_bar-target-width: var(--ds-bar-target-width, 2px);--_bar-radius: var(--ds-bar-radius, var(--radius-pill));display:block;position:relative;inline-size:100%;min-inline-size:var(--ds-bar-min-width, 3rem);block-size:var(--_bar-height);background:var(--_bar-track-color);border-radius:var(--_bar-radius);overflow:hidden}:host>span{display:block;block-size:100%;background:var(--_bar-fill-color);border-radius:var(--_bar-radius);transition:inline-size var(--duration-base) var(--ease-standard)}:host>.target{position:absolute;inset-block-start:0;block-size:100%;inline-size:var(--_bar-target-width);transform:translate(-50%);background:var(--_bar-target-color);transition:left var(--duration-base) var(--ease-standard)}:host(.success){--_bar-fill-color-success: var(--ds-bar-fill-color-success, var(--success))}:host(.warning){--_bar-fill-color-warning: var(--ds-bar-fill-color-warning, var(--yellow-500))}:host(.error){--_bar-fill-color-error: var(--ds-bar-fill-color-error, var(--error))}:host(.success)>span{background:var(--_bar-fill-color-success)}:host(.warning)>span{background:var(--_bar-fill-color-warning)}:host(.error)>span{background:var(--_bar-fill-color-error)}:host(.indeterminate)>span{inline-size:30%;animation:bar-indet var(--duration-loop-slow) linear infinite}@keyframes bar-indet{0%{transform:translate(-100%)}to{transform:translate(400%)}}@media(prefers-reduced-motion:reduce){:host>span,:host>.target{transition:none}:host(.indeterminate)>span{animation:none;inline-size:100%}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
55
55
|
}
|
|
56
56
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: BarComponent, decorators: [{
|
|
57
57
|
type: Component,
|
|
@@ -66,7 +66,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
66
66
|
'[class.warning]': "variant() === 'warning'",
|
|
67
67
|
'[class.error]': "variant() === 'error'",
|
|
68
68
|
'[class.indeterminate]': 'isIndet()',
|
|
69
|
-
}, template: "@if (isIndet()) {\n <span></span>\n} @else {\n <span\n [style.width.%]=\"valuePercent()\"\n [style.background]=\"color()\">\n </span>\n\n @if (targetPercent() !== null) {\n <div\n class=\"target\"\n [style.left.%]=\"targetPercent()\">\n </div>\n }\n}\n", styles: ["
|
|
69
|
+
}, template: "@if (isIndet()) {\n <span></span>\n} @else {\n <span\n [style.width.%]=\"valuePercent()\"\n [style.background]=\"color()\">\n </span>\n\n @if (targetPercent() !== null) {\n <div\n class=\"target\"\n [style.left.%]=\"targetPercent()\">\n </div>\n }\n}\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_bar-height: var(--ds-bar-height, var(--bar-h));--_bar-track-color: var(--ds-bar-track-color, var(--surface-muted));--_bar-fill-color: var(--ds-bar-fill-color, var(--accent));--_bar-target-color: var(--ds-bar-target-color, var(--text-primary));--_bar-target-width: var(--ds-bar-target-width, 2px);--_bar-radius: var(--ds-bar-radius, var(--radius-pill));display:block;position:relative;inline-size:100%;min-inline-size:var(--ds-bar-min-width, 3rem);block-size:var(--_bar-height);background:var(--_bar-track-color);border-radius:var(--_bar-radius);overflow:hidden}:host>span{display:block;block-size:100%;background:var(--_bar-fill-color);border-radius:var(--_bar-radius);transition:inline-size var(--duration-base) var(--ease-standard)}:host>.target{position:absolute;inset-block-start:0;block-size:100%;inline-size:var(--_bar-target-width);transform:translate(-50%);background:var(--_bar-target-color);transition:left var(--duration-base) var(--ease-standard)}:host(.success){--_bar-fill-color-success: var(--ds-bar-fill-color-success, var(--success))}:host(.warning){--_bar-fill-color-warning: var(--ds-bar-fill-color-warning, var(--yellow-500))}:host(.error){--_bar-fill-color-error: var(--ds-bar-fill-color-error, var(--error))}:host(.success)>span{background:var(--_bar-fill-color-success)}:host(.warning)>span{background:var(--_bar-fill-color-warning)}:host(.error)>span{background:var(--_bar-fill-color-error)}:host(.indeterminate)>span{inline-size:30%;animation:bar-indet var(--duration-loop-slow) linear infinite}@keyframes bar-indet{0%{transform:translate(-100%)}to{transform:translate(400%)}}@media(prefers-reduced-motion:reduce){:host>span,:host>.target{transition:none}:host(.indeterminate)>span{animation:none;inline-size:100%}}\n"] }]
|
|
70
70
|
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], semantics: [{ type: i0.Input, args: [{ isSignal: true, alias: "semantics", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], indeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "indeterminate", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], target: [{ type: i0.Input, args: [{ isSignal: true, alias: "target", required: false }] }] } });
|
|
71
71
|
|
|
72
72
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids-group-ltd-ids-design-system-components-bar.mjs","sources":["../../../src/lib/components/bar/bar.component.ts","../../../src/lib/components/bar/bar.component.html","../../../src/lib/components/bar/ids-group-ltd-ids-design-system-components-bar.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n numberAttribute,\n} from '@angular/core';\nimport type { BarSemantics, BarVariant } from './bar.types';\n\n/** One horizontal track with one fill: a task's completion, or a measurement on a known scale. */\n@Component({\n selector: 'ds-bar',\n standalone: true,\n imports: [],\n templateUrl: './bar.component.html',\n styleUrl: './bar.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[attr.role]': 'role()',\n '[attr.aria-hidden]': \"semantics() === 'none' ? true : null\",\n '[attr.aria-valuemin]': 'role() ? 0 : null',\n '[attr.aria-valuemax]': 'role() ? scale() : null',\n '[attr.aria-valuenow]': 'role() && !isIndet() ? clampedValue() : null',\n '[attr.aria-label]': 'ariaLabel()',\n '[class.success]': \"variant() === 'success'\",\n '[class.warning]': \"variant() === 'warning'\",\n '[class.error]': \"variant() === 'error'\",\n '[class.indeterminate]': 'isIndet()',\n },\n})\nexport class BarComponent {\n /** The reading, in units of `max`; clamped, and ignored while `indeterminate`. */\n readonly value = input(0, { transform: numberAttribute });\n /** The full scale `value` and `target` are read against; the accessible name reads \"value of max\". Zero or less falls back to 100. */\n readonly max = input(100, { transform: numberAttribute });\n /** What the bar is, and so how it is announced. See `BarSemantics`. */\n readonly semantics = input<BarSemantics>('progress');\n /** Colour role: drives the success/warning/error styling. */\n readonly variant = input<BarVariant>('default');\n /** Indeterminate animation instead of a fixed `value`; ignored unless `semantics` is `'progress'`. */\n readonly indeterminate = input(false, { transform: booleanAttribute });\n /** Overrides the fill for this one bar. */\n readonly color = input<string | null>(null);\n /** Accessible name. With a `target`, name the comparison here: the role has no second value to\n * announce. Unused under `semantics=\"none\"`. */\n readonly ariaLabel = input<string | null>(null);\n /** A second point on the scale, drawn as a hairline across the track. Clamped like `value`, ignored while `indeterminate`. */\n readonly target = input<number | null>(null);\n\n protected readonly role = computed(() => {\n const semantics = this.semantics();\n\n return semantics === 'none'\n ? null\n : semantics === 'meter'\n ? 'meter'\n : 'progressbar';\n });\n\n protected readonly scale = computed(() => {\n const max = this.max();\n\n return Number.isFinite(max) && max > 0 ? max : 100;\n });\n\n protected readonly clampedValue = computed(() => {\n const value = this.value();\n\n return Number.isFinite(value)\n ? Math.max(0, Math.min(this.scale(), value))\n : 0;\n });\n\n protected readonly valuePercent = computed(\n () => (this.clampedValue() / this.scale()) * 100,\n );\n\n protected readonly clampedTarget = computed(() => {\n const target = this.target();\n\n return target == null || !Number.isFinite(target)\n ? null\n : Math.max(0, Math.min(this.scale(), target));\n });\n\n protected readonly targetPercent = computed(() => {\n const target = this.clampedTarget();\n\n return target === null ? null : (target / this.scale()) * 100;\n });\n\n protected readonly isIndet = computed(\n () => this.indeterminate() && this.semantics() === 'progress',\n );\n}\n","@if (isIndet()) {\n <span></span>\n} @else {\n <span\n [style.width.%]=\"valuePercent()\"\n [style.background]=\"color()\">\n </span>\n\n @if (targetPercent() !== null) {\n <div\n class=\"target\"\n [style.left.%]=\"targetPercent()\">\n </div>\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAWA;MAsBa,YAAY,CAAA;;IAEd,KAAK,GAAG,KAAK,CAAC,CAAC,6EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;IAEhD,GAAG,GAAG,KAAK,CAAC,GAAG,2EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;AAEhD,IAAA,SAAS,GAAG,KAAK,CAAe,UAAU,gFAAC;;AAE3C,IAAA,OAAO,GAAG,KAAK,CAAa,SAAS,8EAAC;;IAEtC,aAAa,GAAG,KAAK,CAAC,KAAK,qFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAE7D,IAAA,KAAK,GAAG,KAAK,CAAgB,IAAI,4EAAC;AAC3C;AACiD;AACxC,IAAA,SAAS,GAAG,KAAK,CAAgB,IAAI,gFAAC;;AAEtC,IAAA,MAAM,GAAG,KAAK,CAAgB,IAAI,6EAAC;AAEzB,IAAA,IAAI,GAAG,QAAQ,CAAC,MAAK;AACtC,QAAA,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,EAAE;QAElC,OAAO,SAAS,KAAK;AACnB,cAAE;cACA,SAAS,KAAK;AACd,kBAAE;kBACA,aAAa;AACrB,IAAA,CAAC,2EAAC;AAEiB,IAAA,KAAK,GAAG,QAAQ,CAAC,MAAK;AACvC,QAAA,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE;AAEtB,QAAA,OAAO,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG;AACpD,IAAA,CAAC,4EAAC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EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,YAAY,shDCjCzB,yRAeA,EAAA,MAAA,EAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"ids-group-ltd-ids-design-system-components-bar.mjs","sources":["../../../src/lib/components/bar/bar.component.ts","../../../src/lib/components/bar/bar.component.html","../../../src/lib/components/bar/ids-group-ltd-ids-design-system-components-bar.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n numberAttribute,\n} from '@angular/core';\nimport type { BarSemantics, BarVariant } from './bar.types';\n\n/** One horizontal track with one fill: a task's completion, or a measurement on a known scale. */\n@Component({\n selector: 'ds-bar',\n standalone: true,\n imports: [],\n templateUrl: './bar.component.html',\n styleUrl: './bar.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[attr.role]': 'role()',\n '[attr.aria-hidden]': \"semantics() === 'none' ? true : null\",\n '[attr.aria-valuemin]': 'role() ? 0 : null',\n '[attr.aria-valuemax]': 'role() ? scale() : null',\n '[attr.aria-valuenow]': 'role() && !isIndet() ? clampedValue() : null',\n '[attr.aria-label]': 'ariaLabel()',\n '[class.success]': \"variant() === 'success'\",\n '[class.warning]': \"variant() === 'warning'\",\n '[class.error]': \"variant() === 'error'\",\n '[class.indeterminate]': 'isIndet()',\n },\n})\nexport class BarComponent {\n /** The reading, in units of `max`; clamped, and ignored while `indeterminate`. */\n readonly value = input(0, { transform: numberAttribute });\n /** The full scale `value` and `target` are read against; the accessible name reads \"value of max\". Zero or less falls back to 100. */\n readonly max = input(100, { transform: numberAttribute });\n /** What the bar is, and so how it is announced. See `BarSemantics`. */\n readonly semantics = input<BarSemantics>('progress');\n /** Colour role: drives the success/warning/error styling. */\n readonly variant = input<BarVariant>('default');\n /** Indeterminate animation instead of a fixed `value`; ignored unless `semantics` is `'progress'`. */\n readonly indeterminate = input(false, { transform: booleanAttribute });\n /** Overrides the fill for this one bar. */\n readonly color = input<string | null>(null);\n /** Accessible name. With a `target`, name the comparison here: the role has no second value to\n * announce. Unused under `semantics=\"none\"`. */\n readonly ariaLabel = input<string | null>(null);\n /** A second point on the scale, drawn as a hairline across the track. Clamped like `value`, ignored while `indeterminate`. */\n readonly target = input<number | null>(null);\n\n protected readonly role = computed(() => {\n const semantics = this.semantics();\n\n return semantics === 'none'\n ? null\n : semantics === 'meter'\n ? 'meter'\n : 'progressbar';\n });\n\n protected readonly scale = computed(() => {\n const max = this.max();\n\n return Number.isFinite(max) && max > 0 ? max : 100;\n });\n\n protected readonly clampedValue = computed(() => {\n const value = this.value();\n\n return Number.isFinite(value)\n ? Math.max(0, Math.min(this.scale(), value))\n : 0;\n });\n\n protected readonly valuePercent = computed(\n () => (this.clampedValue() / this.scale()) * 100,\n );\n\n protected readonly clampedTarget = computed(() => {\n const target = this.target();\n\n return target == null || !Number.isFinite(target)\n ? null\n : Math.max(0, Math.min(this.scale(), target));\n });\n\n protected readonly targetPercent = computed(() => {\n const target = this.clampedTarget();\n\n return target === null ? null : (target / this.scale()) * 100;\n });\n\n protected readonly isIndet = computed(\n () => this.indeterminate() && this.semantics() === 'progress',\n );\n}\n","@if (isIndet()) {\n <span></span>\n} @else {\n <span\n [style.width.%]=\"valuePercent()\"\n [style.background]=\"color()\">\n </span>\n\n @if (targetPercent() !== null) {\n <div\n class=\"target\"\n [style.left.%]=\"targetPercent()\">\n </div>\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAWA;MAsBa,YAAY,CAAA;;IAEd,KAAK,GAAG,KAAK,CAAC,CAAC,6EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;IAEhD,GAAG,GAAG,KAAK,CAAC,GAAG,2EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;AAEhD,IAAA,SAAS,GAAG,KAAK,CAAe,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AAQ;AACvB,wBAAA,oBAAoB,EAAE,sCAAsC;AAC5D,wBAAA,sBAAsB,EAAE,mBAAmB;AAC3C,wBAAA,sBAAsB,EAAE,yBAAyB;AACjD,wBAAA,sBAAsB,EAAE,8CAA8C;AACtE,wBAAA,mBAAmB,EAAE,aAAa;AAClC,wBAAA,iBAAiB,EAAE,yBAAyB;AAC5C,wBAAA,iBAAiB,EAAE,yBAAyB;AAC5C,wBAAA,eAAe,EAAE,uBAAuB;AACxC,wBAAA,uBAAuB,EAAE,WAAW;AACrC,qBAAA,EAAA,QAAA,EAAA,yRAAA,EAAA,MAAA,EAAA,CAAA,4zEAAA,CAAA,EAAA;;;AE/BH;;AAEG;;;;"}
|
|
@@ -184,11 +184,11 @@ class BottomSheetComponent {
|
|
|
184
184
|
this.activeSnapIndex.set(nearestIndex);
|
|
185
185
|
}
|
|
186
186
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: BottomSheetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
187
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: BottomSheetComponent, isStandalone: true, selector: "ds-bottom-sheet", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, snapPoints: { classPropertyName: "snapPoints", publicName: "snapPoints", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", closed: "closed" }, host: { properties: { "attr.title": "null" } }, viewQueries: [{ propertyName: "sheetRef", first: true, predicate: ["sheet"], descendants: true, isSignal: true }], hostDirectives: [{ directive: i1.DsStaticPreview, inputs: ["staticPreview", "staticPreview"] }], ngImport: i0, template: "@if (rendered() || preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- backdrop; keyboard dismissal is (keydown.escape) on this element, a backdrop isn't a tabbable control -->\n <div\n [class]=\"preview.staticPreview() ? 'sheet-static' : 'sheet-overlay'\"\n [class.closing]=\"closing()\"\n (pointerdown)=\"backdropPress.down($event)\"\n (pointerup)=\"onBackdropRelease($event)\"\n (keydown.escape)=\"onEscape()\">\n <div\n #sheet\n class=\"sheet\"\n role=\"dialog\"\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [attr.aria-modal]=\"preview.staticPreview() ? null : 'true'\"\n [attr.aria-labelledby]=\"title() ? titleId : null\"\n [class.dragging]=\"dragOffset() !== null\"\n [class.closing]=\"closing()\"\n [class.snapping]=\"snapPoints().length > 0 && dragOffset() === null\"\n [style.transform]=\"\n dragOffset() ? 'translateY(' + dragOffset() + 'px)' : null\n \"\n [style.height]=\"snapHeight()\"\n [style.maxHeight]=\"snapHeight() ? snapHeight() : null\"\n (animationend)=\"onLeaveEnd($event)\">\n <div\n class=\"grab\"\n (pointerdown)=\"onGrabStart($event)\"\n (pointermove)=\"onGrabMove($event)\"\n (pointerup)=\"onGrabEnd()\"\n (pointercancel)=\"onGrabEnd()\">\n <div class=\"sheet-handle\"></div>\n </div>\n\n @if (title()) {\n <h3\n class=\"sheet-title\"\n [id]=\"titleId\">\n {{ title() }}\n </h3>\n }\n\n <div class=\"sheet-body\">\n <ng-content />\n </div>\n\n <div class=\"sheet-actions\">\n <ng-content select=\"[actions]\" />\n </div>\n </div>\n </div>\n}\n", styles: ["
|
|
187
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: BottomSheetComponent, isStandalone: true, selector: "ds-bottom-sheet", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, snapPoints: { classPropertyName: "snapPoints", publicName: "snapPoints", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", closed: "closed" }, host: { properties: { "attr.title": "null" } }, viewQueries: [{ propertyName: "sheetRef", first: true, predicate: ["sheet"], descendants: true, isSignal: true }], hostDirectives: [{ directive: i1.DsStaticPreview, inputs: ["staticPreview", "staticPreview"] }], ngImport: i0, template: "@if (rendered() || preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- backdrop; keyboard dismissal is (keydown.escape) on this element, a backdrop isn't a tabbable control -->\n <div\n [class]=\"preview.staticPreview() ? 'sheet-static' : 'sheet-overlay'\"\n [class.closing]=\"closing()\"\n (pointerdown)=\"backdropPress.down($event)\"\n (pointerup)=\"onBackdropRelease($event)\"\n (keydown.escape)=\"onEscape()\">\n <div\n #sheet\n class=\"sheet\"\n role=\"dialog\"\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [attr.aria-modal]=\"preview.staticPreview() ? null : 'true'\"\n [attr.aria-labelledby]=\"title() ? titleId : null\"\n [class.dragging]=\"dragOffset() !== null\"\n [class.closing]=\"closing()\"\n [class.snapping]=\"snapPoints().length > 0 && dragOffset() === null\"\n [style.transform]=\"\n dragOffset() ? 'translateY(' + dragOffset() + 'px)' : null\n \"\n [style.height]=\"snapHeight()\"\n [style.maxHeight]=\"snapHeight() ? snapHeight() : null\"\n (animationend)=\"onLeaveEnd($event)\">\n <div\n class=\"grab\"\n (pointerdown)=\"onGrabStart($event)\"\n (pointermove)=\"onGrabMove($event)\"\n (pointerup)=\"onGrabEnd()\"\n (pointercancel)=\"onGrabEnd()\">\n <div class=\"sheet-handle\"></div>\n </div>\n\n @if (title()) {\n <h3\n class=\"sheet-title\"\n [id]=\"titleId\">\n {{ title() }}\n </h3>\n }\n\n <div class=\"sheet-body\">\n <ng-content />\n </div>\n\n <div class=\"sheet-actions\">\n <ng-content select=\"[actions]\" />\n </div>\n </div>\n </div>\n}\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_bottom-sheet-max-width: var(--ds-bottom-sheet-max-width, 480px);--_bottom-sheet-max-height: var(--ds-bottom-sheet-max-height, 80%);--_bottom-sheet-radius: var(--ds-bottom-sheet-radius, var(--ds-radius-panel));--_bottom-sheet-bg-color: var(--ds-bottom-sheet-bg-color, var(--surface-default));--_bottom-sheet-scrim-color: var(--ds-bottom-sheet-scrim-color, var(--surface-scrim));--_bottom-sheet-title-text-color: var(--ds-bottom-sheet-title-text-color, var(--text-primary));--_bottom-sheet-enter-keyframes: var(--ds-bottom-sheet-enter-keyframes, ds-slide-edge-in);--_bottom-sheet-leave-keyframes: var(--ds-bottom-sheet-leave-keyframes, ds-slide-edge-out);--_bottom-sheet-enter-duration: var(--ds-bottom-sheet-enter-duration, var(--ds-motion-enter-surface-duration));--_bottom-sheet-enter-easing: var(--ds-bottom-sheet-enter-easing, var(--ds-motion-enter-surface-easing));--_bottom-sheet-leave-duration: var(--ds-bottom-sheet-leave-duration, var(--ds-motion-exit-large-duration));--_bottom-sheet-leave-easing: var(--ds-bottom-sheet-leave-easing, var(--ds-motion-exit-large-easing));--_bottom-sheet-scrim-enter-duration: var(--ds-bottom-sheet-enter-duration, var(--ds-motion-enter-panel-duration));--_bottom-sheet-scrim-leave-duration: var(--ds-bottom-sheet-leave-duration, var(--ds-motion-exit-duration));--_ds-enter-scale: var(--ds-bottom-sheet-enter-scale, .96);display:contents}@media(prefers-reduced-motion:reduce){:host{--_bottom-sheet-enter-duration: 0ms;--_bottom-sheet-leave-duration: 0ms;--_bottom-sheet-scrim-enter-duration: 0ms;--_bottom-sheet-scrim-leave-duration: 0ms}}.sheet-overlay{position:fixed;inset:0;z-index:var(--layer-modal);background:var(--_bottom-sheet-scrim-color);display:flex;flex-direction:column;justify-content:flex-end;overflow:clip;animation-name:ds-fade-in;animation-duration:var(--_bottom-sheet-scrim-enter-duration);animation-timing-function:var(--_bottom-sheet-enter-easing)}.sheet-overlay.closing{animation-name:ds-fade-out;animation-duration:var(--_bottom-sheet-scrim-leave-duration);animation-timing-function:var(--_bottom-sheet-leave-easing);animation-fill-mode:forwards;pointer-events:none}.sheet-static{display:contents}.sheet-static .sheet{animation:none}.sheet{--_ds-enter-y: 100%;position:relative;width:min(100%,var(--_bottom-sheet-max-width));margin-inline:auto;background:var(--_bottom-sheet-bg-color);border-radius:var(--_bottom-sheet-radius) var(--_bottom-sheet-radius) 0 0;padding:0 var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom,0px));animation-name:var(--_bottom-sheet-enter-keyframes);animation-duration:var(--_bottom-sheet-enter-duration);animation-timing-function:var(--_bottom-sheet-enter-easing);max-height:var(--_bottom-sheet-max-height);display:flex;flex-direction:column;transition:transform var(--duration-base) var(--ease-decelerate)}.sheet.dragging{transition:none}.sheet.snapping{transition:transform var(--duration-base) var(--ease-decelerate),height var(--duration-base) var(--ease-decelerate)}@media(prefers-reduced-motion:reduce){.sheet.snapping{transition:none}}.sheet.closing{animation-name:var(--_bottom-sheet-leave-keyframes);animation-duration:var(--_bottom-sheet-leave-duration);animation-timing-function:var(--_bottom-sheet-leave-easing);animation-fill-mode:forwards}.grab{padding:var(--space-3) 0;margin:0 calc(var(--space-4) * -1);cursor:grab;touch-action:none}.sheet-handle{width:var(--bottom-sheet-handle-w);height:var(--bottom-sheet-handle-h);background:var(--border-strong);border-radius:var(--radius-pill);margin:0 auto}.sheet-title{font:var(--font-weight-semibold) var(--font-size-l)/var(--line-height-snug) var(--font-sans);color:var(--_bottom-sheet-title-text-color);margin:0 0 var(--space-3)}.sheet-body{display:flex;flex-direction:column;gap:var(--space-2);overflow-y:auto;min-height:0;padding:var(--space-1);margin:calc(var(--space-1) * -1)}.sheet-actions{display:flex;flex-direction:column;gap:var(--space-2)}.sheet-actions:not(:empty){margin-top:var(--space-3)}:where(.sheet-actions)>::ng-deep :where(div[actions]){display:contents}\n"], dependencies: [{ kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }] });
|
|
188
188
|
}
|
|
189
189
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: BottomSheetComponent, decorators: [{
|
|
190
190
|
type: Component,
|
|
191
|
-
args: [{ selector: 'ds-bottom-sheet', standalone: true, imports: [A11yModule], host: { '[attr.title]': 'null' }, encapsulation: ViewEncapsulation.Emulated, hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }], template: "@if (rendered() || preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- backdrop; keyboard dismissal is (keydown.escape) on this element, a backdrop isn't a tabbable control -->\n <div\n [class]=\"preview.staticPreview() ? 'sheet-static' : 'sheet-overlay'\"\n [class.closing]=\"closing()\"\n (pointerdown)=\"backdropPress.down($event)\"\n (pointerup)=\"onBackdropRelease($event)\"\n (keydown.escape)=\"onEscape()\">\n <div\n #sheet\n class=\"sheet\"\n role=\"dialog\"\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [attr.aria-modal]=\"preview.staticPreview() ? null : 'true'\"\n [attr.aria-labelledby]=\"title() ? titleId : null\"\n [class.dragging]=\"dragOffset() !== null\"\n [class.closing]=\"closing()\"\n [class.snapping]=\"snapPoints().length > 0 && dragOffset() === null\"\n [style.transform]=\"\n dragOffset() ? 'translateY(' + dragOffset() + 'px)' : null\n \"\n [style.height]=\"snapHeight()\"\n [style.maxHeight]=\"snapHeight() ? snapHeight() : null\"\n (animationend)=\"onLeaveEnd($event)\">\n <div\n class=\"grab\"\n (pointerdown)=\"onGrabStart($event)\"\n (pointermove)=\"onGrabMove($event)\"\n (pointerup)=\"onGrabEnd()\"\n (pointercancel)=\"onGrabEnd()\">\n <div class=\"sheet-handle\"></div>\n </div>\n\n @if (title()) {\n <h3\n class=\"sheet-title\"\n [id]=\"titleId\">\n {{ title() }}\n </h3>\n }\n\n <div class=\"sheet-body\">\n <ng-content />\n </div>\n\n <div class=\"sheet-actions\">\n <ng-content select=\"[actions]\" />\n </div>\n </div>\n </div>\n}\n", styles: ["
|
|
191
|
+
args: [{ selector: 'ds-bottom-sheet', standalone: true, imports: [A11yModule], host: { '[attr.title]': 'null' }, encapsulation: ViewEncapsulation.Emulated, hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }], template: "@if (rendered() || preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- backdrop; keyboard dismissal is (keydown.escape) on this element, a backdrop isn't a tabbable control -->\n <div\n [class]=\"preview.staticPreview() ? 'sheet-static' : 'sheet-overlay'\"\n [class.closing]=\"closing()\"\n (pointerdown)=\"backdropPress.down($event)\"\n (pointerup)=\"onBackdropRelease($event)\"\n (keydown.escape)=\"onEscape()\">\n <div\n #sheet\n class=\"sheet\"\n role=\"dialog\"\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [attr.aria-modal]=\"preview.staticPreview() ? null : 'true'\"\n [attr.aria-labelledby]=\"title() ? titleId : null\"\n [class.dragging]=\"dragOffset() !== null\"\n [class.closing]=\"closing()\"\n [class.snapping]=\"snapPoints().length > 0 && dragOffset() === null\"\n [style.transform]=\"\n dragOffset() ? 'translateY(' + dragOffset() + 'px)' : null\n \"\n [style.height]=\"snapHeight()\"\n [style.maxHeight]=\"snapHeight() ? snapHeight() : null\"\n (animationend)=\"onLeaveEnd($event)\">\n <div\n class=\"grab\"\n (pointerdown)=\"onGrabStart($event)\"\n (pointermove)=\"onGrabMove($event)\"\n (pointerup)=\"onGrabEnd()\"\n (pointercancel)=\"onGrabEnd()\">\n <div class=\"sheet-handle\"></div>\n </div>\n\n @if (title()) {\n <h3\n class=\"sheet-title\"\n [id]=\"titleId\">\n {{ title() }}\n </h3>\n }\n\n <div class=\"sheet-body\">\n <ng-content />\n </div>\n\n <div class=\"sheet-actions\">\n <ng-content select=\"[actions]\" />\n </div>\n </div>\n </div>\n}\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_bottom-sheet-max-width: var(--ds-bottom-sheet-max-width, 480px);--_bottom-sheet-max-height: var(--ds-bottom-sheet-max-height, 80%);--_bottom-sheet-radius: var(--ds-bottom-sheet-radius, var(--ds-radius-panel));--_bottom-sheet-bg-color: var(--ds-bottom-sheet-bg-color, var(--surface-default));--_bottom-sheet-scrim-color: var(--ds-bottom-sheet-scrim-color, var(--surface-scrim));--_bottom-sheet-title-text-color: var(--ds-bottom-sheet-title-text-color, var(--text-primary));--_bottom-sheet-enter-keyframes: var(--ds-bottom-sheet-enter-keyframes, ds-slide-edge-in);--_bottom-sheet-leave-keyframes: var(--ds-bottom-sheet-leave-keyframes, ds-slide-edge-out);--_bottom-sheet-enter-duration: var(--ds-bottom-sheet-enter-duration, var(--ds-motion-enter-surface-duration));--_bottom-sheet-enter-easing: var(--ds-bottom-sheet-enter-easing, var(--ds-motion-enter-surface-easing));--_bottom-sheet-leave-duration: var(--ds-bottom-sheet-leave-duration, var(--ds-motion-exit-large-duration));--_bottom-sheet-leave-easing: var(--ds-bottom-sheet-leave-easing, var(--ds-motion-exit-large-easing));--_bottom-sheet-scrim-enter-duration: var(--ds-bottom-sheet-enter-duration, var(--ds-motion-enter-panel-duration));--_bottom-sheet-scrim-leave-duration: var(--ds-bottom-sheet-leave-duration, var(--ds-motion-exit-duration));--_ds-enter-scale: var(--ds-bottom-sheet-enter-scale, .96);display:contents}@media(prefers-reduced-motion:reduce){:host{--_bottom-sheet-enter-duration: 0ms;--_bottom-sheet-leave-duration: 0ms;--_bottom-sheet-scrim-enter-duration: 0ms;--_bottom-sheet-scrim-leave-duration: 0ms}}.sheet-overlay{position:fixed;inset:0;z-index:var(--layer-modal);background:var(--_bottom-sheet-scrim-color);display:flex;flex-direction:column;justify-content:flex-end;overflow:clip;animation-name:ds-fade-in;animation-duration:var(--_bottom-sheet-scrim-enter-duration);animation-timing-function:var(--_bottom-sheet-enter-easing)}.sheet-overlay.closing{animation-name:ds-fade-out;animation-duration:var(--_bottom-sheet-scrim-leave-duration);animation-timing-function:var(--_bottom-sheet-leave-easing);animation-fill-mode:forwards;pointer-events:none}.sheet-static{display:contents}.sheet-static .sheet{animation:none}.sheet{--_ds-enter-y: 100%;position:relative;width:min(100%,var(--_bottom-sheet-max-width));margin-inline:auto;background:var(--_bottom-sheet-bg-color);border-radius:var(--_bottom-sheet-radius) var(--_bottom-sheet-radius) 0 0;padding:0 var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom,0px));animation-name:var(--_bottom-sheet-enter-keyframes);animation-duration:var(--_bottom-sheet-enter-duration);animation-timing-function:var(--_bottom-sheet-enter-easing);max-height:var(--_bottom-sheet-max-height);display:flex;flex-direction:column;transition:transform var(--duration-base) var(--ease-decelerate)}.sheet.dragging{transition:none}.sheet.snapping{transition:transform var(--duration-base) var(--ease-decelerate),height var(--duration-base) var(--ease-decelerate)}@media(prefers-reduced-motion:reduce){.sheet.snapping{transition:none}}.sheet.closing{animation-name:var(--_bottom-sheet-leave-keyframes);animation-duration:var(--_bottom-sheet-leave-duration);animation-timing-function:var(--_bottom-sheet-leave-easing);animation-fill-mode:forwards}.grab{padding:var(--space-3) 0;margin:0 calc(var(--space-4) * -1);cursor:grab;touch-action:none}.sheet-handle{width:var(--bottom-sheet-handle-w);height:var(--bottom-sheet-handle-h);background:var(--border-strong);border-radius:var(--radius-pill);margin:0 auto}.sheet-title{font:var(--font-weight-semibold) var(--font-size-l)/var(--line-height-snug) var(--font-sans);color:var(--_bottom-sheet-title-text-color);margin:0 0 var(--space-3)}.sheet-body{display:flex;flex-direction:column;gap:var(--space-2);overflow-y:auto;min-height:0;padding:var(--space-1);margin:calc(var(--space-1) * -1)}.sheet-actions{display:flex;flex-direction:column;gap:var(--space-2)}.sheet-actions:not(:empty){margin-top:var(--space-3)}:where(.sheet-actions)>::ng-deep :where(div[actions]){display:contents}\n"] }]
|
|
192
192
|
}], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: true }] }], closed: [{ type: i0.Output, args: ["closed"] }], snapPoints: [{ type: i0.Input, args: [{ isSignal: true, alias: "snapPoints", required: false }] }], sheetRef: [{ type: i0.ViewChild, args: ['sheet', { isSignal: true }] }] } });
|
|
193
193
|
|
|
194
194
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids-group-ltd-ids-design-system-components-bottom-sheet.mjs","sources":["../../../src/lib/components/bottom-sheet/bottom-sheet.component.ts","../../../src/lib/components/bottom-sheet/bottom-sheet.component.html","../../../src/lib/components/bottom-sheet/ids-group-ltd-ids-design-system-components-bottom-sheet.ts"],"sourcesContent":["import {\n Component,\n DOCUMENT,\n ElementRef,\n type OnDestroy,\n ViewEncapsulation,\n computed,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { BodyScrollLockService } from '@ids-group-ltd/ids-design-system/overlay';\nimport { backdropDismiss } from '@ids-group-ltd/ids-design-system/core';\nimport { DsStaticPreview } from '@ids-group-ltd/ids-design-system/components';\n\nlet nextId = 0;\n\n/** Bottom-anchored sheet, the mobile sibling of ds-drawer. Closes on scrim\n * tap, Escape, or a downward drag on the grab strip. While open it locks\n * body scroll. On wide viewports the panel is capped by\n * --ds-bottom-sheet-max-width and centred. position: fixed resolves against\n * the nearest ancestor containing block, so framed hosts contain the sheet. */\n@Component({\n selector: 'ds-bottom-sheet',\n standalone: true,\n imports: [A11yModule],\n templateUrl: './bottom-sheet.component.html',\n styleUrl: './bottom-sheet.component.scss',\n // Keeps a static `title` attribute from becoming a native tooltip on the host.\n host: { '[attr.title]': 'null' },\n encapsulation: ViewEncapsulation.Emulated,\n hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }],\n})\nexport class BottomSheetComponent implements OnDestroy {\n /** Open state, two-way bound. */\n readonly open = model<boolean>(false);\n /** Sheet title, shown in the header and used for `aria-labelledby`. */\n readonly title = input.required<string>();\n /** Fires once the close (leave) animation finishes. */\n readonly closed = output<void>();\n\n protected readonly titleId = `ds-bottom-sheet-title-${++nextId}`;\n /**\n * Snap-point heights as fractions of viewport height (0-1), ascending,\n * e.g. [0.4, 0.9]. The sheet opens at the first snap point; dragging snaps to the\n * nearest point; dragging below the lowest closes. Empty (default) means a single height.\n */\n readonly snapPoints = input<readonly number[]>([]);\n\n private readonly doc = inject(DOCUMENT);\n private readonly scrollLock = inject(BodyScrollLockService);\n protected readonly preview = inject(DsStaticPreview);\n private readonly sheetRef = viewChild<ElementRef<HTMLElement>>('sheet');\n\n protected readonly dragOffset = signal<number | null>(null);\n protected readonly rendered = signal(false);\n protected readonly closing = signal(false);\n protected readonly activeSnapIndex = signal(0);\n\n protected readonly snapHeight = computed(() => {\n const points = this.snapPoints();\n if (points.length === 0) {\n return null;\n }\n const index = Math.min(this.activeSnapIndex(), points.length - 1);\n\n return `${points[index] * 100}vh`;\n });\n\n private dragStartY = 0;\n private lastMoveY = 0;\n private lastMoveTime = 0;\n private velocity = 0;\n private wasOpen = false;\n private closeFallbackTimer: ReturnType<typeof setTimeout> | null = null;\n\n constructor() {\n effect(() => {\n if (this.preview.staticPreview()) {\n return;\n }\n const isOpen = this.open();\n if (isOpen) {\n this.closing.set(false);\n this.rendered.set(true);\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n if (this.snapPoints().length > 0) {\n this.activeSnapIndex.set(0);\n }\n } else if (this.wasOpen) {\n this.closing.set(true);\n // animationend is never delivered on a backgrounded tab (Chrome freezes CSS\n // animations) or for a 0s reduced-motion leave; this timer is the teardown.\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = setTimeout(() => this.finishClose(), 300);\n }\n this.wasOpen = isOpen;\n });\n\n // Ref-counted, so stacked overlays don't unlock each other.\n effect((onCleanup) => {\n if (this.preview.staticPreview() || !this.rendered()) {\n return;\n }\n this.scrollLock.lock();\n onCleanup(() => this.scrollLock.unlock());\n });\n }\n\n ngOnDestroy(): void {\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n }\n\n protected close(): void {\n if (this.preview.staticPreview()) {\n return;\n }\n this.dragOffset.set(null);\n this.open.set(false);\n }\n\n protected onLeaveEnd(event: AnimationEvent): void {\n // Host's OWN animationend only; matching the keyframes name would make the exit un-overridable.\n if (event.target !== event.currentTarget) {\n return;\n }\n this.finishClose();\n }\n\n private finishClose(): void {\n if (!this.closing()) {\n return;\n }\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n this.closing.set(false);\n this.rendered.set(false);\n this.closed.emit();\n }\n\n protected onEscape(): void {\n if (this.open()) {\n this.close();\n }\n }\n\n protected readonly backdropPress = backdropDismiss();\n\n protected onBackdropRelease(event: PointerEvent): void {\n if (this.backdropPress.shouldDismiss(event)) {\n this.close();\n }\n }\n\n protected onGrabStart(event: PointerEvent): void {\n if (this.preview.staticPreview()) {\n return;\n }\n (event.target as HTMLElement).setPointerCapture(event.pointerId);\n this.dragStartY = event.clientY;\n this.lastMoveY = event.clientY;\n this.lastMoveTime = event.timeStamp;\n this.velocity = 0;\n this.dragOffset.set(0);\n }\n\n protected onGrabMove(event: PointerEvent): void {\n if (this.dragOffset() === null) {\n return;\n }\n const deltaTime = event.timeStamp - this.lastMoveTime;\n if (deltaTime > 0) {\n this.velocity = (event.clientY - this.lastMoveY) / deltaTime;\n }\n this.lastMoveY = event.clientY;\n this.lastMoveTime = event.timeStamp;\n this.dragOffset.set(Math.max(0, event.clientY - this.dragStartY));\n }\n\n protected onGrabEnd(): void {\n const offset = this.dragOffset();\n if (offset === null) {\n return;\n }\n\n const points = this.snapPoints();\n\n if (points.length === 0) {\n const sheetHeight = this.sheetRef()?.nativeElement.offsetHeight ?? 0;\n const pastThreshold = sheetHeight > 0 && offset > sheetHeight * 0.3;\n const flicked = this.velocity > 0.5;\n if (pastThreshold || flicked) {\n this.close();\n } else {\n this.dragOffset.set(null);\n }\n\n return;\n }\n\n const viewportHeight =\n this.doc.defaultView?.innerHeight ?? window.innerHeight;\n const currentIndex = this.activeSnapIndex();\n const currentHeightPx = points[currentIndex] * viewportHeight;\n const targetHeightPx = currentHeightPx - offset;\n const flicked = this.velocity > 0.5;\n\n if (flicked || targetHeightPx < points[0] * viewportHeight * 0.7) {\n this.close();\n\n return;\n }\n\n let nearestIndex = 0;\n let smallestDelta = Infinity;\n for (let pointIndex = 0; pointIndex < points.length; pointIndex++) {\n const delta = Math.abs(\n points[pointIndex] * viewportHeight - targetHeightPx,\n );\n if (delta < smallestDelta) {\n smallestDelta = delta;\n nearestIndex = pointIndex;\n }\n }\n\n this.dragOffset.set(null);\n this.activeSnapIndex.set(nearestIndex);\n }\n}\n","@if (rendered() || preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- backdrop; keyboard dismissal is (keydown.escape) on this element, a backdrop isn't a tabbable control -->\n <div\n [class]=\"preview.staticPreview() ? 'sheet-static' : 'sheet-overlay'\"\n [class.closing]=\"closing()\"\n (pointerdown)=\"backdropPress.down($event)\"\n (pointerup)=\"onBackdropRelease($event)\"\n (keydown.escape)=\"onEscape()\">\n <div\n #sheet\n class=\"sheet\"\n role=\"dialog\"\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [attr.aria-modal]=\"preview.staticPreview() ? null : 'true'\"\n [attr.aria-labelledby]=\"title() ? titleId : null\"\n [class.dragging]=\"dragOffset() !== null\"\n [class.closing]=\"closing()\"\n [class.snapping]=\"snapPoints().length > 0 && dragOffset() === null\"\n [style.transform]=\"\n dragOffset() ? 'translateY(' + dragOffset() + 'px)' : null\n \"\n [style.height]=\"snapHeight()\"\n [style.maxHeight]=\"snapHeight() ? snapHeight() : null\"\n (animationend)=\"onLeaveEnd($event)\">\n <div\n class=\"grab\"\n (pointerdown)=\"onGrabStart($event)\"\n (pointermove)=\"onGrabMove($event)\"\n (pointerup)=\"onGrabEnd()\"\n (pointercancel)=\"onGrabEnd()\">\n <div class=\"sheet-handle\"></div>\n </div>\n\n @if (title()) {\n <h3\n class=\"sheet-title\"\n [id]=\"titleId\">\n {{ title() }}\n </h3>\n }\n\n <div class=\"sheet-body\">\n <ng-content />\n </div>\n\n <div class=\"sheet-actions\">\n <ng-content select=\"[actions]\" />\n </div>\n </div>\n </div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAoBA,IAAI,MAAM,GAAG,CAAC;AAEd;;;;AAI+E;MAYlE,oBAAoB,CAAA;;AAEtB,IAAA,IAAI,GAAG,KAAK,CAAU,KAAK,2EAAC;;AAE5B,IAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,2EAAU;;IAE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,EAAA,MAAA,EAAA,CAAA,cAAA,EAAA,yBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,cAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAQT,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAXhC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iBAAiB,EAAA,UAAA,EACf,IAAI,EAAA,OAAA,EACP,CAAC,UAAU,CAAC,EAAA,IAAA,EAIf,EAAE,cAAc,EAAE,MAAM,EAAE,EAAA,aAAA,EACjB,iBAAiB,CAAC,QAAQ,EAAA,cAAA,EACzB,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,CAAC,eAAe,CAAC,EAAE,CAAC,EAAA,QAAA,EAAA,+yDAAA,EAAA,MAAA,EAAA,CAAA,ilJAAA,CAAA,EAAA;idAqBZ,OAAO,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEzDxE;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ids-group-ltd-ids-design-system-components-bottom-sheet.mjs","sources":["../../../src/lib/components/bottom-sheet/bottom-sheet.component.ts","../../../src/lib/components/bottom-sheet/bottom-sheet.component.html","../../../src/lib/components/bottom-sheet/ids-group-ltd-ids-design-system-components-bottom-sheet.ts"],"sourcesContent":["import {\n Component,\n DOCUMENT,\n ElementRef,\n type OnDestroy,\n ViewEncapsulation,\n computed,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { BodyScrollLockService } from '@ids-group-ltd/ids-design-system/overlay';\nimport { backdropDismiss } from '@ids-group-ltd/ids-design-system/core';\nimport { DsStaticPreview } from '@ids-group-ltd/ids-design-system/components';\n\nlet nextId = 0;\n\n/** Bottom-anchored sheet, the mobile sibling of ds-drawer. Closes on scrim\n * tap, Escape, or a downward drag on the grab strip. While open it locks\n * body scroll. On wide viewports the panel is capped by\n * --ds-bottom-sheet-max-width and centred. position: fixed resolves against\n * the nearest ancestor containing block, so framed hosts contain the sheet. */\n@Component({\n selector: 'ds-bottom-sheet',\n standalone: true,\n imports: [A11yModule],\n templateUrl: './bottom-sheet.component.html',\n styleUrl: './bottom-sheet.component.scss',\n // Keeps a static `title` attribute from becoming a native tooltip on the host.\n host: { '[attr.title]': 'null' },\n encapsulation: ViewEncapsulation.Emulated,\n hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }],\n})\nexport class BottomSheetComponent implements OnDestroy {\n /** Open state, two-way bound. */\n readonly open = model<boolean>(false);\n /** Sheet title, shown in the header and used for `aria-labelledby`. */\n readonly title = input.required<string>();\n /** Fires once the close (leave) animation finishes. */\n readonly closed = output<void>();\n\n protected readonly titleId = `ds-bottom-sheet-title-${++nextId}`;\n /**\n * Snap-point heights as fractions of viewport height (0-1), ascending,\n * e.g. [0.4, 0.9]. The sheet opens at the first snap point; dragging snaps to the\n * nearest point; dragging below the lowest closes. Empty (default) means a single height.\n */\n readonly snapPoints = input<readonly number[]>([]);\n\n private readonly doc = inject(DOCUMENT);\n private readonly scrollLock = inject(BodyScrollLockService);\n protected readonly preview = inject(DsStaticPreview);\n private readonly sheetRef = viewChild<ElementRef<HTMLElement>>('sheet');\n\n protected readonly dragOffset = signal<number | null>(null);\n protected readonly rendered = signal(false);\n protected readonly closing = signal(false);\n protected readonly activeSnapIndex = signal(0);\n\n protected readonly snapHeight = computed(() => {\n const points = this.snapPoints();\n if (points.length === 0) {\n return null;\n }\n const index = Math.min(this.activeSnapIndex(), points.length - 1);\n\n return `${points[index] * 100}vh`;\n });\n\n private dragStartY = 0;\n private lastMoveY = 0;\n private lastMoveTime = 0;\n private velocity = 0;\n private wasOpen = false;\n private closeFallbackTimer: ReturnType<typeof setTimeout> | null = null;\n\n constructor() {\n effect(() => {\n if (this.preview.staticPreview()) {\n return;\n }\n const isOpen = this.open();\n if (isOpen) {\n this.closing.set(false);\n this.rendered.set(true);\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n if (this.snapPoints().length > 0) {\n this.activeSnapIndex.set(0);\n }\n } else if (this.wasOpen) {\n this.closing.set(true);\n // animationend is never delivered on a backgrounded tab (Chrome freezes CSS\n // animations) or for a 0s reduced-motion leave; this timer is the teardown.\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = setTimeout(() => this.finishClose(), 300);\n }\n this.wasOpen = isOpen;\n });\n\n // Ref-counted, so stacked overlays don't unlock each other.\n effect((onCleanup) => {\n if (this.preview.staticPreview() || !this.rendered()) {\n return;\n }\n this.scrollLock.lock();\n onCleanup(() => this.scrollLock.unlock());\n });\n }\n\n ngOnDestroy(): void {\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n }\n\n protected close(): void {\n if (this.preview.staticPreview()) {\n return;\n }\n this.dragOffset.set(null);\n this.open.set(false);\n }\n\n protected onLeaveEnd(event: AnimationEvent): void {\n // Host's OWN animationend only; matching the keyframes name would make the exit un-overridable.\n if (event.target !== event.currentTarget) {\n return;\n }\n this.finishClose();\n }\n\n private finishClose(): void {\n if (!this.closing()) {\n return;\n }\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n this.closing.set(false);\n this.rendered.set(false);\n this.closed.emit();\n }\n\n protected onEscape(): void {\n if (this.open()) {\n this.close();\n }\n }\n\n protected readonly backdropPress = backdropDismiss();\n\n protected onBackdropRelease(event: PointerEvent): void {\n if (this.backdropPress.shouldDismiss(event)) {\n this.close();\n }\n }\n\n protected onGrabStart(event: PointerEvent): void {\n if (this.preview.staticPreview()) {\n return;\n }\n (event.target as HTMLElement).setPointerCapture(event.pointerId);\n this.dragStartY = event.clientY;\n this.lastMoveY = event.clientY;\n this.lastMoveTime = event.timeStamp;\n this.velocity = 0;\n this.dragOffset.set(0);\n }\n\n protected onGrabMove(event: PointerEvent): void {\n if (this.dragOffset() === null) {\n return;\n }\n const deltaTime = event.timeStamp - this.lastMoveTime;\n if (deltaTime > 0) {\n this.velocity = (event.clientY - this.lastMoveY) / deltaTime;\n }\n this.lastMoveY = event.clientY;\n this.lastMoveTime = event.timeStamp;\n this.dragOffset.set(Math.max(0, event.clientY - this.dragStartY));\n }\n\n protected onGrabEnd(): void {\n const offset = this.dragOffset();\n if (offset === null) {\n return;\n }\n\n const points = this.snapPoints();\n\n if (points.length === 0) {\n const sheetHeight = this.sheetRef()?.nativeElement.offsetHeight ?? 0;\n const pastThreshold = sheetHeight > 0 && offset > sheetHeight * 0.3;\n const flicked = this.velocity > 0.5;\n if (pastThreshold || flicked) {\n this.close();\n } else {\n this.dragOffset.set(null);\n }\n\n return;\n }\n\n const viewportHeight =\n this.doc.defaultView?.innerHeight ?? window.innerHeight;\n const currentIndex = this.activeSnapIndex();\n const currentHeightPx = points[currentIndex] * viewportHeight;\n const targetHeightPx = currentHeightPx - offset;\n const flicked = this.velocity > 0.5;\n\n if (flicked || targetHeightPx < points[0] * viewportHeight * 0.7) {\n this.close();\n\n return;\n }\n\n let nearestIndex = 0;\n let smallestDelta = Infinity;\n for (let pointIndex = 0; pointIndex < points.length; pointIndex++) {\n const delta = Math.abs(\n points[pointIndex] * viewportHeight - targetHeightPx,\n );\n if (delta < smallestDelta) {\n smallestDelta = delta;\n nearestIndex = pointIndex;\n }\n }\n\n this.dragOffset.set(null);\n this.activeSnapIndex.set(nearestIndex);\n }\n}\n","@if (rendered() || preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- backdrop; keyboard dismissal is (keydown.escape) on this element, a backdrop isn't a tabbable control -->\n <div\n [class]=\"preview.staticPreview() ? 'sheet-static' : 'sheet-overlay'\"\n [class.closing]=\"closing()\"\n (pointerdown)=\"backdropPress.down($event)\"\n (pointerup)=\"onBackdropRelease($event)\"\n (keydown.escape)=\"onEscape()\">\n <div\n #sheet\n class=\"sheet\"\n role=\"dialog\"\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [attr.aria-modal]=\"preview.staticPreview() ? null : 'true'\"\n [attr.aria-labelledby]=\"title() ? titleId : null\"\n [class.dragging]=\"dragOffset() !== null\"\n [class.closing]=\"closing()\"\n [class.snapping]=\"snapPoints().length > 0 && dragOffset() === null\"\n [style.transform]=\"\n dragOffset() ? 'translateY(' + dragOffset() + 'px)' : null\n \"\n [style.height]=\"snapHeight()\"\n [style.maxHeight]=\"snapHeight() ? snapHeight() : null\"\n (animationend)=\"onLeaveEnd($event)\">\n <div\n class=\"grab\"\n (pointerdown)=\"onGrabStart($event)\"\n (pointermove)=\"onGrabMove($event)\"\n (pointerup)=\"onGrabEnd()\"\n (pointercancel)=\"onGrabEnd()\">\n <div class=\"sheet-handle\"></div>\n </div>\n\n @if (title()) {\n <h3\n class=\"sheet-title\"\n [id]=\"titleId\">\n {{ title() }}\n </h3>\n }\n\n <div class=\"sheet-body\">\n <ng-content />\n </div>\n\n <div class=\"sheet-actions\">\n <ng-content select=\"[actions]\" />\n </div>\n </div>\n </div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAoBA,IAAI,MAAM,GAAG,CAAC;AAEd;;;;AAI+E;MAYlE,oBAAoB,CAAA;;AAEtB,IAAA,IAAI,GAAG,KAAK,CAAU,KAAK,2EAAC;;AAE5B,IAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,2EAAU;;IAEhC,MAAM,GAAG,MAAM,EAAQ;AAEb,IAAA,OAAO,GAAG,CAAA,sBAAA,EAAyB,EAAE,MAAM,EAAE;AAChE;;;;AAIG;AACM,IAAA,UAAU,GAAG,KAAK,CAAoB,EAAE,iFAAC;AAEjC,IAAA,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC;AACtB,IAAA,UAAU,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACxC,IAAA,OAAO,GAAG,MAAM,CA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,EAIf,EAAE,cAAc,EAAE,MAAM,EAAE,EAAA,aAAA,EACjB,iBAAiB,CAAC,QAAQ,EAAA,cAAA,EACzB,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,CAAC,eAAe,CAAC,EAAE,CAAC,EAAA,QAAA,EAAA,+yDAAA,EAAA,MAAA,EAAA,CAAA,sjJAAA,CAAA,EAAA;idAqBZ,OAAO,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEzDxE;;AAEG;;;;"}
|
|
@@ -92,11 +92,11 @@ class BreadcrumbsComponent {
|
|
|
92
92
|
this.navigate.emit(item);
|
|
93
93
|
}
|
|
94
94
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: BreadcrumbsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
95
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: BreadcrumbsComponent, isStandalone: true, selector: "ds-breadcrumbs", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, separator: { classPropertyName: "separator", publicName: "separator", isSignal: true, isRequired: false, transformFunction: null }, clickable: { classPropertyName: "clickable", publicName: "clickable", isSignal: true, isRequired: false, transformFunction: null }, maxItems: { classPropertyName: "maxItems", publicName: "maxItems", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { navigate: "navigate" }, ngImport: i0, template: "<nav\n class=\"breadcrumbs\"\n [attr.aria-label]=\"intl().breadcrumbs.label\"\n [class.is-static]=\"!effectiveClickable()\">\n @for (item of resolvedItems(); track $index; let last = $last) {\n @if (\n item.href &&\n !last &&\n effectiveClickable()\n ) {\n <a\n [href]=\"item.href\"\n [attr.aria-label]=\"item.label ? null : (item.ariaLabel ?? null)\"\n (click)=\"onNav($event, item)\">\n @if (item.icon) {\n <ds-icon\n [name]=\"item.icon\"\n [size]=\"14\" />\n }\n\n @if (item.label) {\n <span\n class=\"label\"\n dsTooltipWhenClipped>\n {{ item.label }}\n </span>\n }\n </a>\n } @else {\n <span\n [class.current]=\"last\"\n [attr.aria-label]=\"item.label ? null : (item.ariaLabel ?? null)\"\n [attr.aria-current]=\"last ? 'page' : null\">\n @if (item.icon) {\n <ds-icon\n [name]=\"item.icon\"\n [size]=\"14\" />\n }\n\n @if (item.label) {\n <span\n class=\"label\"\n dsTooltipWhenClipped>\n {{ item.label }}\n </span>\n }\n </span>\n }\n\n @if (!last) {\n <span\n class=\"sep\"\n aria-hidden=\"true\">\n <ds-icon\n [name]=\"effectiveSeparator()\"\n [size]=\"12\" />\n </span>\n }\n }\n</nav>\n", styles: ["
|
|
95
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: BreadcrumbsComponent, isStandalone: true, selector: "ds-breadcrumbs", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, separator: { classPropertyName: "separator", publicName: "separator", isSignal: true, isRequired: false, transformFunction: null }, clickable: { classPropertyName: "clickable", publicName: "clickable", isSignal: true, isRequired: false, transformFunction: null }, maxItems: { classPropertyName: "maxItems", publicName: "maxItems", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { navigate: "navigate" }, ngImport: i0, template: "<nav\n class=\"breadcrumbs\"\n [attr.aria-label]=\"intl().breadcrumbs.label\"\n [class.is-static]=\"!effectiveClickable()\">\n @for (item of resolvedItems(); track $index; let last = $last) {\n @if (\n item.href &&\n !last &&\n effectiveClickable()\n ) {\n <a\n [href]=\"item.href\"\n [attr.aria-label]=\"item.label ? null : (item.ariaLabel ?? null)\"\n (click)=\"onNav($event, item)\">\n @if (item.icon) {\n <ds-icon\n [name]=\"item.icon\"\n [size]=\"14\" />\n }\n\n @if (item.label) {\n <span\n class=\"label\"\n dsTooltipWhenClipped>\n {{ item.label }}\n </span>\n }\n </a>\n } @else {\n <span\n [class.current]=\"last\"\n [attr.aria-label]=\"item.label ? null : (item.ariaLabel ?? null)\"\n [attr.aria-current]=\"last ? 'page' : null\">\n @if (item.icon) {\n <ds-icon\n [name]=\"item.icon\"\n [size]=\"14\" />\n }\n\n @if (item.label) {\n <span\n class=\"label\"\n dsTooltipWhenClipped>\n {{ item.label }}\n </span>\n }\n </span>\n }\n\n @if (!last) {\n <span\n class=\"sep\"\n aria-hidden=\"true\">\n <ds-icon\n [name]=\"effectiveSeparator()\"\n [size]=\"12\" />\n </span>\n }\n }\n</nav>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_breadcrumbs-label-color: var(--ds-breadcrumbs-label-color, var(--text-tertiary));--_breadcrumbs-label-color-hover: var(--ds-breadcrumbs-label-color-hover, var(--accent));--_breadcrumbs-bg-color-hover: var(--ds-breadcrumbs-bg-color-hover, transparent);--_breadcrumbs-padding: var(--ds-breadcrumbs-padding, 0);--_breadcrumbs-radius: var(--ds-breadcrumbs-radius, var(--radius-sm));--_breadcrumbs-separator-icon-color: var(--ds-breadcrumbs-separator-icon-color, var(--icon-muted));--_breadcrumbs-current-label-color: var(--ds-breadcrumbs-current-label-color, var(--text-primary));--_breadcrumbs-gap: var(--ds-breadcrumbs-gap, var(--space-2));--_breadcrumbs-font-size: var(--ds-breadcrumbs-font-size, var(--font-size-s));--_breadcrumbs-font-weight: var(--ds-breadcrumbs-font-weight, var(--font-weight-regular));--_breadcrumbs-current-label-font-weight: var(--ds-breadcrumbs-current-label-font-weight, var(--font-weight-bold));--_breadcrumbs-label-max-width: var(--ds-breadcrumbs-label-max-width, 16ch);--_breadcrumbs-current-label-max-width: var(--ds-breadcrumbs-current-label-max-width, 32ch);display:inline-flex;min-width:0;max-width:100%}.breadcrumbs{display:inline-flex;align-items:center;gap:var(--_breadcrumbs-gap);font:var(--_breadcrumbs-font-weight) var(--_breadcrumbs-font-size)/var(--line-height-flat) var(--font-sans);color:var(--_breadcrumbs-label-color);min-width:0;flex-wrap:nowrap;overflow:clip visible;--focus-ring-offset: var(--focus-ring-width);padding-inline:var(--space-1-5);margin-inline:calc(-1 * var(--space-1-5));max-width:calc(100% + 2 * var(--space-1-5));pointer-events:none}.breadcrumbs>*{pointer-events:auto}.breadcrumbs a,.breadcrumbs .current{display:inline-flex;align-items:center;gap:var(--space-1)}.breadcrumbs a,.breadcrumbs>span:not(.sep){padding:var(--_breadcrumbs-padding);border-radius:var(--_breadcrumbs-radius)}.breadcrumbs a{color:var(--_breadcrumbs-label-color);text-decoration:none;cursor:pointer;transition:color var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard)}.breadcrumbs a:hover{background-color:var(--_breadcrumbs-bg-color-hover);color:var(--_breadcrumbs-label-color-hover);text-decoration:underline;text-underline-offset:var(--breadcrumbs-link-uloff)}.breadcrumbs a:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.breadcrumbs a:not(:has(.label)){position:relative}.breadcrumbs a:not(:has(.label)):before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.breadcrumbs.is-static a,.breadcrumbs.is-static .current{cursor:default}.breadcrumbs .sep{color:var(--_breadcrumbs-separator-icon-color);display:inline-flex;align-items:center}.breadcrumbs .current{color:var(--_breadcrumbs-current-label-color);font-weight:var(--_breadcrumbs-current-label-font-weight)}.breadcrumbs .label{overflow:clip visible;text-overflow:ellipsis;white-space:nowrap;max-width:var(--_breadcrumbs-label-max-width)}.breadcrumbs .current .label{max-width:var(--_breadcrumbs-current-label-max-width)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "directive", type: TooltipDirective, selector: "[dsTooltip], [dsTooltipWhenClipped]", inputs: ["dsTooltip", "dsTooltipConfig", "dsTooltipPlacement", "dsTooltipDelay", "dsTooltipArrow", "dsTooltipWhenClipped", "dsTooltipPinOnClick"] }] });
|
|
96
96
|
}
|
|
97
97
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: BreadcrumbsComponent, decorators: [{
|
|
98
98
|
type: Component,
|
|
99
|
-
args: [{ selector: 'ds-breadcrumbs', standalone: true, imports: [IconComponent, TooltipDirective], encapsulation: ViewEncapsulation.Emulated, template: "<nav\n class=\"breadcrumbs\"\n [attr.aria-label]=\"intl().breadcrumbs.label\"\n [class.is-static]=\"!effectiveClickable()\">\n @for (item of resolvedItems(); track $index; let last = $last) {\n @if (\n item.href &&\n !last &&\n effectiveClickable()\n ) {\n <a\n [href]=\"item.href\"\n [attr.aria-label]=\"item.label ? null : (item.ariaLabel ?? null)\"\n (click)=\"onNav($event, item)\">\n @if (item.icon) {\n <ds-icon\n [name]=\"item.icon\"\n [size]=\"14\" />\n }\n\n @if (item.label) {\n <span\n class=\"label\"\n dsTooltipWhenClipped>\n {{ item.label }}\n </span>\n }\n </a>\n } @else {\n <span\n [class.current]=\"last\"\n [attr.aria-label]=\"item.label ? null : (item.ariaLabel ?? null)\"\n [attr.aria-current]=\"last ? 'page' : null\">\n @if (item.icon) {\n <ds-icon\n [name]=\"item.icon\"\n [size]=\"14\" />\n }\n\n @if (item.label) {\n <span\n class=\"label\"\n dsTooltipWhenClipped>\n {{ item.label }}\n </span>\n }\n </span>\n }\n\n @if (!last) {\n <span\n class=\"sep\"\n aria-hidden=\"true\">\n <ds-icon\n [name]=\"effectiveSeparator()\"\n [size]=\"12\" />\n </span>\n }\n }\n</nav>\n", styles: ["
|
|
99
|
+
args: [{ selector: 'ds-breadcrumbs', standalone: true, imports: [IconComponent, TooltipDirective], encapsulation: ViewEncapsulation.Emulated, template: "<nav\n class=\"breadcrumbs\"\n [attr.aria-label]=\"intl().breadcrumbs.label\"\n [class.is-static]=\"!effectiveClickable()\">\n @for (item of resolvedItems(); track $index; let last = $last) {\n @if (\n item.href &&\n !last &&\n effectiveClickable()\n ) {\n <a\n [href]=\"item.href\"\n [attr.aria-label]=\"item.label ? null : (item.ariaLabel ?? null)\"\n (click)=\"onNav($event, item)\">\n @if (item.icon) {\n <ds-icon\n [name]=\"item.icon\"\n [size]=\"14\" />\n }\n\n @if (item.label) {\n <span\n class=\"label\"\n dsTooltipWhenClipped>\n {{ item.label }}\n </span>\n }\n </a>\n } @else {\n <span\n [class.current]=\"last\"\n [attr.aria-label]=\"item.label ? null : (item.ariaLabel ?? null)\"\n [attr.aria-current]=\"last ? 'page' : null\">\n @if (item.icon) {\n <ds-icon\n [name]=\"item.icon\"\n [size]=\"14\" />\n }\n\n @if (item.label) {\n <span\n class=\"label\"\n dsTooltipWhenClipped>\n {{ item.label }}\n </span>\n }\n </span>\n }\n\n @if (!last) {\n <span\n class=\"sep\"\n aria-hidden=\"true\">\n <ds-icon\n [name]=\"effectiveSeparator()\"\n [size]=\"12\" />\n </span>\n }\n }\n</nav>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_breadcrumbs-label-color: var(--ds-breadcrumbs-label-color, var(--text-tertiary));--_breadcrumbs-label-color-hover: var(--ds-breadcrumbs-label-color-hover, var(--accent));--_breadcrumbs-bg-color-hover: var(--ds-breadcrumbs-bg-color-hover, transparent);--_breadcrumbs-padding: var(--ds-breadcrumbs-padding, 0);--_breadcrumbs-radius: var(--ds-breadcrumbs-radius, var(--radius-sm));--_breadcrumbs-separator-icon-color: var(--ds-breadcrumbs-separator-icon-color, var(--icon-muted));--_breadcrumbs-current-label-color: var(--ds-breadcrumbs-current-label-color, var(--text-primary));--_breadcrumbs-gap: var(--ds-breadcrumbs-gap, var(--space-2));--_breadcrumbs-font-size: var(--ds-breadcrumbs-font-size, var(--font-size-s));--_breadcrumbs-font-weight: var(--ds-breadcrumbs-font-weight, var(--font-weight-regular));--_breadcrumbs-current-label-font-weight: var(--ds-breadcrumbs-current-label-font-weight, var(--font-weight-bold));--_breadcrumbs-label-max-width: var(--ds-breadcrumbs-label-max-width, 16ch);--_breadcrumbs-current-label-max-width: var(--ds-breadcrumbs-current-label-max-width, 32ch);display:inline-flex;min-width:0;max-width:100%}.breadcrumbs{display:inline-flex;align-items:center;gap:var(--_breadcrumbs-gap);font:var(--_breadcrumbs-font-weight) var(--_breadcrumbs-font-size)/var(--line-height-flat) var(--font-sans);color:var(--_breadcrumbs-label-color);min-width:0;flex-wrap:nowrap;overflow:clip visible;--focus-ring-offset: var(--focus-ring-width);padding-inline:var(--space-1-5);margin-inline:calc(-1 * var(--space-1-5));max-width:calc(100% + 2 * var(--space-1-5));pointer-events:none}.breadcrumbs>*{pointer-events:auto}.breadcrumbs a,.breadcrumbs .current{display:inline-flex;align-items:center;gap:var(--space-1)}.breadcrumbs a,.breadcrumbs>span:not(.sep){padding:var(--_breadcrumbs-padding);border-radius:var(--_breadcrumbs-radius)}.breadcrumbs a{color:var(--_breadcrumbs-label-color);text-decoration:none;cursor:pointer;transition:color var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard)}.breadcrumbs a:hover{background-color:var(--_breadcrumbs-bg-color-hover);color:var(--_breadcrumbs-label-color-hover);text-decoration:underline;text-underline-offset:var(--breadcrumbs-link-uloff)}.breadcrumbs a:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.breadcrumbs a:not(:has(.label)){position:relative}.breadcrumbs a:not(:has(.label)):before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.breadcrumbs.is-static a,.breadcrumbs.is-static .current{cursor:default}.breadcrumbs .sep{color:var(--_breadcrumbs-separator-icon-color);display:inline-flex;align-items:center}.breadcrumbs .current{color:var(--_breadcrumbs-current-label-color);font-weight:var(--_breadcrumbs-current-label-font-weight)}.breadcrumbs .label{overflow:clip visible;text-overflow:ellipsis;white-space:nowrap;max-width:var(--_breadcrumbs-label-max-width)}.breadcrumbs .current .label{max-width:var(--_breadcrumbs-current-label-max-width)}\n"] }]
|
|
100
100
|
}], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], separator: [{ type: i0.Input, args: [{ isSignal: true, alias: "separator", required: false }] }], clickable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clickable", required: false }] }], maxItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxItems", required: false }] }], navigate: [{ type: i0.Output, args: ["navigate"] }] } });
|
|
101
101
|
|
|
102
102
|
/**
|