@ids-group-ltd/ids-design-system 0.15.2 → 0.15.3
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 +163 -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/{docs/agent → agent}/forms/ds-button.md +1 -1
- package/{docs/agent → agent}/forms/ds-time-picker.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 +19 -18
- package/design-system.md +2 -2
- package/eslint/deprecated-api.json +7 -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 -4
- 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 -2
- 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 -2
- 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 +2 -2
- 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 -2
- 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 -4
- 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 -2
- 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 -4
- 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 +2 -2
- 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 -2
- 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 -4
- 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 -2
- 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-switch.mjs +2 -2
- 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 -2
- 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 +80 -12
- 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 +67 -29
- 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 +21 -4
- 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.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/README.md +11 -11
- package/package.json +1 -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-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-table.d.ts +30 -9
- package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +26 -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 +14 -2
- package/types/ids-group-ltd-ids-design-system-core.d.ts +32 -7
- package/types/ids-group-ltd-ids-design-system.d.ts +3 -3
- package/docs/agent/charts/ds-chart.md +0 -10
- 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-autocomplete.md +0 -0
- /package/{docs/agent → agent}/forms/ds-button-group.md +0 -0
- /package/{docs/agent → agent}/forms/ds-checkbox.md +0 -0
- /package/{docs/agent → agent}/forms/ds-color-picker.md +0 -0
- /package/{docs/agent → agent}/forms/ds-date-picker.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-input.md +0 -0
- /package/{docs/agent → agent}/forms/ds-multi-select.md +0 -0
- /package/{docs/agent → agent}/forms/ds-number-stepper.md +0 -0
- /package/{docs/agent → agent}/forms/ds-otp-input.md +0 -0
- /package/{docs/agent → agent}/forms/ds-password-rules.md +0 -0
- /package/{docs/agent → agent}/forms/ds-radio-group.md +0 -0
- /package/{docs/agent → agent}/forms/ds-radio.md +0 -0
- /package/{docs/agent → agent}/forms/ds-search.md +0 -0
- /package/{docs/agent → agent}/forms/ds-segmented.md +0 -0
- /package/{docs/agent → agent}/forms/ds-select.md +0 -0
- /package/{docs/agent → agent}/forms/ds-slider.md +0 -0
- /package/{docs/agent → agent}/forms/ds-split-button.md +0 -0
- /package/{docs/agent → agent}/forms/ds-switch.md +0 -0
- /package/{docs/agent → agent}/forms/ds-textarea.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}/forms/the-picker-family-ds-select-ds-multi-select-ds-autocomplete.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,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, computed, TemplateRef, ViewEncapsulation, Component, InjectionToken, inject, ElementRef, DOCUMENT,
|
|
2
|
+
import { input, computed, TemplateRef, ViewEncapsulation, Component, booleanAttribute, InjectionToken, inject, ElementRef, DOCUMENT, afterNextRender, HostListener, Directive } from '@angular/core';
|
|
3
3
|
import { Overlay } from '@angular/cdk/overlay';
|
|
4
4
|
import { ComponentPortal } from '@angular/cdk/portal';
|
|
5
|
+
import { retainStyles, isTextClipped, DS_CONFIG } from '@ids-group-ltd/ids-design-system/core';
|
|
5
6
|
import { NgTemplateOutlet } from '@angular/common';
|
|
6
|
-
import { isTextClipped } from '@ids-group-ltd/ids-design-system/core';
|
|
7
7
|
import { listenForEscape, prepareOverlayEnter, closeOnScroll, overlayPlacementOf } from '@ids-group-ltd/ids-design-system/components';
|
|
8
8
|
|
|
9
9
|
const TOKEN = /(\\\*\\\*|\*\*)/;
|
|
@@ -65,6 +65,9 @@ class TooltipPanelComponent {
|
|
|
65
65
|
arrow = input(true, ...(ngDevMode ? [{ debugName: "arrow" }] : /* istanbul ignore next */ []));
|
|
66
66
|
/** Element `id`, referenced by the trigger's `aria-describedby`. */
|
|
67
67
|
panelId = input('', ...(ngDevMode ? [{ debugName: "panelId" }] : /* istanbul ignore next */ []));
|
|
68
|
+
constructor() {
|
|
69
|
+
retainStyles(TooltipPanelComponent);
|
|
70
|
+
}
|
|
68
71
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TooltipPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
69
72
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: TooltipPanelComponent, isStandalone: true, selector: "ds-tooltip-panel", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: true, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: true, transformFunction: null }, arrow: { classPropertyName: "arrow", publicName: "arrow", isSignal: true, isRequired: false, transformFunction: null }, panelId: { classPropertyName: "panelId", publicName: "panelId", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "tooltip" }, properties: { "attr.id": "panelId()", "class.top": "placement() === 'top'", "class.bottom": "placement() === 'bottom'", "class.left": "placement() === 'left'", "class.right": "placement() === 'right'", "class.no-arrow": "!arrow()" } }, ngImport: i0, template: `
|
|
70
73
|
@if (template(); as template) {
|
|
@@ -78,7 +81,7 @@ class TooltipPanelComponent {
|
|
|
78
81
|
<span [textContent]="segment.text"></span>
|
|
79
82
|
}
|
|
80
83
|
}
|
|
81
|
-
`, isInline: true, styles: ["
|
|
84
|
+
`, isInline: true, 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{--_tooltip-bg-color: var(--ds-tooltip-bg-color, var(--tooltip-bg-color));--_tooltip-text-color: var(--ds-tooltip-text-color, var(--tooltip-text-color));--_tooltip-border-color: var(--ds-tooltip-border-color, var(--tooltip-border-color));--_tooltip-radius: var(--ds-tooltip-radius, var(--ds-radius-control));--_tooltip-shadow: var(--ds-tooltip-shadow, var(--ds-elevation-overlay));--_tooltip-max-width: var(--ds-tooltip-max-width, var(--tooltip-maxw));--_tooltip-padding: var(--ds-tooltip-padding, var(--space-1-5) var(--space-2-5));--_tooltip-arrow-inset: calc(var(--_tooltip-radius) + var(--tooltip-arrow));--_tooltip-arrow-left: clamp(min(var(--_tooltip-arrow-inset), 50%), var(--_tooltip-arrow-x, 50%), max(100% - var(--_tooltip-arrow-inset), 50%));--_tooltip-arrow-top: clamp(min(var(--_tooltip-arrow-inset), 50%), var(--_tooltip-arrow-y, 50%), max(100% - var(--_tooltip-arrow-inset), 50%));display:block;position:relative;background:var(--_tooltip-bg-color);color:var(--_tooltip-text-color);border:var(--border-width-default) solid var(--_tooltip-border-color);font:var(--font-weight-medium) var(--font-size-xs)/var(--line-height-base) var(--font-sans);padding:var(--_tooltip-padding);border-radius:var(--_tooltip-radius);max-width:var(--_tooltip-max-width);overflow-wrap:anywhere;white-space:pre-line;z-index:var(--layer-tooltip);box-shadow:var(--_tooltip-shadow)}:host strong{font-weight:var(--font-weight-bold)}:host:after{content:\"\";box-sizing:border-box;position:absolute;width:var(--space-2);height:var(--space-2);background:var(--_tooltip-bg-color);border:0 solid var(--_tooltip-border-color);transform:rotate(45deg)}:host(.no-arrow):after{display:none}:host(.bottom):after{top:calc(var(--tooltip-arrow) / -2 - var(--border-width-default));left:var(--_tooltip-arrow-left);margin-left:calc(var(--tooltip-arrow) / -2);border-top-width:var(--border-width-default);border-left-width:var(--border-width-default)}:host(.top):after{bottom:calc(var(--tooltip-arrow) / -2 - var(--border-width-default));left:var(--_tooltip-arrow-left);margin-left:calc(var(--tooltip-arrow) / -2);border-bottom-width:var(--border-width-default);border-right-width:var(--border-width-default)}:host(.left):after{right:calc(var(--tooltip-arrow) / -2 - var(--border-width-default));top:var(--_tooltip-arrow-top);margin-top:calc(var(--tooltip-arrow) / -2);border-top-width:var(--border-width-default);border-right-width:var(--border-width-default)}:host(.right):after{left:calc(var(--tooltip-arrow) / -2 - var(--border-width-default));top:var(--_tooltip-arrow-top);margin-top:calc(var(--tooltip-arrow) / -2);border-bottom-width:var(--border-width-default);border-left-width:var(--border-width-default)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
82
85
|
}
|
|
83
86
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TooltipPanelComponent, decorators: [{
|
|
84
87
|
type: Component,
|
|
@@ -102,8 +105,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
102
105
|
'[class.left]': "placement() === 'left'",
|
|
103
106
|
'[class.right]': "placement() === 'right'",
|
|
104
107
|
'[class.no-arrow]': '!arrow()',
|
|
105
|
-
}, encapsulation: ViewEncapsulation.Emulated, styles: ["
|
|
106
|
-
}], propDecorators: { text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: true }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: true }] }], arrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "arrow", required: false }] }], panelId: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelId", required: false }] }] } });
|
|
108
|
+
}, encapsulation: ViewEncapsulation.Emulated, 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{--_tooltip-bg-color: var(--ds-tooltip-bg-color, var(--tooltip-bg-color));--_tooltip-text-color: var(--ds-tooltip-text-color, var(--tooltip-text-color));--_tooltip-border-color: var(--ds-tooltip-border-color, var(--tooltip-border-color));--_tooltip-radius: var(--ds-tooltip-radius, var(--ds-radius-control));--_tooltip-shadow: var(--ds-tooltip-shadow, var(--ds-elevation-overlay));--_tooltip-max-width: var(--ds-tooltip-max-width, var(--tooltip-maxw));--_tooltip-padding: var(--ds-tooltip-padding, var(--space-1-5) var(--space-2-5));--_tooltip-arrow-inset: calc(var(--_tooltip-radius) + var(--tooltip-arrow));--_tooltip-arrow-left: clamp(min(var(--_tooltip-arrow-inset), 50%), var(--_tooltip-arrow-x, 50%), max(100% - var(--_tooltip-arrow-inset), 50%));--_tooltip-arrow-top: clamp(min(var(--_tooltip-arrow-inset), 50%), var(--_tooltip-arrow-y, 50%), max(100% - var(--_tooltip-arrow-inset), 50%));display:block;position:relative;background:var(--_tooltip-bg-color);color:var(--_tooltip-text-color);border:var(--border-width-default) solid var(--_tooltip-border-color);font:var(--font-weight-medium) var(--font-size-xs)/var(--line-height-base) var(--font-sans);padding:var(--_tooltip-padding);border-radius:var(--_tooltip-radius);max-width:var(--_tooltip-max-width);overflow-wrap:anywhere;white-space:pre-line;z-index:var(--layer-tooltip);box-shadow:var(--_tooltip-shadow)}:host strong{font-weight:var(--font-weight-bold)}:host:after{content:\"\";box-sizing:border-box;position:absolute;width:var(--space-2);height:var(--space-2);background:var(--_tooltip-bg-color);border:0 solid var(--_tooltip-border-color);transform:rotate(45deg)}:host(.no-arrow):after{display:none}:host(.bottom):after{top:calc(var(--tooltip-arrow) / -2 - var(--border-width-default));left:var(--_tooltip-arrow-left);margin-left:calc(var(--tooltip-arrow) / -2);border-top-width:var(--border-width-default);border-left-width:var(--border-width-default)}:host(.top):after{bottom:calc(var(--tooltip-arrow) / -2 - var(--border-width-default));left:var(--_tooltip-arrow-left);margin-left:calc(var(--tooltip-arrow) / -2);border-bottom-width:var(--border-width-default);border-right-width:var(--border-width-default)}:host(.left):after{right:calc(var(--tooltip-arrow) / -2 - var(--border-width-default));top:var(--_tooltip-arrow-top);margin-top:calc(var(--tooltip-arrow) / -2);border-top-width:var(--border-width-default);border-right-width:var(--border-width-default)}:host(.right):after{left:calc(var(--tooltip-arrow) / -2 - var(--border-width-default));top:var(--_tooltip-arrow-top);margin-top:calc(var(--tooltip-arrow) / -2);border-bottom-width:var(--border-width-default);border-left-width:var(--border-width-default)}\n"] }]
|
|
109
|
+
}], ctorParameters: () => [], propDecorators: { text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: true }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: true }] }], arrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "arrow", required: false }] }], panelId: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelId", required: false }] }] } });
|
|
107
110
|
|
|
108
111
|
const NATIVELY_FOCUSABLE = 'a[href], button, input, select, textarea, summary';
|
|
109
112
|
const FOCUSABLE = `${NATIVELY_FOCUSABLE}, [tabindex]`;
|
|
@@ -260,7 +263,19 @@ function clipElement(host, target) {
|
|
|
260
263
|
}
|
|
261
264
|
function isHostClipped(host, target) {
|
|
262
265
|
const element = clipElement(host, target);
|
|
263
|
-
|
|
266
|
+
if (element === null) {
|
|
267
|
+
return false;
|
|
268
|
+
}
|
|
269
|
+
return isTextClipped(element) || isClippedByLines(element);
|
|
270
|
+
}
|
|
271
|
+
// A line clamp hides whole lines, so the block never overflows its width. Only hidden overflow
|
|
272
|
+
// counts: text in a scroll box can still be reached. The pixel absorbs sub-pixel line heights.
|
|
273
|
+
function isClippedByLines(element) {
|
|
274
|
+
if (element.scrollHeight <= element.clientHeight + 1) {
|
|
275
|
+
return false;
|
|
276
|
+
}
|
|
277
|
+
const overflow = getComputedStyle(element).overflowY;
|
|
278
|
+
return overflow === 'hidden' || overflow === 'clip';
|
|
264
279
|
}
|
|
265
280
|
function ownTextOf(element) {
|
|
266
281
|
return (element?.textContent ?? '').trim();
|
|
@@ -333,6 +348,7 @@ function pointArrowAtHost(ref, panel, host) {
|
|
|
333
348
|
ref.detachments().subscribe({ complete: () => observer.disconnect() });
|
|
334
349
|
}
|
|
335
350
|
|
|
351
|
+
const toOptionalBoolean = (value) => value == null ? null : booleanAttribute(value);
|
|
336
352
|
const PINNED_ATTRIBUTE = 'data-ds-tooltip-pinned';
|
|
337
353
|
let nextId = 0;
|
|
338
354
|
/** @internal Lets a component that hosts the tooltip make a clipped host lead the tip with its own text. */
|
|
@@ -343,6 +359,7 @@ class TooltipDirective {
|
|
|
343
359
|
overlay = inject(Overlay);
|
|
344
360
|
host = inject((ElementRef));
|
|
345
361
|
document = inject(DOCUMENT);
|
|
362
|
+
config = inject(DS_CONFIG);
|
|
346
363
|
hostPinOnClick = inject(TOOLTIP_PIN_ON_CLICK, {
|
|
347
364
|
self: true,
|
|
348
365
|
optional: true,
|
|
@@ -352,13 +369,20 @@ class TooltipDirective {
|
|
|
352
369
|
/** Tip text, or a template the panel renders as given. An empty string turns the tooltip off.
|
|
353
370
|
* Keep a template's content non-interactive: the panel is `role="tooltip"` and never takes focus. */
|
|
354
371
|
dsTooltip = input('', ...(ngDevMode ? [{ debugName: "dsTooltip" }] : /* istanbul ignore next */ []));
|
|
355
|
-
/**
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
/**
|
|
372
|
+
/** Placement, delay, arrow, pin-on-click and the clipped test for this tip. An unset field falls
|
|
373
|
+
* back to `DsConfig.tooltip`, then the built-in default. */
|
|
374
|
+
dsTooltipConfig = input(null, ...(ngDevMode ? [{ debugName: "dsTooltipConfig" }] : /* istanbul ignore next */ []));
|
|
375
|
+
/** Which side the tip opens on. Wins over `dsTooltipConfig.placement`.
|
|
376
|
+
* @deprecated Use `[dsTooltipConfig]="{ placement }"`, or `provideDsConfig({ tooltip: { placement } })` app-wide. */
|
|
377
|
+
dsTooltipPlacement = input(null, ...(ngDevMode ? [{ debugName: "dsTooltipPlacement" }] : /* istanbul ignore next */ []));
|
|
378
|
+
/** Milliseconds before the tip appears. Wins over `dsTooltipConfig.delay`.
|
|
379
|
+
* @deprecated Use `[dsTooltipConfig]="{ delay }"`, or `provideDsConfig({ tooltip: { delay } })` app-wide. */
|
|
380
|
+
dsTooltipDelay = input(null, ...(ngDevMode ? [{ debugName: "dsTooltipDelay" }] : /* istanbul ignore next */ []));
|
|
381
|
+
/** Draws the arrow that points at the host. Wins over `dsTooltipConfig.arrow`.
|
|
382
|
+
* @deprecated Use `[dsTooltipConfig]="{ arrow }"`, or `provideDsConfig({ tooltip: { arrow } })` app-wide. */
|
|
383
|
+
dsTooltipArrow = input(null, { ...(ngDevMode ? { debugName: "dsTooltipArrow" } : /* istanbul ignore next */ {}), transform: toOptionalBoolean });
|
|
384
|
+
/** Show the tip only while the host shows less text than it holds: cut by width, or by lines
|
|
385
|
+
* under `overflow: hidden` or `clip`, as with `line-clamp`. Re-tested on every open.
|
|
362
386
|
* A boolean or the bare attribute tests the host. A selector tests the element it matches inside
|
|
363
387
|
* the host and discloses that element's text; while nothing matches, no clipped tip opens.
|
|
364
388
|
*
|
|
@@ -371,19 +395,33 @@ class TooltipDirective {
|
|
|
371
395
|
dsTooltipWhenClipped = input(null, { ...(ngDevMode ? { debugName: "dsTooltipWhenClipped" } : /* istanbul ignore next */ {}), transform: toClipTarget });
|
|
372
396
|
/** Opens the tip with no delay, and a click on the host keeps it open after the pointer leaves
|
|
373
397
|
* until a click outside, `Escape` or blur; a second click closes it. Without it a click closes the tip.
|
|
374
|
-
* While pinned the host carries `data-ds-tooltip-pinned`, a hook for styling the pinned trigger.
|
|
375
|
-
|
|
398
|
+
* While pinned the host carries `data-ds-tooltip-pinned`, a hook for styling the pinned trigger.
|
|
399
|
+
* Wins over `dsTooltipConfig.pinOnClick`.
|
|
400
|
+
* @deprecated Use `[dsTooltipConfig]="{ pinOnClick: true }"`, or `provideDsConfig({ tooltip: { pinOnClick } })` app-wide. */
|
|
401
|
+
dsTooltipPinOnClick = input(null, { ...(ngDevMode ? { debugName: "dsTooltipPinOnClick" } : /* istanbul ignore next */ {}), transform: toOptionalBoolean });
|
|
402
|
+
placement = this.resolve(this.dsTooltipPlacement, 'placement', 'top');
|
|
403
|
+
delay = this.resolve(this.dsTooltipDelay, 'delay', 120);
|
|
404
|
+
arrow = this.resolve(this.dsTooltipArrow, 'arrow', true);
|
|
405
|
+
pinOnClick = this.resolve(this.dsTooltipPinOnClick, 'pinOnClick', false);
|
|
406
|
+
whenClipped = computed(() => this.dsTooltipWhenClipped() ??
|
|
407
|
+
toClipTarget(this.dsTooltipConfig()?.whenClipped), ...(ngDevMode ? [{ debugName: "whenClipped" }] : /* istanbul ignore next */ []));
|
|
408
|
+
resolve(deprecatedInput, key, fallback) {
|
|
409
|
+
return computed(() => deprecatedInput() ??
|
|
410
|
+
this.dsTooltipConfig()?.[key] ??
|
|
411
|
+
this.config.tooltip?.[key] ??
|
|
412
|
+
fallback);
|
|
413
|
+
}
|
|
376
414
|
isClipped() {
|
|
377
|
-
return isHostClipped(this.hostElement, this.
|
|
415
|
+
return isHostClipped(this.hostElement, this.whenClipped());
|
|
378
416
|
}
|
|
379
417
|
get hostElement() {
|
|
380
418
|
return this.host.nativeElement;
|
|
381
419
|
}
|
|
382
420
|
pinsOnClick() {
|
|
383
|
-
return this.hostPinOnClick?.() ?? this.
|
|
421
|
+
return this.hostPinOnClick?.() ?? this.pinOnClick();
|
|
384
422
|
}
|
|
385
423
|
ownText() {
|
|
386
|
-
return ownTextOf(clipElement(this.hostElement, this.
|
|
424
|
+
return ownTextOf(clipElement(this.hostElement, this.whenClipped()));
|
|
387
425
|
}
|
|
388
426
|
/** A host that leads with its own text puts it, in bold, above the tip while it is clipped, unless the tip already says it. */
|
|
389
427
|
tipContent() {
|
|
@@ -393,7 +431,7 @@ class TooltipDirective {
|
|
|
393
431
|
}
|
|
394
432
|
const own = this.ownText();
|
|
395
433
|
if (!given) {
|
|
396
|
-
return this.
|
|
434
|
+
return this.whenClipped() ? escapeTooltipMarkup(own) : '';
|
|
397
435
|
}
|
|
398
436
|
if (this.leadsWithOwnText &&
|
|
399
437
|
own &&
|
|
@@ -406,7 +444,7 @@ ${given}`;
|
|
|
406
444
|
}
|
|
407
445
|
/** A clipped host's full text is already in the DOM; describing it again would announce it twice. */
|
|
408
446
|
disclosesOwnText(text) {
|
|
409
|
-
if (!this.
|
|
447
|
+
if (!this.whenClipped()) {
|
|
410
448
|
return false;
|
|
411
449
|
}
|
|
412
450
|
return textContains(this.ownText(), plainTooltipText(text));
|
|
@@ -441,7 +479,7 @@ ${given}`;
|
|
|
441
479
|
};
|
|
442
480
|
constructor() {
|
|
443
481
|
afterNextRender(() => {
|
|
444
|
-
if (this.
|
|
482
|
+
if (this.whenClipped()) {
|
|
445
483
|
this.detachAncestor =
|
|
446
484
|
watchFocusableAncestor(this.ancestorFocusTrigger) ??
|
|
447
485
|
tabStopWhileClipped(this.ancestorFocusTrigger);
|
|
@@ -454,7 +492,7 @@ ${given}`;
|
|
|
454
492
|
// Same rule as via a focusable ancestor: keyboard focus opens, a click's focus does not.
|
|
455
493
|
onFocusIn(event) {
|
|
456
494
|
const host = this.hostElement;
|
|
457
|
-
if (this.
|
|
495
|
+
if (this.whenClipped() &&
|
|
458
496
|
host.matches(FOCUSABLE) &&
|
|
459
497
|
(event.target !== host || !host.matches(':focus-visible'))) {
|
|
460
498
|
return;
|
|
@@ -475,13 +513,13 @@ ${given}`;
|
|
|
475
513
|
if (this.pinsOnClick() && this.ref?.hasAttached()) {
|
|
476
514
|
return;
|
|
477
515
|
}
|
|
478
|
-
if (this.
|
|
516
|
+
if (this.whenClipped() && !this.isClipped()) {
|
|
479
517
|
return;
|
|
480
518
|
}
|
|
481
519
|
if (this.timer !== null) {
|
|
482
520
|
clearTimeout(this.timer);
|
|
483
521
|
}
|
|
484
|
-
this.timer = window.setTimeout(() => this.show(), this.pinsOnClick() ? 0 : this.
|
|
522
|
+
this.timer = window.setTimeout(() => this.show(), this.pinsOnClick() ? 0 : this.delay());
|
|
485
523
|
}
|
|
486
524
|
onPointerLeave() {
|
|
487
525
|
if (!this.unpin) {
|
|
@@ -553,7 +591,7 @@ ${given}`;
|
|
|
553
591
|
}
|
|
554
592
|
}
|
|
555
593
|
onKeydown() {
|
|
556
|
-
if (this.
|
|
594
|
+
if (this.whenClipped()) {
|
|
557
595
|
this.onClose();
|
|
558
596
|
}
|
|
559
597
|
}
|
|
@@ -565,7 +603,7 @@ ${given}`;
|
|
|
565
603
|
show() {
|
|
566
604
|
// show() can be re-entered with a panel open: dispose it first to avoid a leaked OverlayRef and a duplicate id.
|
|
567
605
|
this.disposeRef();
|
|
568
|
-
const placement = this.
|
|
606
|
+
const placement = this.placement();
|
|
569
607
|
const positionStrategy = this.overlay
|
|
570
608
|
.position()
|
|
571
609
|
.flexibleConnectedTo(this.host)
|
|
@@ -584,7 +622,7 @@ ${given}`;
|
|
|
584
622
|
const tip = this.tipContent();
|
|
585
623
|
cmpRef.setInput('text', tip);
|
|
586
624
|
cmpRef.setInput('placement', placement);
|
|
587
|
-
cmpRef.setInput('arrow', this.
|
|
625
|
+
cmpRef.setInput('arrow', this.arrow());
|
|
588
626
|
positionStrategy.positionChanges.subscribe(({ connectionPair }) => cmpRef.setInput('placement', overlayPlacementOf(connectionPair.overlayY, connectionPair.overlayX)));
|
|
589
627
|
cmpRef.setInput('panelId', this.tipId);
|
|
590
628
|
pointArrowAtHost(this.ref, cmpRef.location.nativeElement, this.hostElement);
|
|
@@ -602,7 +640,7 @@ ${given}`;
|
|
|
602
640
|
this.onClose();
|
|
603
641
|
}
|
|
604
642
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TooltipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
605
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: TooltipDirective, isStandalone: true, selector: "[dsTooltip], [dsTooltipWhenClipped]", inputs: { dsTooltip: { classPropertyName: "dsTooltip", publicName: "dsTooltip", isSignal: true, isRequired: false, transformFunction: null }, dsTooltipPlacement: { classPropertyName: "dsTooltipPlacement", publicName: "dsTooltipPlacement", isSignal: true, isRequired: false, transformFunction: null }, dsTooltipDelay: { classPropertyName: "dsTooltipDelay", publicName: "dsTooltipDelay", isSignal: true, isRequired: false, transformFunction: null }, dsTooltipArrow: { classPropertyName: "dsTooltipArrow", publicName: "dsTooltipArrow", isSignal: true, isRequired: false, transformFunction: null }, dsTooltipWhenClipped: { classPropertyName: "dsTooltipWhenClipped", publicName: "dsTooltipWhenClipped", isSignal: true, isRequired: false, transformFunction: null }, dsTooltipPinOnClick: { classPropertyName: "dsTooltipPinOnClick", publicName: "dsTooltipPinOnClick", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "mouseenter": "onPointerEnter()", "focusin": "onFocusIn($event)", "focusout": "onFocusOut()", "mouseleave": "onPointerLeave()", "click": "onClick()", "keydown": "onKeydown()", "keydown.escape": "onEscape()" } }, ngImport: i0 });
|
|
643
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: TooltipDirective, isStandalone: true, selector: "[dsTooltip], [dsTooltipWhenClipped]", inputs: { dsTooltip: { classPropertyName: "dsTooltip", publicName: "dsTooltip", isSignal: true, isRequired: false, transformFunction: null }, dsTooltipConfig: { classPropertyName: "dsTooltipConfig", publicName: "dsTooltipConfig", isSignal: true, isRequired: false, transformFunction: null }, dsTooltipPlacement: { classPropertyName: "dsTooltipPlacement", publicName: "dsTooltipPlacement", isSignal: true, isRequired: false, transformFunction: null }, dsTooltipDelay: { classPropertyName: "dsTooltipDelay", publicName: "dsTooltipDelay", isSignal: true, isRequired: false, transformFunction: null }, dsTooltipArrow: { classPropertyName: "dsTooltipArrow", publicName: "dsTooltipArrow", isSignal: true, isRequired: false, transformFunction: null }, dsTooltipWhenClipped: { classPropertyName: "dsTooltipWhenClipped", publicName: "dsTooltipWhenClipped", isSignal: true, isRequired: false, transformFunction: null }, dsTooltipPinOnClick: { classPropertyName: "dsTooltipPinOnClick", publicName: "dsTooltipPinOnClick", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "mouseenter": "onPointerEnter()", "focusin": "onFocusIn($event)", "focusout": "onFocusOut()", "mouseleave": "onPointerLeave()", "click": "onClick()", "keydown": "onKeydown()", "keydown.escape": "onEscape()" } }, ngImport: i0 });
|
|
606
644
|
}
|
|
607
645
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TooltipDirective, decorators: [{
|
|
608
646
|
type: Directive,
|
|
@@ -610,7 +648,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
610
648
|
selector: '[dsTooltip], [dsTooltipWhenClipped]',
|
|
611
649
|
standalone: true,
|
|
612
650
|
}]
|
|
613
|
-
}], ctorParameters: () => [], propDecorators: { dsTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsTooltip", required: false }] }], dsTooltipPlacement: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsTooltipPlacement", required: false }] }], dsTooltipDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsTooltipDelay", required: false }] }], dsTooltipArrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsTooltipArrow", required: false }] }], dsTooltipWhenClipped: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsTooltipWhenClipped", required: false }] }], dsTooltipPinOnClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsTooltipPinOnClick", required: false }] }], onPointerEnter: [{
|
|
651
|
+
}], ctorParameters: () => [], propDecorators: { dsTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsTooltip", required: false }] }], dsTooltipConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsTooltipConfig", required: false }] }], dsTooltipPlacement: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsTooltipPlacement", required: false }] }], dsTooltipDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsTooltipDelay", required: false }] }], dsTooltipArrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsTooltipArrow", required: false }] }], dsTooltipWhenClipped: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsTooltipWhenClipped", required: false }] }], dsTooltipPinOnClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsTooltipPinOnClick", required: false }] }], onPointerEnter: [{
|
|
614
652
|
type: HostListener,
|
|
615
653
|
args: ['mouseenter']
|
|
616
654
|
}], onFocusIn: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids-group-ltd-ids-design-system-components-tooltip.mjs","sources":["../../../src/lib/components/tooltip/tooltip-markup.ts","../../../src/lib/components/tooltip/tooltip-panel.component.ts","../../../src/lib/components/tooltip/tooltip-ancestor-focus.ts","../../../src/lib/components/tooltip/tooltip-clip.ts","../../../src/lib/components/tooltip/tooltip-position.ts","../../../src/lib/components/tooltip/tooltip.directive.ts","../../../src/lib/components/tooltip/ids-group-ltd-ids-design-system-components-tooltip.ts"],"sourcesContent":["export interface TooltipSegment {\n text: string;\n bold: boolean;\n}\n\nconst TOKEN = /(\\\\\\*\\\\\\*|\\*\\*)/;\nconst ESCAPED = '\\\\*\\\\*';\nconst BOLD = '**';\n\n/** Splits tip text on `**` into plain and bold runs. `\\*\\*` is a literal `**`; an unpaired `**` is literal too. */\nexport function parseTooltipMarkup(text: string): TooltipSegment[] {\n const tokens = text.split(TOKEN);\n const markerCount = tokens.filter((token) => token === BOLD).length;\n const pairedMarkers = markerCount - (markerCount % 2);\n const segments: TooltipSegment[] = [];\n let bold = false;\n let seen = 0;\n for (const token of tokens) {\n let piece = token;\n if (token === ESCAPED) {\n piece = BOLD;\n } else if (token === BOLD && seen++ < pairedMarkers) {\n bold = !bold;\n continue;\n }\n if (!piece) {\n continue;\n }\n const last = segments[segments.length - 1];\n if (last?.bold === bold) {\n last.text += piece;\n } else {\n segments.push({ text: piece, bold });\n }\n }\n\n return segments;\n}\n\nexport function escapeTooltipMarkup(text: string): string {\n return text.replaceAll(BOLD, ESCAPED);\n}\n\nexport function plainTooltipText(text: string): string {\n return parseTooltipMarkup(text)\n .map((segment) => segment.text)\n .join('');\n}\n","import {\n Component,\n TemplateRef,\n ViewEncapsulation,\n computed,\n input,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { parseTooltipMarkup } from './tooltip-markup';\nimport type { TooltipPlacement } from './tooltip.types';\n\n@Component({\n selector: 'ds-tooltip-panel',\n standalone: true,\n imports: [NgTemplateOutlet],\n template: `\n @if (template(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" />\n }\n\n @for (segment of segments(); track $index) {\n @if (segment.bold) {\n <strong [textContent]=\"segment.text\"></strong>\n } @else {\n <span [textContent]=\"segment.text\"></span>\n }\n }\n `,\n styleUrl: './tooltip-panel.component.scss',\n host: {\n role: 'tooltip',\n '[attr.id]': 'panelId()',\n '[class.top]': \"placement() === 'top'\",\n '[class.bottom]': \"placement() === 'bottom'\",\n '[class.left]': \"placement() === 'left'\",\n '[class.right]': \"placement() === 'right'\",\n '[class.no-arrow]': '!arrow()',\n },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class TooltipPanelComponent {\n /** Tooltip text, where `**bold**` runs render bold; or a template, rendered as given. */\n readonly text = input.required<string | TemplateRef<unknown>>();\n protected readonly template = computed(() => {\n const text = this.text();\n\n return text instanceof TemplateRef ? text : null;\n });\n protected readonly segments = computed(() => {\n const text = this.text();\n\n return typeof text === 'string' ? parseTooltipMarkup(text) : [];\n });\n /** Side of the trigger the panel is positioned on; also drives the arrow class. */\n readonly placement = input.required<TooltipPlacement>();\n /** Whether the arrow pointing at the trigger is drawn. */\n readonly arrow = input(true);\n /** Element `id`, referenced by the trigger's `aria-describedby`. */\n readonly panelId = input<string>('');\n}\n","const NATIVELY_FOCUSABLE = 'a[href], button, input, select, textarea, summary';\nexport const FOCUSABLE = `${NATIVELY_FOCUSABLE}, [tabindex]`;\nconst KEYBOARD_FOCUSABLE = `${NATIVELY_FOCUSABLE}, [tabindex]:not([tabindex^=\"-\"])`;\nconst WIDGET_ROLES = [\n 'button',\n 'link',\n 'tab',\n 'option',\n 'menuitem',\n 'menuitemcheckbox',\n 'menuitemradio',\n 'row',\n 'gridcell',\n 'combobox',\n 'checkbox',\n 'radio',\n 'switch',\n 'treeitem',\n]\n .map((role) => `[role=\"${role}\"]`)\n .join(', ');\nconst INTERACTIVE = `${NATIVELY_FOCUSABLE}, tr:not([role]), ${WIDGET_ROLES}`;\n// A widget role owns its focus (a listbox moves it by `aria-activedescendant`), and a hidden subtree must hold no tab stop.\nconst REACHED_OR_HIDDEN = `${NATIVELY_FOCUSABLE}, tr[tabindex]:not([role]), ${WIDGET_ROLES}, [aria-hidden=\"true\"], [inert]`;\n\nexport interface AncestorFocusTrigger {\n readonly host: HTMLElement;\n isClipped(): boolean;\n openFor(ancestor: HTMLElement): void;\n close(): void;\n}\n\nconst clippedHostsByAncestor = new WeakMap<\n HTMLElement,\n Set<AncestorFocusTrigger>\n>();\n\nfunction firstClippedHost(\n triggers: Set<AncestorFocusTrigger>,\n): AncestorFocusTrigger | undefined {\n return [...triggers]\n .sort((a, b) =>\n a.host.compareDocumentPosition(b.host) & Node.DOCUMENT_POSITION_FOLLOWING\n ? -1\n : 1,\n )\n .find((trigger) => trigger.isClipped());\n}\n\n/**\n * A clipped host that is not focusable itself opens its tip when its focusable ancestor takes\n * keyboard focus. `:focus-visible` keeps a click from opening it. Only the first clipped host of\n * one ancestor opens. Returns the teardown, or null when the host needs no listening.\n */\nexport function watchFocusableAncestor(\n trigger: AncestorFocusTrigger,\n): (() => void) | null {\n const host = trigger.host;\n if (host.matches(FOCUSABLE)) {\n return null;\n }\n const ancestor = host.parentElement?.closest<HTMLElement>(FOCUSABLE);\n if (!ancestor?.matches(INTERACTIVE)) {\n return null;\n }\n let triggers = clippedHostsByAncestor.get(ancestor);\n if (!triggers) {\n triggers = new Set();\n clippedHostsByAncestor.set(ancestor, triggers);\n }\n triggers.add(trigger);\n const open = (event: FocusEvent) => {\n if (\n event.target !== ancestor ||\n // Tested here, not at registration: a disabled trigger carries tabindex=\"-1\" until enabled.\n !ancestor.matches(KEYBOARD_FOCUSABLE) ||\n !ancestor.matches(':focus-visible') ||\n firstClippedHost(triggers) !== trigger\n ) {\n return;\n }\n trigger.openFor(ancestor);\n };\n const close = () => trigger.close();\n ancestor.addEventListener('focusin', open);\n ancestor.addEventListener('focusout', close);\n ancestor.addEventListener('click', close);\n ancestor.addEventListener('keydown', close);\n\n return () => {\n triggers.delete(trigger);\n ancestor.removeEventListener('focusin', open);\n ancestor.removeEventListener('focusout', close);\n ancestor.removeEventListener('click', close);\n ancestor.removeEventListener('keydown', close);\n };\n}\n\ninterface TabStopSync {\n isNeeded(): boolean;\n apply(needed: boolean): void;\n}\n\nconst tabStopSyncs = new Map<Node, TabStopSync>();\nlet resizes: ResizeObserver | null = null;\nlet mutations: MutationObserver | null = null;\n\nfunction syncOf(node: Node | null): TabStopSync | undefined {\n for (let current = node; current; current = current.parentElement) {\n const sync = tabStopSyncs.get(current);\n if (sync) {\n return sync;\n }\n }\n\n return undefined;\n}\n\n// Every isClipped() read forces layout once a tabindex write has dirtied it, so all reads go first.\nfunction syncAll(targets: Node[]): void {\n const syncs = [...new Set(targets.map(syncOf))].filter(\n (sync): sync is TabStopSync => sync !== undefined,\n );\n const decided = syncs.map((sync) => [sync, sync.isNeeded()] as const);\n decided.forEach(([sync, needed]) => sync.apply(needed));\n}\n\n/**\n * A clipped host that no keyboard path reaches - not focusable, inside no control or widget role,\n * holding no focusable descendant - takes `tabindex=\"0\"` while it is clipped, and loses it once its\n * text fits and it does not hold focus. A tabindex it did not write is never touched. One observer\n * pair serves every host. Returns the teardown, or null when the host is reached another way.\n */\nexport function tabStopWhileClipped(\n trigger: AncestorFocusTrigger,\n): (() => void) | null {\n const host = trigger.host;\n if (host.matches(FOCUSABLE) || host.closest(REACHED_OR_HIDDEN)) {\n return null;\n }\n let written = false;\n const isNeeded = () =>\n trigger.isClipped() && !host.querySelector(KEYBOARD_FOCUSABLE);\n const apply = (needed: boolean) => {\n if (needed && !host.hasAttribute('tabindex')) {\n host.setAttribute('tabindex', '0');\n written = true;\n } else if (\n !needed &&\n written &&\n host.ownerDocument.activeElement !== host\n ) {\n written = false;\n if (host.getAttribute('tabindex') === '0') {\n host.removeAttribute('tabindex');\n }\n }\n };\n const sync = () => apply(isNeeded());\n resizes ??= new ResizeObserver((entries) =>\n syncAll(entries.map((entry) => entry.target)),\n );\n mutations ??= new MutationObserver((records) =>\n syncAll(records.map((record) => record.target)),\n );\n tabStopSyncs.set(host, { isNeeded, apply });\n resizes.observe(host);\n mutations.observe(host, {\n characterData: true,\n childList: true,\n subtree: true,\n });\n host.addEventListener('focusout', sync);\n\n return () => {\n tabStopSyncs.delete(host);\n resizes?.unobserve(host);\n host.removeEventListener('focusout', sync);\n };\n}\n","import { isTextClipped } from '@ids-group-ltd/ids-design-system/core';\n\nexport interface TooltipClipTarget {\n readonly selector: string | null;\n}\n\n/**\n * `''`, `true` and `'true'` test the host itself; any other string is a selector for the element\n * inside the host to test; `false`, `'false'`, `null` and `undefined` turn the test off.\n */\nexport function toClipTarget(\n value: boolean | string | null | undefined,\n): TooltipClipTarget | null {\n if (value === true || value === '' || value === 'true') {\n return { selector: null };\n }\n\n return !value || value === 'false' ? null : { selector: value };\n}\n\nexport function clipElement(\n host: HTMLElement,\n target: TooltipClipTarget | null,\n): HTMLElement | null {\n return target?.selector\n ? host.querySelector<HTMLElement>(target.selector)\n : host;\n}\n\nexport function isHostClipped(\n host: HTMLElement,\n target: TooltipClipTarget | null,\n): boolean {\n const element = clipElement(host, target);\n\n return element !== null && isTextClipped(element);\n}\n\nexport function ownTextOf(element: HTMLElement | null): string {\n return (element?.textContent ?? '').trim();\n}\n\nexport function textContains(haystack: string, needle: string): boolean {\n const collapse = (value: string) => value.replace(/\\s+/g, ' ').trim();\n\n return collapse(haystack).includes(collapse(needle));\n}\n","import type { OverlayRef } from '@angular/cdk/overlay';\nimport type { TooltipPlacement } from './tooltip.types';\n\nconst TRIGGER_GAP_PX = 8;\nexport const VIEWPORT_MARGIN_PX = 8;\nconst OPPOSITE_PLACEMENT: Record<TooltipPlacement, TooltipPlacement> = {\n top: 'bottom',\n bottom: 'top',\n left: 'right',\n right: 'left',\n};\n\nfunction positionFor(placement: TooltipPlacement) {\n switch (placement) {\n case 'top':\n return {\n originX: 'center' as const,\n originY: 'top' as const,\n overlayX: 'center' as const,\n overlayY: 'bottom' as const,\n offsetY: -TRIGGER_GAP_PX,\n };\n case 'bottom':\n return {\n originX: 'center' as const,\n originY: 'bottom' as const,\n overlayX: 'center' as const,\n overlayY: 'top' as const,\n offsetY: TRIGGER_GAP_PX,\n };\n case 'left':\n return {\n originX: 'start' as const,\n originY: 'center' as const,\n overlayX: 'end' as const,\n overlayY: 'center' as const,\n offsetX: -TRIGGER_GAP_PX,\n };\n case 'right':\n return {\n originX: 'end' as const,\n originY: 'center' as const,\n overlayX: 'start' as const,\n overlayY: 'center' as const,\n offsetX: TRIGGER_GAP_PX,\n };\n }\n}\n\nexport function positionsFor(placement: TooltipPlacement) {\n return [positionFor(placement), positionFor(OPPOSITE_PLACEMENT[placement])];\n}\n\n// positionChanges skips a re-apply that only pushes the pane; the styles CDK writes do not.\n// The pane is measured, not the panel: the panel's enter animation scales it.\nexport function pointArrowAtHost(\n ref: OverlayRef,\n panel: HTMLElement,\n host: HTMLElement,\n): void {\n const pane = ref.overlayElement;\n const point = () => {\n const trigger = host.getBoundingClientRect();\n const box = pane.getBoundingClientRect();\n panel.style.setProperty(\n '--_tooltip-arrow-x',\n `${trigger.left + trigger.width / 2 - box.left - panel.clientLeft}px`,\n );\n panel.style.setProperty(\n '--_tooltip-arrow-y',\n `${trigger.top + trigger.height / 2 - box.top - panel.clientTop}px`,\n );\n };\n const observer = new MutationObserver(point);\n observer.observe(ref.hostElement, { attributeFilter: ['style'] });\n observer.observe(pane, { attributeFilter: ['style'] });\n ref.detachments().subscribe({ complete: () => observer.disconnect() });\n}\n","import {\n DOCUMENT,\n Directive,\n ElementRef,\n HostListener,\n InjectionToken,\n OnDestroy,\n Signal,\n TemplateRef,\n afterNextRender,\n booleanAttribute,\n inject,\n input,\n} from '@angular/core';\nimport { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { TooltipPanelComponent } from './tooltip-panel.component';\nimport { escapeTooltipMarkup, plainTooltipText } from './tooltip-markup';\nimport {\n FOCUSABLE,\n tabStopWhileClipped,\n watchFocusableAncestor,\n type AncestorFocusTrigger,\n} from './tooltip-ancestor-focus';\nimport {\n clipElement,\n isHostClipped,\n ownTextOf,\n textContains,\n toClipTarget,\n type TooltipClipTarget,\n} from './tooltip-clip';\nimport {\n closeOnScroll,\n listenForEscape,\n overlayPlacementOf,\n prepareOverlayEnter,\n} from '@ids-group-ltd/ids-design-system/components';\nimport {\n VIEWPORT_MARGIN_PX,\n pointArrowAtHost,\n positionsFor,\n} from './tooltip-position';\nimport type { TooltipPlacement } from './tooltip.types';\n\nconst PINNED_ATTRIBUTE = 'data-ds-tooltip-pinned';\n\nlet nextId = 0;\n\n/** @internal Lets a component that hosts the tooltip make a clipped host lead the tip with its own text. */\nexport const TOOLTIP_LEADS_WITH_OWN_TEXT = new InjectionToken<boolean>(\n 'TOOLTIP_LEADS_WITH_OWN_TEXT',\n);\n\n/** @internal Lets a component that hosts the tooltip decide `dsTooltipPinOnClick` for it. */\nexport const TOOLTIP_PIN_ON_CLICK = new InjectionToken<Signal<boolean>>(\n 'TOOLTIP_PIN_ON_CLICK',\n);\n\n@Directive({\n selector: '[dsTooltip], [dsTooltipWhenClipped]',\n standalone: true,\n})\nexport class TooltipDirective implements OnDestroy {\n private readonly overlay = inject(Overlay);\n private readonly host = inject(ElementRef<HTMLElement>);\n private readonly document = inject(DOCUMENT);\n private readonly hostPinOnClick = inject(TOOLTIP_PIN_ON_CLICK, {\n self: true,\n optional: true,\n });\n private readonly leadsWithOwnText =\n inject(TOOLTIP_LEADS_WITH_OWN_TEXT, { self: true, optional: true }) ??\n false;\n\n /** Tip text, or a template the panel renders as given. An empty string turns the tooltip off.\n * Keep a template's content non-interactive: the panel is `role=\"tooltip\"` and never takes focus. */\n readonly dsTooltip = input<string | TemplateRef<unknown>>('');\n /** Which side the tip opens on. With no room there it opens on the opposite side. */\n readonly dsTooltipPlacement = input<TooltipPlacement>('top');\n /** Milliseconds before the tip appears. Hiding is immediate. */\n readonly dsTooltipDelay = input<number>(120);\n /** Draws the arrow that points at the host. Turn it off where the tip sits flush against it. */\n readonly dsTooltipArrow = input(true, { transform: booleanAttribute });\n /** Show the tip only while the host shows less text than it holds. Re-tested on every open.\n * A boolean or the bare attribute tests the host. A selector tests the element it matches inside\n * the host and discloses that element's text; while nothing matches, no clipped tip opens.\n *\n * Applies the tooltip on its own: without a `dsTooltip` the tested text is disclosed. A tip\n * whose text the host already contains sets no `aria-describedby`; one given a `dsTooltip`\n * that says more than the host does describes it as usual.\n *\n * Keyboard focus opens it too: on the host, on a control or widget around it, or on a control\n * inside it. A clipped host that none of these reaches takes `tabindex=\"0\"` while it is clipped. */\n readonly dsTooltipWhenClipped = input<\n TooltipClipTarget | null,\n boolean | string | null | undefined\n >(null, { transform: toClipTarget });\n\n /** Opens the tip with no delay, and a click on the host keeps it open after the pointer leaves\n * until a click outside, `Escape` or blur; a second click closes it. Without it a click closes the tip.\n * While pinned the host carries `data-ds-tooltip-pinned`, a hook for styling the pinned trigger. */\n readonly dsTooltipPinOnClick = input(false, { transform: booleanAttribute });\n\n private isClipped(): boolean {\n return isHostClipped(this.hostElement, this.dsTooltipWhenClipped());\n }\n\n private get hostElement(): HTMLElement {\n return this.host.nativeElement;\n }\n\n private pinsOnClick(): boolean {\n return this.hostPinOnClick?.() ?? this.dsTooltipPinOnClick();\n }\n\n private ownText(): string {\n return ownTextOf(\n clipElement(this.hostElement, this.dsTooltipWhenClipped()),\n );\n }\n\n /** A host that leads with its own text puts it, in bold, above the tip while it is clipped, unless the tip already says it. */\n private tipContent(): string | TemplateRef<unknown> {\n const given = this.dsTooltip();\n if (given instanceof TemplateRef) {\n return given;\n }\n const own = this.ownText();\n if (!given) {\n return this.dsTooltipWhenClipped() ? escapeTooltipMarkup(own) : '';\n }\n if (\n this.leadsWithOwnText &&\n own &&\n this.isClipped() &&\n !textContains(plainTooltipText(given), own)\n ) {\n return `**${escapeTooltipMarkup(own)}**\n${given}`;\n }\n\n return given;\n }\n\n /** A clipped host's full text is already in the DOM; describing it again would announce it twice. */\n private disclosesOwnText(text: string): boolean {\n if (!this.dsTooltipWhenClipped()) {\n return false;\n }\n\n return textContains(this.ownText(), plainTooltipText(text));\n }\n\n private ref: OverlayRef | null = null;\n private timer: number | null = null;\n private unpin: (() => void) | null = null;\n private readonly tipId = `ds-tooltip-${++nextId}`;\n\n /**\n * Where `aria-describedby` belongs when focus is involved: a non-focusable host\n * (`ds-menu-item` is `role=\"none\"` around a real `<button>`) never reaches a screen\n * reader, so `focusin`'s target is recorded. A pointer-only open leaves it null.\n */\n private focusedTarget: HTMLElement | null = null;\n\n /**\n * Where `aria-describedby` was written, so teardown strips it from the same element\n * even if focus moved `focusedTarget` after the panel opened.\n */\n private describedElement: HTMLElement | null = null;\n\n private detachAncestor: (() => void) | null = null;\n\n private readonly ancestorFocusTrigger: AncestorFocusTrigger = {\n host: this.hostElement,\n isClipped: () => this.isClipped(),\n openFor: (ancestor) => {\n this.focusedTarget = ancestor;\n this.scheduleShow();\n },\n close: () => {\n this.focusedTarget = null;\n this.onClose();\n },\n };\n\n constructor() {\n afterNextRender(() => {\n if (this.dsTooltipWhenClipped()) {\n this.detachAncestor =\n watchFocusableAncestor(this.ancestorFocusTrigger) ??\n tabStopWhileClipped(this.ancestorFocusTrigger);\n }\n });\n }\n\n @HostListener('mouseenter')\n protected onPointerEnter(): void {\n this.scheduleShow();\n }\n\n // Same rule as via a focusable ancestor: keyboard focus opens, a click's focus does not.\n @HostListener('focusin', ['$event'])\n protected onFocusIn(event: FocusEvent): void {\n const host = this.hostElement;\n if (\n this.dsTooltipWhenClipped() &&\n host.matches(FOCUSABLE) &&\n (event.target !== host || !host.matches(':focus-visible'))\n ) {\n return;\n }\n if (event.target instanceof HTMLElement) {\n this.focusedTarget = event.target;\n }\n this.scheduleShow();\n }\n\n @HostListener('focusout')\n protected onFocusOut(): void {\n this.focusedTarget = null;\n this.onClose();\n }\n\n private scheduleShow(): void {\n if (this.unpin || !this.tipContent()) {\n return;\n }\n if (this.pinsOnClick() && this.ref?.hasAttached()) {\n return;\n }\n if (this.dsTooltipWhenClipped() && !this.isClipped()) {\n return;\n }\n if (this.timer !== null) {\n clearTimeout(this.timer);\n }\n this.timer = window.setTimeout(\n () => this.show(),\n this.pinsOnClick() ? 0 : this.dsTooltipDelay(),\n );\n }\n\n @HostListener('mouseleave')\n protected onPointerLeave(): void {\n if (!this.unpin) {\n this.onClose();\n }\n }\n\n // Close on click too: a re-rendered anchor under a stationary cursor fires no mouseleave.\n @HostListener('click')\n protected onClick(): void {\n if (this.pinsOnClick() && !this.unpin) {\n this.pin();\n } else {\n this.onClose();\n }\n }\n\n protected onClose(): void {\n if (this.timer !== null) {\n clearTimeout(this.timer);\n this.timer = null;\n }\n this.unpin?.();\n this.disposeRef();\n }\n\n private pin(): void {\n if (this.timer !== null) {\n clearTimeout(this.timer);\n this.timer = null;\n }\n if (!this.ref?.hasAttached()) {\n if (!this.tipContent()) {\n return;\n }\n this.show();\n }\n const closeOutside = (event: Event) => {\n const target = event.target as Node;\n if (\n !this.hostElement.contains(target) &&\n !this.ref?.overlayElement.contains(target)\n ) {\n this.onClose();\n }\n };\n this.document.addEventListener('pointerdown', closeOutside, true);\n const stopEscape = listenForEscape(this.document, () => this.onClose());\n this.hostElement.setAttribute(PINNED_ATTRIBUTE, '');\n this.unpin = () => {\n this.unpin = null;\n this.hostElement.removeAttribute(PINNED_ATTRIBUTE);\n this.document.removeEventListener('pointerdown', closeOutside, true);\n stopEscape();\n };\n }\n\n private disposeRef(): void {\n this.ref?.dispose();\n this.ref = null;\n const described = this.describedElement;\n if (!described) {\n return;\n }\n this.describedElement = null;\n const remaining = (described.getAttribute('aria-describedby') ?? '')\n .split(' ')\n .filter((id: string) => id && id !== this.tipId)\n .join(' ');\n if (remaining) {\n described.setAttribute('aria-describedby', remaining);\n } else {\n described.removeAttribute('aria-describedby');\n }\n }\n\n @HostListener('keydown')\n protected onKeydown(): void {\n if (this.dsTooltipWhenClipped()) {\n this.onClose();\n }\n }\n\n @HostListener('keydown.escape')\n protected onEscape(): void {\n if (this.ref) {\n this.onClose();\n }\n }\n\n private show(): void {\n // show() can be re-entered with a panel open: dispose it first to avoid a leaked OverlayRef and a duplicate id.\n this.disposeRef();\n const placement = this.dsTooltipPlacement();\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(this.host)\n .withPositions(positionsFor(placement))\n .withViewportMargin(VIEWPORT_MARGIN_PX);\n\n this.ref = this.overlay.create({\n positionStrategy,\n panelClass: 'ds-overlay-pane',\n scrollStrategy: this.overlay.scrollStrategies.close(),\n });\n prepareOverlayEnter(this.ref, this.host.nativeElement, positionStrategy);\n // The CDK strategy sees only the window and cdkScrollable ancestors, not a plain overflow container.\n const stopScrollClose = closeOnScroll(this.ref, () => this.onClose());\n this.ref.detachments().subscribe(stopScrollClose);\n\n const cmpRef = this.ref.attach(new ComponentPortal(TooltipPanelComponent));\n const tip = this.tipContent();\n cmpRef.setInput('text', tip);\n cmpRef.setInput('placement', placement);\n cmpRef.setInput('arrow', this.dsTooltipArrow());\n positionStrategy.positionChanges.subscribe(({ connectionPair }) =>\n cmpRef.setInput(\n 'placement',\n overlayPlacementOf(connectionPair.overlayY, connectionPair.overlayX),\n ),\n );\n cmpRef.setInput('panelId', this.tipId);\n pointArrowAtHost(this.ref, cmpRef.location.nativeElement, this.hostElement);\n this.ref.detachments().subscribe(() => this.unpin?.());\n if (typeof tip === 'string' && this.disclosesOwnText(tip)) {\n return;\n }\n const described = this.focusedTarget ?? this.host.nativeElement;\n this.describedElement = described;\n const existing = described.getAttribute('aria-describedby');\n described.setAttribute(\n 'aria-describedby',\n existing ? `${existing} ${this.tipId}` : this.tipId,\n );\n }\n\n ngOnDestroy(): void {\n this.detachAncestor?.();\n this.onClose();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAKA,MAAM,KAAK,GAAG,iBAAiB;AAC/B,MAAM,OAAO,GAAG,QAAQ;AACxB,MAAM,IAAI,GAA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AA,UAAA,EAAA,sBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,mBAAA,EAAA,EAAA,iBAAA,EAAA,qBAAA,EAAA,UAAA,EAAA,qBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,YAAA,EAAA,kBAAA,EAAA,SAAA,EAAA,mBAAA,EAAA,UAAA,EAAA,cAAA,EAAA,YAAA,EAAA,kBAAA,EAAA,OAAA,EAAA,WAAA,EAAA,SAAA,EAAA,aAAA,EAAA,gBAAA,EAAA,YAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,qCAAqC;AAC/C,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;;sBAuIE,YAAY;uBAAC,YAAY;;sBAMzB,YAAY;uBAAC,SAAS,EAAE,CAAC,QAAQ,CAAC;;sBAgBlC,YAAY;uBAAC,UAAU;;sBAyBvB,YAAY;uBAAC,YAAY;;sBAQzB,YAAY;uBAAC,OAAO;;sBAoEpB,YAAY;uBAAC,SAAS;;sBAOtB,YAAY;uBAAC,gBAAgB;;;ACvUhC;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ids-group-ltd-ids-design-system-components-tooltip.mjs","sources":["../../../src/lib/components/tooltip/tooltip-markup.ts","../../../src/lib/components/tooltip/tooltip-panel.component.ts","../../../src/lib/components/tooltip/tooltip-ancestor-focus.ts","../../../src/lib/components/tooltip/tooltip-clip.ts","../../../src/lib/components/tooltip/tooltip-position.ts","../../../src/lib/components/tooltip/tooltip.directive.ts","../../../src/lib/components/tooltip/ids-group-ltd-ids-design-system-components-tooltip.ts"],"sourcesContent":["export interface TooltipSegment {\n text: string;\n bold: boolean;\n}\n\nconst TOKEN = /(\\\\\\*\\\\\\*|\\*\\*)/;\nconst ESCAPED = '\\\\*\\\\*';\nconst BOLD = '**';\n\n/** Splits tip text on `**` into plain and bold runs. `\\*\\*` is a literal `**`; an unpaired `**` is literal too. */\nexport function parseTooltipMarkup(text: string): TooltipSegment[] {\n const tokens = text.split(TOKEN);\n const markerCount = tokens.filter((token) => token === BOLD).length;\n const pairedMarkers = markerCount - (markerCount % 2);\n const segments: TooltipSegment[] = [];\n let bold = false;\n let seen = 0;\n for (const token of tokens) {\n let piece = token;\n if (token === ESCAPED) {\n piece = BOLD;\n } else if (token === BOLD && seen++ < pairedMarkers) {\n bold = !bold;\n continue;\n }\n if (!piece) {\n continue;\n }\n const last = segments[segments.length - 1];\n if (last?.bold === bold) {\n last.text += piece;\n } else {\n segments.push({ text: piece, bold });\n }\n }\n\n return segments;\n}\n\nexport function escapeTooltipMarkup(text: string): string {\n return text.replaceAll(BOLD, ESCAPED);\n}\n\nexport function plainTooltipText(text: string): string {\n return parseTooltipMarkup(text)\n .map((segment) => segment.text)\n .join('');\n}\n","import {\n Component,\n TemplateRef,\n ViewEncapsulation,\n computed,\n input,\n} from '@angular/core';\nimport {\n retainStyles,\n type TooltipPlacement,\n} from '@ids-group-ltd/ids-design-system/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { parseTooltipMarkup } from './tooltip-markup';\n\n@Component({\n selector: 'ds-tooltip-panel',\n standalone: true,\n imports: [NgTemplateOutlet],\n template: `\n @if (template(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" />\n }\n\n @for (segment of segments(); track $index) {\n @if (segment.bold) {\n <strong [textContent]=\"segment.text\"></strong>\n } @else {\n <span [textContent]=\"segment.text\"></span>\n }\n }\n `,\n styleUrl: './tooltip-panel.component.scss',\n host: {\n role: 'tooltip',\n '[attr.id]': 'panelId()',\n '[class.top]': \"placement() === 'top'\",\n '[class.bottom]': \"placement() === 'bottom'\",\n '[class.left]': \"placement() === 'left'\",\n '[class.right]': \"placement() === 'right'\",\n '[class.no-arrow]': '!arrow()',\n },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class TooltipPanelComponent {\n /** Tooltip text, where `**bold**` runs render bold; or a template, rendered as given. */\n readonly text = input.required<string | TemplateRef<unknown>>();\n protected readonly template = computed(() => {\n const text = this.text();\n\n return text instanceof TemplateRef ? text : null;\n });\n protected readonly segments = computed(() => {\n const text = this.text();\n\n return typeof text === 'string' ? parseTooltipMarkup(text) : [];\n });\n /** Side of the trigger the panel is positioned on; also drives the arrow class. */\n readonly placement = input.required<TooltipPlacement>();\n /** Whether the arrow pointing at the trigger is drawn. */\n readonly arrow = input(true);\n /** Element `id`, referenced by the trigger's `aria-describedby`. */\n readonly panelId = input<string>('');\n\n constructor() {\n retainStyles(TooltipPanelComponent);\n }\n}\n","const NATIVELY_FOCUSABLE = 'a[href], button, input, select, textarea, summary';\nexport const FOCUSABLE = `${NATIVELY_FOCUSABLE}, [tabindex]`;\nconst KEYBOARD_FOCUSABLE = `${NATIVELY_FOCUSABLE}, [tabindex]:not([tabindex^=\"-\"])`;\nconst WIDGET_ROLES = [\n 'button',\n 'link',\n 'tab',\n 'option',\n 'menuitem',\n 'menuitemcheckbox',\n 'menuitemradio',\n 'row',\n 'gridcell',\n 'combobox',\n 'checkbox',\n 'radio',\n 'switch',\n 'treeitem',\n]\n .map((role) => `[role=\"${role}\"]`)\n .join(', ');\nconst INTERACTIVE = `${NATIVELY_FOCUSABLE}, tr:not([role]), ${WIDGET_ROLES}`;\n// A widget role owns its focus (a listbox moves it by `aria-activedescendant`), and a hidden subtree must hold no tab stop.\nconst REACHED_OR_HIDDEN = `${NATIVELY_FOCUSABLE}, tr[tabindex]:not([role]), ${WIDGET_ROLES}, [aria-hidden=\"true\"], [inert]`;\n\nexport interface AncestorFocusTrigger {\n readonly host: HTMLElement;\n isClipped(): boolean;\n openFor(ancestor: HTMLElement): void;\n close(): void;\n}\n\nconst clippedHostsByAncestor = new WeakMap<\n HTMLElement,\n Set<AncestorFocusTrigger>\n>();\n\nfunction firstClippedHost(\n triggers: Set<AncestorFocusTrigger>,\n): AncestorFocusTrigger | undefined {\n return [...triggers]\n .sort((a, b) =>\n a.host.compareDocumentPosition(b.host) & Node.DOCUMENT_POSITION_FOLLOWING\n ? -1\n : 1,\n )\n .find((trigger) => trigger.isClipped());\n}\n\n/**\n * A clipped host that is not focusable itself opens its tip when its focusable ancestor takes\n * keyboard focus. `:focus-visible` keeps a click from opening it. Only the first clipped host of\n * one ancestor opens. Returns the teardown, or null when the host needs no listening.\n */\nexport function watchFocusableAncestor(\n trigger: AncestorFocusTrigger,\n): (() => void) | null {\n const host = trigger.host;\n if (host.matches(FOCUSABLE)) {\n return null;\n }\n const ancestor = host.parentElement?.closest<HTMLElement>(FOCUSABLE);\n if (!ancestor?.matches(INTERACTIVE)) {\n return null;\n }\n let triggers = clippedHostsByAncestor.get(ancestor);\n if (!triggers) {\n triggers = new Set();\n clippedHostsByAncestor.set(ancestor, triggers);\n }\n triggers.add(trigger);\n const open = (event: FocusEvent) => {\n if (\n event.target !== ancestor ||\n // Tested here, not at registration: a disabled trigger carries tabindex=\"-1\" until enabled.\n !ancestor.matches(KEYBOARD_FOCUSABLE) ||\n !ancestor.matches(':focus-visible') ||\n firstClippedHost(triggers) !== trigger\n ) {\n return;\n }\n trigger.openFor(ancestor);\n };\n const close = () => trigger.close();\n ancestor.addEventListener('focusin', open);\n ancestor.addEventListener('focusout', close);\n ancestor.addEventListener('click', close);\n ancestor.addEventListener('keydown', close);\n\n return () => {\n triggers.delete(trigger);\n ancestor.removeEventListener('focusin', open);\n ancestor.removeEventListener('focusout', close);\n ancestor.removeEventListener('click', close);\n ancestor.removeEventListener('keydown', close);\n };\n}\n\ninterface TabStopSync {\n isNeeded(): boolean;\n apply(needed: boolean): void;\n}\n\nconst tabStopSyncs = new Map<Node, TabStopSync>();\nlet resizes: ResizeObserver | null = null;\nlet mutations: MutationObserver | null = null;\n\nfunction syncOf(node: Node | null): TabStopSync | undefined {\n for (let current = node; current; current = current.parentElement) {\n const sync = tabStopSyncs.get(current);\n if (sync) {\n return sync;\n }\n }\n\n return undefined;\n}\n\n// Every isClipped() read forces layout once a tabindex write has dirtied it, so all reads go first.\nfunction syncAll(targets: Node[]): void {\n const syncs = [...new Set(targets.map(syncOf))].filter(\n (sync): sync is TabStopSync => sync !== undefined,\n );\n const decided = syncs.map((sync) => [sync, sync.isNeeded()] as const);\n decided.forEach(([sync, needed]) => sync.apply(needed));\n}\n\n/**\n * A clipped host that no keyboard path reaches - not focusable, inside no control or widget role,\n * holding no focusable descendant - takes `tabindex=\"0\"` while it is clipped, and loses it once its\n * text fits and it does not hold focus. A tabindex it did not write is never touched. One observer\n * pair serves every host. Returns the teardown, or null when the host is reached another way.\n */\nexport function tabStopWhileClipped(\n trigger: AncestorFocusTrigger,\n): (() => void) | null {\n const host = trigger.host;\n if (host.matches(FOCUSABLE) || host.closest(REACHED_OR_HIDDEN)) {\n return null;\n }\n let written = false;\n const isNeeded = () =>\n trigger.isClipped() && !host.querySelector(KEYBOARD_FOCUSABLE);\n const apply = (needed: boolean) => {\n if (needed && !host.hasAttribute('tabindex')) {\n host.setAttribute('tabindex', '0');\n written = true;\n } else if (\n !needed &&\n written &&\n host.ownerDocument.activeElement !== host\n ) {\n written = false;\n if (host.getAttribute('tabindex') === '0') {\n host.removeAttribute('tabindex');\n }\n }\n };\n const sync = () => apply(isNeeded());\n resizes ??= new ResizeObserver((entries) =>\n syncAll(entries.map((entry) => entry.target)),\n );\n mutations ??= new MutationObserver((records) =>\n syncAll(records.map((record) => record.target)),\n );\n tabStopSyncs.set(host, { isNeeded, apply });\n resizes.observe(host);\n mutations.observe(host, {\n characterData: true,\n childList: true,\n subtree: true,\n });\n host.addEventListener('focusout', sync);\n\n return () => {\n tabStopSyncs.delete(host);\n resizes?.unobserve(host);\n host.removeEventListener('focusout', sync);\n };\n}\n","import { isTextClipped } from '@ids-group-ltd/ids-design-system/core';\n\nexport interface TooltipClipTarget {\n readonly selector: string | null;\n}\n\n/**\n * `''`, `true` and `'true'` test the host itself; any other string is a selector for the element\n * inside the host to test; `false`, `'false'`, `null` and `undefined` turn the test off.\n */\nexport function toClipTarget(\n value: boolean | string | null | undefined,\n): TooltipClipTarget | null {\n if (value === true || value === '' || value === 'true') {\n return { selector: null };\n }\n\n return !value || value === 'false' ? null : { selector: value };\n}\n\nexport function clipElement(\n host: HTMLElement,\n target: TooltipClipTarget | null,\n): HTMLElement | null {\n return target?.selector\n ? host.querySelector<HTMLElement>(target.selector)\n : host;\n}\n\nexport function isHostClipped(\n host: HTMLElement,\n target: TooltipClipTarget | null,\n): boolean {\n const element = clipElement(host, target);\n if (element === null) {\n return false;\n }\n\n return isTextClipped(element) || isClippedByLines(element);\n}\n\n// A line clamp hides whole lines, so the block never overflows its width. Only hidden overflow\n// counts: text in a scroll box can still be reached. The pixel absorbs sub-pixel line heights.\nfunction isClippedByLines(element: HTMLElement): boolean {\n if (element.scrollHeight <= element.clientHeight + 1) {\n return false;\n }\n const overflow = getComputedStyle(element).overflowY;\n\n return overflow === 'hidden' || overflow === 'clip';\n}\n\nexport function ownTextOf(element: HTMLElement | null): string {\n return (element?.textContent ?? '').trim();\n}\n\nexport function textContains(haystack: string, needle: string): boolean {\n const collapse = (value: string) => value.replace(/\\s+/g, ' ').trim();\n\n return collapse(haystack).includes(collapse(needle));\n}\n","import type { OverlayRef } from '@angular/cdk/overlay';\nimport type { TooltipPlacement } from '@ids-group-ltd/ids-design-system/core';\n\nconst TRIGGER_GAP_PX = 8;\nexport const VIEWPORT_MARGIN_PX = 8;\nconst OPPOSITE_PLACEMENT: Record<TooltipPlacement, TooltipPlacement> = {\n top: 'bottom',\n bottom: 'top',\n left: 'right',\n right: 'left',\n};\n\nfunction positionFor(placement: TooltipPlacement) {\n switch (placement) {\n case 'top':\n return {\n originX: 'center' as const,\n originY: 'top' as const,\n overlayX: 'center' as const,\n overlayY: 'bottom' as const,\n offsetY: -TRIGGER_GAP_PX,\n };\n case 'bottom':\n return {\n originX: 'center' as const,\n originY: 'bottom' as const,\n overlayX: 'center' as const,\n overlayY: 'top' as const,\n offsetY: TRIGGER_GAP_PX,\n };\n case 'left':\n return {\n originX: 'start' as const,\n originY: 'center' as const,\n overlayX: 'end' as const,\n overlayY: 'center' as const,\n offsetX: -TRIGGER_GAP_PX,\n };\n case 'right':\n return {\n originX: 'end' as const,\n originY: 'center' as const,\n overlayX: 'start' as const,\n overlayY: 'center' as const,\n offsetX: TRIGGER_GAP_PX,\n };\n }\n}\n\nexport function positionsFor(placement: TooltipPlacement) {\n return [positionFor(placement), positionFor(OPPOSITE_PLACEMENT[placement])];\n}\n\n// positionChanges skips a re-apply that only pushes the pane; the styles CDK writes do not.\n// The pane is measured, not the panel: the panel's enter animation scales it.\nexport function pointArrowAtHost(\n ref: OverlayRef,\n panel: HTMLElement,\n host: HTMLElement,\n): void {\n const pane = ref.overlayElement;\n const point = () => {\n const trigger = host.getBoundingClientRect();\n const box = pane.getBoundingClientRect();\n panel.style.setProperty(\n '--_tooltip-arrow-x',\n `${trigger.left + trigger.width / 2 - box.left - panel.clientLeft}px`,\n );\n panel.style.setProperty(\n '--_tooltip-arrow-y',\n `${trigger.top + trigger.height / 2 - box.top - panel.clientTop}px`,\n );\n };\n const observer = new MutationObserver(point);\n observer.observe(ref.hostElement, { attributeFilter: ['style'] });\n observer.observe(pane, { attributeFilter: ['style'] });\n ref.detachments().subscribe({ complete: () => observer.disconnect() });\n}\n","import {\n DOCUMENT,\n Directive,\n ElementRef,\n HostListener,\n InjectionToken,\n OnDestroy,\n Signal,\n TemplateRef,\n afterNextRender,\n booleanAttribute,\n computed,\n inject,\n input,\n} from '@angular/core';\nimport { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { TooltipPanelComponent } from './tooltip-panel.component';\nimport { escapeTooltipMarkup, plainTooltipText } from './tooltip-markup';\nimport {\n FOCUSABLE,\n tabStopWhileClipped,\n watchFocusableAncestor,\n type AncestorFocusTrigger,\n} from './tooltip-ancestor-focus';\nimport {\n clipElement,\n isHostClipped,\n ownTextOf,\n textContains,\n toClipTarget,\n type TooltipClipTarget,\n} from './tooltip-clip';\nimport {\n closeOnScroll,\n listenForEscape,\n overlayPlacementOf,\n prepareOverlayEnter,\n} from '@ids-group-ltd/ids-design-system/components';\nimport {\n VIEWPORT_MARGIN_PX,\n pointArrowAtHost,\n positionsFor,\n} from './tooltip-position';\nimport {\n DS_CONFIG,\n type DsConfig,\n type TooltipPlacement,\n} from '@ids-group-ltd/ids-design-system/core';\nimport type { DsTooltipConfig } from './tooltip.types';\n\ntype TooltipOptions = NonNullable<DsConfig['tooltip']>;\n\nconst toOptionalBoolean = (value: unknown): boolean | null =>\n value == null ? null : booleanAttribute(value);\n\nconst PINNED_ATTRIBUTE = 'data-ds-tooltip-pinned';\n\nlet nextId = 0;\n\n/** @internal Lets a component that hosts the tooltip make a clipped host lead the tip with its own text. */\nexport const TOOLTIP_LEADS_WITH_OWN_TEXT = new InjectionToken<boolean>(\n 'TOOLTIP_LEADS_WITH_OWN_TEXT',\n);\n\n/** @internal Lets a component that hosts the tooltip decide `dsTooltipPinOnClick` for it. */\nexport const TOOLTIP_PIN_ON_CLICK = new InjectionToken<Signal<boolean>>(\n 'TOOLTIP_PIN_ON_CLICK',\n);\n\n@Directive({\n selector: '[dsTooltip], [dsTooltipWhenClipped]',\n standalone: true,\n})\nexport class TooltipDirective implements OnDestroy {\n private readonly overlay = inject(Overlay);\n private readonly host = inject(ElementRef<HTMLElement>);\n private readonly document = inject(DOCUMENT);\n private readonly config = inject(DS_CONFIG);\n private readonly hostPinOnClick = inject(TOOLTIP_PIN_ON_CLICK, {\n self: true,\n optional: true,\n });\n private readonly leadsWithOwnText =\n inject(TOOLTIP_LEADS_WITH_OWN_TEXT, { self: true, optional: true }) ??\n false;\n\n /** Tip text, or a template the panel renders as given. An empty string turns the tooltip off.\n * Keep a template's content non-interactive: the panel is `role=\"tooltip\"` and never takes focus. */\n readonly dsTooltip = input<string | TemplateRef<unknown>>('');\n /** Placement, delay, arrow, pin-on-click and the clipped test for this tip. An unset field falls\n * back to `DsConfig.tooltip`, then the built-in default. */\n readonly dsTooltipConfig = input<DsTooltipConfig | null>(null);\n /** Which side the tip opens on. Wins over `dsTooltipConfig.placement`.\n * @deprecated Use `[dsTooltipConfig]=\"{ placement }\"`, or `provideDsConfig({ tooltip: { placement } })` app-wide. */\n readonly dsTooltipPlacement = input<TooltipPlacement | null>(null);\n /** Milliseconds before the tip appears. Wins over `dsTooltipConfig.delay`.\n * @deprecated Use `[dsTooltipConfig]=\"{ delay }\"`, or `provideDsConfig({ tooltip: { delay } })` app-wide. */\n readonly dsTooltipDelay = input<number | null>(null);\n /** Draws the arrow that points at the host. Wins over `dsTooltipConfig.arrow`.\n * @deprecated Use `[dsTooltipConfig]=\"{ arrow }\"`, or `provideDsConfig({ tooltip: { arrow } })` app-wide. */\n readonly dsTooltipArrow = input<boolean | null, unknown>(null, {\n transform: toOptionalBoolean,\n });\n /** Show the tip only while the host shows less text than it holds: cut by width, or by lines\n * under `overflow: hidden` or `clip`, as with `line-clamp`. Re-tested on every open.\n * A boolean or the bare attribute tests the host. A selector tests the element it matches inside\n * the host and discloses that element's text; while nothing matches, no clipped tip opens.\n *\n * Applies the tooltip on its own: without a `dsTooltip` the tested text is disclosed. A tip\n * whose text the host already contains sets no `aria-describedby`; one given a `dsTooltip`\n * that says more than the host does describes it as usual.\n *\n * Keyboard focus opens it too: on the host, on a control or widget around it, or on a control\n * inside it. A clipped host that none of these reaches takes `tabindex=\"0\"` while it is clipped. */\n readonly dsTooltipWhenClipped = input<\n TooltipClipTarget | null,\n boolean | string | null | undefined\n >(null, { transform: toClipTarget });\n\n /** Opens the tip with no delay, and a click on the host keeps it open after the pointer leaves\n * until a click outside, `Escape` or blur; a second click closes it. Without it a click closes the tip.\n * While pinned the host carries `data-ds-tooltip-pinned`, a hook for styling the pinned trigger.\n * Wins over `dsTooltipConfig.pinOnClick`.\n * @deprecated Use `[dsTooltipConfig]=\"{ pinOnClick: true }\"`, or `provideDsConfig({ tooltip: { pinOnClick } })` app-wide. */\n readonly dsTooltipPinOnClick = input<boolean | null, unknown>(null, {\n transform: toOptionalBoolean,\n });\n\n private readonly placement = this.resolve(\n this.dsTooltipPlacement,\n 'placement',\n 'top',\n );\n private readonly delay = this.resolve(this.dsTooltipDelay, 'delay', 120);\n private readonly arrow = this.resolve(this.dsTooltipArrow, 'arrow', true);\n private readonly pinOnClick = this.resolve(\n this.dsTooltipPinOnClick,\n 'pinOnClick',\n false,\n );\n private readonly whenClipped = computed(\n () =>\n this.dsTooltipWhenClipped() ??\n toClipTarget(this.dsTooltipConfig()?.whenClipped),\n );\n\n private resolve<K extends keyof TooltipOptions>(\n deprecatedInput: Signal<TooltipOptions[K] | null>,\n key: K,\n fallback: NonNullable<TooltipOptions[K]>,\n ): Signal<NonNullable<TooltipOptions[K]>> {\n return computed(\n () =>\n deprecatedInput() ??\n this.dsTooltipConfig()?.[key] ??\n this.config.tooltip?.[key] ??\n fallback,\n );\n }\n\n private isClipped(): boolean {\n return isHostClipped(this.hostElement, this.whenClipped());\n }\n\n private get hostElement(): HTMLElement {\n return this.host.nativeElement;\n }\n\n private pinsOnClick(): boolean {\n return this.hostPinOnClick?.() ?? this.pinOnClick();\n }\n\n private ownText(): string {\n return ownTextOf(clipElement(this.hostElement, this.whenClipped()));\n }\n\n /** A host that leads with its own text puts it, in bold, above the tip while it is clipped, unless the tip already says it. */\n private tipContent(): string | TemplateRef<unknown> {\n const given = this.dsTooltip();\n if (given instanceof TemplateRef) {\n return given;\n }\n const own = this.ownText();\n if (!given) {\n return this.whenClipped() ? escapeTooltipMarkup(own) : '';\n }\n if (\n this.leadsWithOwnText &&\n own &&\n this.isClipped() &&\n !textContains(plainTooltipText(given), own)\n ) {\n return `**${escapeTooltipMarkup(own)}**\n${given}`;\n }\n\n return given;\n }\n\n /** A clipped host's full text is already in the DOM; describing it again would announce it twice. */\n private disclosesOwnText(text: string): boolean {\n if (!this.whenClipped()) {\n return false;\n }\n\n return textContains(this.ownText(), plainTooltipText(text));\n }\n\n private ref: OverlayRef | null = null;\n private timer: number | null = null;\n private unpin: (() => void) | null = null;\n private readonly tipId = `ds-tooltip-${++nextId}`;\n\n /**\n * Where `aria-describedby` belongs when focus is involved: a non-focusable host\n * (`ds-menu-item` is `role=\"none\"` around a real `<button>`) never reaches a screen\n * reader, so `focusin`'s target is recorded. A pointer-only open leaves it null.\n */\n private focusedTarget: HTMLElement | null = null;\n\n /**\n * Where `aria-describedby` was written, so teardown strips it from the same element\n * even if focus moved `focusedTarget` after the panel opened.\n */\n private describedElement: HTMLElement | null = null;\n\n private detachAncestor: (() => void) | null = null;\n\n private readonly ancestorFocusTrigger: AncestorFocusTrigger = {\n host: this.hostElement,\n isClipped: () => this.isClipped(),\n openFor: (ancestor) => {\n this.focusedTarget = ancestor;\n this.scheduleShow();\n },\n close: () => {\n this.focusedTarget = null;\n this.onClose();\n },\n };\n\n constructor() {\n afterNextRender(() => {\n if (this.whenClipped()) {\n this.detachAncestor =\n watchFocusableAncestor(this.ancestorFocusTrigger) ??\n tabStopWhileClipped(this.ancestorFocusTrigger);\n }\n });\n }\n\n @HostListener('mouseenter')\n protected onPointerEnter(): void {\n this.scheduleShow();\n }\n\n // Same rule as via a focusable ancestor: keyboard focus opens, a click's focus does not.\n @HostListener('focusin', ['$event'])\n protected onFocusIn(event: FocusEvent): void {\n const host = this.hostElement;\n if (\n this.whenClipped() &&\n host.matches(FOCUSABLE) &&\n (event.target !== host || !host.matches(':focus-visible'))\n ) {\n return;\n }\n if (event.target instanceof HTMLElement) {\n this.focusedTarget = event.target;\n }\n this.scheduleShow();\n }\n\n @HostListener('focusout')\n protected onFocusOut(): void {\n this.focusedTarget = null;\n this.onClose();\n }\n\n private scheduleShow(): void {\n if (this.unpin || !this.tipContent()) {\n return;\n }\n if (this.pinsOnClick() && this.ref?.hasAttached()) {\n return;\n }\n if (this.whenClipped() && !this.isClipped()) {\n return;\n }\n if (this.timer !== null) {\n clearTimeout(this.timer);\n }\n this.timer = window.setTimeout(\n () => this.show(),\n this.pinsOnClick() ? 0 : this.delay(),\n );\n }\n\n @HostListener('mouseleave')\n protected onPointerLeave(): void {\n if (!this.unpin) {\n this.onClose();\n }\n }\n\n // Close on click too: a re-rendered anchor under a stationary cursor fires no mouseleave.\n @HostListener('click')\n protected onClick(): void {\n if (this.pinsOnClick() && !this.unpin) {\n this.pin();\n } else {\n this.onClose();\n }\n }\n\n protected onClose(): void {\n if (this.timer !== null) {\n clearTimeout(this.timer);\n this.timer = null;\n }\n this.unpin?.();\n this.disposeRef();\n }\n\n private pin(): void {\n if (this.timer !== null) {\n clearTimeout(this.timer);\n this.timer = null;\n }\n if (!this.ref?.hasAttached()) {\n if (!this.tipContent()) {\n return;\n }\n this.show();\n }\n const closeOutside = (event: Event) => {\n const target = event.target as Node;\n if (\n !this.hostElement.contains(target) &&\n !this.ref?.overlayElement.contains(target)\n ) {\n this.onClose();\n }\n };\n this.document.addEventListener('pointerdown', closeOutside, true);\n const stopEscape = listenForEscape(this.document, () => this.onClose());\n this.hostElement.setAttribute(PINNED_ATTRIBUTE, '');\n this.unpin = () => {\n this.unpin = null;\n this.hostElement.removeAttribute(PINNED_ATTRIBUTE);\n this.document.removeEventListener('pointerdown', closeOutside, true);\n stopEscape();\n };\n }\n\n private disposeRef(): void {\n this.ref?.dispose();\n this.ref = null;\n const described = this.describedElement;\n if (!described) {\n return;\n }\n this.describedElement = null;\n const remaining = (described.getAttribute('aria-describedby') ?? '')\n .split(' ')\n .filter((id: string) => id && id !== this.tipId)\n .join(' ');\n if (remaining) {\n described.setAttribute('aria-describedby', remaining);\n } else {\n described.removeAttribute('aria-describedby');\n }\n }\n\n @HostListener('keydown')\n protected onKeydown(): void {\n if (this.whenClipped()) {\n this.onClose();\n }\n }\n\n @HostListener('keydown.escape')\n protected onEscape(): void {\n if (this.ref) {\n this.onClose();\n }\n }\n\n private show(): void {\n // show() can be re-entered with a panel open: dispose it first to avoid a leaked OverlayRef and a duplicate id.\n this.disposeRef();\n const placement = this.placement();\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(this.host)\n .withPositions(positionsFor(placement))\n .withViewportMargin(VIEWPORT_MARGIN_PX);\n\n this.ref = this.overlay.create({\n positionStrategy,\n panelClass: 'ds-overlay-pane',\n scrollStrategy: this.overlay.scrollStrategies.close(),\n });\n prepareOverlayEnter(this.ref, this.host.nativeElement, positionStrategy);\n // The CDK strategy sees only the window and cdkScrollable ancestors, not a plain overflow container.\n const stopScrollClose = closeOnScroll(this.ref, () => this.onClose());\n this.ref.detachments().subscribe(stopScrollClose);\n\n const cmpRef = this.ref.attach(new ComponentPortal(TooltipPanelComponent));\n const tip = this.tipContent();\n cmpRef.setInput('text', tip);\n cmpRef.setInput('placement', placement);\n cmpRef.setInput('arrow', this.arrow());\n positionStrategy.positionChanges.subscribe(({ connectionPair }) =>\n cmpRef.setInput(\n 'placement',\n overlayPlacementOf(connectionPair.overlayY, connectionPair.overlayX),\n ),\n );\n cmpRef.setInput('panelId', this.tipId);\n pointArrowAtHost(this.ref, cmpRef.location.nativeElement, this.hostElement);\n this.ref.detachments().subscribe(() => this.unpin?.());\n if (typeof tip === 'string' && this.disclosesOwnText(tip)) {\n return;\n }\n const described = this.focusedTarget ?? this.host.nativeElement;\n this.describedElement = described;\n const existing = described.getAttribute('aria-describedby');\n described.setAttribute(\n 'aria-describedby',\n existing ? `${existing} ${this.tipId}` : this.tipId,\n );\n }\n\n ngOnDestroy(): void {\n this.detachAncestor?.();\n this.onClose();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAKA,MAAM,KAAK,GAAG,iBAAiB;AAC/B,MAAM,OAAO,GAAG,QAAQ;AACxB,MAAM,IAAI,GAAG,IAAI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BvB,YAAY;uBAAC,YAAY;;sBAQzB,YAAY;uBAAC,OAAO;;sBAoEpB,YAAY;uBAAC,SAAS;;sBAOtB,YAAY;uBAAC,gBAAgB;;;AC9XhC;;AAEG;;;;"}
|
|
@@ -3,11 +3,11 @@ import { ViewEncapsulation, Component } from '@angular/core';
|
|
|
3
3
|
|
|
4
4
|
class TopBarComponent {
|
|
5
5
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TopBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.22", type: TopBarComponent, isStandalone: true, selector: "ds-topbar", ngImport: i0, template: "<header class=\"topbar\">\n <div class=\"title\">\n <ng-content select=\"[title]\"></ng-content>\n </div>\n\n <ng-content select=\"[breadcrumbs]\"></ng-content>\n\n <div class=\"spacer\">\n <ng-content select=\"[search]\"></ng-content>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</header>\n", styles: ["
|
|
6
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.22", type: TopBarComponent, isStandalone: true, selector: "ds-topbar", ngImport: i0, template: "<header class=\"topbar\">\n <div class=\"title\">\n <ng-content select=\"[title]\"></ng-content>\n </div>\n\n <ng-content select=\"[breadcrumbs]\"></ng-content>\n\n <div class=\"spacer\">\n <ng-content select=\"[search]\"></ng-content>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</header>\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{--_topbar-height: var(--ds-topbar-height, var(--topbar-h));--_topbar-bg-color: var(--ds-topbar-bg-color, var(--surface-default));--_topbar-border: var(--ds-topbar-border, var(--border-divider));--_topbar-title-text-color: var(--ds-topbar-title-text-color, var(--text-primary));--_topbar-crumb-text-color: var(--ds-topbar-crumb-text-color, var(--ds-breadcrumbs-label-color));--_topbar-crumb-hover-text-color: var(--ds-topbar-crumb-hover-text-color, var(--ds-breadcrumbs-label-color-hover));--_topbar-crumb-separator-icon-color: var(--ds-topbar-crumb-separator-icon-color, var(--ds-breadcrumbs-separator-icon-color));--_topbar-crumb-current-text-color: var(--ds-topbar-crumb-current-text-color, var(--ds-breadcrumbs-current-label-color));display:block}.topbar{--ds-breadcrumbs-label-color: var(--_topbar-crumb-text-color);--ds-breadcrumbs-label-color-hover: var(--_topbar-crumb-hover-text-color);--ds-breadcrumbs-separator-icon-color: var(--_topbar-crumb-separator-icon-color);--ds-breadcrumbs-current-label-color: var(--_topbar-crumb-current-text-color);display:flex;align-items:center;gap:var(--space-4);height:var(--_topbar-height);padding:0 var(--space-6);background-color:var(--_topbar-bg-color);border-bottom:var(--border-width-default) solid var(--_topbar-border)}.topbar .title{font:var(--font-weight-bold) var(--font-size-h5)/var(--line-height-snug) var(--font-sans);color:var(--_topbar-title-text-color)}.topbar .spacer{flex:1;min-width:0}.topbar .actions{display:flex;align-items:center;gap:var(--space-2);margin-left:auto}\n"] });
|
|
7
7
|
}
|
|
8
8
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TopBarComponent, decorators: [{
|
|
9
9
|
type: Component,
|
|
10
|
-
args: [{ selector: 'ds-topbar', standalone: true, encapsulation: ViewEncapsulation.Emulated, template: "<header class=\"topbar\">\n <div class=\"title\">\n <ng-content select=\"[title]\"></ng-content>\n </div>\n\n <ng-content select=\"[breadcrumbs]\"></ng-content>\n\n <div class=\"spacer\">\n <ng-content select=\"[search]\"></ng-content>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</header>\n", styles: ["
|
|
10
|
+
args: [{ selector: 'ds-topbar', standalone: true, encapsulation: ViewEncapsulation.Emulated, template: "<header class=\"topbar\">\n <div class=\"title\">\n <ng-content select=\"[title]\"></ng-content>\n </div>\n\n <ng-content select=\"[breadcrumbs]\"></ng-content>\n\n <div class=\"spacer\">\n <ng-content select=\"[search]\"></ng-content>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</header>\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{--_topbar-height: var(--ds-topbar-height, var(--topbar-h));--_topbar-bg-color: var(--ds-topbar-bg-color, var(--surface-default));--_topbar-border: var(--ds-topbar-border, var(--border-divider));--_topbar-title-text-color: var(--ds-topbar-title-text-color, var(--text-primary));--_topbar-crumb-text-color: var(--ds-topbar-crumb-text-color, var(--ds-breadcrumbs-label-color));--_topbar-crumb-hover-text-color: var(--ds-topbar-crumb-hover-text-color, var(--ds-breadcrumbs-label-color-hover));--_topbar-crumb-separator-icon-color: var(--ds-topbar-crumb-separator-icon-color, var(--ds-breadcrumbs-separator-icon-color));--_topbar-crumb-current-text-color: var(--ds-topbar-crumb-current-text-color, var(--ds-breadcrumbs-current-label-color));display:block}.topbar{--ds-breadcrumbs-label-color: var(--_topbar-crumb-text-color);--ds-breadcrumbs-label-color-hover: var(--_topbar-crumb-hover-text-color);--ds-breadcrumbs-separator-icon-color: var(--_topbar-crumb-separator-icon-color);--ds-breadcrumbs-current-label-color: var(--_topbar-crumb-current-text-color);display:flex;align-items:center;gap:var(--space-4);height:var(--_topbar-height);padding:0 var(--space-6);background-color:var(--_topbar-bg-color);border-bottom:var(--border-width-default) solid var(--_topbar-border)}.topbar .title{font:var(--font-weight-bold) var(--font-size-h5)/var(--line-height-snug) var(--font-sans);color:var(--_topbar-title-text-color)}.topbar .spacer{flex:1;min-width:0}.topbar .actions{display:flex;align-items:center;gap:var(--space-2);margin-left:auto}\n"] }]
|
|
11
11
|
}] });
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids-group-ltd-ids-design-system-components-topbar.mjs","sources":["../../../src/lib/components/topbar/topbar.component.ts","../../../src/lib/components/topbar/topbar.component.html","../../../src/lib/components/topbar/ids-group-ltd-ids-design-system-components-topbar.ts"],"sourcesContent":["import { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'ds-topbar',\n standalone: true,\n templateUrl: './topbar.component.html',\n styleUrl: './topbar.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class TopBarComponent {}\n","<header class=\"topbar\">\n <div class=\"title\">\n <ng-content select=\"[title]\"></ng-content>\n </div>\n\n <ng-content select=\"[breadcrumbs]\"></ng-content>\n\n <div class=\"spacer\">\n <ng-content select=\"[search]\"></ng-content>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</header>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MASa,eAAe,CAAA;wGAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAf,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,eAAe,qECT5B,yWAeA,EAAA,MAAA,EAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"ids-group-ltd-ids-design-system-components-topbar.mjs","sources":["../../../src/lib/components/topbar/topbar.component.ts","../../../src/lib/components/topbar/topbar.component.html","../../../src/lib/components/topbar/ids-group-ltd-ids-design-system-components-topbar.ts"],"sourcesContent":["import { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'ds-topbar',\n standalone: true,\n templateUrl: './topbar.component.html',\n styleUrl: './topbar.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class TopBarComponent {}\n","<header class=\"topbar\">\n <div class=\"title\">\n <ng-content select=\"[title]\"></ng-content>\n </div>\n\n <ng-content select=\"[breadcrumbs]\"></ng-content>\n\n <div class=\"spacer\">\n <ng-content select=\"[search]\"></ng-content>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</header>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MASa,eAAe,CAAA;wGAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAf,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,eAAe,qECT5B,yWAeA,EAAA,MAAA,EAAA,CAAA,ymEAAA,CAAA,EAAA,CAAA;;4FDNa,eAAe,EAAA,UAAA,EAAA,CAAA;kBAP3B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,WAAW,EAAA,UAAA,EACT,IAAI,EAAA,aAAA,EAGD,iBAAiB,CAAC,QAAQ,EAAA,QAAA,EAAA,yWAAA,EAAA,MAAA,EAAA,CAAA,ymEAAA,CAAA,EAAA;;;AEP3C;;AAEG;;;;"}
|